Commit 76a908bc LN

bug修改

1 个父辈 4592f99c
...@@ -65,7 +65,6 @@ public class MicronSpUnloadController { ...@@ -65,7 +65,6 @@ public class MicronSpUnloadController {
@ApiOperation("Withdraw Offline出库: GetEquipIDList") @ApiOperation("Withdraw Offline出库: GetEquipIDList")
@GetMapping(value = "/unload/getEquipIdList") @GetMapping(value = "/unload/getEquipIdList")
public ResultBean getEquipIdList() { public ResultBean getEquipIdList() {
try { try {
List<String> equipIdList = Micron20031Api.getEquipIDList(); List<String> equipIdList = Micron20031Api.getEquipIDList();
return ResultBean.newOkResult(equipIdList); return ResultBean.newOkResult(equipIdList);
...@@ -103,8 +102,8 @@ public class MicronSpUnloadController { ...@@ -103,8 +102,8 @@ public class MicronSpUnloadController {
posList) { posList) {
try { try {
//验证 //验证
int MaxQuantity=dataCache.getCache(Constants.CACHE_MaxQuantity); Integer MaxQuantity=dataCache.getCache(Constants.CACHE_MaxQuantity);
if( MaxQuantity<=0){ if( MaxQuantity==null|| MaxQuantity<0){
MaxQuantity=2; MaxQuantity=2;
} }
Micron20031Api.chkAuthoriseToDispatch(pos.getBarcode(), Micron20031Api.MODE_ENABLE_MAM_SAP, SecurityUtils.getCurrentUsername(),lineId, MaxQuantity); Micron20031Api.chkAuthoriseToDispatch(pos.getBarcode(), Micron20031Api.MODE_ENABLE_MAM_SAP, SecurityUtils.getCurrentUsername(),lineId, MaxQuantity);
......
支持 Markdown 格式
你添加了 0 到此讨论。请谨慎行事。
Finish editing this message first!