rev:成品出库设置站点修改

This commit is contained in:
zhangzhiqiang
2023-07-27 20:35:36 +08:00
parent ed000b6f56
commit e02421418c

View File

@@ -412,27 +412,31 @@ public class StIvtIostorinvCpOutServiceImpl extends ServiceImpl<StIvtIostorinvCp
.ne(StIvtIostorinvdisCp::getWork_status, IOSEnum.WORK_STATUS.code("未生成")) .ne(StIvtIostorinvdisCp::getWork_status, IOSEnum.WORK_STATUS.code("未生成"))
, false , false
); );
SchBasePoint pointDao;
if (ObjectUtil.isNotEmpty(disIsnull)) throw new BadRequestException("此货位已生成任务!"); if (ObjectUtil.isNotEmpty(disIsnull)) {
disDao.setTask_id(disIsnull.getTask_id());
// 2.下发任务 pointDao = new SchBasePoint();
SchBasePoint pointDao = iSchBasePointService.getOne( pointDao.setPoint_id(disDao.getPoint_id());
new QueryWrapper<SchBasePoint>().lambda() pointDao.setPoint_code(disDao.getPoint_code());
.eq(SchBasePoint::getPoint_code, whereJson.getString("point_code")) pointDao.setPoint_name(disDao.getPoint_name());
); }else {
// 2.下发任务
PointEvent event = PointEvent.builder() pointDao = iSchBasePointService.getOne(
.type(AcsTaskEnum.TASK_STRUCT_CP_OUT) new QueryWrapper<SchBasePoint>().lambda()
.acs_task_type("8") .eq(SchBasePoint::getPoint_code, whereJson.getString("point_code"))
.task_group_id(IdUtil.getStringId()) );
.point_code1(disDao.getStruct_code()) PointEvent event = PointEvent.builder()
.point_code3(pointDao.getPoint_code()) .type(AcsTaskEnum.TASK_STRUCT_CP_OUT)
.vehicle_code(disDao.getStoragevehicle_code()) .acs_task_type("8")
.product_area("A1") // 暂时写死 .task_group_id(IdUtil.getStringId())
.callback((Consumer<String>) disDao::setTask_id) .point_code1(disDao.getStruct_code())
.build(); .point_code3(pointDao.getPoint_code())
BussEventMulticaster.Publish(event); .vehicle_code(disDao.getStoragevehicle_code())
.product_area("A1") // 暂时写死
.callback((Consumer<String>) disDao::setTask_id)
.build();
BussEventMulticaster.Publish(event);
}
// 3.更新分配表 // 3.更新分配表
iostorinvdisCpService.update( iostorinvdisCpService.update(
new UpdateWrapper<StIvtIostorinvdisCp>().lambda() new UpdateWrapper<StIvtIostorinvdisCp>().lambda()