增加批次商品选择
This commit is contained in:
@@ -8,6 +8,7 @@ import com.jsh.erp.datasource.entities.*;
|
||||
import com.jsh.erp.datasource.mappers.*;
|
||||
import com.jsh.erp.datasource.vo.DepotItemStockWarningCount;
|
||||
import com.jsh.erp.datasource.vo.DepotItemVo4Stock;
|
||||
import com.jsh.erp.datasource.vo.DepotItemVoBatchNumberList;
|
||||
import com.jsh.erp.exception.BusinessRunTimeException;
|
||||
import com.jsh.erp.exception.JshException;
|
||||
import com.jsh.erp.service.materialExtend.MaterialExtendService;
|
||||
@@ -661,4 +662,8 @@ public class DepotItemService {
|
||||
BigDecimal count = depotItemMapperEx.getFinishNumber(mId, linkNumber, goToType);
|
||||
return count;
|
||||
}
|
||||
|
||||
public List<DepotItemVoBatchNumberList> getBatchNumberList(String name, Long depotId, String barCode, String batchNumber){
|
||||
return depotItemMapperEx.getBatchNumberList(name, depotId, barCode, batchNumber);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -458,4 +458,24 @@ public class SerialNumberService {
|
||||
}
|
||||
return result;
|
||||
}
|
||||
|
||||
public List<SerialNumber> getEnableSerialNumberList(String name, Long depotId, Long materialId, Integer offset, Integer rows)throws Exception {
|
||||
List<SerialNumber> list =null;
|
||||
try{
|
||||
list = serialNumberMapperEx.getEnableSerialNumberList(StringUtil.toNull(name), depotId, materialId, offset, rows);
|
||||
}catch(Exception e){
|
||||
JshException.readFail(logger, e);
|
||||
}
|
||||
return list;
|
||||
}
|
||||
|
||||
public Long getEnableSerialNumberCount(String name, Long depotId, Long materialId)throws Exception {
|
||||
Long count = 0L;
|
||||
try{
|
||||
count = serialNumberMapperEx.getEnableSerialNumberCount(StringUtil.toNull(name), depotId, materialId);
|
||||
}catch(Exception e){
|
||||
JshException.readFail(logger, e);
|
||||
}
|
||||
return count;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user