|
@@ -1,6 +1,7 @@
|
|
|
package com.ruoyi.web.controller.warewms.ams;
|
|
|
|
|
|
import cn.hutool.core.collection.CollectionUtil;
|
|
|
+import cn.hutool.core.util.ObjectUtil;
|
|
|
import com.alibaba.druid.util.StringUtils;
|
|
|
import com.google.common.collect.Lists;
|
|
|
import com.ruoyi.ams.inv.domain.InvLotLocId;
|
|
@@ -119,6 +120,7 @@ public class InvLotLocIdController extends BaseController {
|
|
|
@PostMapping("/moveEmptyPalletOut")
|
|
|
private AjaxResult handleEmptyPalletOut(@RequestParam String locationId) {
|
|
|
BaseLocationInfo baseLocationInfo = iBucketLocInvService.allocateLocationInfo();
|
|
|
+ if (ObjectUtil.isNull(baseLocationInfo)) return AjaxResult.error("baseLocationInfo is null");
|
|
|
return AjaxResult.success(move(buildInvLotLocIdMoveForm(String.valueOf(baseLocationInfo.getId()), locationId)));
|
|
|
}
|
|
|
|
|
@@ -126,6 +128,7 @@ public class InvLotLocIdController extends BaseController {
|
|
|
@PostMapping("/moveEmptyPalletIn")
|
|
|
private AjaxResult handleEmptyPalletIn(@RequestParam String locationId) {
|
|
|
BaseLocationInfo baseLocationInfo = iBucketLocInvService.selectLocationInfo();
|
|
|
+ if (ObjectUtil.isNull(baseLocationInfo)) return AjaxResult.error("baseLocationInfo is null");
|
|
|
return move(buildInvLotLocIdMoveForm(locationId, String.valueOf(baseLocationInfo.getId())));
|
|
|
}
|
|
|
|