add:生产下线任务,缺回传单

This commit is contained in:
zhangzq
2026-06-17 14:32:28 +08:00
parent 0dc0726c80
commit 26d74cb19d
17 changed files with 35 additions and 138 deletions

View File

@@ -23,12 +23,15 @@ public class SecurityUtils {
* @return 系统用户 * @return 系统用户
*/ */
public static CurrentUser getCurrentUser() { public static CurrentUser getCurrentUser() {
Object loginInfo = StpUtil.getExtra("loginInfo"); try {
if (loginInfo==null){ Object loginInfo = StpUtil.getExtra("loginInfo");
if (loginInfo==null){
return CurrentUser.getDefaultUser();
}
return JSONObject.parseObject(String.valueOf(loginInfo),CurrentUser.class);
}catch (Exception ex){
return CurrentUser.getDefaultUser(); return CurrentUser.getDefaultUser();
} }
return JSONObject.parseObject(String.valueOf(loginInfo),CurrentUser.class);
} }
/** /**

View File

@@ -16,10 +16,6 @@ public class StrategyStructParam {
*库区,暂时不用 *库区,暂时不用
*/ */
private String sect_code; private String sect_code;
/**
* 仓位编码
*/
private String stor_code;
/** /**
* 同步单号 * 同步单号
*/ */

View File

@@ -318,7 +318,7 @@ public class StructattrServiceImpl extends ServiceImpl<StructattrMapper, Structa
@Override @Override
public List<StrategyStructMaterialVO> outBoundSectDiv(StrategyStructParam param) { public List<StrategyStructMaterialVO> outBoundSectDiv(StrategyStructParam param) {
//只校验仓库,库区 //只校验仓库,库区
Assert.noNullElements(new Object[]{param.getStor_code(),param.getSect_code()},"请求参数不能为空"); Assert.noNullElements(new Object[]{param.getSect_code()},"请求参数不能为空");
StSectStrategy one = iStSectStrategyService.getOne(new LambdaQueryWrapper<StSectStrategy>() StSectStrategy one = iStSectStrategyService.getOne(new LambdaQueryWrapper<StSectStrategy>()
.eq(StSectStrategy::getSect_code, param.getSect_code()) .eq(StSectStrategy::getSect_code, param.getSect_code())
.eq(StSectStrategy::getStrategy_type, StatusEnum.STRATEGY_TYPE.code("出库"))); .eq(StSectStrategy::getStrategy_type, StatusEnum.STRATEGY_TYPE.code("出库")));
@@ -348,7 +348,7 @@ public class StructattrServiceImpl extends ServiceImpl<StructattrMapper, Structa
@Override @Override
public List<Structattr> inBoundSectDiv(StrategyStructParam param) { public List<Structattr> inBoundSectDiv(StrategyStructParam param) {
//批号,单据暂时不校验,具体业务具体校验 //批号,单据暂时不校验,具体业务具体校验
Assert.noNullElements(new Object[]{param.getStrategyMaters(),param.getStor_code(),param.getSect_code()},"请求参数不能为空"); Assert.noNullElements(new Object[]{param.getStrategyMaters(),param.getSect_code()},"请求参数不能为空");
StSectStrategy one = iStSectStrategyService.getOne(new LambdaQueryWrapper<StSectStrategy>() StSectStrategy one = iStSectStrategyService.getOne(new LambdaQueryWrapper<StSectStrategy>()
.eq(StSectStrategy::getSect_code, param.getSect_code()) .eq(StSectStrategy::getSect_code, param.getSect_code())
.eq(StSectStrategy::getStrategy_type, StatusEnum.STRATEGY_TYPE.code("入库"))); .eq(StSectStrategy::getStrategy_type, StatusEnum.STRATEGY_TYPE.code("入库")));

View File

@@ -45,7 +45,6 @@ public class FIFORuleHandler extends Decisioner<StrategyStructMaterialVO, Strate
List<StructattrVechielDto> vechielDtos = List<StructattrVechielDto> vechielDtos =
iStructattrService.collectVechicle(MapOf.of("material_id", strategyMater.getMaterial_id() iStructattrService.collectVechicle(MapOf.of("material_id", strategyMater.getMaterial_id()
, "pcsn", strategyMater.getPcsn() , "pcsn", strategyMater.getPcsn()
, "stor_code", param.getStor_code()
, "sect_code", param.getSect_code() , "sect_code", param.getSect_code()
, "plan_qty", planQty , "plan_qty", planQty
, "is_lock", "false" , "is_lock", "false"

View File

@@ -45,7 +45,6 @@ public class FIFO2RuleHandler extends Decisioner<StrategyStructMaterialVO, Strat
iStructattrService.collectVechicle(MapOf.of("material_id", strategyMater.getMaterial_id() iStructattrService.collectVechicle(MapOf.of("material_id", strategyMater.getMaterial_id()
, "pcsn", strategyMater.getPcsn() , "pcsn", strategyMater.getPcsn()
, "inv_code", param.getInv_code() , "inv_code", param.getInv_code()
, "stor_code", param.getStor_code()
, "sect_code", param.getSect_code() , "sect_code", param.getSect_code()
, "plan_qty", planQty , "plan_qty", planQty
, "order_by", "gro.update_time asc") , "order_by", "gro.update_time asc")

View File

@@ -44,7 +44,6 @@ public class FIFONoStorHandler extends Decisioner<StrategyStructMaterialVO, Stra
List<StructattrVechielDto> vechielDtos = List<StructattrVechielDto> vechielDtos =
iStructattrService.collectVechicle(MapOf.of("material_id", strategyMater.getMaterial_id() iStructattrService.collectVechicle(MapOf.of("material_id", strategyMater.getMaterial_id()
, "pcsn", strategyMater.getPcsn() , "pcsn", strategyMater.getPcsn()
, "stor_code", param.getStor_code()
, "sect_code", param.getSect_code() , "sect_code", param.getSect_code()
, "plan_qty", planQty , "plan_qty", planQty
, "is_lock", "false" , "is_lock", "false"

View File

@@ -5,7 +5,7 @@ import cn.dev33.satoken.annotation.SaIgnore;
import lombok.RequiredArgsConstructor; import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j; import lombok.extern.slf4j.Slf4j;
import org.nl.wms.ext_manage.service.dto.StructLineOfflineDTO; import org.nl.wms.ext_manage.service.dto.StructLineOfflineDTO;
import org.nl.wms.sch_manage.service.core.tasks.StructOfflineTask; import org.nl.wms.sch_manage.service.core.tasks.StructOfflineService;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.HttpStatus; import org.springframework.http.HttpStatus;
import org.springframework.http.ResponseEntity; import org.springframework.http.ResponseEntity;
@@ -24,7 +24,7 @@ import org.springframework.web.bind.annotation.RestController;
public class MesStructLineController { public class MesStructLineController {
@Autowired @Autowired
private StructOfflineTask structOfflineTask; private StructOfflineService structOfflineTask;
/** /**
* 结构车间生产下料同步接口 * 结构车间生产下料同步接口

View File

@@ -330,7 +330,6 @@ public class PdaIosInServiceImpl implements PdaIosInService {
StrategyStructParam.builder() StrategyStructParam.builder()
.ioType(StatusEnum.STRATEGY_TYPE.code("入库")) .ioType(StatusEnum.STRATEGY_TYPE.code("入库"))
.sect_code(whereJson.getString("sect_code")) .sect_code(whereJson.getString("sect_code"))
.stor_code(storeDao.getStor_code())
.storagevehicle_code(vehicleDao.getStoragevehicle_code()) .storagevehicle_code(vehicleDao.getStoragevehicle_code())
.strategyMaters(materss) .strategyMaters(materss)
.build()); .build());

View File

@@ -362,7 +362,6 @@ public class PdaIosOutServiceImpl implements PdaIosOutService {
StrategyStructParam strategyStructParam = StrategyStructParam.builder() StrategyStructParam strategyStructParam = StrategyStructParam.builder()
.ioType(whereJson.getString(StatusEnum.STRATEGY_TYPE.code("出库"))) .ioType(whereJson.getString(StatusEnum.STRATEGY_TYPE.code("出库")))
.sect_code(whereJson.getString("sect_code")) .sect_code(whereJson.getString("sect_code"))
.stor_code(whereJson.getString("stor_code"))
.strategyMaters(maters) .strategyMaters(maters)
.build(); .build();
List<StrategyStructMaterialVO> structList = iStructattrService.outBoundSectDiv(strategyStructParam); List<StrategyStructMaterialVO> structList = iStructattrService.outBoundSectDiv(strategyStructParam);

View File

@@ -32,7 +32,7 @@ public class PdaSchPointServiceImpl extends ServiceImpl<SchBasePointMapper, SchB
@Override @Override
public PdaResponse getPoint(JSONObject whereJson) { public PdaResponse getPoint(JSONObject whereJson) {
SchBasePoint pointDao = this.getById(whereJson.getString("point_code")); SchBasePoint pointDao = this.getById(whereJson.getString("point_code"));
pointDao.setStoragevehicle_code(pointDao.getVehicle_code()); pointDao.setVehicle_code(pointDao.getVehicle_code());
return PdaResponse.requestParamOk(pointDao); return PdaResponse.requestParamOk(pointDao);
} }

View File

@@ -24,12 +24,12 @@ import org.nl.wms.pm_manage.purchase.service.dao.mapper.PurchasemstMapper;
import org.nl.wms.pm_manage.purchase.service.dto.PurchaseDto; import org.nl.wms.pm_manage.purchase.service.dto.PurchaseDto;
import org.nl.wms.pm_manage.purchase.service.vo.PurchasemstListVo; import org.nl.wms.pm_manage.purchase.service.vo.PurchasemstListVo;
import org.nl.wms.ext_manage.purchase.service.dto.EasAuditRequestDto; import org.nl.wms.ext_manage.purchase.service.dto.EasAuditRequestDto;
import org.nl.wms.pm_manage.purchase.util.ZplUtil;
import org.nl.wms.warehouse_manage.enums.IOSEnum; import org.nl.wms.warehouse_manage.enums.IOSEnum;
import org.nl.wms.warehouse_manage.stockReturn.service.IPmStockReturnService; import org.nl.wms.warehouse_manage.stockReturn.service.IPmStockReturnService;
import org.nl.wms.warehouse_manage.stockReturn.service.dao.PmStockReturn; import org.nl.wms.warehouse_manage.stockReturn.service.dao.PmStockReturn;
import org.nl.wms.warehouse_manage.stockReturn.service.enums.StockReturnStatusEnum; import org.nl.wms.warehouse_manage.stockReturn.service.enums.StockReturnStatusEnum;
import org.nl.config.PrinterProperties; import org.nl.config.PrinterProperties;
import org.nl.wms.pm_manage.purchase.util.ZplUtil;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service; import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional; import org.springframework.transaction.annotation.Transactional;

View File

@@ -1,25 +1,20 @@
package org.nl.wms.sch_manage.service.core.tasks; package org.nl.wms.sch_manage.service.core.tasks;
import cn.hutool.core.date.DateUtil; import cn.hutool.core.date.DateUtil;
import cn.hutool.core.util.ObjectUtil;
import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.JSONObject; import com.alibaba.fastjson.JSONObject;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.sun.javafx.binding.StringFormatter;
import org.apache.commons.lang3.StringUtils; import org.apache.commons.lang3.StringUtils;
import org.nl.common.exception.BadRequestException; import org.nl.common.exception.BadRequestException;
import org.nl.common.utils.CodeUtil;
import org.nl.common.utils.IdUtil; import org.nl.common.utils.IdUtil;
import org.nl.common.utils.SecurityUtils; import org.nl.common.utils.SecurityUtils;
import org.nl.config.SpringContextHolder;
import org.nl.wms.basedata_manage.service.IMdMeMaterialbaseService; import org.nl.wms.basedata_manage.service.IMdMeMaterialbaseService;
import org.nl.wms.basedata_manage.service.ISectattrService;
import org.nl.wms.basedata_manage.service.IStructattrService; import org.nl.wms.basedata_manage.service.IStructattrService;
import org.nl.wms.basedata_manage.service.dao.BsrealStorattr;
import org.nl.wms.basedata_manage.service.dao.MdMeMaterialbase; import org.nl.wms.basedata_manage.service.dao.MdMeMaterialbase;
import org.nl.wms.basedata_manage.service.dao.Sectattr;
import org.nl.wms.basedata_manage.service.dao.Structattr; import org.nl.wms.basedata_manage.service.dao.Structattr;
import org.nl.wms.basedata_manage.service.dto.StrategyStructParam; import org.nl.wms.basedata_manage.service.dto.StrategyStructParam;
import org.nl.wms.ext_manage.service.dto.StructLineOfflineDTO; import org.nl.wms.ext_manage.service.dto.StructLineOfflineDTO;
import org.nl.wms.pm_manage.purchase.ListenerHandler.PurchaseListenerParams;
import org.nl.wms.sch_manage.enums.StatusEnum; import org.nl.wms.sch_manage.enums.StatusEnum;
import org.nl.wms.sch_manage.enums.TaskStatus; import org.nl.wms.sch_manage.enums.TaskStatus;
import org.nl.wms.sch_manage.service.ISchBasePointService; import org.nl.wms.sch_manage.service.ISchBasePointService;
@@ -28,24 +23,22 @@ import org.nl.wms.sch_manage.service.core.AcsTaskDto;
import org.nl.wms.sch_manage.service.dao.SchBasePoint; import org.nl.wms.sch_manage.service.dao.SchBasePoint;
import org.nl.wms.warehouse_manage.enums.IOSEnum; import org.nl.wms.warehouse_manage.enums.IOSEnum;
import org.nl.wms.warehouse_manage.inAndOut.service.IInBillService; import org.nl.wms.warehouse_manage.inAndOut.service.IInBillService;
import org.nl.wms.warehouse_manage.inAndOut.service.dao.IOStorInvDtl; import org.nl.wms.warehouse_manage.inAndOut.service.dao.IOStorInvDis;
import org.nl.wms.warehouse_manage.inAndOut.service.dto.IOStorInvDisDto; import org.nl.wms.warehouse_manage.inAndOut.service.dao.mapper.IOStorInvDisMapper;
import org.nl.wms.warehouse_manage.inventory.IStInventoryService;
import org.nl.wms.warehouse_manage.service.IMdPbGroupplateService; import org.nl.wms.warehouse_manage.service.IMdPbGroupplateService;
import org.nl.wms.warehouse_manage.service.dao.GroupPlate; import org.nl.wms.warehouse_manage.service.dao.GroupPlate;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service; import org.springframework.stereotype.Service;
import org.springframework.util.Assert; import org.springframework.transaction.annotation.Transactional;
import javax.annotation.Resource;
import java.util.*; import java.util.*;
import static org.nl.wms.warehouse_manage.enums.IOSEnum.GROUP_PLATE_STATUS;
/** /**
* 焊接区域半成品入库 * 焊接区域半成品入库
*/ */
@Service @Service
public class StructOfflineTask extends AbstractTask { public class StructOfflineService{
@Autowired @Autowired
private IInBillService iInBillService; private IInBillService iInBillService;
@@ -59,15 +52,23 @@ public class StructOfflineTask extends AbstractTask {
private IMdMeMaterialbaseService iMdMeMaterialbaseService; private IMdMeMaterialbaseService iMdMeMaterialbaseService;
@Autowired @Autowired
private IStructattrService iStructattrService; private IStructattrService iStructattrService;
@Resource
private IOStorInvDisMapper ioStorInvDisMapper;
/** /**
* 生成生产入库任务任务完成 * 生成生产入库任务任务完成
*/ */
@Transactional
public void offline(StructLineOfflineDTO offlineDTO){ public void offline(StructLineOfflineDTO offlineDTO){
SchBasePoint schBasePoint = iSchBasePointService.selectByCode(offlineDTO.getUnloadPort()); SchBasePoint schBasePoint = iSchBasePointService.selectByCode(offlineDTO.getUnloadPort());
String storagevehicleCode = schBasePoint.getStoragevehicle_code(); if (schBasePoint == null){
throw new BadRequestException(String.format("下线失败,下料点%s信息不存在",offlineDTO.getUnloadPort()));
}
String storagevehicleCode = schBasePoint.getVehicle_code();
if (StringUtils.isEmpty(storagevehicleCode)){ if (StringUtils.isEmpty(storagevehicleCode)){
throw new BadRequestException("下线失败,下料点没有绑定托盘号"); throw new BadRequestException("下线失败,下料点没有绑定托盘号");
} }
final MdMeMaterialbase materialbase = iMdMeMaterialbaseService.getByCode(offlineDTO.getMaterialCode()); final MdMeMaterialbase materialbase = iMdMeMaterialbaseService.getByCode(offlineDTO.getMaterialCode());
if (materialbase == null){ if (materialbase == null){
throw new BadRequestException("下线失败,物料编码未同步"); throw new BadRequestException("下线失败,物料编码未同步");
@@ -80,6 +81,7 @@ public class StructOfflineTask extends AbstractTask {
plate.setCreate_time(DateUtil.now()); plate.setCreate_time(DateUtil.now());
plate.setMaterial_code(materialbase.getMaterial_code()); plate.setMaterial_code(materialbase.getMaterial_code());
plate.setQty(offlineDTO.getUnloadQty()); plate.setQty(offlineDTO.getUnloadQty());
plate.setPcsn("1");
plate.setQty_unit_id(materialbase.getQty_unit_id()); plate.setQty_unit_id(materialbase.getQty_unit_id());
plate.setQty_unit_name(materialbase.getQty_unit_id()); plate.setQty_unit_name(materialbase.getQty_unit_id());
plate.setStatus(IOSEnum.GROUP_PLATE_STATUS.code("组盘")); plate.setStatus(IOSEnum.GROUP_PLATE_STATUS.code("组盘"));
@@ -130,45 +132,18 @@ public class StructOfflineTask extends AbstractTask {
// 调用分配默认自动分配库位 // 调用分配默认自动分配库位
iInBillService.divStruct(divStructParam); iInBillService.divStruct(divStructParam);
// 下发任务 // 下发任务
// 组织 divPoint 参数 final IOStorInvDis ioStorInvDis = ioStorInvDisMapper.selectOne(new LambdaQueryWrapper<IOStorInvDis>()
.eq(IOStorInvDis::getIostorinv_id, iostorinv_id)
.select(IOStorInvDis::getIostorinvdis_id));
Map<String, Object> divPointParam = new HashMap<>(); Map<String, Object> divPointParam = new HashMap<>();
divPointParam.put("point_code", offlineDTO.getUnloadPort()); divPointParam.put("point_code", offlineDTO.getUnloadPort());
ArrayList<HashMap<String, String>> tableMater = new ArrayList<>(); ArrayList<HashMap<String, String>> tableMater = new ArrayList<>();
HashMap<String, String> materRow = new HashMap<>(); HashMap<String, String> materRow = new HashMap<>();
materRow.put("iostorinv_id", iostorinv_id); // 入库单明细ID materRow.put("iostorinv_id", iostorinv_id); // 入库单明细ID
materRow.put("iostorinvdis_id", iostorinvdis_id); // 分配明细ID如果有 materRow.put("iostorinvdis_id", ioStorInvDis.getIostorinvdis_id()); // 分配明细ID如果有
materRow.put("storagevehicle_code", storagevehicleCode); // 载具编码 materRow.put("storagevehicle_code", storagevehicleCode); // 载具编码
tableMater.add(materRow); tableMater.add(materRow);
divPointParam.put("tableMater", tableMater); divPointParam.put("tableMater", tableMater);
iInBillService.divPoint(divPointParam); iInBillService.divPoint(divPointParam);
} }
@Override
public String create(JSONObject json) {
String task_id = stInTask.create(task_form);
return null;
}
@Override
public AcsTaskDto sendAcsParam(String taskId) {
return null;
}
@Override
protected void updateStatus(String task_code, TaskStatus status) {
}
@Override
public void forceFinish(String task_code) {
}
@Override
public void cancel(String task_code) {
}
} }

View File

@@ -124,39 +124,4 @@ public class SchBasePoint implements Serializable {
private String update_time; private String update_time;
private String ios_id; private String ios_id;
@TableField(exist = false)
private List<String> can_vehicle_types;
@TableField(exist = false)
private String point_type_name;
@TableField(exist = false)
private String point_status_name;
// 组盘标识
@TableField(exist = false)
private String group_id;
@TableField(exist = false)
private String record_id;
@TableField(exist = false)
private String device_code;
@TableField(exist = false)
private String material_qty;
@TableField(exist = false)
private String material_code;
@TableField(exist = false)
private String material_name;
@TableField(exist = false)
private String material_spec;
@TableField(exist = false)
private String material_model;
@TableField(exist = false)
private String raw_material_code;
@TableField(exist = false)
private String task_warn;
@TableField(exist = false)
private String storagevehicle_code;
} }

View File

@@ -59,27 +59,6 @@ public class SchBasePointServiceImpl extends ServiceImpl<SchBasePointMapper, Sch
public IPage<SchBasePoint> queryAll(SchBasePointQuery whereJson, PageQuery page) { public IPage<SchBasePoint> queryAll(SchBasePointQuery whereJson, PageQuery page) {
IPage<SchBasePoint> pages = new Page<>(page.getPage() + 1, page.getSize()); IPage<SchBasePoint> pages = new Page<>(page.getPage() + 1, page.getSize());
pages = pointMapper.selectPageLeftJoin(pages, whereJson); pages = pointMapper.selectPageLeftJoin(pages, whereJson);
// 可以存放的载具类型
pages.getRecords().forEach(point -> {
if (ObjectUtil.isNotEmpty(point.getCan_vehicle_type())) {
point.setCan_vehicle_types(Arrays.asList(point.getCan_vehicle_type().split(",")));
}
String pointStatus = point.getPoint_status(); // 点位状态
String pointType = point.getPoint_type(); // 点位类型
SchBaseRegion regionObj = regionMapper.selectById(point.getRegion_code());
if (ObjectUtil.isNotEmpty(regionObj)) {
if (ObjectUtil.isNotEmpty(pointStatus) && ObjectUtil.isNotEmpty(regionObj.getPoint_status_explain())) {
// 设置
point.setPoint_status_name(PointUtils.getStatusOrTypeName(
regionObj.getPoint_status_explain(), pointStatus));
}
if (ObjectUtil.isNotEmpty(pointType) && ObjectUtil.isNotEmpty(regionObj.getPoint_type_explain())) {
// 设置
point.setPoint_type_name(PointUtils.getStatusOrTypeName(
regionObj.getPoint_type_explain(), pointType));
}
}
});
return pages; return pages;
} }
@@ -97,11 +76,6 @@ public class SchBasePointServiceImpl extends ServiceImpl<SchBasePointMapper, Sch
entity.setParent_point_code(entity.getPoint_code()); entity.setParent_point_code(entity.getPoint_code());
} }
if (ObjectUtil.isNotEmpty(entity.getCan_vehicle_types())) {
String can_vehicle_type = String.join(",", entity.getCan_vehicle_types());
entity.setCan_vehicle_type(can_vehicle_type);
}
String currentUserId = SecurityUtils.getCurrentUserId(); String currentUserId = SecurityUtils.getCurrentUserId();
String nickName = SecurityUtils.getCurrentNickName(); String nickName = SecurityUtils.getCurrentNickName();
String now = DateUtil.now(); String now = DateUtil.now();
@@ -131,10 +105,6 @@ public class SchBasePointServiceImpl extends ServiceImpl<SchBasePointMapper, Sch
// 获取region_name // 获取region_name
SchBaseRegion baseRegion = regionMapper.selectById(entity.getRegion_code()); SchBaseRegion baseRegion = regionMapper.selectById(entity.getRegion_code());
entity.setRegion_name(baseRegion.getRegion_name()); entity.setRegion_name(baseRegion.getRegion_name());
if (ObjectUtil.isNotEmpty(entity.getCan_vehicle_types())) {
String can_vehicle_type = String.join(",", entity.getCan_vehicle_types());
entity.setCan_vehicle_type(can_vehicle_type);
}
String pointStatus = entity.getPoint_status(); String pointStatus = entity.getPoint_status();
// 根据点位状态来判断更新内容 // 根据点位状态来判断更新内容
if (ObjectUtil.isNotEmpty(pointStatus) && pointStatus.equals(PointStatusEnum.EMPTY_POINT.getCode())) { if (ObjectUtil.isNotEmpty(pointStatus) && pointStatus.equals(PointStatusEnum.EMPTY_POINT.getCode())) {

View File

@@ -137,7 +137,6 @@ public class SchBaseTaskServiceImpl extends ServiceImpl<SchBaseTaskMapper, SchBa
JSONObject result; JSONObject result;
switch (method_name) { switch (method_name) {
case "immediateNotifyAcs": case "immediateNotifyAcs":
//
break; break;
// 强制完成 // 强制完成
case "forceFinish": case "forceFinish":
@@ -146,9 +145,6 @@ public class SchBaseTaskServiceImpl extends ServiceImpl<SchBaseTaskMapper, SchBa
case "cancel": case "cancel":
abstractTask.cancel(task_code); abstractTask.cancel(task_code);
break; break;
case "back":
abstractTask.backMes(task_code);
break;
default: default:
break; break;
} }

View File

@@ -387,7 +387,6 @@ public class InBillServiceImpl extends ServiceImpl<IOStorInvMapper, IOStorInv> i
StrategyStructParam.builder() StrategyStructParam.builder()
.ioType(StatusEnum.STRATEGY_TYPE.code("入库")) .ioType(StatusEnum.STRATEGY_TYPE.code("入库"))
.sect_code(param.getString("sect_code")) .sect_code(param.getString("sect_code"))
.stor_code(param.getString("stor_code"))
.storagevehicle_code(param.getString("storagevehicle_code")) .storagevehicle_code(param.getString("storagevehicle_code"))
.strategyMaters(maters) .strategyMaters(maters)
.build()); .build());

View File

@@ -397,7 +397,6 @@ public class OutBillServiceImpl extends ServiceImpl<IOStorInvMapper,IOStorInv> i
list.add(mater); list.add(mater);
List<StrategyStructMaterialVO> structMaterials = iStructattrService.outBoundSectDiv( List<StrategyStructMaterialVO> structMaterials = iStructattrService.outBoundSectDiv(
StrategyStructParam.builder() StrategyStructParam.builder()
.stor_code(ioStorInv.getStor_code())
.sect_code(sectCode) .sect_code(sectCode)
.strategyMaters(list) .strategyMaters(list)
.build() .build()
@@ -572,7 +571,6 @@ public class OutBillServiceImpl extends ServiceImpl<IOStorInvMapper,IOStorInv> i
//调用分配规则获取分配的库位:如果库存不足则直接报错 //调用分配规则获取分配的库位:如果库存不足则直接报错
List<StrategyStructMaterialVO> structMaterials = iStructattrService.outBoundSectDiv( List<StrategyStructMaterialVO> structMaterials = iStructattrService.outBoundSectDiv(
StrategyStructParam.builder() StrategyStructParam.builder()
.stor_code(ioStorInv.getStor_code())
.sect_code(sectCode) .sect_code(sectCode)
.inv_code(ioStorInv.getBill_code()) .inv_code(ioStorInv.getBill_code())
.strategyMaters(list) .strategyMaters(list)