解决获取批次商品列表信息接口的bug

This commit is contained in:
季圣华
2023-12-15 00:11:56 +08:00
parent f55b1875d8
commit 1daf602ecc
4 changed files with 17 additions and 4 deletions

View File

@@ -1138,9 +1138,11 @@ public class DepotItemService {
return count;
}
public List<DepotItemVoBatchNumberList> getBatchNumberList(String number, String name, Long depotId, String barCode, String batchNumber) throws Exception {
public List<DepotItemVoBatchNumberList> getBatchNumberList(String number, String name, Long depotId, String barCode,
String batchNumber, Boolean forceFlag, Boolean inOutManageFlag) throws Exception {
List<DepotItemVoBatchNumberList> reslist = new ArrayList<>();
List<DepotItemVoBatchNumberList> list = depotItemMapperEx.getBatchNumberList(StringUtil.toNull(number), name, depotId, barCode, batchNumber);
List<DepotItemVoBatchNumberList> list = depotItemMapperEx.getBatchNumberList(StringUtil.toNull(number), name,
depotId, barCode, batchNumber, forceFlag, inOutManageFlag);
for(DepotItemVoBatchNumberList bn: list) {
if(bn.getTotalNum()!=null && bn.getTotalNum().compareTo(BigDecimal.ZERO)>0) {
bn.setExpirationDateStr(Tools.parseDateToStr(bn.getExpirationDate()));