工单完成时判空
This commit is contained in:
@@ -202,11 +202,17 @@ public class YCLCKTask extends AbstractTask {
|
||||
one.setMove_way(one.getMove_way() == null ? "" : (one.getMove_way() + " -> ") + endPointObj.getPoint_code());
|
||||
one.setGroup_bind_material_status(GroupBindMaterialStatusEnum.BOUND.getValue());
|
||||
one.setInstorage_time(DateUtil.now());
|
||||
one.setStanding_time(Integer.valueOf(extGroupData.getString("time")));
|
||||
if(ObjectUtil.isEmpty(extGroupData.getString("time"))){
|
||||
one.setStanding_time(1);
|
||||
}else{
|
||||
one.setStanding_time(Integer.valueOf(extGroupData.getString("time")));
|
||||
}
|
||||
one.setUpdate_id(GeneralDefinition.ACS_ID);
|
||||
one.setUpdate_name(GeneralDefinition.ACS_NAME);
|
||||
one.setUpdate_time(DateUtil.now());
|
||||
one.setPcsn(extGroupData.getString("batch"));
|
||||
if(ObjectUtil.isNotEmpty(extGroupData.getString("batch"))){
|
||||
one.setPcsn(extGroupData.getString("batch"));
|
||||
}
|
||||
vehiclematerialgroupService.updateById(one);
|
||||
}
|
||||
// 终点解锁
|
||||
@@ -215,8 +221,14 @@ public class YCLCKTask extends AbstractTask {
|
||||
endPointObj.setVehicle_code2(taskObj.getVehicle_code2());
|
||||
endPointObj.setVehicle_qty(1);
|
||||
endPointObj.setUpdate_time(DateUtil.now());
|
||||
endPointObj.setStanding_time(Integer.valueOf(extGroupData.getString("time")));
|
||||
endPointObj.setPcsn(extGroupData.getString("batch"));
|
||||
if(ObjectUtil.isEmpty(extGroupData.getString("time"))){
|
||||
endPointObj.setStanding_time(1);
|
||||
}else{
|
||||
endPointObj.setStanding_time(Integer.valueOf(extGroupData.getString("time")));
|
||||
}
|
||||
if(ObjectUtil.isNotEmpty(extGroupData.getString("batch"))){
|
||||
endPointObj.setPcsn(extGroupData.getString("batch"));
|
||||
}
|
||||
endPointObj.setInstorage_time(DateUtil.now());
|
||||
pointService.update(endPointObj);
|
||||
// 起点清空
|
||||
@@ -292,7 +304,9 @@ public class YCLCKTask extends AbstractTask {
|
||||
materialDataDto.setSupplierName(material.getSupplierName());
|
||||
materialDataDto.setProductName(material.getProductName());
|
||||
materialDataDto.setSpecification(material.getSpecification());
|
||||
materialDataDto.setPickingBatch(extGroupData.getString("batch"));
|
||||
if(ObjectUtil.isNotEmpty(extGroupData.getString("batch"))){
|
||||
materialDataDto.setPickingBatch(extGroupData.getString("batch"));
|
||||
}
|
||||
materialDataDto.setLength(BigDecimal.valueOf(length));
|
||||
materialDataDto.setWeight(BigDecimal.valueOf(weight));
|
||||
materialDataDto.setCreateTime(new DateTime().toTimestamp());
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
package org.nl.wms.sch.workorder.service.impl;
|
||||
|
||||
import cn.hutool.core.date.DateUtil;
|
||||
import cn.hutool.core.lang.Assert;
|
||||
import cn.hutool.core.util.ObjectUtil;
|
||||
import com.alibaba.fastjson.JSONObject;
|
||||
@@ -144,6 +145,8 @@ public class WorkorderServiceImpl extends ServiceImpl<WorkorderMapper, Workorder
|
||||
param.put("mode",mode);
|
||||
param.put("vehicle_code",vehicle_code);
|
||||
param.put("vehicle_code2", vehicle_code2);
|
||||
param.put("workorder_code", workorder.getMoname());
|
||||
param.put("batch", DateUtil.format(DateUtil.date(), "yyyyMMddHHmmss"));
|
||||
param.put("user_id","1");
|
||||
param.put("person_name", "管理员");
|
||||
pdaService.yclck(param);
|
||||
|
||||
Reference in New Issue
Block a user