
26 changed files with 830 additions and 592 deletions
File diff suppressed because it is too large
@ -1,29 +1,58 @@ |
|||
<?xml version="1.0" encoding="UTF-8" ?> |
|||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
|||
<mapper namespace="com.yxt.wms.biz.inventory.wmsinventoryprofitindetail.WmsInventoryProfitinDetailMapper"> |
|||
<!-- <where> ${ew.sqlSegment} </where>--> |
|||
<!-- ${ew.customSqlSegment} --> |
|||
<!-- <where> ${ew.sqlSegment} </where>--> |
|||
<!-- ${ew.customSqlSegment} --> |
|||
|
|||
<select id="selByMainSid" |
|||
<select id="selByMainSid" |
|||
resultType="com.yxt.wms.biz.inventory.wmsinventoryprofitindetail.WmsInventoryProfitinDetailDetailsVo"> |
|||
SELECT |
|||
mainSid, |
|||
goodsSpuSid AS goodsSid, |
|||
goodsSpuName, |
|||
goodsSkuSid, |
|||
goodsSkuTitle AS goodsName, |
|||
goodsSkuCode AS goodsCode, |
|||
goodsSkuOwnSpec AS goodsSpec, |
|||
unit, |
|||
manufacturerSid, |
|||
manufacturerName, |
|||
profitCount AS pyNum, |
|||
supplierSid, |
|||
supplierName, |
|||
inCost AS inStoragePrice, |
|||
inCount AS inStorageNum |
|||
FROM |
|||
wms_inventory_profitin_detail |
|||
WHERE mainSid = #{mainSid} |
|||
</select> |
|||
SELECT mainSid, |
|||
goodsSpuSid AS goodsSid, |
|||
goodsSpuName, |
|||
goodsSkuSid, |
|||
goodsSkuTitle AS goodsName, |
|||
goodsSkuCode AS goodsCode, |
|||
goodsSkuOwnSpec AS goodsSpec, |
|||
unit, |
|||
manufacturerSid, |
|||
manufacturerName, |
|||
profitCount AS pyNum, |
|||
supplierSid, |
|||
supplierName, |
|||
inCost AS inStoragePrice, |
|||
inCount AS inStorageNum |
|||
FROM wms_inventory_profitin_detail |
|||
WHERE mainSid = #{mainSid} |
|||
</select> |
|||
|
|||
<select id="selSupplierSid" resultType="java.lang.String"> |
|||
SELECT |
|||
supplierSid |
|||
FROM |
|||
wms_inventory_profitin_detail |
|||
WHERE mainSid = #{businessSid} |
|||
GROUP BY supplierSid |
|||
</select> |
|||
|
|||
<select id="selByMainSidAndSupSid" |
|||
resultType="com.yxt.wms.biz.inventory.wmsinventoryprofitindetail.WmsInventoryProfitinDetailDetailsVo"> |
|||
SELECT mainSid, |
|||
goodsSpuSid AS goodsSid, |
|||
goodsSpuName, |
|||
goodsSkuSid, |
|||
goodsSkuTitle AS goodsName, |
|||
goodsSkuCode AS goodsCode, |
|||
goodsSkuOwnSpec AS goodsSpec, |
|||
unit, |
|||
manufacturerSid, |
|||
manufacturerName, |
|||
profitCount AS pyNum, |
|||
supplierSid, |
|||
supplierName, |
|||
inCost AS inStoragePrice, |
|||
inCount AS inStorageNum |
|||
FROM wms_inventory_profitin_detail |
|||
WHERE mainSid = #{businessSid} |
|||
AND supplierSid = #{supplierSid} |
|||
</select> |
|||
</mapper> |
Loading…
Reference in new issue