fix: 1、分切下料缓存

2、内包间新增97信号直接套轴完成
     3、手持分切暂存送料到内包间
     4、手持清理分切暂存数据
This commit is contained in:
2024-06-28 09:06:08 +08:00
parent 2874439aa1
commit b0d72c6db7
20 changed files with 414 additions and 60 deletions

View File

@@ -2,6 +2,7 @@ package org.nl.common.utils;
import cn.hutool.core.date.DateUtil;
import cn.hutool.core.util.ObjectUtil;
import com.alibaba.fastjson.JSONObject;
import lombok.extern.slf4j.Slf4j;
import org.nl.b_lms.bst.ivt.cutpointivt.service.dao.BstIvtCutpointivt;
import org.nl.b_lms.bst.ivt.shafttubeivt.service.dao.BstIvtShafttubeivt;
@@ -44,6 +45,24 @@ public class TaskUtils {
source.setUpdate_time(now);
}
/**
* 根据任务维护分切点位库存
* @param taskObj 任务
* @param endPointObj 点位
* @param status 状态
*/
public static void pointMaintenanceInventory(SchBaseTask task, BstIvtCutpointivt target, String status) {
String currentUserId = SecurityUtils.getCurrentUserId();
String currentUsername = SecurityUtils.getCurrentUsername();
String now = DateUtil.now();
target.setQzz_no1(task.getVehicle_code());
target.setQzz_no2(task.getVehicle_code2());
target.setPoint_status(status);
target.setUpdate_optid(currentUserId);
target.setUpdate_optname(currentUsername);
target.setUpdate_time(now);
}
/**
* 用0123四个的二进制字符表示是下单(双)上单(双)
* @param currentUpPlan 要下来的上轴