fix: 分切业务
This commit is contained in:
@@ -4,6 +4,7 @@ import cn.hutool.core.date.DateUtil;
|
||||
import cn.hutool.core.util.ObjectUtil;
|
||||
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;
|
||||
import org.nl.b_lms.pdm.bi.slittingproductionplan.service.dao.PdmBiSlittingproductionplan;
|
||||
import org.nl.b_lms.sch.task.dao.SchBaseTask;
|
||||
|
||||
@@ -22,18 +23,21 @@ public class TaskUtils {
|
||||
* @param status 目标状态
|
||||
*/
|
||||
public static void pointExchangeResources(BstIvtCutpointivt source, BstIvtCutpointivt target, String status) {
|
||||
String currentUserId = SecurityUtils.getCurrentUserId();
|
||||
String currentUsername = SecurityUtils.getCurrentUsername();
|
||||
String now = DateUtil.now();
|
||||
target.setQzz_no1(source.getQzz_no1());
|
||||
target.setQzz_no2(source.getQzz_no2());
|
||||
target.setPoint_status(status);
|
||||
target.setUpdate_optid("3");
|
||||
target.setUpdate_optname("ACS");
|
||||
target.setUpdate_time(DateUtil.now());
|
||||
target.setUpdate_optid(currentUserId);
|
||||
target.setUpdate_optname(currentUsername);
|
||||
target.setUpdate_time(now);
|
||||
source.setQzz_no1("");
|
||||
source.setQzz_no2("");
|
||||
source.setPoint_status("1");
|
||||
source.setUpdate_optid("3");
|
||||
source.setUpdate_optname("ACS");
|
||||
source.setUpdate_time(DateUtil.now());
|
||||
source.setUpdate_optid(currentUserId);
|
||||
source.setUpdate_optname(currentUsername);
|
||||
source.setUpdate_time(now);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -78,4 +82,24 @@ public class TaskUtils {
|
||||
task.setUpdate_optname(SecurityUtils.getCurrentUsername());
|
||||
task.setUpdate_time(DateUtil.now());
|
||||
}
|
||||
|
||||
/**
|
||||
* 赋值任务的修改时间、人等信息
|
||||
* @param point 任务
|
||||
*/
|
||||
public static void updateOptMessageByBCutPoint(BstIvtCutpointivt point) {
|
||||
point.setUpdate_optid(SecurityUtils.getCurrentUserId());
|
||||
point.setUpdate_optname(SecurityUtils.getCurrentUsername());
|
||||
point.setUpdate_time(DateUtil.now());
|
||||
}
|
||||
|
||||
/**
|
||||
* 赋值任务的修改时间、人等信息
|
||||
* @param point 任务
|
||||
*/
|
||||
public static void updateOptMessageByBShaftPoint(BstIvtShafttubeivt point) {
|
||||
point.setUpdate_optid(SecurityUtils.getCurrentUserId());
|
||||
point.setUpdate_optname(SecurityUtils.getCurrentUsername());
|
||||
point.setUpdate_time(DateUtil.now());
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user