package com.JN.demo.jnzmquatation.mapper;

import com.JN.demo.jnzmquatation.dto.JnInventoryDto;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * @ClassName InventoryMapper
 * @Description TODO
 * @Author JIAL
 * @Date 2024/2/22 9:56
 * @Version 1.0
 */
@Mapper
public interface JnInventoryMapper {

    @Select("SELECT [cbpj_mc] as inventory,\n" +
            "       [cbpj_pzjd1] as inv_desc,\n" +
            "       [cbpj_zl] as weigh_inv\n" +
            "FROM [zm_erp2].[dbo].[cb_cbpj]")
    List<JnInventoryDto> queryInventoryList();
}
