Browse Source

add: 优化上线期间提出的需求;

master1
龚宝雄 6 months ago
parent
commit
2ed72b0432
  1. 16
      nlsso-server/src/main/java/org/nl/wms/database/eas/dao/xml/AllocationBillMapper.xml
  2. 2
      nlsso-server/src/main/java/org/nl/wms/database/eas/dao/xml/ReceiptBillMapper.xml
  3. 2
      nlsso-server/src/main/java/org/nl/wms/database/eas/service/impl/EasOutInBillDetailServiceImpl.java

16
nlsso-server/src/main/java/org/nl/wms/database/eas/dao/xml/AllocationBillMapper.xml

@ -19,8 +19,11 @@
OR drkcmc LIKE '%' || #{fuzzy} || '%' OR drkcmc LIKE '%' || #{fuzzy} || '%'
) )
</if> </if>
<if test="ckbm != null and ckbm != ''"> <if test="drkcbm != null and drkcbm != ''">
AND (dckcbm = #{ckbm} OR drkcbm = #{ckbm}) AND (drkcbm = #{drkcbm})
</if>
<if test="dckcbm != null and dckcbm != ''">
AND (dckcbm = #{dckcbm})
</if> </if>
ORDER BY CJSJ DESC ) temp ) ORDER BY CJSJ DESC ) temp )
</select> </select>
@ -39,8 +42,11 @@
OR drkcmc LIKE '%' || #{fuzzy} || '%' OR drkcmc LIKE '%' || #{fuzzy} || '%'
) )
</if> </if>
<if test="ckbm != null and ckbm != ''"> <if test="drkcbm != null and drkcbm != ''">
AND (dckcbm = #{ckbm} OR drkcbm = #{ckbm}) AND (drkcbm = #{drkcbm})
</if>
<if test="dckcbm != null and dckcbm != ''">
AND (dckcbm = #{dckcbm})
</if> </if>
ORDER BY CJSJ DESC ) temp WHERE <![CDATA[ ROWNUM <= #{size} * #{page} ]]>) WHERE ORDER BY CJSJ DESC ) temp WHERE <![CDATA[ ROWNUM <= #{size} * #{page} ]]>) WHERE
<![CDATA[ row_num > #{size} * (#{page} - 1) ]]> <![CDATA[ row_num > #{size} * (#{page} - 1) ]]>
@ -51,7 +57,7 @@
SELECT * FROM ( SELECT * FROM (
SELECT V.*, ROW_NUMBER() OVER (ORDER BY V.YWRQ DESC) AS RNUM SELECT V.*, ROW_NUMBER() OVER (ORDER BY V.YWRQ DESC) AS RNUM
FROM EAS_NOBLE.V_UC_STOCKTRANSFERBILL V FROM EAS_NOBLE.V_UC_STOCKTRANSFERBILL V
WHERE V.DJID = #{djid} WHERE V.DJID = #{djid} ORDER BY V.WLBM ASC
) )
WHERE RNUM BETWEEN (#{page} - 1) * #{size} + 1 AND #{page} * #{size} WHERE RNUM BETWEEN (#{page} - 1) * #{size} + 1 AND #{page} * #{size}
</select> </select>

2
nlsso-server/src/main/java/org/nl/wms/database/eas/dao/xml/ReceiptBillMapper.xml

@ -46,6 +46,6 @@
<!-- OR bz LIKE CONCAT('%', #{fuzzy}, '%')--> <!-- OR bz LIKE CONCAT('%', #{fuzzy}, '%')-->
<!-- )--> <!-- )-->
<!-- </if>--> <!-- </if>-->
ORDER BY TJSJ DESC ORDER BY WLBM DESC
</select> </select>
</mapper> </mapper>

2
nlsso-server/src/main/java/org/nl/wms/database/eas/service/impl/EasOutInBillDetailServiceImpl.java

@ -62,7 +62,7 @@ public class EasOutInBillDetailServiceImpl extends ServiceImpl<EasOutInBillDetai
params.setSize(500); params.setSize(500);
Page<EasOutInBillDetail> result = easOutInBillDetailMapper.selectPage(new Page<>(params.getPage(), params.getSize()), new QueryWrapper<EasOutInBillDetail>() Page<EasOutInBillDetail> result = easOutInBillDetailMapper.selectPage(new Page<>(params.getPage(), params.getSize()), new QueryWrapper<EasOutInBillDetail>()
.lambda() .lambda()
.eq(ObjectUtil.isNotEmpty(params), EasOutInBillDetail::getDjid, params.getDjid()) .eq(ObjectUtil.isNotEmpty(params), EasOutInBillDetail::getDjid, params.getDjid()).orderByAsc(EasOutInBillDetail::getWlbm)
); );
List<EasOutInBillDetail> easOutInBillDetailList = result.getRecords(); List<EasOutInBillDetail> easOutInBillDetailList = result.getRecords();
List<InventoryInfo> inventoryInfoList = queryInventoryInfoList(easOutInBillDetailList); List<InventoryInfo> inventoryInfoList = queryInventoryInfoList(easOutInBillDetailList);

Loading…
Cancel
Save