mirror of
http://192.168.1.205:9980/cf_devdept2/cf_imes_server.git
synced 2026-08-12 21:02:08 +08:00
全局替换:生产单 -> 订单
This commit is contained in:
+2
-2
@@ -31,12 +31,12 @@ public class CustomPlateNoSeqDTO implements Serializable {
|
||||
private Long configId;
|
||||
|
||||
/**
|
||||
* 上次生产单号
|
||||
* 上次订单号
|
||||
*/
|
||||
private Long lastOrderNo;
|
||||
|
||||
/**
|
||||
* 生产单序号前值
|
||||
* 订单序号前值
|
||||
*/
|
||||
private Integer orderNoSeq;
|
||||
|
||||
|
||||
+1
-1
@@ -11,7 +11,7 @@ import java.time.LocalDate;
|
||||
/**
|
||||
* 统计集合 --- 组织统计
|
||||
*/
|
||||
@Schema(description = "管理后台 - 生产单统计 Request VO")
|
||||
@Schema(description = "管理后台 - 订单统计 Request VO")
|
||||
@Data
|
||||
public class OrgStatisticsReqDTO {
|
||||
@Schema(description = "组织id")
|
||||
|
||||
+1
-1
@@ -17,7 +17,7 @@ public class ProcessRespDTO {
|
||||
@Schema(description = "计件工资", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
private Double pieceRate;
|
||||
|
||||
@Schema(description = "计件类型:1 数量 2 长度 3 平方 4 宽 5 高 6 体积 7 生产单金额百分比", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
|
||||
@Schema(description = "计件类型:1 数量 2 长度 3 平方 4 宽 5 高 6 体积 7 订单金额百分比", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
|
||||
private Integer pieceType;
|
||||
|
||||
@Schema(description = "工序类型:0 全部加工 1 开料 2 部件加工 3 异形封边 4 分堆 5 打包 6 出库 7 组件加工 8 板材", requiredMode = Schema.RequiredMode.REQUIRED, example = "2")
|
||||
|
||||
+1
-1
@@ -22,7 +22,7 @@ public enum CustomPlateNoRuleCodeEnum {
|
||||
DATE("date"),
|
||||
|
||||
/**
|
||||
* 生产单序号
|
||||
* 订单序号
|
||||
*/
|
||||
ORDERNO("orderNo"),
|
||||
|
||||
|
||||
+1
-1
@@ -36,7 +36,7 @@ public enum ResetModeEnum {
|
||||
DAY(4),
|
||||
|
||||
/**
|
||||
* 按生产单
|
||||
* 按订单
|
||||
*/
|
||||
ORDER(5),
|
||||
|
||||
|
||||
+1
-1
@@ -16,7 +16,7 @@ import java.util.List;
|
||||
@Schema(description = "管理后台 - 装配设置 - 导入部件 Request VO")
|
||||
@Data
|
||||
public class AssemblyConfigImportReqVO {
|
||||
@Schema(description = "生产单号列表", requiredMode = Schema.RequiredMode.REQUIRED, example = "[1,2,3,4]")
|
||||
@Schema(description = "订单号列表", requiredMode = Schema.RequiredMode.REQUIRED, example = "[1,2,3,4]")
|
||||
@NotEmpty(message = "{assembly.config.import.orderIds.notEmpty}")
|
||||
@Size(max = 100, message = "{assembly.config.import.orderIds.size}")
|
||||
private List<Long> orderIds;
|
||||
|
||||
+1
-1
@@ -17,7 +17,7 @@ public class CustomPlateNoRuleResetModeReqVO {
|
||||
@NotNull(message = "系统配置编号不能为空")
|
||||
private Long id;
|
||||
|
||||
@Schema(description = "规则编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "生产单流水号")
|
||||
@Schema(description = "规则编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "订单流水号")
|
||||
@NotEmpty(message = "规则编号不能为空")
|
||||
private String ruleCode;
|
||||
}
|
||||
|
||||
+1
-1
@@ -20,7 +20,7 @@ public class ProcessPageReqVO extends PageParam {
|
||||
@Schema(description = "计件工资")
|
||||
private Double pieceRate;
|
||||
|
||||
@Schema(description = "计件类型:1 数量 2 长度 3 平方 4 宽 5 高 6 体积 7 生产单金额百分比", example = "1")
|
||||
@Schema(description = "计件类型:1 数量 2 长度 3 平方 4 宽 5 高 6 体积 7 订单金额百分比", example = "1")
|
||||
private Integer pieceType;
|
||||
|
||||
@Schema(description = "工序类型:0 全部加工 1 开料 2 部件加工 3 异形封边 4 分堆 5 打包 6 出库 7 组件加工 8 板材", example = "2")
|
||||
|
||||
+2
-2
@@ -23,8 +23,8 @@ public class ProcessRespVO {
|
||||
@ExcelProperty("计件工资")
|
||||
private Double pieceRate;
|
||||
|
||||
@Schema(description = "计件类型:1 数量 2 长度 3 平方 4 宽 5 高 6 体积 7 生产单金额百分比", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
|
||||
@ExcelProperty("计件类型:1 数量 2 长度 3 平方 4 宽 5 高 6 体积 7 生产单金额百分比")
|
||||
@Schema(description = "计件类型:1 数量 2 长度 3 平方 4 宽 5 高 6 体积 7 订单金额百分比", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
|
||||
@ExcelProperty("计件类型:1 数量 2 长度 3 平方 4 宽 5 高 6 体积 7 订单金额百分比")
|
||||
private Integer pieceType;
|
||||
|
||||
@Schema(description = "工序类型:0 全部加工 1 开料 2 部件加工 3 异形封边 4 分堆 5 打包 6 出库 7 组件加工 8 板材", requiredMode = Schema.RequiredMode.REQUIRED, example = "2")
|
||||
|
||||
+2
-2
@@ -24,8 +24,8 @@ public class ProcessSaveReqVO {
|
||||
@NotNull(message = "计件工资不能为空")
|
||||
private Double pieceRate;
|
||||
|
||||
@Schema(description = "计件类型:1 数量 2 长度 3 平方 4 宽 5 高 6 体积 7 生产单金额百分比", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
|
||||
@NotNull(message = "计件类型:1 数量 2 长度 3 平方 4 宽 5 高 6 体积 7 生产单金额百分比不能为空")
|
||||
@Schema(description = "计件类型:1 数量 2 长度 3 平方 4 宽 5 高 6 体积 7 订单金额百分比", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
|
||||
@NotNull(message = "计件类型:1 数量 2 长度 3 平方 4 宽 5 高 6 体积 7 订单金额百分比不能为空")
|
||||
private Integer pieceType;
|
||||
|
||||
@Schema(description = "工序类型:0 全部加工 1 开料 2 部件加工 3 异形封边 4 分堆 5 打包 6 出库 7 组件加工 8 板材", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
|
||||
|
||||
+2
-2
@@ -29,8 +29,8 @@ public class ProcessUserRespVO {
|
||||
@ExcelProperty("计件工资")
|
||||
private Double pieceRate;
|
||||
|
||||
@Schema(description = "计件类型:1 数量 2 长度 3 平方 4 宽 5 高 6 体积 7 生产单金额百分比", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
|
||||
@ExcelProperty("计件类型:1 数量 2 长度 3 平方 4 宽 5 高 6 体积 7 生产单金额百分比")
|
||||
@Schema(description = "计件类型:1 数量 2 长度 3 平方 4 宽 5 高 6 体积 7 订单金额百分比", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
|
||||
@ExcelProperty("计件类型:1 数量 2 长度 3 平方 4 宽 5 高 6 体积 7 订单金额百分比")
|
||||
private Integer pieceType;
|
||||
|
||||
@Schema(description = "工序类型:0 全部加工 1 开料 2 部件加工 3 异形封边 4 分堆 5 打包 6 出库 7 组件加工 8 板材", requiredMode = Schema.RequiredMode.REQUIRED, example = "2")
|
||||
|
||||
+2
-2
@@ -22,8 +22,8 @@ public class ProcessUserSaveReqVO {
|
||||
@NotNull(message = "计件工资不能为空")
|
||||
private Double pieceRate;
|
||||
|
||||
@Schema(description = "计件类型:1 数量 2 长度 3 平方 4 宽 5 高 6 体积 7 生产单金额百分比", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
|
||||
@NotNull(message = "计件类型:1 数量 2 长度 3 平方 4 宽 5 高 6 体积 7 生产单金额百分比不能为空")
|
||||
@Schema(description = "计件类型:1 数量 2 长度 3 平方 4 宽 5 高 6 体积 7 订单金额百分比", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
|
||||
@NotNull(message = "计件类型:1 数量 2 长度 3 平方 4 宽 5 高 6 体积 7 订单金额百分比不能为空")
|
||||
private Integer pieceType;
|
||||
|
||||
@Schema(description = "工序类型:0 全部加工 1 开料 2 部件加工 3 异形封边 4 分堆 5 打包 6 出库 7 组件加工 8 板材", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
|
||||
|
||||
+2
-2
@@ -43,13 +43,13 @@ public class CustomPlateNoSeqDO implements Serializable {
|
||||
private Long organId;
|
||||
|
||||
/**
|
||||
* 上次生产单号
|
||||
* 上次订单号
|
||||
*/
|
||||
@TableField(value = "last_orderNo")
|
||||
private Long lastOrderNo;
|
||||
|
||||
/**
|
||||
* 生产单序号前值
|
||||
* 订单序号前值
|
||||
*/
|
||||
@TableField(value = "orderNo_seq")
|
||||
private Integer orderNoSeq;
|
||||
|
||||
+1
-1
@@ -38,7 +38,7 @@ public class ProcessDO extends BaseDO {
|
||||
*/
|
||||
private BigDecimal pieceRate;
|
||||
/**
|
||||
* 计件类型:1 数量 2 长度 3 平方 4 宽 5 高 6 体积 7 生产单金额百分比
|
||||
* 计件类型:1 数量 2 长度 3 平方 4 宽 5 高 6 体积 7 订单金额百分比
|
||||
*/
|
||||
private Integer pieceType;
|
||||
/**
|
||||
|
||||
+1
-1
@@ -27,7 +27,7 @@ public class BodyNoRuleResetServiceHandler extends AbstractCustomPlateNoResetSer
|
||||
|
||||
@Override
|
||||
public void reset(CustomPlateNoRuleDTO ruleDTO) {
|
||||
// 更新使用该配置的生产单中的orderNoSeq
|
||||
// 更新使用该配置的订单中的orderNoSeq
|
||||
CommonResult<Boolean> orderResetResult = orderCustomPlateNoApi.resetOrderSeq(ruleDTO);
|
||||
if(orderResetResult.isError()) {
|
||||
ServiceException serviceException = new ServiceException(SYSTEM_CONFIG_CUSTOM_PLATE_NO_ORDER_RESET_UPDATE_ERROR);
|
||||
|
||||
+3
-3
@@ -17,7 +17,7 @@ import jakarta.annotation.Resource;
|
||||
import static com.cf.imes.module.system.enums.ErrorCodeConstants.SYSTEM_CONFIG_CUSTOM_PLATE_NO_ORDER_RESET_UPDATE_ERROR;
|
||||
|
||||
/**
|
||||
* 自定义板编号生产单序号规则复位处理器
|
||||
* 自定义板编号订单序号规则复位处理器
|
||||
*
|
||||
* @author Gqr
|
||||
* @since 2024/11/28 16:45
|
||||
@@ -34,13 +34,13 @@ public class OrderNoRuleResetServiceHandler extends AbstractCustomPlateNoResetSe
|
||||
|
||||
@Override
|
||||
public void reset(CustomPlateNoRuleDTO ruleDTO) {
|
||||
// 更新机构下全局序号中的生产单前序值
|
||||
// 更新机构下全局序号中的订单前序值
|
||||
LambdaUpdateWrapper<CustomPlateNoSeqDO> seqLambdaUpdateWrapper = new LambdaUpdateWrapper<CustomPlateNoSeqDO>()
|
||||
.eq(CustomPlateNoSeqDO::getOrganId, OrganContextHolder.getOrganId())
|
||||
.set(CustomPlateNoSeqDO::getOrderNoSeq, null);
|
||||
customPlateNoSeqMapper.update(seqLambdaUpdateWrapper);
|
||||
|
||||
// 更新使用该配置的生产单中的orderNoSeq
|
||||
// 更新使用该配置的订单中的orderNoSeq
|
||||
CommonResult<Boolean> orderResetResult = orderCustomPlateNoApi.resetOrderSeq(ruleDTO);
|
||||
if(orderResetResult.isError()) {
|
||||
ServiceException serviceException = new ServiceException(SYSTEM_CONFIG_CUSTOM_PLATE_NO_ORDER_RESET_UPDATE_ERROR);
|
||||
|
||||
+1
-1
@@ -46,7 +46,7 @@ public class PlateNoRuleResetServiceHandler extends AbstractCustomPlateNoResetSe
|
||||
customPlateNoSeqMapper.update(seqLambdaUpdateWrapper);
|
||||
}
|
||||
|
||||
// 更新使用该配置的生产单中的orderNoSeq
|
||||
// 更新使用该配置的订单中的orderNoSeq
|
||||
CommonResult<Boolean> orderResetResult = orderCustomPlateNoApi.resetOrderSeq(ruleDTO);
|
||||
if(orderResetResult.isError()) {
|
||||
ServiceException serviceException = new ServiceException(SYSTEM_CONFIG_CUSTOM_PLATE_NO_ORDER_RESET_UPDATE_ERROR);
|
||||
|
||||
+1
-1
@@ -27,7 +27,7 @@ public class RoomNoRuleResetServiceHandler extends AbstractCustomPlateNoResetSer
|
||||
|
||||
@Override
|
||||
public void reset(CustomPlateNoRuleDTO ruleDTO) {
|
||||
// 更新使用该配置的生产单中的orderNoSeq
|
||||
// 更新使用该配置的订单中的orderNoSeq
|
||||
CommonResult<Boolean> orderResetResult = orderCustomPlateNoApi.resetOrderSeq(ruleDTO);
|
||||
if(orderResetResult.isError()) {
|
||||
ServiceException serviceException = new ServiceException(SYSTEM_CONFIG_CUSTOM_PLATE_NO_ORDER_RESET_UPDATE_ERROR);
|
||||
|
||||
+8
-8
@@ -504,24 +504,24 @@ public class DataSourceServiceImpl implements DataSourceService {
|
||||
|
||||
switch (aLong) {
|
||||
|
||||
// 生产单基础信息
|
||||
// 生产单经销商信息
|
||||
// 生产单终端客户信息
|
||||
// 订单基础信息
|
||||
// 订单经销商信息
|
||||
// 订单终端客户信息
|
||||
case 1543, 68, 80 -> {
|
||||
String machineDataSourceKeyName = getMachineDataSourceKeyName(machineId, aLong);
|
||||
data.append(orderPlanApi.apiDataGetPlan(planId, machineDataSourceKeyName));
|
||||
}
|
||||
|
||||
|
||||
// 生产单组织信息
|
||||
// 订单组织信息
|
||||
case 61 -> {
|
||||
String machineDataSourceKeyName1 = getMachineDataSourceKeyName(machineId, aLong);
|
||||
data.append(dataQuery.dataGetOrgan(machineDataSourceKeyName1));
|
||||
}
|
||||
|
||||
|
||||
// 生产单业务员信息
|
||||
// 生产单拆单员信息
|
||||
// 订单业务员信息
|
||||
// 订单拆单员信息
|
||||
case 74, 92 -> {
|
||||
String machineDataSourceKeyName2 = getMachineDataSourceKeyName(machineId, aLong);
|
||||
List<String> nameList = orderPlanApi.apiGetOrders(planId, aLong == 74);
|
||||
@@ -581,8 +581,8 @@ public class DataSourceServiceImpl implements DataSourceService {
|
||||
}
|
||||
|
||||
|
||||
// 生产单中的房间信息
|
||||
// 生产单中的柜体信息
|
||||
// 订单中的房间信息
|
||||
// 订单中的柜体信息
|
||||
// 板件中的基础信息的房间信息
|
||||
// 板件中的基础信息的柜体信息
|
||||
case 1544,1545, 881, 889 -> {
|
||||
|
||||
@@ -101,7 +101,7 @@ aj.captcha.6202=接口验证失败数过多,请稍后再试。
|
||||
aj.captcha.6204=check接口请求次数超限,请稍后再试!
|
||||
aj.captcha.6205=verify请求次数超限。
|
||||
|
||||
assembly.config.import.orderIds.notEmpty=生产单号列表不能为空
|
||||
assembly.config.import.orderIds.size=生产单号列表长度不能超过100
|
||||
assembly.config.import.orderIds.notEmpty=订单号列表不能为空
|
||||
assembly.config.import.orderIds.size=订单号列表长度不能超过100
|
||||
assembly.config.save.id.notNull=装备设置编号不能为空
|
||||
assembly.config.save.structure.config.notNull=装备设置结构配置不能为空
|
||||
@@ -102,7 +102,7 @@ aj.captcha.6202=接口驗證失敗次數過多,請稍後再試。
|
||||
aj.captcha.6204=check 接口請求次數超限,請稍後再試!
|
||||
aj.captcha.6205=verify 請求次數超限。
|
||||
|
||||
assembly.config.import.orderIds.notEmpty=生產單號清單不能為空
|
||||
assembly.config.import.orderIds.size=生產單號清單長度不能超過100
|
||||
assembly.config.import.orderIds.notEmpty=訂單號清單不能為空
|
||||
assembly.config.import.orderIds.size=訂單號清單長度不能超過100
|
||||
assembly.config.save.id.notNull=裝備設定編號不能為空
|
||||
assembly.config.save.structure.config.notNull=裝備設定結構配寘不能為空
|
||||
+1
-1
File diff suppressed because one or more lines are too long
+1
-1
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user