fix: 修复测试手持过程中存在的问题
This commit is contained in:
@@ -9,10 +9,13 @@ public enum RegionEnum {
|
||||
|
||||
STAMPING_AND_BLANKING("Amada 80T冲床(手动加工)","111-06"),
|
||||
TRUBEND_SHELVES_3_1_1("TruBend 7036货架03-01-01","111-07"),
|
||||
TRUBEND_5170("TruBend 5170(手动加工)","111-08"),
|
||||
TruBend_cell_7000("折弯","111-09"),
|
||||
LAG_ROBOT_BEANDING_CELL("手动加工","111-10"),
|
||||
ZDFJ("分拣工序","111-08"),
|
||||
DDLK("堆叠笼框工序","111-20"),
|
||||
NBJG("内部加工区","111-10"),
|
||||
WXJG("外协加工区","111-12"),
|
||||
NBJG("内部加工区","NBJGZCQ"),
|
||||
WXJG("外协加工区","WXJGZCQ"),
|
||||
ZDZWQ("自动折弯区","ZDZWQ"),
|
||||
;
|
||||
private final String region_name;
|
||||
|
||||
@@ -14,6 +14,7 @@ import io.swagger.annotations.Api;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.nl.common.base.TableDataInfo;
|
||||
import org.nl.common.enums.VehicleTypeEnum;
|
||||
import org.nl.common.enums.region.RegionEnum;
|
||||
import org.nl.common.exception.BadRequestException;
|
||||
import org.nl.common.logging.annotation.Log;
|
||||
import org.nl.config.MapOf;
|
||||
@@ -53,7 +54,6 @@ public class FabController {
|
||||
private WmsToConnectorService wmsToConnectorService;
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* 设备工序列表
|
||||
*
|
||||
@@ -204,52 +204,59 @@ public class FabController {
|
||||
@Log("工序下料")
|
||||
@PostMapping("/sendMater")
|
||||
public ResponseEntity<TableDataInfo> sendMater(@RequestBody SendMaterVo materInfo) {
|
||||
if (StrUtil.isNotEmpty(materInfo.getRegion_code())) {
|
||||
/*if (StrUtil.isNotEmpty(materInfo.getRegion_code())) {
|
||||
JSONObject toJSON = (JSONObject) JSON.toJSON(materInfo);
|
||||
fabService.createAgvTask(toJSON, "smt");
|
||||
return new ResponseEntity(TableDataInfo.build(), HttpStatus.OK);
|
||||
} else {
|
||||
JSONObject toJSON = (JSONObject) JSON.toJSON(materInfo);
|
||||
//TODO:待确定
|
||||
List<SendVehicleVo> mater = materInfo.getMater();
|
||||
if (CollUtil.isEmpty(mater)) throw new BadRequestException("物料信息为空,请确认!");
|
||||
JSONObject json = new JSONObject();
|
||||
JSONArray jsonArray = new JSONArray();
|
||||
HashMap<String, Object> map = new HashMap<>();
|
||||
mater.stream().forEach(material -> {
|
||||
map.put("order_code", material.getOrder_code());
|
||||
map.put("qty", material.getMaterial_qty());
|
||||
jsonArray.add(map);
|
||||
});
|
||||
SchBasePoint schBasePoint = iSchBasePointService.selectByPointCode(materInfo.getDevice_code());
|
||||
json.put("vehicle_code", schBasePoint.getVehicle_code());
|
||||
json.put("region_code", schBasePoint.getRegion_code());
|
||||
json.put("materials", jsonArray);
|
||||
JSONObject jsonObject = wmsToConnectorService.applyRegionAndDueDate(json);
|
||||
if (ObjectUtil.isNotEmpty(jsonObject) && jsonObject.getInteger("status") == 200) {
|
||||
JSONArray data = jsonObject.getJSONArray("data");
|
||||
data.stream().forEach(material -> {
|
||||
JSONObject jsonObject1 = JSONObject.parseObject(StrUtil.toString(material));
|
||||
mater.stream().forEach(material1 -> {
|
||||
if (material1.getOrder_code().equals(jsonObject1.getString("order_code"))) {
|
||||
material1.setDue_date(jsonObject1.getString("due_date"));
|
||||
material1.setRegion_code(jsonObject1.getString("next_region_code"));
|
||||
}
|
||||
});
|
||||
} else {*/
|
||||
JSONObject toJSON = (JSONObject) JSON.toJSON(materInfo);
|
||||
//TODO:待确定
|
||||
List<SendVehicleVo> mater = materInfo.getMater();
|
||||
if (CollUtil.isEmpty(mater)) throw new BadRequestException("物料信息为空,请确认!");
|
||||
JSONObject json = new JSONObject();
|
||||
JSONArray jsonArray = new JSONArray();
|
||||
HashMap<String, Object> map = new HashMap<>();
|
||||
mater.stream().forEach(material -> {
|
||||
map.put("order_code", material.getOrder_code());
|
||||
map.put("qty", material.getMaterial_qty());
|
||||
jsonArray.add(map);
|
||||
});
|
||||
SchBasePoint schBasePoint = iSchBasePointService.selectByPointCode(materInfo.getDevice_code());
|
||||
json.put("vehicle_code", schBasePoint.getVehicle_code());
|
||||
json.put("region_code", schBasePoint.getRegion_code());
|
||||
json.put("materials", jsonArray);
|
||||
JSONObject jsonObject = wmsToConnectorService.applyRegionAndDueDate(json);
|
||||
if (ObjectUtil.isNotEmpty(jsonObject) && jsonObject.getInteger("status") == 200) {
|
||||
JSONArray data = jsonObject.getJSONArray("data");
|
||||
data.stream().forEach(material -> {
|
||||
JSONObject jsonObject1 = JSONObject.parseObject(StrUtil.toString(material));
|
||||
mater.stream().forEach(material1 -> {
|
||||
if (material1.getOrder_code().equals(jsonObject1.getString("order_code"))) {
|
||||
material1.setDue_date(jsonObject1.getString("due_date"));
|
||||
material1.setRegion_code(jsonObject1.getString("next_region_code"));
|
||||
}
|
||||
});
|
||||
} else if (ObjectUtil.isNotEmpty(jsonObject) && jsonObject.getInteger("status") == 400) {
|
||||
throw new BadRequestException(jsonObject.getString("msg"));
|
||||
}
|
||||
List<String> materiales = new ArrayList<>();
|
||||
mater.stream().forEach(material -> {
|
||||
materiales.add(JSONObject.toJSONString(material));
|
||||
});
|
||||
toJSON.put("material_info", materiales);
|
||||
toJSON.put("vehicle_code", schBasePoint.getVehicle_code());
|
||||
toJSON.put("region_code", StrUtil.isNotEmpty(mater.get(0).getRegion_code()) ? mater.get(0).getRegion_code() : schBasePoint.getRegion_code());
|
||||
fabService.createAgvTask(toJSON, "smt");
|
||||
return new ResponseEntity(TableDataInfo.build(), HttpStatus.OK);
|
||||
} else if (ObjectUtil.isNotEmpty(jsonObject) && jsonObject.getInteger("status") == 400) {
|
||||
throw new BadRequestException(jsonObject.getString("msg"));
|
||||
}
|
||||
List<String> materiales = new ArrayList<>();
|
||||
mater.stream().forEach(material -> {
|
||||
materiales.add(JSONObject.toJSONString(material));
|
||||
});
|
||||
toJSON.put("material_info", materiales);
|
||||
toJSON.put("vehicle_code", schBasePoint.getVehicle_code());
|
||||
if ("1".equals(materInfo.getPoint_code())) {
|
||||
toJSON.put("region_code", StrUtil.isNotEmpty(mater.get(0).getRegion_code()) ? mater.get(0).getRegion_code() : schBasePoint.getRegion_code());
|
||||
} else if ("2".equals(materInfo.getPoint_code())) {
|
||||
toJSON.put("region_code", RegionEnum.NBJG.getRegion_code());
|
||||
} else if ("3".equals(materInfo.getPoint_code())) {
|
||||
toJSON.put("region_code", RegionEnum.WXJG.getRegion_code());
|
||||
}
|
||||
|
||||
fabService.createAgvTask(toJSON, "smt");
|
||||
return new ResponseEntity(TableDataInfo.build(), HttpStatus.OK);
|
||||
/* }*/
|
||||
}
|
||||
|
||||
//TODO: 根据物料查主盘信息; 当前工序查所有物料 ->
|
||||
@@ -283,7 +290,7 @@ public class FabController {
|
||||
keys.add(item);
|
||||
});
|
||||
List<JSONObject> jsonObjectList = new ArrayList<>();
|
||||
list.stream().forEach(item -> {
|
||||
keys.stream().forEach(item -> {
|
||||
JSONObject jsonObject = new JSONObject();
|
||||
jsonObject.put("order_code", item);
|
||||
jsonObjectList.add(jsonObject);
|
||||
|
||||
@@ -14,17 +14,17 @@ import java.util.Map;
|
||||
public interface FabRequestMapper {
|
||||
|
||||
|
||||
@DS("sqlserver")
|
||||
List<Map> sqlServerConnectionDemo();
|
||||
/*@DS("sqlserver")
|
||||
List<Map> sqlServerConnectionDemo();*/
|
||||
|
||||
/**
|
||||
* 根据工序查看FAb的订单列表
|
||||
* @param regionCode
|
||||
* @return
|
||||
*/
|
||||
@DS("sqlserver")
|
||||
/*@DS("sqlserver")
|
||||
List<FabConsumptionDo> getMWorkOrderInfos(@Param("regionCode") String regionCode);
|
||||
|
||||
@DS("sqlserver")
|
||||
List<OrderMater> selectCraftByOrderCode(List<String> orders);
|
||||
List<OrderMater> selectCraftByOrderCode(List<String> orders);*/
|
||||
}
|
||||
|
||||
@@ -51,4 +51,6 @@ public class SendMaterVo {
|
||||
|
||||
List<SendVehicleVo> mater;
|
||||
|
||||
public String point_code;
|
||||
|
||||
}
|
||||
|
||||
@@ -74,7 +74,7 @@ public class FabServiceImpl {
|
||||
// for (SchBaseVehiclematerialgroup schBaseVehiclematerialgroup : list) {
|
||||
//
|
||||
// }
|
||||
List<OrderMater> orderMaters = fabRequestMapper.selectCraftByOrderCode(orders);
|
||||
// List<OrderMater> orderMaters = fabRequestMapper.selectCraftByOrderCode(orders);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -124,14 +124,14 @@ public class HandheldServiceImpl implements HandheldService {
|
||||
if (vehicle.contains(",")) {
|
||||
vehicle_list = vehicle.split(",");
|
||||
}
|
||||
if(CollUtil.isEmpty(Arrays.asList(vehicle_list))){
|
||||
if (CollUtil.isEmpty(Arrays.asList(vehicle_list))) {
|
||||
MdBaseVehicle mdBaseVehicle = iMdBaseVehicleService.selectByVehicleCode(vehicle);
|
||||
if (ObjectUtil.isEmpty(mdBaseVehicle)) throw new BadRequestException("载具不存在!");
|
||||
if (!mdBaseVehicle.getVehicle_type().equals(VehicleTypeEnum.RACKS_S04.getVehicleCode())
|
||||
&& !mdBaseVehicle.getVehicle_type().equals(VehicleTypeEnum.RACKS_S06.getVehicleCode())){
|
||||
&& !mdBaseVehicle.getVehicle_type().equals(VehicleTypeEnum.RACKS_S06.getVehicleCode())) {
|
||||
throw new BadRequestException("托盘类型不匹配,,生成搬运任务失败!");
|
||||
}
|
||||
}else {
|
||||
} else {
|
||||
String[] finalVehicle_list = vehicle_list;
|
||||
MdBaseVehicle mdBaseVehicle = iMdBaseVehicleService.selectByVehicleCode(vehicle_list[0]);
|
||||
if (ObjectUtil.isEmpty(mdBaseVehicle)) throw new BadRequestException("载具不存在!");
|
||||
@@ -231,7 +231,7 @@ public class HandheldServiceImpl implements HandheldService {
|
||||
jsonArray.add(map);
|
||||
});
|
||||
json.put("vehicle_code", vehicle_code);
|
||||
json.put("region_code", region_code);
|
||||
json.put("region_code", schBasePoint.getRegion_code());
|
||||
json.put("materials", jsonArray);
|
||||
JSONObject json1 = wmsToConnectorService.applyRegionAndDueDate(json);
|
||||
if (ObjectUtil.isNotEmpty(json1) && json1.getInteger("status") == 200) {
|
||||
@@ -248,10 +248,10 @@ public class HandheldServiceImpl implements HandheldService {
|
||||
});
|
||||
});
|
||||
region_code = JSONObject.parseObject(StrUtil.toString(date.get(0))).getString("region_code");
|
||||
jo.put("region_code", region_code);
|
||||
} else if (ObjectUtil.isNotEmpty(json1)) {
|
||||
throw new BadRequestException(json1.getString("msg"));
|
||||
}
|
||||
jo.put("region_code", region_code);
|
||||
} else {
|
||||
jo.put("region_code", region_code);
|
||||
}
|
||||
@@ -259,7 +259,6 @@ public class HandheldServiceImpl implements HandheldService {
|
||||
jo.put("config_code", "BLANKINGTask");
|
||||
jo.put("create_mode", GeneralDefinition.AUTO_CREATION);
|
||||
jo.put("vehicle_code", vehicle_code);
|
||||
jo.put("region_code", region_code);
|
||||
jo.put("ext_data", param);
|
||||
iSchBasePointService.update(Wrappers.lambdaUpdate(SchBasePoint.class)
|
||||
.eq(SchBasePoint::getPoint_code, device_code)
|
||||
|
||||
@@ -390,6 +390,7 @@ public class SchBasePointServiceImpl extends ServiceImpl<SchBasePointMapper, Sch
|
||||
.eq(SchBasePoint::getIs_lock, false)
|
||||
.eq(SchBasePoint::getIs_used, true)
|
||||
.eq(SchBasePoint::getPoint_status, pointStatus)
|
||||
.eq(SchBasePoint::getPoint_type, "1")
|
||||
.eq(StrUtil.isNotBlank(vehicle_type),SchBasePoint::getCan_vehicle_type, vehicle_type)
|
||||
.isNull(seq == 2, SchBasePoint::getVehicles)
|
||||
.isNull(seq == 1, SchBasePoint::getVehicle_code)
|
||||
@@ -421,10 +422,18 @@ public class SchBasePointServiceImpl extends ServiceImpl<SchBasePointMapper, Sch
|
||||
.orderByDesc(SchBasePoint::getIn_order_seq));
|
||||
if (CollUtil.isNotEmpty(schBasePoints) && schBasePoints.size() > 0) {
|
||||
SchBasePoint schBasePoint = schBasePoints.get(0);
|
||||
Gson gson = new Gson();
|
||||
/*Gson gson = new Gson();
|
||||
Type setType = new TypeToken<List<String>>() {
|
||||
}.getType();
|
||||
List<String> msg = gson.fromJson(schBasePoint.getVehicles(), setType);
|
||||
}.getType();*/
|
||||
List<String> msg = new ArrayList<>();
|
||||
String vehicles = schBasePoint.getVehicles();
|
||||
boolean contains = vehicles.contains(",");
|
||||
if(contains){
|
||||
String[] split = vehicles.split(",");
|
||||
msg = Arrays.asList(split);
|
||||
}else{
|
||||
msg.add(vehicles);
|
||||
}
|
||||
Integer vehicle_qty = schBasePoint.getVehicle_qty();
|
||||
if (vehicle_qty != msg.size()) throw new BadRequestException("载具数量与载具编码数量不一致!");
|
||||
String s = msg.get(msg.size() - 1);
|
||||
@@ -438,7 +447,13 @@ public class SchBasePointServiceImpl extends ServiceImpl<SchBasePointMapper, Sch
|
||||
.set(SchBasePoint::getPoint_status, GoodsEnum.OUT_OF_STOCK.getValue())
|
||||
.set(SchBasePoint::getVehicles, null));
|
||||
}
|
||||
SchBasePoint schBasePoint1 = selectByPointCode(schBasePoint.getPoint_code() + "_" + (vehicle_qty - 1));
|
||||
SchBasePoint schBasePoint1 = null;
|
||||
if(vehicle_qty == 1){
|
||||
schBasePoint1 = selectByPointCode(schBasePoint.getPoint_code());
|
||||
}else{
|
||||
schBasePoint1 = selectByPointCode(schBasePoint.getPoint_code() + "_" + (vehicle_qty - 1));
|
||||
}
|
||||
if(ObjectUtil.isEmpty(schBasePoint1)) throw new BadRequestException("该货位不存在!");
|
||||
schBasePoint1.setVehicle_code(s);
|
||||
return schBasePoint1;
|
||||
}
|
||||
@@ -508,7 +523,7 @@ public class SchBasePointServiceImpl extends ServiceImpl<SchBasePointMapper, Sch
|
||||
//查询满足条件的站点
|
||||
List<SchBasePoint> schBasePoints = pointMapper.selectList(Wrappers.lambdaQuery(SchBasePoint.class).eq(SchBasePoint::getIs_lock, false).
|
||||
isNotNull(SchBasePoint::getVehicle_code)
|
||||
.eq(SchBasePoint::getRegion_code, region_code)
|
||||
.eq(StrUtil.isNotEmpty(region_code),SchBasePoint::getRegion_code, region_code)
|
||||
.eq(SchBasePoint::getPoint_status, GoodsEnum.EMPTY_PALLETS.getValue())
|
||||
.in(SchBasePoint::getCan_vehicle_type, vehicleType)
|
||||
.eq(SchBasePoint::getIs_used, true));
|
||||
|
||||
@@ -90,7 +90,7 @@ public class ConnectorUtil {
|
||||
return AcsResponse.requestRefuse("未连接Connector!");
|
||||
}
|
||||
String url = connectorUrl + api;
|
||||
log.info("向connector申请物料下道工序和交期时间:{},接口路径:{}", JSON.toJSONString(object),url);
|
||||
log.info("反馈connector到达取货点的请求参数参数为:{},url:{}", JSON.toJSONString(object),url);
|
||||
AcsResponse resultForAcs;
|
||||
try {
|
||||
String resultMsg = HttpRequest.post(url)
|
||||
@@ -182,7 +182,7 @@ public class ConnectorUtil {
|
||||
.body(JSON.toJSONString(object))
|
||||
.execute().body();
|
||||
result = JSONObject.parseObject(resultMsg);
|
||||
log.info("反馈connector到达取货点的响应参数为:{}", result);
|
||||
log.info("向connector申请物料下道工序和交期时间的响应参数:{}", result);
|
||||
} catch (Exception e) {
|
||||
String msg = e.getMessage();
|
||||
//网络不通
|
||||
|
||||
@@ -60,16 +60,16 @@ public class CNTTask extends AbstractTask {
|
||||
Integer suffix2 = getNumericSuffix(s2.getPoint_code1());
|
||||
return suffix1.compareTo(suffix2);
|
||||
};
|
||||
tasks.stream().sorted(numericSuffixComparator).collect(Collectors.toList());
|
||||
for (SchBaseTask task : tasks) {
|
||||
List<SchBaseTask> collect = tasks.stream().sorted(numericSuffixComparator).collect(Collectors.toList());
|
||||
for (SchBaseTask task : collect) {
|
||||
TaskUtils.setUpdateByAcs(task);
|
||||
// 找起点
|
||||
SchBasePoint schBasePoint = null;
|
||||
if (TaskType.CARRY_TASK.getValue().equals(task.getTask_type())) {
|
||||
schBasePoint = schBasePointService.selectByRegionCode(RegionEnum.TRUBEND_SHELVES_3_1_1.getRegion_code(), task.getVehicle_code(),"1");
|
||||
} else if (TaskType.REASSIGN_TASK.getValue().equals(task.getTask_type())) {
|
||||
schBasePoint = schBasePointService.selectByReassign(RegionEnum.TRUBEND_SHELVES_3_1_1.getRegion_code(), task.getVehicle_code());
|
||||
}
|
||||
schBasePoint = schBasePointService.selectByRegionCode(RegionEnum.LAG_ROBOT_BEANDING_CELL.getRegion_code(), task.getVehicle_code(),"1");
|
||||
}/* else if (TaskType.REASSIGN_TASK.getValue().equals(task.getTask_type())) {
|
||||
schBasePoint = schBasePointService.selectByReassign(RegionEnum.LAG_ROBOT_BEANDING_CELL.getRegion_code(), task.getVehicle_code());
|
||||
}*/
|
||||
if (ObjectUtil.isEmpty(schBasePoint)) {
|
||||
task.setRemark("未找到所需点位!");
|
||||
taskService.updateById(task);
|
||||
|
||||
@@ -58,7 +58,7 @@ public class FTGTask extends AbstractTask {
|
||||
String requestParam = task.getRequest_param();
|
||||
JSONObject jsonObject = JSONObject.parseObject(requestParam);
|
||||
// 查找空载具点位
|
||||
SchBasePoint schBasePoint = schBasePointService.selectEmpVehicleByRegionCode(RegionEnum.TRUBEND_SHELVES_3_1_1.getRegion_code(),task.getVehicle_type());
|
||||
SchBasePoint schBasePoint = schBasePointService.selectEmpVehicleByRegionCode(null,task.getVehicle_type());
|
||||
if (ObjectUtil.isEmpty(schBasePoint)) {
|
||||
task.setRemark("未找到所需点位!");
|
||||
taskService.updateById(task);
|
||||
|
||||
@@ -2,6 +2,7 @@ package org.nl.wms.sch.task_manage.task.tasks.sorting;
|
||||
|
||||
import cn.hutool.core.date.DateUtil;
|
||||
import cn.hutool.core.util.ObjectUtil;
|
||||
import cn.hutool.core.util.StrUtil;
|
||||
import com.alibaba.fastjson.JSONArray;
|
||||
import com.alibaba.fastjson.JSONObject;
|
||||
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
||||
@@ -68,8 +69,12 @@ public class SortingSMTTask extends AbstractTask {
|
||||
// 找起点
|
||||
String requestParam = task.getRequest_param();
|
||||
JSONObject jsonObject = JSONObject.parseObject(requestParam);
|
||||
JSONArray pallet_detail = jsonObject.getJSONArray("pallet_detail");
|
||||
JSONObject jsonObject1 = JSONObject.parseObject(StrUtil.toString(pallet_detail.get(0)));
|
||||
String regionCode = StrUtil.isEmpty(jsonObject1.getString("NextOperation")) ?
|
||||
RegionEnum.LAG_ROBOT_BEANDING_CELL.getRegion_code() : jsonObject1.getString("NextOperation");
|
||||
// 根据对接位查找对应的载具类型
|
||||
SchBasePoint schBasePoint = schBasePointService.selectByRegionCode(RegionEnum.ZDFJ.getRegion_code(),task.getVehicle_code(),"1");
|
||||
SchBasePoint schBasePoint = schBasePointService.selectByRegionCode(regionCode, task.getVehicle_code(), "1");
|
||||
if (ObjectUtil.isEmpty(schBasePoint)) {
|
||||
task.setRemark("未找到所需点位!");
|
||||
taskService.updateById(task);
|
||||
@@ -81,9 +86,8 @@ public class SortingSMTTask extends AbstractTask {
|
||||
jsonObject.put("vehicle_type", schBasePoint.getCan_vehicle_type());
|
||||
schBaseVehiclematerialgroupService.remove(Wrappers.lambdaQuery(SchBaseVehiclematerialgroup.class)
|
||||
.eq(SchBaseVehiclematerialgroup::getVehicle_code, task.getVehicle_code()));
|
||||
JSONArray pallet_detail = jsonObject.getJSONArray("pallet_detail");
|
||||
for (Object o : pallet_detail) {
|
||||
JSONObject jO = (JSONObject)JSONObject.toJSON(o);
|
||||
JSONObject jO = (JSONObject) JSONObject.toJSON(o);
|
||||
String workorder = jO.getString("ProductionOrder");
|
||||
String ProductID = jO.getString("ProductID");
|
||||
Integer qty = jO.getInteger("Currentqty");
|
||||
@@ -114,7 +118,7 @@ public class SortingSMTTask extends AbstractTask {
|
||||
}
|
||||
}
|
||||
|
||||
private Long getTime(String dateString){
|
||||
private Long getTime(String dateString) {
|
||||
String pattern = "yyyy-MM-dd HH:mm:ss";
|
||||
java.util.Date date = DateUtil.parse(dateString, pattern);
|
||||
long timestamp = date.getTime();
|
||||
|
||||
@@ -69,7 +69,7 @@ public class SortingSNTTask extends AbstractTask {
|
||||
String requestParam = task.getRequest_param();
|
||||
JSONObject jsonObject = JSONObject.parseObject(requestParam);
|
||||
// 根据对接位查找对应的载具类型
|
||||
SchBasePoint schBasePoint = schBasePointService.selectByRegionCode(RegionEnum.ZDFJ.getRegion_code(),task.getVehicle_code(),"0");
|
||||
SchBasePoint schBasePoint = schBasePointService.selectByRegionCode(RegionEnum.LAG_ROBOT_BEANDING_CELL.getRegion_code(),task.getVehicle_code(),"0");
|
||||
if(ObjectUtil.isEmpty(schBasePoint)) continue;
|
||||
jsonObject.put("vehicle_type", schBasePoint.getCan_vehicle_type());
|
||||
if (ObjectUtil.isEmpty(schBasePoint)) {
|
||||
|
||||
@@ -73,6 +73,7 @@ public class SortingTwoCNTTask extends AbstractTask {
|
||||
task.setTask_status(TaskStatus.CREATED.getCode());
|
||||
task.setPoint_code1(basePoint.getPoint_code());
|
||||
task.setVehicle_code(basePoint.getVehicle_code());
|
||||
task.setRemark(" ");
|
||||
taskService.update(task);
|
||||
schBasePointService.update(Wrappers.lambdaUpdate(SchBasePoint.class)
|
||||
.eq(SchBasePoint::getPoint_code,basePoint.getPoint_code())
|
||||
|
||||
Reference in New Issue
Block a user