mirror of
http://192.168.1.205:9980/cf_devdept2/cf_imes_server.git
synced 2026-08-12 21:02:08 +08:00
1、系统管理配置列表改为不分页,自定义板编号筛选返回最大版本号;2、系统配置服务处理器抽象修改;3、新增自定义板编号相关feign服务;
This commit is contained in:
+14
-1
@@ -2,6 +2,7 @@ package com.cf.imes.module.executor.dal.dataobject.order;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.*;
|
||||
import com.cf.imes.framework.mybatis.core.dataobject.BaseDO;
|
||||
import com.cf.imes.framework.mybatis.core.type.CompressStringTypeHandler;
|
||||
import lombok.*;
|
||||
|
||||
import java.time.LocalDateTime;
|
||||
@@ -11,7 +12,7 @@ import java.time.LocalDateTime;
|
||||
*
|
||||
* @author 晨丰科技
|
||||
*/
|
||||
@TableName("`orders`")
|
||||
@TableName(value = "`orders`", autoResultMap = true)
|
||||
@KeySequence("order_seq") // 用于 Oracle、PostgreSQL、Kingbase、DB2、H2 数据库的主键自增。如果是 MySQL 等数据库,可不写。
|
||||
@Data
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@@ -110,4 +111,16 @@ public class OrderDO extends BaseDO {
|
||||
* 是否删除
|
||||
*/
|
||||
private Boolean deleted;
|
||||
|
||||
/**
|
||||
* 自定义板编号配置id
|
||||
*/
|
||||
@TableField(value = "custom_plateno_config_id")
|
||||
private Long customPlatenoConfigId;
|
||||
|
||||
/**
|
||||
* 自定义板编号序号
|
||||
*/
|
||||
@TableField(value = "custom_plateno_seq", typeHandler = CompressStringTypeHandler.class)
|
||||
private String customPlatenoSeq;
|
||||
}
|
||||
|
||||
+14
@@ -186,4 +186,18 @@ public class PlateDO extends BaseDO {
|
||||
*/
|
||||
private Boolean deleted;
|
||||
|
||||
/**
|
||||
* 房间名
|
||||
*/
|
||||
private String roomName;
|
||||
|
||||
/**
|
||||
* 柜体名
|
||||
*/
|
||||
private String bodyName;
|
||||
|
||||
/**
|
||||
* 加工组名
|
||||
*/
|
||||
private String processGroupName;
|
||||
}
|
||||
+5
-2
@@ -2,11 +2,13 @@ package com.cf.imes.module.executor.framework.rpc.config;
|
||||
|
||||
import com.cf.imes.module.infra.api.file.FileApi;
|
||||
import com.cf.imes.module.system.api.application.ApplicationApi;
|
||||
import com.cf.imes.module.system.api.customplateno.CustomPlateNoSeqApi;
|
||||
import com.cf.imes.module.system.api.dataSource.DataSourceApi;
|
||||
import com.cf.imes.module.system.api.machine.MachineApi;
|
||||
import com.cf.imes.module.system.api.organ.OrganApi;
|
||||
import com.cf.imes.module.system.api.process.ProcessApi;
|
||||
import com.cf.imes.module.system.api.process.ProcessGroupApi;
|
||||
import com.cf.imes.module.system.api.systemconfig.SystemConfigApi;
|
||||
import com.cf.imes.module.system.api.user.AdminUserApi;
|
||||
import com.cf.imes.module.system.api.dict.DictDataApi;
|
||||
import org.springframework.cloud.openfeign.EnableFeignClients;
|
||||
@@ -16,7 +18,8 @@ import org.springframework.context.annotation.Configuration;
|
||||
* @author there
|
||||
*/
|
||||
@Configuration(proxyBeanMethods = false)
|
||||
@EnableFeignClients(clients = {AdminUserApi.class, MachineApi.class, DictDataApi.class,AdminUserApi.class,
|
||||
FileApi.class, ProcessGroupApi.class, FileApi.class, DataSourceApi.class, ApplicationApi.class, ProcessApi.class, OrganApi.class})
|
||||
@EnableFeignClients(clients = {AdminUserApi.class, MachineApi.class, DictDataApi.class, AdminUserApi.class,
|
||||
FileApi.class, ProcessGroupApi.class, FileApi.class, DataSourceApi.class, ApplicationApi.class,
|
||||
ProcessApi.class, OrganApi.class, SystemConfigApi.class, CustomPlateNoSeqApi.class})
|
||||
public class RpcConfiguration {
|
||||
}
|
||||
|
||||
+20
@@ -0,0 +1,20 @@
|
||||
package com.cf.imes.module.executor.service.customplateno;
|
||||
|
||||
import com.cf.imes.module.executor.dal.dataobject.plate.PlateDO;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 自定义板编号生成服务
|
||||
*
|
||||
* @author Gqr
|
||||
* @since 2024/11/15 10:18
|
||||
*/
|
||||
public interface CustomPlateNoGenerateService {
|
||||
/**
|
||||
* 生成自定义板编号
|
||||
*
|
||||
* @param plateDOList 板件列表
|
||||
*/
|
||||
void generateCustomPlateNo(List<PlateDO> plateDOList);
|
||||
}
|
||||
+21
@@ -0,0 +1,21 @@
|
||||
package com.cf.imes.module.executor.service.customplateno;
|
||||
|
||||
import com.cf.imes.module.executor.dal.dataobject.plate.PlateDO;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @author Gqr
|
||||
* @since 2024/11/14 11:41
|
||||
*/
|
||||
@Service
|
||||
@Slf4j
|
||||
public class CustomPlateNoGenerateServiceImpl implements CustomPlateNoGenerateService {
|
||||
|
||||
@Override
|
||||
public void generateCustomPlateNo(List<PlateDO> plateDOList) {
|
||||
// todo generateCustomPlateNo
|
||||
}
|
||||
}
|
||||
+31
@@ -0,0 +1,31 @@
|
||||
package com.cf.imes.module.executor.service.customplateno.vo;
|
||||
|
||||
import com.cf.imes.module.system.api.customplateno.dto.CustomPlateNoSeqRespDTO;
|
||||
import lombok.Data;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @author Gqr
|
||||
* @since 2024/11/15 10:40
|
||||
*/
|
||||
@Data
|
||||
public class CustomPlateNoGenerateConfigVO implements Serializable {
|
||||
private static final long serialVersionUID = -7383861104153624467L;
|
||||
|
||||
/**
|
||||
* 生产单下的之定义板编号序号内容
|
||||
*/
|
||||
private OrderCustomPlateNoSeqVO orderCustomPlateNoSeqVO;
|
||||
|
||||
/**
|
||||
* 自定义板编号规则
|
||||
*/
|
||||
private List<CustomPlateNoRuleVO> orgCustomPlateNoRuleVOList;
|
||||
|
||||
/**
|
||||
* 机构下的自定义板编号序号
|
||||
*/
|
||||
private CustomPlateNoSeqRespDTO orgCustomPlateNoSeqRespDTO;
|
||||
}
|
||||
+51
@@ -0,0 +1,51 @@
|
||||
package com.cf.imes.module.executor.service.customplateno.vo;
|
||||
|
||||
import lombok.Data;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
/**
|
||||
* 系统配置-自定义板编号setting项 vo
|
||||
*
|
||||
* @author Gqr
|
||||
* @since 2024/11/15 10:33
|
||||
*/
|
||||
@Data
|
||||
public class CustomPlateNoRuleVO implements Serializable {
|
||||
|
||||
private static final long serialVersionUID = -5691595836226548840L;
|
||||
/**
|
||||
* 规则编码
|
||||
*/
|
||||
private String ruleCode;
|
||||
|
||||
/**
|
||||
* 规则值
|
||||
*/
|
||||
private String value;
|
||||
|
||||
/**
|
||||
* 初始值
|
||||
*/
|
||||
private Integer initValue;
|
||||
|
||||
/**
|
||||
* 位数
|
||||
*/
|
||||
private Integer length;
|
||||
|
||||
/**
|
||||
* 是否左补零
|
||||
*/
|
||||
private boolean leftFillZero;
|
||||
|
||||
/**
|
||||
* 步长
|
||||
*/
|
||||
private Integer incrementStep;
|
||||
|
||||
/**
|
||||
* 复位/清零模式
|
||||
*/
|
||||
private Integer resetMode;
|
||||
}
|
||||
+103
@@ -0,0 +1,103 @@
|
||||
package com.cf.imes.module.executor.service.customplateno.vo;
|
||||
|
||||
import lombok.Data;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 生产单-自定义板编号序号(custom_plateno_seq)vo
|
||||
*
|
||||
* @author Gqr
|
||||
* @since 2024/11/15 10:41
|
||||
*/
|
||||
@Data
|
||||
public class OrderCustomPlateNoSeqVO implements Serializable {
|
||||
private static final long serialVersionUID = 5841977329049878792L;
|
||||
/**
|
||||
* 生产单下房间序号
|
||||
*/
|
||||
private int roomSeq;
|
||||
|
||||
/**
|
||||
* 生产单下柜体序号
|
||||
*/
|
||||
private int bodySeq;
|
||||
|
||||
/**
|
||||
* 生产单下加工组序号
|
||||
*/
|
||||
private int processGroupSeq;
|
||||
|
||||
/**
|
||||
* 生产单下板件序号
|
||||
*/
|
||||
private int plateNoSeq;
|
||||
|
||||
/**
|
||||
* 生产单下房间列表
|
||||
*/
|
||||
private List<Room> rooms;
|
||||
}
|
||||
|
||||
@Data
|
||||
class Room implements Serializable {
|
||||
private static final long serialVersionUID = -127388898531267048L;
|
||||
/**
|
||||
* 房间名
|
||||
*/
|
||||
private String roomNo;
|
||||
|
||||
/**
|
||||
* 房间下板件序号
|
||||
*/
|
||||
private int plateNoSeq;
|
||||
|
||||
/**
|
||||
* 房间下柜体序号
|
||||
*/
|
||||
private int bodySeq;
|
||||
|
||||
/**
|
||||
* 房间下柜体列表
|
||||
*/
|
||||
private List<Body> bodys;
|
||||
|
||||
/**
|
||||
* 房间下加工组序号
|
||||
*/
|
||||
private int processGroupSeq;
|
||||
|
||||
/**
|
||||
* 房间下加工组列表
|
||||
*/
|
||||
private List<ProcessGroup> processGroups;
|
||||
}
|
||||
|
||||
@Data
|
||||
class Body implements Serializable {
|
||||
private static final long serialVersionUID = 2686882895438975156L;
|
||||
/**
|
||||
* 柜体名
|
||||
*/
|
||||
private String bodyNo;
|
||||
|
||||
/**
|
||||
* 柜体下板件序号
|
||||
*/
|
||||
private int plateNoSeq;
|
||||
}
|
||||
|
||||
@Data
|
||||
class ProcessGroup implements Serializable {
|
||||
private static final long serialVersionUID = -6834098282222544638L;
|
||||
/**
|
||||
* 加工组名
|
||||
*/
|
||||
private String processGroupNo;
|
||||
|
||||
/**
|
||||
* 加工组下板件序号
|
||||
*/
|
||||
private int plateNoSeq;
|
||||
}
|
||||
Reference in New Issue
Block a user