新增配件管理、板材详情

This commit is contained in:
lym
2024-11-08 09:24:34 +08:00
parent e16583e3a8
commit 7c24a7453c
53 changed files with 2648 additions and 532 deletions
@@ -243,6 +243,7 @@ public class ErrorCodeConstants {
public static final ErrorCode PROCESS_GROUP_NAME_EXISTS = new ErrorCode(1_002_032_003, "工序名称已存在");
public static final ErrorCode PROCESS_GROUP_CUTTING_ERROR = new ErrorCode(1_002_032_004, "开料工序类型已经存在,禁止重复");
public static final ErrorCode PROCESS_GROUP_PACKING_ERROR = new ErrorCode(1_002_032_005, "打包工序类型已经存在,禁止重复");
public static final ErrorCode PROCESS_ITEM_NOT_EXISTS = new ErrorCode(1_002_032_006, "工序信息不存在");
@@ -65,9 +65,11 @@ public class ProcessGroupServiceImpl implements ProcessGroupService {
// 判断重复
int isCutting = 0;
int isPacking = 0;
if (createReqVO.getItems() != null) {
if (createReqVO.getItems() == null) {
throw exception(PROCESS_ITEM_NOT_EXISTS);
}
List<String> list = cuttingItems(createReqVO.getItems());
if (list.size() > 0) {
if (!list.isEmpty()) {
for (String item : list) {
ProcessDO process = processMapper.selectOneById(Long.valueOf(item), OrganContextHolder.getOrganId());
if (process.getType() == ProcessTypeEnum.TYPE_ONE.getStatus()){
@@ -78,7 +80,7 @@ public class ProcessGroupServiceImpl implements ProcessGroupService {
}
}
}
}
if (isCutting > 1){
throw exception(PROCESS_GROUP_CUTTING_ERROR);
}
@@ -77,6 +77,9 @@ spring:
bootstrap-servers: 127.0.0.1:9092 # 指定 Kafka Broker 地址,可以设置多个,以逗号分隔
elasticsearch:
uris: 192.168.1.205:9200
security-http-ssl-enable: false
username: elastic
password: admin.
--- #################### 定时任务相关配置 ####################
xxl: