fix: 任务必要实体
This commit is contained in:
@@ -53,18 +53,14 @@ public class SchBaseTask implements Serializable {
|
|||||||
/** 载具类型 */
|
/** 载具类型 */
|
||||||
private String vehicle_type;
|
private String vehicle_type;
|
||||||
|
|
||||||
|
/** 组盘id */
|
||||||
|
private String group_id;
|
||||||
|
|
||||||
/** 载具编码 */
|
/** 载具编码 */
|
||||||
private String vehicle_code;
|
private String vehicle_code;
|
||||||
/**
|
|
||||||
* 载具物料信息
|
/** 载具编码2 */
|
||||||
*/
|
private String vehicle_code2;
|
||||||
private String material_code;
|
|
||||||
/** 载具数量 */
|
|
||||||
private Integer qty;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
*/
|
|
||||||
private Integer pcsn;
|
|
||||||
|
|
||||||
/** 车号 */
|
/** 车号 */
|
||||||
private String car_no;
|
private String car_no;
|
||||||
@@ -72,6 +68,20 @@ public class SchBaseTask implements Serializable {
|
|||||||
/** 组盘物料数据 */
|
/** 组盘物料数据 */
|
||||||
private String group_data;
|
private String group_data;
|
||||||
|
|
||||||
|
/** 任务组id */
|
||||||
|
private String task_group_id;
|
||||||
|
|
||||||
|
/** 任务组序号 */
|
||||||
|
private BigDecimal task_group_seq;
|
||||||
|
|
||||||
|
/** acs链路id */
|
||||||
|
private String acs_trace_id;
|
||||||
|
|
||||||
|
/** 请求参数 */
|
||||||
|
private String request_param;
|
||||||
|
|
||||||
|
/** 反馈参数 */
|
||||||
|
private String response_param;
|
||||||
/** 备注 */
|
/** 备注 */
|
||||||
private String remark;
|
private String remark;
|
||||||
|
|
||||||
|
|||||||
@@ -37,8 +37,7 @@ import java.util.List;
|
|||||||
*/
|
*/
|
||||||
@Slf4j
|
@Slf4j
|
||||||
@Component
|
@Component
|
||||||
public abstract class
|
public abstract class AbstractTask {
|
||||||
AbstractTask {
|
|
||||||
@Autowired
|
@Autowired
|
||||||
private ISchBaseTaskService taskService;
|
private ISchBaseTaskService taskService;
|
||||||
@Autowired
|
@Autowired
|
||||||
@@ -100,6 +99,7 @@ AbstractTask {
|
|||||||
taskDto.setStart_device_code2(task.getPoint_code3());
|
taskDto.setStart_device_code2(task.getPoint_code3());
|
||||||
taskDto.setNext_device_code2(task.getPoint_code4());
|
taskDto.setNext_device_code2(task.getPoint_code4());
|
||||||
taskDto.setVehicle_code(task.getVehicle_code());
|
taskDto.setVehicle_code(task.getVehicle_code());
|
||||||
|
taskDto.setVehicle_code2(task.getVehicle_code2());
|
||||||
this.setTask(task.getConfig_code(), taskDto);
|
this.setTask(task.getConfig_code(), taskDto);
|
||||||
// 如果各类方法对返回参数有不同,可以通过调用子类实现的deliveryBeforeProcessing方法来完成赋值,也可以是统一封装到参数值中。
|
// 如果各类方法对返回参数有不同,可以通过调用子类实现的deliveryBeforeProcessing方法来完成赋值,也可以是统一封装到参数值中。
|
||||||
this.deliveryBeforeProcessing(task, taskDto);
|
this.deliveryBeforeProcessing(task, taskDto);
|
||||||
@@ -291,6 +291,7 @@ AbstractTask {
|
|||||||
AbstractTask bean = SpringContextHolder.getBean(this.getClass());
|
AbstractTask bean = SpringContextHolder.getBean(this.getClass());
|
||||||
|
|
||||||
// 2、创建申请任务
|
// 2、创建申请任务
|
||||||
|
task.setAcs_trace_id(requestNo);
|
||||||
task.setTask_id(IdUtil.getSnowflake(1, 1).nextIdStr());
|
task.setTask_id(IdUtil.getSnowflake(1, 1).nextIdStr());
|
||||||
task.setTask_code(IdUtil.getSnowflake(1, 1).nextIdStr());
|
task.setTask_code(IdUtil.getSnowflake(1, 1).nextIdStr());
|
||||||
task.setConfig_code(configCode);
|
task.setConfig_code(configCode);
|
||||||
@@ -298,6 +299,7 @@ AbstractTask {
|
|||||||
task.setVehicle_type(vehicleType);
|
task.setVehicle_type(vehicleType);
|
||||||
task.setTask_status(TaskStatus.APPLY.getCode());
|
task.setTask_status(TaskStatus.APPLY.getCode());
|
||||||
// 将所有参数存到表中,后续需要可以提取
|
// 将所有参数存到表中,后续需要可以提取
|
||||||
|
task.setRequest_param(JSONObject.toJSONString(param));
|
||||||
TaskUtils.setCreateByAcsOrPda(task, param);
|
TaskUtils.setCreateByAcsOrPda(task, param);
|
||||||
|
|
||||||
// 3、判断是否直接找点下发
|
// 3、判断是否直接找点下发
|
||||||
|
|||||||
Reference in New Issue
Block a user