feat: 完善部分分切业务
This commit is contained in:
@@ -0,0 +1,35 @@
|
||||
package org.nl.common.utils;
|
||||
|
||||
import cn.hutool.core.date.DateUtil;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.nl.b_lms.bst.ivt.cutpointivt.service.dao.BstIvtCutpointivt;
|
||||
|
||||
/**
|
||||
* @author: lyd
|
||||
* @description: 工具类
|
||||
* @Date: 2024/2/27
|
||||
*/
|
||||
@Slf4j
|
||||
public class TaskUtils {
|
||||
|
||||
/**
|
||||
* 交换点位信息
|
||||
* @param source 源点
|
||||
* @param target 目标点
|
||||
* @param status 目标状态
|
||||
*/
|
||||
public static void pointExchangeResources(BstIvtCutpointivt source, BstIvtCutpointivt target, String status) {
|
||||
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());
|
||||
source.setQzz_no1("");
|
||||
source.setQzz_no2("");
|
||||
source.setPoint_status("1");
|
||||
source.setUpdate_optid("3");
|
||||
source.setUpdate_optname("ACS");
|
||||
source.setUpdate_time(DateUtil.now());
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user