空托出库 模具出库,盘点执行的站点楼层调整

main
judy 1 year ago
parent d51cf00c07
commit d92e13e128
  1. 3
      shkj-wms/src/main/java/com/shkj/wcs/third/stacker/StkCallUtil.java
  2. 5
      shkj-wms/src/main/java/com/shkj/wms/bo/STKMoveBo.java
  3. 4
      shkj-wms/src/main/java/com/shkj/wms/controller/business/BusinStockInvController.java
  4. 2
      shkj-wms/src/main/java/com/shkj/wms/service/IBusinStockInvService.java
  5. 1
      shkj-wms/src/main/java/com/shkj/wms/service/impl/BusinOutInPlanServiceImpl.java
  6. 3
      shkj-wms/src/main/java/com/shkj/wms/service/impl/BusinStockInvServiceImpl.java
  7. 1
      shkj-wms/src/main/java/com/shkj/wms/service/impl/SysThirdExceptionRequestServiceImpl.java
  8. 2
      shkj-wms/src/main/java/com/shkj/wms/utils/WmsCallWcsUtil.java

@ -142,7 +142,8 @@ public class StkCallUtil {
log.info("1楼是否允许出库::"+oneDpsidle+" 出库的值:"+oneDpsidleV); log.info("1楼是否允许出库::"+oneDpsidle+" 出库的值:"+oneDpsidleV);
log.info("2楼是否允许出库::"+twoDpsidle+" 出库的值:"+twoDpsidleV); log.info("2楼是否允许出库::"+twoDpsidle+" 出库的值:"+twoDpsidleV);
Integer layer = 1; //出库的站台
Integer layer =stkMoveBo.getLayer();
if (layer==1){ if (layer==1){
//false不允许出库 //false不允许出库
if (!Boolean.valueOf(oneDpsidleV)){ if (!Boolean.valueOf(oneDpsidleV)){

@ -52,5 +52,10 @@ public class STKMoveBo implements Serializable {
/** to列 */ /** to列 */
private String toLayer; private String toLayer;
/**
* 呼叫楼层-站台
*/
private Integer layer;
} }

@ -190,8 +190,8 @@ public class BusinStockInvController extends BaseController {
*/ */
@Log(title = "盘点计划中的,执行盘点计划", businessType = BusinessType.UPDATE) @Log(title = "盘点计划中的,执行盘点计划", businessType = BusinessType.UPDATE)
@PostMapping("/exec") @PostMapping("/exec")
public Result<Boolean> exec(@RequestParam String invOrderNo) { public Result<Boolean> exec(@RequestParam String invOrderNo,Integer layer) {
return iBusinStockInvService.exec(invOrderNo); return iBusinStockInvService.exec(invOrderNo,layer);
} }
@Log(title = "盘点计划中的,取消盘点计划", businessType = BusinessType.UPDATE) @Log(title = "盘点计划中的,取消盘点计划", businessType = BusinessType.UPDATE)
@PostMapping("/execCancel") @PostMapping("/execCancel")

@ -70,7 +70,7 @@ public interface IBusinStockInvService extends IService<BusinStockInv> {
* @param invOrderNo * @param invOrderNo
* @return * @return
*/ */
Result<Boolean> exec(String invOrderNo); Result<Boolean> exec(String invOrderNo,Integer layer);
/** /**
* 取消盘点 * 取消盘点

@ -275,6 +275,7 @@ public class BusinOutInPlanServiceImpl extends ServiceImpl<BusinOutInPlanMapper,
inPlan.setBranchId(3L); inPlan.setBranchId(3L);
StockDetailLocationVo location = sysStockDetailService.findLocationByContainer(bo.getContainerCode(), SecurityUtils.erpBranchId); StockDetailLocationVo location = sysStockDetailService.findLocationByContainer(bo.getContainerCode(), SecurityUtils.erpBranchId);
inPlan.setLocationId(location.getId()); inPlan.setLocationId(location.getId());
inPlan.setLayer(1);
inPlans.add(inPlan); inPlans.add(inPlan);
} }

@ -492,7 +492,7 @@ public class BusinStockInvServiceImpl extends ServiceImpl<BusinStockInvMapper, B
*/ */
@Override @Override
@Transactional(rollbackFor = Exception.class) @Transactional(rollbackFor = Exception.class)
public Result<Boolean> exec(String invOrderNo) { public Result<Boolean> exec(String invOrderNo,Integer layer) {
LambdaQueryWrapper<BusinStockInv> wrapper = new LambdaQueryWrapper<BusinStockInv>() LambdaQueryWrapper<BusinStockInv> wrapper = new LambdaQueryWrapper<BusinStockInv>()
.eq(BusinStockInv::getInvOrderNo, invOrderNo) .eq(BusinStockInv::getInvOrderNo, invOrderNo)
.eq(BusinStockInv::getInvStatus, InvStatusEnum.init.getValue()); .eq(BusinStockInv::getInvStatus, InvStatusEnum.init.getValue());
@ -503,6 +503,7 @@ public class BusinStockInvServiceImpl extends ServiceImpl<BusinStockInvMapper, B
for (BusinStockInv businStockInv : list) { for (BusinStockInv businStockInv : list) {
businStockInv.setInvStatus(InvStatusEnum.exec.getValue()); businStockInv.setInvStatus(InvStatusEnum.exec.getValue());
businStockInv.setExecTime(DateUtils.getNowDate()); businStockInv.setExecTime(DateUtils.getNowDate());
businStockInv.setLayer(layer);
} }
//更新盘点的状态为确认执行 //更新盘点的状态为确认执行

@ -76,6 +76,7 @@ public class SysThirdExceptionRequestServiceImpl extends ServiceImpl<SysThirdExc
case ThirdApiTypeEnum.wcsOutTask: case ThirdApiTypeEnum.wcsOutTask:
case ThirdApiTypeEnum.wcsCallOutStock: case ThirdApiTypeEnum.wcsCallOutStock:
STKMoveBo vo = JSONObject.parseObject(request.getRequestBody(), STKMoveBo.class); STKMoveBo vo = JSONObject.parseObject(request.getRequestBody(), STKMoveBo.class);
vo.setLayer(request.getLayer());
Result runTask = businOutInPlanService.checkIsRunTask(vo.getTaskId()); Result runTask = businOutInPlanService.checkIsRunTask(vo.getTaskId());
if (Result.isOk(runTask)) { if (Result.isOk(runTask)) {
result = runTask; result = runTask;

@ -57,6 +57,7 @@ public class WmsCallWcsUtil {
public Result outStock(OutStockDetailVo vo, boolean call,Integer layer) { public Result outStock(OutStockDetailVo vo, boolean call,Integer layer) {
try { try {
STKMoveBo moveBo = getStkMoveBo(vo); STKMoveBo moveBo = getStkMoveBo(vo);
moveBo.setLayer(layer);
Result<Boolean> result = Result.err(); Result<Boolean> result = Result.err();
log.info("outStock 调用入参 = {} call = {}", moveBo, call); log.info("outStock 调用入参 = {} call = {}", moveBo, call);
if (call) { if (call) {
@ -86,6 +87,7 @@ public class WmsCallWcsUtil {
try { try {
//从哪个位置搬运 //从哪个位置搬运
STKMoveBo moveBo = getStkMoveBo(vo); STKMoveBo moveBo = getStkMoveBo(vo);
moveBo.setLayer(layer);
log.info("callOutStock 调用入参 = {}", moveBo); log.info("callOutStock 调用入参 = {}", moveBo);
//给堆垛机下搬运命令 //给堆垛机下搬运命令
Result<Boolean> result = stkCallUtil.outTask(moveBo); Result<Boolean> result = stkCallUtil.outTask(moveBo);

Loading…
Cancel
Save