parent
1cfa50b78d
commit
c1c4900d9e
101 changed files with 1094 additions and 448 deletions
@ -1,182 +0,0 @@ |
|||||||
package org.springblade.common.constant; |
|
||||||
|
|
||||||
/** |
|
||||||
* 生产计划相关常量 |
|
||||||
* |
|
||||||
* @author lqk |
|
||||||
* @date 2025-11-27 10:40 |
|
||||||
*/ |
|
||||||
public interface YieldOrderConst { |
|
||||||
//region 生产订单状态相关常量
|
|
||||||
/** |
|
||||||
* 已同步,刚同步订单的默认状态 |
|
||||||
*/ |
|
||||||
Integer STATUS_NORMAL = 0; |
|
||||||
/** |
|
||||||
* 订单异常 |
|
||||||
*/ |
|
||||||
Integer STATUS_EXCEPTION = 1; |
|
||||||
/** |
|
||||||
* 未下达,订单数据验证通过,等待确认后排产 |
|
||||||
* 特殊零件,需要手动确认后,再进行排产 |
|
||||||
*/ |
|
||||||
Integer STATUS_NO_ISSUED = 2; |
|
||||||
/** |
|
||||||
* 待排产,订单数据验证通过,等待排产 |
|
||||||
* 非特殊零件,订单数据验证通过后,默认为本状态 |
|
||||||
*/ |
|
||||||
Integer STATUS_APS = 3; |
|
||||||
/** |
|
||||||
* 待生产,排产完成,等待生产 |
|
||||||
*/ |
|
||||||
Integer STATUS_PROCESS_WAITING = 4; |
|
||||||
/** |
|
||||||
* 加工中 |
|
||||||
*/ |
|
||||||
Integer STATUS_PROCESSING = 5; |
|
||||||
|
|
||||||
/** |
|
||||||
* 排产异常 |
|
||||||
*/ |
|
||||||
Integer STATUS_PROCESS_ERROR = 6; |
|
||||||
/** |
|
||||||
* 已完工 |
|
||||||
*/ |
|
||||||
Integer STATUS_COMPLETED = 15; |
|
||||||
/** |
|
||||||
* 已关闭 |
|
||||||
*/ |
|
||||||
Integer STATUS_CLOSED = 21; |
|
||||||
//endregion
|
|
||||||
|
|
||||||
//region 生产订单接收状态
|
|
||||||
/** |
|
||||||
* 未接收 |
|
||||||
*/ |
|
||||||
Integer RECEIVE_STATUS_NO = 0; |
|
||||||
/** |
|
||||||
* 已接收,订单接收后才可进行排产,对接物流系统后,可废弃该状态 |
|
||||||
*/ |
|
||||||
Integer RECEIVE_STATUS_YES = 1; |
|
||||||
//endregion
|
|
||||||
|
|
||||||
//region 生产订单订单类型
|
|
||||||
/** |
|
||||||
* 热表订单 |
|
||||||
*/ |
|
||||||
Integer YIELD_TYPE_1 = 1; |
|
||||||
/** |
|
||||||
* 烧结订单 |
|
||||||
*/ |
|
||||||
Integer YIELD_TYPE_2 = 2; |
|
||||||
/** |
|
||||||
* 玻璃饼 |
|
||||||
*/ |
|
||||||
Integer YIELD_TYPE_3 = 3; |
|
||||||
/** |
|
||||||
* 壳体 |
|
||||||
*/ |
|
||||||
Integer YIELD_TYPE_4 = 4; |
|
||||||
/** |
|
||||||
* 插针 |
|
||||||
*/ |
|
||||||
Integer YIELD_TYPE_5 = 5; |
|
||||||
/** |
|
||||||
* 石墨模 |
|
||||||
*/ |
|
||||||
Integer YIELD_TYPE_6 = 6; |
|
||||||
//endregion
|
|
||||||
|
|
||||||
//region 生产订单业务类型
|
|
||||||
/** |
|
||||||
* 热表 |
|
||||||
*/ |
|
||||||
Integer BUSINESS_TYPE_RB = 1; |
|
||||||
/** |
|
||||||
* 外协 |
|
||||||
*/ |
|
||||||
Integer BUSINESS_TYPE_WX = 2; |
|
||||||
/** |
|
||||||
* 烧结 |
|
||||||
*/ |
|
||||||
Integer BUSINESS_TYPE_SJ = 3; |
|
||||||
//endregion
|
|
||||||
|
|
||||||
//region 生产订单 ERP优先级
|
|
||||||
/** |
|
||||||
* 正常 |
|
||||||
*/ |
|
||||||
Integer PRIORITY_ERP_NORMAL = 1; |
|
||||||
/** |
|
||||||
* 项目要求日期急件 |
|
||||||
*/ |
|
||||||
Integer PRIORITY_ERP_PRO_IMP = 2; |
|
||||||
/** |
|
||||||
* 合同急件 |
|
||||||
*/ |
|
||||||
Integer PRIORITY_ERP_PACT_IMP = 3; |
|
||||||
/** |
|
||||||
* 会议绩效急件 |
|
||||||
*/ |
|
||||||
Integer PRIORITY_ERP_PERF_IMP = 4; |
|
||||||
/** |
|
||||||
* 调度标注急件 |
|
||||||
*/ |
|
||||||
Integer PRIORITY_ERP_SCH_IMP = 5; |
|
||||||
//endregion
|
|
||||||
|
|
||||||
//region 生产订单 排产优先级
|
|
||||||
/** |
|
||||||
* 1 级(极高紧急度 / 灾难性故障) |
|
||||||
*/ |
|
||||||
Integer PRIORITY_APS_CRITICAL = 1; |
|
||||||
/** |
|
||||||
* 2 级(高紧急度 / 严重故障) |
|
||||||
*/ |
|
||||||
Integer PRIORITY_APS_HIGH = 2; |
|
||||||
/** |
|
||||||
* 3 级(中紧急度) |
|
||||||
*/ |
|
||||||
Integer PRIORITY_APS_MEDIUM = 3; |
|
||||||
/** |
|
||||||
* 4 级(低紧急度) |
|
||||||
*/ |
|
||||||
Integer PRIORITY_APS_LOW = 4; |
|
||||||
/** |
|
||||||
* 5 级(正常) |
|
||||||
*/ |
|
||||||
Integer PRIORITY_APS_NORMAL = 5; |
|
||||||
//endregion
|
|
||||||
|
|
||||||
//region 生产订单 校验结果,0:未验证,1:数据缺失,2:工艺缺失,3:资源缺失,4:交期冲突, 5:验证完成
|
|
||||||
/** |
|
||||||
* 未验证 |
|
||||||
*/ |
|
||||||
Integer VALIDATION_NO = 0; |
|
||||||
|
|
||||||
/** |
|
||||||
* 数据缺失 |
|
||||||
*/ |
|
||||||
Integer VALIDATION_RESULT_LESS_DATA = 1; |
|
||||||
/** |
|
||||||
* 工艺缺失 |
|
||||||
*/ |
|
||||||
Integer VALIDATION_RESULT_LESS_CRAFT = 2; |
|
||||||
/** |
|
||||||
* 资源缺失 |
|
||||||
*/ |
|
||||||
Integer VALIDATION_RESULT_LESS_RESOURCE = 3; |
|
||||||
/** |
|
||||||
* 交期冲突 |
|
||||||
*/ |
|
||||||
Integer VALIDATION_RESULT_DELIVERY = 4; |
|
||||||
|
|
||||||
/** |
|
||||||
* 验证完成 |
|
||||||
*/ |
|
||||||
Integer VALIDATION_RESULT_PASS = 5; |
|
||||||
//endregion
|
|
||||||
|
|
||||||
String PRIMARY_CRAFT_WG = "外购"; |
|
||||||
String ROAMNO_TEXT_FJ = "封接"; |
|
||||||
} |
|
||||||
@ -1,40 +0,0 @@ |
|||||||
package org.springblade.common.constant; |
|
||||||
|
|
||||||
/** |
|
||||||
* 生产订单相关常量 |
|
||||||
* |
|
||||||
* @author lqk |
|
||||||
* @date 2025-11-27 10:40 |
|
||||||
*/ |
|
||||||
public interface YieldPlanConst { |
|
||||||
//region 生产计划状态相关常量
|
|
||||||
/** |
|
||||||
* 正常 |
|
||||||
*/ |
|
||||||
Integer STATUS_NORMAL = 1; |
|
||||||
/** |
|
||||||
* 已退回 |
|
||||||
*/ |
|
||||||
Integer STATUS_RETURNED = 2; |
|
||||||
/** |
|
||||||
* 无工艺 |
|
||||||
*/ |
|
||||||
Integer STATUS_NO_CRAFT = 3; |
|
||||||
/** |
|
||||||
* 已派工 |
|
||||||
*/ |
|
||||||
Integer STATUS_DISPATCHED = 4; |
|
||||||
/** |
|
||||||
* 加工中 |
|
||||||
*/ |
|
||||||
Integer STATUS_PROCESSING = 5; |
|
||||||
/** |
|
||||||
* 已完工 |
|
||||||
*/ |
|
||||||
Integer STATUS_COMPLETED = 15; |
|
||||||
/** |
|
||||||
* 已关闭 |
|
||||||
*/ |
|
||||||
Integer STATUS_CLOSED = 21; |
|
||||||
//endregion
|
|
||||||
} |
|
||||||
@ -0,0 +1,12 @@ |
|||||||
|
package org.springblade.desk.order.constant; |
||||||
|
|
||||||
|
/** |
||||||
|
* 生产计划相关常量 |
||||||
|
* |
||||||
|
* @author lqk |
||||||
|
* @date 2025-11-27 10:40 |
||||||
|
*/ |
||||||
|
public interface YieldOrderConst { |
||||||
|
String PRIMARY_CRAFT_WG = "外购"; |
||||||
|
String ROAMNO_TEXT_FJ = "封接"; |
||||||
|
} |
||||||
@ -1,4 +1,4 @@ |
|||||||
package org.springblade.desk.order.entity; |
package org.springblade.desk.order.pojo.entity; |
||||||
|
|
||||||
import com.baomidou.mybatisplus.annotation.TableField; |
import com.baomidou.mybatisplus.annotation.TableField; |
||||||
import com.baomidou.mybatisplus.annotation.TableName; |
import com.baomidou.mybatisplus.annotation.TableName; |
||||||
@ -1,4 +1,4 @@ |
|||||||
package org.springblade.desk.order.entity; |
package org.springblade.desk.order.pojo.entity; |
||||||
|
|
||||||
import com.baomidou.mybatisplus.annotation.TableField; |
import com.baomidou.mybatisplus.annotation.TableField; |
||||||
import com.baomidou.mybatisplus.annotation.TableName; |
import com.baomidou.mybatisplus.annotation.TableName; |
||||||
@ -1,4 +1,4 @@ |
|||||||
package org.springblade.desk.order.entity; |
package org.springblade.desk.order.pojo.entity; |
||||||
|
|
||||||
import com.baomidou.mybatisplus.annotation.TableField; |
import com.baomidou.mybatisplus.annotation.TableField; |
||||||
import com.baomidou.mybatisplus.annotation.TableName; |
import com.baomidou.mybatisplus.annotation.TableName; |
||||||
@ -1,4 +1,4 @@ |
|||||||
package org.springblade.desk.order.entity; |
package org.springblade.desk.order.pojo.entity; |
||||||
|
|
||||||
import com.baomidou.mybatisplus.annotation.TableField; |
import com.baomidou.mybatisplus.annotation.TableField; |
||||||
import com.baomidou.mybatisplus.annotation.TableName; |
import com.baomidou.mybatisplus.annotation.TableName; |
||||||
@ -1,4 +1,4 @@ |
|||||||
package org.springblade.desk.order.entity; |
package org.springblade.desk.order.pojo.entity; |
||||||
|
|
||||||
import com.baomidou.mybatisplus.annotation.TableField; |
import com.baomidou.mybatisplus.annotation.TableField; |
||||||
import com.baomidou.mybatisplus.annotation.TableName; |
import com.baomidou.mybatisplus.annotation.TableName; |
||||||
@ -1,4 +1,4 @@ |
|||||||
package org.springblade.desk.order.entity; |
package org.springblade.desk.order.pojo.entity; |
||||||
|
|
||||||
import com.baomidou.mybatisplus.annotation.TableField; |
import com.baomidou.mybatisplus.annotation.TableField; |
||||||
import com.baomidou.mybatisplus.annotation.TableName; |
import com.baomidou.mybatisplus.annotation.TableName; |
||||||
@ -1,4 +1,4 @@ |
|||||||
package org.springblade.desk.order.entity; |
package org.springblade.desk.order.pojo.entity; |
||||||
|
|
||||||
import com.baomidou.mybatisplus.annotation.TableField; |
import com.baomidou.mybatisplus.annotation.TableField; |
||||||
import com.baomidou.mybatisplus.annotation.TableName; |
import com.baomidou.mybatisplus.annotation.TableName; |
||||||
@ -1,4 +1,4 @@ |
|||||||
package org.springblade.desk.order.entity; |
package org.springblade.desk.order.pojo.entity; |
||||||
|
|
||||||
import com.baomidou.mybatisplus.annotation.TableField; |
import com.baomidou.mybatisplus.annotation.TableField; |
||||||
import com.baomidou.mybatisplus.annotation.TableName; |
import com.baomidou.mybatisplus.annotation.TableName; |
||||||
@ -1,4 +1,4 @@ |
|||||||
package org.springblade.desk.order.entity; |
package org.springblade.desk.order.pojo.entity; |
||||||
|
|
||||||
import com.baomidou.mybatisplus.annotation.TableField; |
import com.baomidou.mybatisplus.annotation.TableField; |
||||||
import com.baomidou.mybatisplus.annotation.TableName; |
import com.baomidou.mybatisplus.annotation.TableName; |
||||||
@ -1,4 +1,4 @@ |
|||||||
package org.springblade.desk.order.entity; |
package org.springblade.desk.order.pojo.entity; |
||||||
|
|
||||||
import com.baomidou.mybatisplus.annotation.TableField; |
import com.baomidou.mybatisplus.annotation.TableField; |
||||||
import com.baomidou.mybatisplus.annotation.TableName; |
import com.baomidou.mybatisplus.annotation.TableName; |
||||||
@ -1,4 +1,4 @@ |
|||||||
package org.springblade.desk.order.entity; |
package org.springblade.desk.order.pojo.entity; |
||||||
|
|
||||||
import com.baomidou.mybatisplus.annotation.TableField; |
import com.baomidou.mybatisplus.annotation.TableField; |
||||||
import com.baomidou.mybatisplus.annotation.TableName; |
import com.baomidou.mybatisplus.annotation.TableName; |
||||||
@ -1,4 +1,4 @@ |
|||||||
package org.springblade.desk.order.entity; |
package org.springblade.desk.order.pojo.entity; |
||||||
|
|
||||||
import com.baomidou.mybatisplus.annotation.TableField; |
import com.baomidou.mybatisplus.annotation.TableField; |
||||||
import com.baomidou.mybatisplus.annotation.TableName; |
import com.baomidou.mybatisplus.annotation.TableName; |
||||||
@ -0,0 +1,59 @@ |
|||||||
|
package org.springblade.desk.order.pojo.enums; |
||||||
|
|
||||||
|
import lombok.AllArgsConstructor; |
||||||
|
import lombok.Getter; |
||||||
|
import org.springblade.core.tool.utils.ObjectUtil; |
||||||
|
import org.springblade.core.tool.utils.StringPool; |
||||||
|
|
||||||
|
import java.util.Arrays; |
||||||
|
|
||||||
|
/** |
||||||
|
* 烧结模具计划枚举 |
||||||
|
* |
||||||
|
* @author lqk |
||||||
|
* @date 2025-12-19 9:25 |
||||||
|
*/ |
||||||
|
@Getter |
||||||
|
@AllArgsConstructor |
||||||
|
public enum MoldPlanEnum { |
||||||
|
EMPTY(StringPool.EMPTY, -1), |
||||||
|
|
||||||
|
/** |
||||||
|
* 状态枚举 |
||||||
|
*/ |
||||||
|
STATUS_WAITING("待出库", 10000), |
||||||
|
STATUS_OUT_STORE("已出库", 10001), |
||||||
|
STATUS_DONE("完成", 10002), |
||||||
|
STATUS_CLOSE("关闭", 10003), |
||||||
|
; |
||||||
|
final String name; |
||||||
|
final int category; |
||||||
|
|
||||||
|
/** |
||||||
|
* 匹配枚举值 |
||||||
|
* |
||||||
|
* @param name 名称 |
||||||
|
* @return BladeUserEnum |
||||||
|
*/ |
||||||
|
public static MoldPlanEnum of(String name) { |
||||||
|
return Arrays.stream(MoldPlanEnum.values()) |
||||||
|
.filter(userEnum -> userEnum.getName().equalsIgnoreCase(name != null ? name : "web")) |
||||||
|
.findFirst() |
||||||
|
// 在没有找到匹配项时返回默认值
|
||||||
|
.orElse(MoldPlanEnum.EMPTY); |
||||||
|
} |
||||||
|
|
||||||
|
/** |
||||||
|
* 根据值获取名称 |
||||||
|
* |
||||||
|
* @param category |
||||||
|
* @return |
||||||
|
*/ |
||||||
|
public static String getName(int category) { |
||||||
|
MoldPlanEnum item = Arrays.stream(MoldPlanEnum.values()) |
||||||
|
.filter(enumItem -> enumItem.getCategory() == category) |
||||||
|
.findFirst() |
||||||
|
.orElse(null); |
||||||
|
return ObjectUtil.isEmpty(item) ? StringPool.EMPTY : item.getName(); |
||||||
|
} |
||||||
|
} |
||||||
@ -0,0 +1,62 @@ |
|||||||
|
package org.springblade.desk.order.pojo.enums; |
||||||
|
|
||||||
|
import lombok.AllArgsConstructor; |
||||||
|
import lombok.Getter; |
||||||
|
import org.springblade.core.tool.utils.ObjectUtil; |
||||||
|
import org.springblade.core.tool.utils.StringPool; |
||||||
|
|
||||||
|
import java.util.Arrays; |
||||||
|
|
||||||
|
/** |
||||||
|
* 镀层物料需求枚举 |
||||||
|
* |
||||||
|
* @author lqk |
||||||
|
* @date 2025-12-19 9:25 |
||||||
|
*/ |
||||||
|
@Getter |
||||||
|
@AllArgsConstructor |
||||||
|
public enum PlateGoodsEnum { |
||||||
|
EMPTY(StringPool.EMPTY, -1), |
||||||
|
|
||||||
|
/** |
||||||
|
* 状态枚举 |
||||||
|
*/ |
||||||
|
STATUS_WAITING("待审核", 10000), |
||||||
|
STATUS_PASS("审核通过", 10001), |
||||||
|
STATUS_USING("使用中", 10002), |
||||||
|
STATUS_OUT_DATE("已超期", 10003), |
||||||
|
STATUS_DONE("已完成", 10004), |
||||||
|
STATUS_NOT_PASS("审核未通过", 10005), |
||||||
|
STATUS_CLOSE("已关闭", 10006), |
||||||
|
; |
||||||
|
final String name; |
||||||
|
final int category; |
||||||
|
|
||||||
|
/** |
||||||
|
* 匹配枚举值 |
||||||
|
* |
||||||
|
* @param name 名称 |
||||||
|
* @return BladeUserEnum |
||||||
|
*/ |
||||||
|
public static PlateGoodsEnum of(String name) { |
||||||
|
return Arrays.stream(PlateGoodsEnum.values()) |
||||||
|
.filter(userEnum -> userEnum.getName().equalsIgnoreCase(name != null ? name : "web")) |
||||||
|
.findFirst() |
||||||
|
// 在没有找到匹配项时返回默认值
|
||||||
|
.orElse(PlateGoodsEnum.EMPTY); |
||||||
|
} |
||||||
|
|
||||||
|
/** |
||||||
|
* 根据值获取名称 |
||||||
|
* |
||||||
|
* @param category |
||||||
|
* @return |
||||||
|
*/ |
||||||
|
public static String getName(int category) { |
||||||
|
PlateGoodsEnum item = Arrays.stream(PlateGoodsEnum.values()) |
||||||
|
.filter(enumItem -> enumItem.getCategory() == category) |
||||||
|
.findFirst() |
||||||
|
.orElse(null); |
||||||
|
return ObjectUtil.isEmpty(item) ? StringPool.EMPTY : item.getName(); |
||||||
|
} |
||||||
|
} |
||||||
@ -0,0 +1,115 @@ |
|||||||
|
package org.springblade.desk.order.pojo.enums; |
||||||
|
|
||||||
|
import lombok.AllArgsConstructor; |
||||||
|
import lombok.Getter; |
||||||
|
import org.springblade.core.tool.utils.ObjectUtil; |
||||||
|
import org.springblade.core.tool.utils.StringPool; |
||||||
|
|
||||||
|
import java.util.Arrays; |
||||||
|
|
||||||
|
/** |
||||||
|
* 生产订单枚举 |
||||||
|
* |
||||||
|
* @author lqk |
||||||
|
* @date 2025-12-19 9:25 |
||||||
|
*/ |
||||||
|
@Getter |
||||||
|
@AllArgsConstructor |
||||||
|
public enum YieldOrderEnum { |
||||||
|
EMPTY(StringPool.EMPTY, -1), |
||||||
|
|
||||||
|
/** |
||||||
|
* 状态枚举 |
||||||
|
*/ |
||||||
|
STATUS_NORMAL("已同步", 10000), |
||||||
|
STATUS_EXCEPTION("订单异常", 10001), |
||||||
|
STATUS_NO_ISSUED("未下达", 10002), |
||||||
|
STATUS_APS("待排产", 10003), |
||||||
|
STATUS_PROCESS_WAITING("待生产", 10004), |
||||||
|
STATUS_PROCESSING("加工中", 10005), |
||||||
|
STATUS_PROCESS_ERROR("排产异常", 10006), |
||||||
|
STATUS_COMPLETED("已完工", 100015), |
||||||
|
STATUS_CLOSED("已关闭", 100021), |
||||||
|
|
||||||
|
/** |
||||||
|
* 生产订单接收状态 |
||||||
|
*/ |
||||||
|
RECEIVE_STATUS_NO("未接收", 11000), |
||||||
|
RECEIVE_STATUS_YES("已接收", 11001), |
||||||
|
|
||||||
|
/** |
||||||
|
* 生产订单订单类型 |
||||||
|
*/ |
||||||
|
YIELD_TYPE_1("热表订单", 12001), |
||||||
|
YIELD_TYPE_2("烧结订单", 12002), |
||||||
|
YIELD_TYPE_3("玻璃饼", 12003), |
||||||
|
YIELD_TYPE_4("壳体", 12004), |
||||||
|
YIELD_TYPE_5("插针", 12005), |
||||||
|
YIELD_TYPE_6("石墨模", 12006), |
||||||
|
|
||||||
|
/** |
||||||
|
* 生产订单业务类型 |
||||||
|
*/ |
||||||
|
BUSINESS_TYPE_RB("热表", 13001), |
||||||
|
BUSINESS_TYPE_WX("外协", 13002), |
||||||
|
BUSINESS_TYPE_SJ("烧结", 13003), |
||||||
|
|
||||||
|
/** |
||||||
|
* 生产订单 ERP优先级 |
||||||
|
*/ |
||||||
|
PRIORITY_ERP_NORMAL("正常", 14001), |
||||||
|
PRIORITY_ERP_PRO_IMP("项目要求日期急件", 14002), |
||||||
|
PRIORITY_ERP_PACT_IMP("合同急件", 14003), |
||||||
|
PRIORITY_ERP_PERF_IMP("会议绩效急件", 14004), |
||||||
|
PRIORITY_ERP_SCH_IMP("调度标注急件", 14005), |
||||||
|
|
||||||
|
/** |
||||||
|
* 生产订单 排产优先级 |
||||||
|
*/ |
||||||
|
PRIORITY_APS_CRITICAL("1级-极高紧急度", 15001), |
||||||
|
PRIORITY_APS_HIGH("2级-高紧急度", 15002), |
||||||
|
PRIORITY_APS_MEDIUM("3级-中紧急度", 15003), |
||||||
|
PRIORITY_APS_LOW("4级-低紧急度", 15004), |
||||||
|
PRIORITY_APS_NORMAL("5级-正常", 15005), |
||||||
|
|
||||||
|
/** |
||||||
|
* 生产订单 校验结果,0:未验证,1:数据缺失,2:工艺缺失,3:资源缺失,4:交期冲突, 5:验证完成 |
||||||
|
*/ |
||||||
|
VALIDATION_NO("未验证", 16001), |
||||||
|
VALIDATION_RESULT_LESS_DATA("数据缺失", 16002), |
||||||
|
VALIDATION_RESULT_LESS_CRAFT("工艺缺失", 16003), |
||||||
|
VALIDATION_RESULT_LESS_RESOURCE("资源缺失", 16004), |
||||||
|
VALIDATION_RESULT_DELIVERY("交期冲突", 16005), |
||||||
|
VALIDATION_RESULT_PASS("验证完成", 16006), |
||||||
|
; |
||||||
|
final String name; |
||||||
|
final int category; |
||||||
|
|
||||||
|
/** |
||||||
|
* 匹配枚举值 |
||||||
|
* |
||||||
|
* @param name 名称 |
||||||
|
* @return BladeUserEnum |
||||||
|
*/ |
||||||
|
public static YieldOrderEnum of(String name) { |
||||||
|
return Arrays.stream(YieldOrderEnum.values()) |
||||||
|
.filter(userEnum -> userEnum.getName().equalsIgnoreCase(name != null ? name : "web")) |
||||||
|
.findFirst() |
||||||
|
// 在没有找到匹配项时返回默认值
|
||||||
|
.orElse(YieldOrderEnum.EMPTY); |
||||||
|
} |
||||||
|
|
||||||
|
/** |
||||||
|
* 根据值获取名称 |
||||||
|
* |
||||||
|
* @param category |
||||||
|
* @return |
||||||
|
*/ |
||||||
|
public static String getName(int category) { |
||||||
|
YieldOrderEnum item = Arrays.stream(YieldOrderEnum.values()) |
||||||
|
.filter(enumItem -> enumItem.getCategory() == category) |
||||||
|
.findFirst() |
||||||
|
.orElse(null); |
||||||
|
return ObjectUtil.isEmpty(item) ? StringPool.EMPTY : item.getName(); |
||||||
|
} |
||||||
|
} |
||||||
@ -0,0 +1,62 @@ |
|||||||
|
package org.springblade.desk.order.pojo.enums; |
||||||
|
|
||||||
|
import lombok.AllArgsConstructor; |
||||||
|
import lombok.Getter; |
||||||
|
import org.springblade.core.tool.utils.ObjectUtil; |
||||||
|
import org.springblade.core.tool.utils.StringPool; |
||||||
|
|
||||||
|
import java.util.Arrays; |
||||||
|
|
||||||
|
/** |
||||||
|
* 生产计划枚举 |
||||||
|
* |
||||||
|
* @author lqk |
||||||
|
* @date 2025-12-19 9:25 |
||||||
|
*/ |
||||||
|
@Getter |
||||||
|
@AllArgsConstructor |
||||||
|
public enum YieldPlanEnum { |
||||||
|
EMPTY(StringPool.EMPTY, -1), |
||||||
|
|
||||||
|
/** |
||||||
|
* 状态枚举 |
||||||
|
*/ |
||||||
|
STATUS_NORMAL("正常", 10001), |
||||||
|
STATUS_RETURNED("已退回", 10002), |
||||||
|
STATUS_NO_CRAFT("无工艺", 10003), |
||||||
|
STATUS_DISPATCHED("已派工", 10004), |
||||||
|
STATUS_PROCESSING("加工中", 10005), |
||||||
|
STATUS_COMPLETED("已完工", 100015), |
||||||
|
STATUS_CLOSED("已关闭", 100021), |
||||||
|
; |
||||||
|
final String name; |
||||||
|
final int category; |
||||||
|
|
||||||
|
/** |
||||||
|
* 匹配枚举值 |
||||||
|
* |
||||||
|
* @param name 名称 |
||||||
|
* @return BladeUserEnum |
||||||
|
*/ |
||||||
|
public static YieldPlanEnum of(String name) { |
||||||
|
return Arrays.stream(YieldPlanEnum.values()) |
||||||
|
.filter(userEnum -> userEnum.getName().equalsIgnoreCase(name != null ? name : "web")) |
||||||
|
.findFirst() |
||||||
|
// 在没有找到匹配项时返回默认值
|
||||||
|
.orElse(YieldPlanEnum.EMPTY); |
||||||
|
} |
||||||
|
|
||||||
|
/** |
||||||
|
* 根据值获取名称 |
||||||
|
* |
||||||
|
* @param category |
||||||
|
* @return |
||||||
|
*/ |
||||||
|
public static String getName(int category) { |
||||||
|
YieldPlanEnum item = Arrays.stream(YieldPlanEnum.values()) |
||||||
|
.filter(enumItem -> enumItem.getCategory() == category) |
||||||
|
.findFirst() |
||||||
|
.orElse(null); |
||||||
|
return ObjectUtil.isEmpty(item) ? StringPool.EMPTY : item.getName(); |
||||||
|
} |
||||||
|
} |
||||||
@ -1,8 +1,8 @@ |
|||||||
package org.springblade.desk.order.request; |
package org.springblade.desk.order.pojo.request; |
||||||
|
|
||||||
import lombok.Data; |
import lombok.Data; |
||||||
import org.springblade.desk.order.entity.AssayContent; |
import org.springblade.desk.order.pojo.entity.AssayContent; |
||||||
import org.springblade.desk.order.entity.AssayContentDetail; |
import org.springblade.desk.order.pojo.entity.AssayContentDetail; |
||||||
|
|
||||||
import java.util.List; |
import java.util.List; |
||||||
|
|
||||||
@ -1,9 +1,9 @@ |
|||||||
package org.springblade.desk.order.request; |
package org.springblade.desk.order.pojo.request; |
||||||
|
|
||||||
import lombok.Data; |
import lombok.Data; |
||||||
import org.springblade.desk.order.entity.MoldPlan; |
import org.springblade.desk.order.pojo.entity.MoldPlan; |
||||||
import org.springblade.desk.order.entity.MoldPlanOrder; |
import org.springblade.desk.order.pojo.entity.MoldPlanOrder; |
||||||
import org.springblade.desk.order.entity.MoldPlanTool; |
import org.springblade.desk.order.pojo.entity.MoldPlanTool; |
||||||
|
|
||||||
import java.util.List; |
import java.util.List; |
||||||
|
|
||||||
@ -1,8 +1,8 @@ |
|||||||
package org.springblade.desk.order.request; |
package org.springblade.desk.order.pojo.request; |
||||||
|
|
||||||
import lombok.Data; |
import lombok.Data; |
||||||
import org.springblade.desk.order.entity.PlateGoodsApply; |
import org.springblade.desk.order.pojo.entity.PlateGoodsApply; |
||||||
import org.springblade.desk.order.entity.PlateGoodsApplyDetail; |
import org.springblade.desk.order.pojo.entity.PlateGoodsApplyDetail; |
||||||
|
|
||||||
import java.util.List; |
import java.util.List; |
||||||
|
|
||||||
@ -1,8 +1,8 @@ |
|||||||
package org.springblade.desk.order.request; |
package org.springblade.desk.order.pojo.request; |
||||||
|
|
||||||
import lombok.Data; |
import lombok.Data; |
||||||
import org.springblade.desk.order.entity.PlateGoodsRecord; |
import org.springblade.desk.order.pojo.entity.PlateGoodsRecord; |
||||||
import org.springblade.desk.order.entity.PlateGoodsRecordDetail; |
import org.springblade.desk.order.pojo.entity.PlateGoodsRecordDetail; |
||||||
|
|
||||||
import java.util.List; |
import java.util.List; |
||||||
|
|
||||||
@ -0,0 +1,30 @@ |
|||||||
|
package org.springblade.desk.order.pojo.vo; |
||||||
|
|
||||||
|
import com.fasterxml.jackson.databind.annotation.JsonSerialize; |
||||||
|
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer; |
||||||
|
import lombok.Data; |
||||||
|
import org.springblade.desk.order.pojo.entity.YieldPlan; |
||||||
|
|
||||||
|
import java.io.Serial; |
||||||
|
|
||||||
|
/** |
||||||
|
* 生产计划-视图类 |
||||||
|
* |
||||||
|
* @author lqk |
||||||
|
*/ |
||||||
|
@Data |
||||||
|
public class YieldPlanVo extends YieldPlan { |
||||||
|
@Serial |
||||||
|
private static final long serialVersionUID = 1L; |
||||||
|
|
||||||
|
/** |
||||||
|
* 主键ID |
||||||
|
*/ |
||||||
|
@JsonSerialize(using = ToStringSerializer.class) |
||||||
|
private Long id; |
||||||
|
|
||||||
|
/** |
||||||
|
* 状态名称 |
||||||
|
*/ |
||||||
|
String statusName; |
||||||
|
} |
||||||
@ -0,0 +1,39 @@ |
|||||||
|
# maven # |
||||||
|
target |
||||||
|
logs |
||||||
|
!.mvn/wrapper/maven-wrapper.jar |
||||||
|
|
||||||
|
# gradle |
||||||
|
.gradle |
||||||
|
/build/ |
||||||
|
!gradle/wrapper/gradle-wrapper.jar |
||||||
|
|
||||||
|
# windows # |
||||||
|
Thumbs.db |
||||||
|
|
||||||
|
# Mac # |
||||||
|
.DS_Store |
||||||
|
|
||||||
|
# eclipse # |
||||||
|
.settings |
||||||
|
.project |
||||||
|
.classpath |
||||||
|
.log |
||||||
|
*.class |
||||||
|
|
||||||
|
# vscode # |
||||||
|
.vscode |
||||||
|
|
||||||
|
# idea # |
||||||
|
.idea |
||||||
|
*.iml |
||||||
|
|
||||||
|
# Package Files # |
||||||
|
*.jar |
||||||
|
*.war |
||||||
|
*.ear |
||||||
|
/target |
||||||
|
|
||||||
|
# Flattened pom |
||||||
|
.flattened-pom.xml |
||||||
|
/**/.flattened-pom.xml |
||||||
@ -0,0 +1,23 @@ |
|||||||
|
<?xml version="1.0" encoding="UTF-8"?> |
||||||
|
<project xmlns="http://maven.apache.org/POM/4.0.0" |
||||||
|
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
||||||
|
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> |
||||||
|
<parent> |
||||||
|
<artifactId>blade-service-api</artifactId> |
||||||
|
<groupId>org.springblade</groupId> |
||||||
|
<version>${revision}</version> |
||||||
|
</parent> |
||||||
|
<modelVersion>4.0.0</modelVersion> |
||||||
|
|
||||||
|
<artifactId>blade-erpdata-api</artifactId> |
||||||
|
<name>${project.artifactId}</name> |
||||||
|
<packaging>jar</packaging> |
||||||
|
|
||||||
|
<dependencies> |
||||||
|
<dependency> |
||||||
|
<groupId>org.springblade</groupId> |
||||||
|
<artifactId>blade-starter-cache</artifactId> |
||||||
|
</dependency> |
||||||
|
</dependencies> |
||||||
|
|
||||||
|
</project> |
||||||
@ -0,0 +1,60 @@ |
|||||||
|
/** |
||||||
|
* BladeX Commercial License Agreement |
||||||
|
* Copyright (c) 2018-2099, https://bladex.cn. All rights reserved.
|
||||||
|
* <p> |
||||||
|
* Use of this software is governed by the Commercial License Agreement |
||||||
|
* obtained after purchasing a license from BladeX. |
||||||
|
* <p> |
||||||
|
* 1. This software is for development use only under a valid license |
||||||
|
* from BladeX. |
||||||
|
* <p> |
||||||
|
* 2. Redistribution of this software's source code to any third party |
||||||
|
* without a commercial license is strictly prohibited. |
||||||
|
* <p> |
||||||
|
* 3. Licensees may copyright their own code but cannot use segments |
||||||
|
* from this software for such purposes. Copyright of this software |
||||||
|
* remains with BladeX. |
||||||
|
* <p> |
||||||
|
* Using this software signifies agreement to this License, and the software |
||||||
|
* must not be used for illegal purposes. |
||||||
|
* <p> |
||||||
|
* THIS SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY. The author is |
||||||
|
* not liable for any claims arising from secondary or illegal development. |
||||||
|
* <p> |
||||||
|
* Author: Chill Zhuang (bladejava@qq.com) |
||||||
|
*/ |
||||||
|
package org.springblade.erpdata.feign; |
||||||
|
|
||||||
|
|
||||||
|
import com.baomidou.mybatisplus.core.metadata.IPage; |
||||||
|
import org.springblade.core.launch.constant.AppConstant; |
||||||
|
import org.springblade.core.tool.api.R; |
||||||
|
import org.springblade.erpdata.pojo.dto.AllocationDTO; |
||||||
|
import org.springframework.cloud.openfeign.FeignClient; |
||||||
|
import org.springframework.web.bind.annotation.PostMapping; |
||||||
|
|
||||||
|
/** |
||||||
|
* Feign接口类 |
||||||
|
* |
||||||
|
* @author Chill |
||||||
|
*/ |
||||||
|
@FeignClient( |
||||||
|
value = AppConstant.APPLICATION_SYSTEM_NAME, |
||||||
|
fallback = IErpDataSearchClientFallback.class |
||||||
|
) |
||||||
|
public interface IErpDataSearchClient { |
||||||
|
|
||||||
|
String API_PREFIX = "/feign/erpdata/client"; |
||||||
|
String PAGE_ALLOCATION = API_PREFIX + "/pageAllocation"; |
||||||
|
|
||||||
|
/** |
||||||
|
* 查询烧结配套信息 |
||||||
|
* |
||||||
|
* @param page |
||||||
|
* @param entity |
||||||
|
* @return |
||||||
|
*/ |
||||||
|
@PostMapping(PAGE_ALLOCATION) |
||||||
|
R<IPage<AllocationDTO>> pageAllocation(IPage<AllocationDTO> page, AllocationDTO entity); |
||||||
|
|
||||||
|
} |
||||||
@ -0,0 +1,21 @@ |
|||||||
|
package org.springblade.erpdata.feign; |
||||||
|
|
||||||
|
import com.baomidou.mybatisplus.core.metadata.IPage; |
||||||
|
import org.springblade.core.tool.api.R; |
||||||
|
import org.springblade.erpdata.pojo.dto.AllocationDTO; |
||||||
|
import org.springframework.stereotype.Component; |
||||||
|
|
||||||
|
/** |
||||||
|
* Feign失败配置 |
||||||
|
* |
||||||
|
* @author lqk |
||||||
|
* @date 2025-12-17 15:13 |
||||||
|
*/ |
||||||
|
@Component |
||||||
|
public class IErpDataSearchClientFallback implements IErpDataSearchClient { |
||||||
|
|
||||||
|
@Override |
||||||
|
public R<IPage<AllocationDTO>> pageAllocation(IPage<AllocationDTO> page, AllocationDTO entity) { |
||||||
|
return R.fail("获取数据失败"); |
||||||
|
} |
||||||
|
} |
||||||
@ -0,0 +1,92 @@ |
|||||||
|
package org.springblade.erpdata.pojo.dto; |
||||||
|
|
||||||
|
import lombok.Data; |
||||||
|
|
||||||
|
import java.io.Serializable; |
||||||
|
|
||||||
|
/** |
||||||
|
* 配套信息查询 |
||||||
|
* |
||||||
|
* @author lqk |
||||||
|
*/ |
||||||
|
@Data |
||||||
|
public class AllocationDTO implements Serializable { |
||||||
|
|
||||||
|
/** |
||||||
|
* 配套单号 |
||||||
|
*/ |
||||||
|
private String pkno; |
||||||
|
/** |
||||||
|
* 父件号 |
||||||
|
*/ |
||||||
|
private String prntno; |
||||||
|
/** |
||||||
|
* 型号 |
||||||
|
*/ |
||||||
|
private String mtltmrk; |
||||||
|
/** |
||||||
|
* 生产标识 |
||||||
|
*/ |
||||||
|
private String prtlotno; |
||||||
|
/** |
||||||
|
* 需求日期 |
||||||
|
*/ |
||||||
|
private String pkreqdat; |
||||||
|
/** |
||||||
|
* 父件批次 |
||||||
|
*/ |
||||||
|
private String fjSplcode; |
||||||
|
/** |
||||||
|
* 父件配套数 |
||||||
|
*/ |
||||||
|
private String fjPkavqty; |
||||||
|
/** |
||||||
|
* 配套序号 |
||||||
|
*/ |
||||||
|
private String serialno; |
||||||
|
/** |
||||||
|
* 主制部门 |
||||||
|
*/ |
||||||
|
private String prtmdept; |
||||||
|
/** |
||||||
|
* 计划标记 |
||||||
|
*/ |
||||||
|
private String plnsign; |
||||||
|
/** |
||||||
|
* 制造订单号 |
||||||
|
*/ |
||||||
|
private String mono; |
||||||
|
/** |
||||||
|
* 计划员 |
||||||
|
*/ |
||||||
|
private String schemer; |
||||||
|
/** |
||||||
|
* 调度员 |
||||||
|
*/ |
||||||
|
private String planner1; |
||||||
|
/** |
||||||
|
* 配套日期 |
||||||
|
*/ |
||||||
|
private String subpkdate; |
||||||
|
|
||||||
|
/** |
||||||
|
* 保管员 |
||||||
|
*/ |
||||||
|
private String warctlr; |
||||||
|
/** |
||||||
|
* 条码序号 |
||||||
|
*/ |
||||||
|
private String barcodeno; |
||||||
|
/** |
||||||
|
* 计划部门 |
||||||
|
*/ |
||||||
|
private String plandept; |
||||||
|
/** |
||||||
|
* 备注 |
||||||
|
*/ |
||||||
|
private String remark; |
||||||
|
/** |
||||||
|
* 物料标识 |
||||||
|
*/ |
||||||
|
private String prtclass; |
||||||
|
} |
||||||
@ -0,0 +1,48 @@ |
|||||||
|
/** |
||||||
|
* BladeX Commercial License Agreement |
||||||
|
* Copyright (c) 2018-2099, https://bladex.cn. All rights reserved.
|
||||||
|
* <p> |
||||||
|
* Use of this software is governed by the Commercial License Agreement |
||||||
|
* obtained after purchasing a license from BladeX. |
||||||
|
* <p> |
||||||
|
* 1. This software is for development use only under a valid license |
||||||
|
* from BladeX. |
||||||
|
* <p> |
||||||
|
* 2. Redistribution of this software's source code to any third party |
||||||
|
* without a commercial license is strictly prohibited. |
||||||
|
* <p> |
||||||
|
* 3. Licensees may copyright their own code but cannot use segments |
||||||
|
* from this software for such purposes. Copyright of this software |
||||||
|
* remains with BladeX. |
||||||
|
* <p> |
||||||
|
* Using this software signifies agreement to this License, and the software |
||||||
|
* must not be used for illegal purposes. |
||||||
|
* <p> |
||||||
|
* THIS SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY. The author is |
||||||
|
* not liable for any claims arising from secondary or illegal development. |
||||||
|
* <p> |
||||||
|
* Author: Chill Zhuang (bladejava@qq.com) |
||||||
|
*/ |
||||||
|
package org.springblade.erpdata.pojo.enums; |
||||||
|
|
||||||
|
import lombok.AllArgsConstructor; |
||||||
|
import lombok.Getter; |
||||||
|
|
||||||
|
/** |
||||||
|
* 业务字典枚举类 |
||||||
|
* |
||||||
|
* @author Chill |
||||||
|
*/ |
||||||
|
@Getter |
||||||
|
@AllArgsConstructor |
||||||
|
public enum DictBizEnum { |
||||||
|
|
||||||
|
/** |
||||||
|
* 测试 |
||||||
|
*/ |
||||||
|
TEST("test"), |
||||||
|
; |
||||||
|
|
||||||
|
final String name; |
||||||
|
|
||||||
|
} |
||||||
@ -0,0 +1,104 @@ |
|||||||
|
/** |
||||||
|
* BladeX Commercial License Agreement |
||||||
|
* Copyright (c) 2018-2099, https://bladex.cn. All rights reserved.
|
||||||
|
* <p> |
||||||
|
* Use of this software is governed by the Commercial License Agreement |
||||||
|
* obtained after purchasing a license from BladeX. |
||||||
|
* <p> |
||||||
|
* 1. This software is for development use only under a valid license |
||||||
|
* from BladeX. |
||||||
|
* <p> |
||||||
|
* 2. Redistribution of this software's source code to any third party |
||||||
|
* without a commercial license is strictly prohibited. |
||||||
|
* <p> |
||||||
|
* 3. Licensees may copyright their own code but cannot use segments |
||||||
|
* from this software for such purposes. Copyright of this software |
||||||
|
* remains with BladeX. |
||||||
|
* <p> |
||||||
|
* Using this software signifies agreement to this License, and the software |
||||||
|
* must not be used for illegal purposes. |
||||||
|
* <p> |
||||||
|
* THIS SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY. The author is |
||||||
|
* not liable for any claims arising from secondary or illegal development. |
||||||
|
* <p> |
||||||
|
* Author: Chill Zhuang (bladejava@qq.com) |
||||||
|
*/ |
||||||
|
package org.springblade.erpdata.pojo.enums; |
||||||
|
|
||||||
|
import lombok.AllArgsConstructor; |
||||||
|
import lombok.Getter; |
||||||
|
|
||||||
|
/** |
||||||
|
* 系统字典枚举类 |
||||||
|
* |
||||||
|
* @author Chill |
||||||
|
*/ |
||||||
|
@Getter |
||||||
|
@AllArgsConstructor |
||||||
|
public enum DictEnum { |
||||||
|
|
||||||
|
/** |
||||||
|
* 性别 |
||||||
|
*/ |
||||||
|
SEX("sex"), |
||||||
|
/** |
||||||
|
* 通知类型 |
||||||
|
*/ |
||||||
|
NOTICE("notice"), |
||||||
|
/** |
||||||
|
* 菜单类型 |
||||||
|
*/ |
||||||
|
MENU_CATEGORY("menu_category"), |
||||||
|
/** |
||||||
|
* 按钮功能 |
||||||
|
*/ |
||||||
|
BUTTON_FUNC("button_func"), |
||||||
|
/** |
||||||
|
* 是否 |
||||||
|
*/ |
||||||
|
YES_NO("yes_no"), |
||||||
|
/** |
||||||
|
* 流程类型 |
||||||
|
*/ |
||||||
|
FLOW("flow"), |
||||||
|
/** |
||||||
|
* 机构类型 |
||||||
|
*/ |
||||||
|
ORG_CATEGORY("org_category"), |
||||||
|
/** |
||||||
|
* 数据权限 |
||||||
|
*/ |
||||||
|
DATA_SCOPE_TYPE("data_scope_type"), |
||||||
|
/** |
||||||
|
* 接口权限 |
||||||
|
*/ |
||||||
|
API_SCOPE_TYPE("api_scope_type"), |
||||||
|
/** |
||||||
|
* 权限类型 |
||||||
|
*/ |
||||||
|
SCOPE_CATEGORY("scope_category"), |
||||||
|
/** |
||||||
|
* 对象存储类型 |
||||||
|
*/ |
||||||
|
OSS("oss"), |
||||||
|
/** |
||||||
|
* 短信服务类型 |
||||||
|
*/ |
||||||
|
SMS("sms"), |
||||||
|
/** |
||||||
|
* 岗位类型 |
||||||
|
*/ |
||||||
|
POST_CATEGORY("post_category"), |
||||||
|
/** |
||||||
|
* 行政区划 |
||||||
|
*/ |
||||||
|
REGION("region"), |
||||||
|
/** |
||||||
|
* 用户平台 |
||||||
|
*/ |
||||||
|
USER_TYPE("user_type"), |
||||||
|
; |
||||||
|
|
||||||
|
final String name; |
||||||
|
|
||||||
|
} |
||||||
@ -1,28 +0,0 @@ |
|||||||
package org.springblade.desk.order.constant; |
|
||||||
|
|
||||||
/** |
|
||||||
* 烧结模具计划相关常量 |
|
||||||
* |
|
||||||
* @author lqk |
|
||||||
* @date 2025-11-27 10:40 |
|
||||||
*/ |
|
||||||
public interface MoldPlanConst { |
|
||||||
//region 状态相关常量
|
|
||||||
/** |
|
||||||
* 待出库 |
|
||||||
*/ |
|
||||||
Integer STATUS_WAITING = 0; |
|
||||||
/** |
|
||||||
* 已出库 |
|
||||||
*/ |
|
||||||
Integer STATUS_OUT_STORE = 1; |
|
||||||
/** |
|
||||||
* 完成 |
|
||||||
*/ |
|
||||||
Integer STATUS_DONE = 2; |
|
||||||
/** |
|
||||||
* 关闭 |
|
||||||
*/ |
|
||||||
Integer STATUS_CLOSE = 3; |
|
||||||
//endregion
|
|
||||||
} |
|
||||||
@ -1,40 +0,0 @@ |
|||||||
package org.springblade.desk.order.constant; |
|
||||||
|
|
||||||
/** |
|
||||||
* 镀层物料需求相关常量 |
|
||||||
* |
|
||||||
* @author lqk |
|
||||||
* @date 2025-11-27 10:40 |
|
||||||
*/ |
|
||||||
public interface PlateGoodsConst { |
|
||||||
//region 状态相关常量
|
|
||||||
/** |
|
||||||
* 待审核 |
|
||||||
*/ |
|
||||||
Integer STATUS_WAITING = 0; |
|
||||||
/** |
|
||||||
* 审核通过 |
|
||||||
*/ |
|
||||||
Integer STATUS_PASS = 1; |
|
||||||
/** |
|
||||||
* 使用中 |
|
||||||
*/ |
|
||||||
Integer STATUS_USING = 2; |
|
||||||
/** |
|
||||||
* 已超期 |
|
||||||
*/ |
|
||||||
Integer STATUS_OUT_DATE = 2; |
|
||||||
/** |
|
||||||
* 已完成 |
|
||||||
*/ |
|
||||||
Integer STATUS_DONE = 3; |
|
||||||
/** |
|
||||||
* 审核未通过 |
|
||||||
*/ |
|
||||||
Integer STATUS_NOT_PASS = 3; |
|
||||||
/** |
|
||||||
* 已关闭 |
|
||||||
*/ |
|
||||||
Integer STATUS_CLOSE = 3; |
|
||||||
//endregion
|
|
||||||
} |
|
||||||
@ -0,0 +1,53 @@ |
|||||||
|
/** |
||||||
|
* BladeX Commercial License Agreement |
||||||
|
* Copyright (c) 2018-2099, https://bladex.cn. All rights reserved.
|
||||||
|
* <p> |
||||||
|
* Use of this software is governed by the Commercial License Agreement |
||||||
|
* obtained after purchasing a license from BladeX. |
||||||
|
* <p> |
||||||
|
* 1. This software is for development use only under a valid license |
||||||
|
* from BladeX. |
||||||
|
* <p> |
||||||
|
* 2. Redistribution of this software's source code to any third party |
||||||
|
* without a commercial license is strictly prohibited. |
||||||
|
* <p> |
||||||
|
* 3. Licensees may copyright their own code but cannot use segments |
||||||
|
* from this software for such purposes. Copyright of this software |
||||||
|
* remains with BladeX. |
||||||
|
* <p> |
||||||
|
* Using this software signifies agreement to this License, and the software |
||||||
|
* must not be used for illegal purposes. |
||||||
|
* <p> |
||||||
|
* THIS SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY. The author is |
||||||
|
* not liable for any claims arising from secondary or illegal development. |
||||||
|
* <p> |
||||||
|
* Author: Chill Zhuang (bladejava@qq.com) |
||||||
|
*/ |
||||||
|
package org.springblade.desk.order.wrapper; |
||||||
|
|
||||||
|
import org.springblade.core.mp.support.BaseEntityWrapper; |
||||||
|
import org.springblade.core.tool.utils.BeanUtil; |
||||||
|
import org.springblade.desk.order.pojo.entity.YieldPlan; |
||||||
|
import org.springblade.desk.order.pojo.enums.YieldPlanEnum; |
||||||
|
import org.springblade.desk.order.pojo.vo.YieldPlanVo; |
||||||
|
|
||||||
|
import java.util.Objects; |
||||||
|
|
||||||
|
/** |
||||||
|
* 包装类,返回视图层所需的字段 |
||||||
|
* |
||||||
|
* @author Chill |
||||||
|
*/ |
||||||
|
public class YieldPlanWrapper extends BaseEntityWrapper<YieldPlan, YieldPlanVo> { |
||||||
|
|
||||||
|
public static YieldPlanWrapper build() { |
||||||
|
return new YieldPlanWrapper(); |
||||||
|
} |
||||||
|
|
||||||
|
@Override |
||||||
|
public YieldPlanVo entityVO(YieldPlan entity) { |
||||||
|
YieldPlanVo vo = Objects.requireNonNull(BeanUtil.copyProperties(entity, YieldPlanVo.class)); |
||||||
|
vo.setStatusName(YieldPlanEnum.getName(entity.getStatus())); |
||||||
|
return vo; |
||||||
|
} |
||||||
|
} |
||||||
@ -0,0 +1,58 @@ |
|||||||
|
/** |
||||||
|
* BladeX Commercial License Agreement |
||||||
|
* Copyright (c) 2018-2099, https://bladex.cn. All rights reserved.
|
||||||
|
* <p> |
||||||
|
* Use of this software is governed by the Commercial License Agreement |
||||||
|
* obtained after purchasing a license from BladeX. |
||||||
|
* <p> |
||||||
|
* 1. This software is for development use only under a valid license |
||||||
|
* from BladeX. |
||||||
|
* <p> |
||||||
|
* 2. Redistribution of this software's source code to any third party |
||||||
|
* without a commercial license is strictly prohibited. |
||||||
|
* <p> |
||||||
|
* 3. Licensees may copyright their own code but cannot use segments |
||||||
|
* from this software for such purposes. Copyright of this software |
||||||
|
* remains with BladeX. |
||||||
|
* <p> |
||||||
|
* Using this software signifies agreement to this License, and the software |
||||||
|
* must not be used for illegal purposes. |
||||||
|
* <p> |
||||||
|
* THIS SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY. The author is |
||||||
|
* not liable for any claims arising from secondary or illegal development. |
||||||
|
* <p> |
||||||
|
* Author: Chill Zhuang (bladejava@qq.com) |
||||||
|
*/ |
||||||
|
package org.springblade.erpdata.feign; |
||||||
|
|
||||||
|
|
||||||
|
import com.baomidou.mybatisplus.core.metadata.IPage; |
||||||
|
import io.swagger.v3.oas.annotations.Hidden; |
||||||
|
import lombok.AllArgsConstructor; |
||||||
|
import org.springblade.core.tenant.annotation.NonDS; |
||||||
|
import org.springblade.core.tool.api.R; |
||||||
|
import org.springblade.erpdata.pojo.dto.AllocationDTO; |
||||||
|
import org.springblade.erpdata.service.IErpDataSearchService; |
||||||
|
import org.springframework.web.bind.annotation.GetMapping; |
||||||
|
import org.springframework.web.bind.annotation.RestController; |
||||||
|
|
||||||
|
|
||||||
|
/** |
||||||
|
* 字典服务Feign实现类 |
||||||
|
* |
||||||
|
* @author Chill |
||||||
|
*/ |
||||||
|
@NonDS |
||||||
|
@Hidden |
||||||
|
@RestController |
||||||
|
@AllArgsConstructor |
||||||
|
public class ErpDataSearchClient implements IErpDataSearchClient { |
||||||
|
|
||||||
|
private final IErpDataSearchService dataSearchService; |
||||||
|
|
||||||
|
@Override |
||||||
|
@GetMapping(PAGE_ALLOCATION) |
||||||
|
public R<IPage<AllocationDTO>> pageAllocation(IPage<AllocationDTO> page, AllocationDTO entity) { |
||||||
|
return R.data(dataSearchService.queryAllocation(page, entity)); |
||||||
|
} |
||||||
|
} |
||||||
@ -1,6 +1,12 @@ |
|||||||
<?xml version="1.0" encoding="UTF-8"?> |
<?xml version="1.0" encoding="UTF-8"?> |
||||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
||||||
<mapper namespace = "org.springblade.erpdata.mapper.ErpYieldPlanSearchMapper"> |
<mapper namespace = "org.springblade.erpdata.mapper.ErpDataSearchMapper"> |
||||||
|
|
||||||
|
<select id = "queryAllocation" resultType = "org.springblade.erpdata.pojo.dto.AllocationDTO"> |
||||||
|
select * |
||||||
|
from v_mes_rb_pkpqry |
||||||
|
where 1=1 |
||||||
|
</select> |
||||||
|
|
||||||
<select id = "getYieldPlanErpList" resultType = "org.springblade.erpdata.pojo.dto.YieldPlanErpDTO"> |
<select id = "getYieldPlanErpList" resultType = "org.springblade.erpdata.pojo.dto.YieldPlanErpDTO"> |
||||||
SELECT * FROM v_mes_rb_wo WHERE is_deleted = 0 |
SELECT * FROM v_mes_rb_wo WHERE is_deleted = 0 |
||||||
@ -1,15 +1,29 @@ |
|||||||
package org.springblade.erpdata.service.impl; |
package org.springblade.erpdata.service.impl; |
||||||
|
|
||||||
|
import com.baomidou.mybatisplus.core.metadata.IPage; |
||||||
|
import lombok.RequiredArgsConstructor; |
||||||
import lombok.extern.slf4j.Slf4j; |
import lombok.extern.slf4j.Slf4j; |
||||||
|
import org.springblade.erpdata.mapper.ErpDataSearchMapper; |
||||||
|
import org.springblade.erpdata.pojo.dto.AllocationDTO; |
||||||
import org.springblade.erpdata.service.IErpDataSearchService; |
import org.springblade.erpdata.service.IErpDataSearchService; |
||||||
import org.springframework.stereotype.Service; |
import org.springframework.stereotype.Service; |
||||||
|
|
||||||
|
import java.util.List; |
||||||
|
|
||||||
/** |
/** |
||||||
* @author lqk |
* @author lqk |
||||||
* @date 2025-11-26 9:39 |
* @date 2025-11-26 9:39 |
||||||
*/ |
*/ |
||||||
@Slf4j |
@Slf4j |
||||||
|
@RequiredArgsConstructor |
||||||
@Service |
@Service |
||||||
public class ErpDataSearchServiceImpl implements IErpDataSearchService { |
public class ErpDataSearchServiceImpl implements IErpDataSearchService { |
||||||
|
|
||||||
|
private final ErpDataSearchMapper dataSearchMapper; |
||||||
|
|
||||||
|
@Override |
||||||
|
public IPage<AllocationDTO> queryAllocation(IPage page, AllocationDTO entity) { |
||||||
|
List<AllocationDTO> dataList = dataSearchMapper.queryAllocation(page); |
||||||
|
return page.setRecords(dataList); |
||||||
|
} |
||||||
} |
} |
||||||
|
|||||||
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in new issue