parent
68e26bbbb2
commit
1fdfe6812b
7 changed files with 367 additions and 6 deletions
@ -0,0 +1,224 @@ |
||||
package org.springblade.desk.logistics.pojo.entity; |
||||
|
||||
import com.baomidou.mybatisplus.annotation.TableField; |
||||
import com.baomidou.mybatisplus.annotation.TableName; |
||||
import io.swagger.v3.oas.annotations.media.Schema; |
||||
import lombok.Data; |
||||
|
||||
import java.io.Serializable; |
||||
import java.math.BigDecimal; |
||||
import java.util.Date; |
||||
|
||||
@Data |
||||
@Schema(description = "生产报工订单视图 PJ_YIELD_ORDER") |
||||
@TableName("PR_YIELD_ORDER") // 你创建的视图名
|
||||
public class PrYieldOrder implements Serializable { |
||||
|
||||
@Schema(description = "生产订单ID") |
||||
@TableField("YO_ID") |
||||
private Long yoId; |
||||
|
||||
@Schema(description = "生产订单编号") |
||||
@TableField("YO_CODE") |
||||
private String yoCode; |
||||
|
||||
@Schema(description = "计划订单编号") |
||||
@TableField("PO_CODE") |
||||
private String poCode; |
||||
|
||||
@Schema(description = "零件编号") |
||||
@TableField("PART_CODE") |
||||
private String partCode; |
||||
|
||||
@Schema(description = "产品型号") |
||||
@TableField("PRODUCT_TYPE") |
||||
private String productType; |
||||
|
||||
@Schema(description = "零件名称") |
||||
@TableField("PART_NAME") |
||||
private String partName; |
||||
|
||||
@Schema(description = "镀种") |
||||
@TableField("PLATE") |
||||
private String plate; |
||||
|
||||
@Schema(description = "产品标识") |
||||
@TableField("PROD_IDENT") |
||||
private String prodIdent; |
||||
|
||||
@Schema(description = "使用部门") |
||||
@TableField("USE_DEPT") |
||||
private String useDept; |
||||
|
||||
@Schema(description = "面积") |
||||
@TableField("PO_AREA") |
||||
private BigDecimal poArea; |
||||
|
||||
@Schema(description = "需求日期") |
||||
@TableField("DEMAND_DATE") |
||||
private Date demandDate; |
||||
|
||||
@Schema(description = "计划员") |
||||
@TableField("PLAN_USER") |
||||
private String planUser; |
||||
|
||||
@Schema(description = "下发日期") |
||||
@TableField("RELEASE_DATE") |
||||
private Date releaseDate; |
||||
|
||||
@Schema(description = "备注") |
||||
@TableField("MEMO") |
||||
private String memo; |
||||
|
||||
@Schema(description = "路线卡号") |
||||
@TableField("CARD_NO") |
||||
private String cardNo; |
||||
|
||||
@Schema(description = "批次号") |
||||
@TableField("BATCH_NO") |
||||
private String batchNo; |
||||
|
||||
@Schema(description = "是否场内生产") |
||||
@TableField("SITE_WORK") |
||||
private Integer siteWork; |
||||
|
||||
@Schema(description = "订单数量") |
||||
@TableField("PO_QTY") |
||||
private BigDecimal poQty; |
||||
|
||||
@Schema(description = "同步时间") |
||||
@TableField("SYNC_TIME") |
||||
private Date syncTime; |
||||
|
||||
@Schema(description = "当前状态") |
||||
@TableField("CUR_STATUS") |
||||
private Integer curStatus; |
||||
|
||||
@Schema(description = "B号") |
||||
@TableField("ROAM_NO") |
||||
private String roamNo; |
||||
|
||||
@Schema(description = "一级工艺") |
||||
@TableField("PRIMARY_CRAFT") |
||||
private String primaryCraft; |
||||
|
||||
@Schema(description = "下级B号") |
||||
@TableField("NEXT_ROAM") |
||||
private String nextRoam; |
||||
|
||||
@Schema(description = "PDM地址") |
||||
@TableField("PDM_URL") |
||||
private String pdmUrl; |
||||
|
||||
@Schema(description = "优先级") |
||||
@TableField("PRIORITY") |
||||
private Integer priority; |
||||
|
||||
@Schema(description = "保管员") |
||||
@TableField("CUSTODIAN") |
||||
private String custodian; |
||||
|
||||
@Schema(description = "返工单号") |
||||
@TableField("REWORK_CODE") |
||||
private String reworkCode; |
||||
|
||||
@Schema(description = "返工顺序") |
||||
@TableField("REWORK_NO") |
||||
private Long reworkNo; |
||||
|
||||
@Schema(description = "委托车间") |
||||
@TableField("ENTRUST_DEPT") |
||||
private String entrustDept; |
||||
|
||||
@Schema(description = "返工备注") |
||||
@TableField("REWORK_MEMO") |
||||
private String reworkMemo; |
||||
|
||||
@Schema(description = "失败备注") |
||||
@TableField("FAILURE_MEMO") |
||||
private String failureMemo; |
||||
|
||||
@Schema(description = "业务类型") |
||||
@TableField("BUSINESS_TYPE") |
||||
private Integer businessType; |
||||
|
||||
@Schema(description = "失败人") |
||||
@TableField("FAILURE_MAN") |
||||
private String failureMan; |
||||
|
||||
@Schema(description = "失败时间") |
||||
@TableField("FAILURE_TIME") |
||||
private Date failureTime; |
||||
|
||||
@Schema(description = "工序序号") |
||||
@TableField("RECSEQNO") |
||||
private String recseqno; |
||||
|
||||
@Schema(description = "推车ID") |
||||
@TableField("CART_ID") |
||||
private Long cartId; |
||||
|
||||
@Schema(description = "工艺ID") |
||||
@TableField("CRAFTID") |
||||
private Long craftid; |
||||
|
||||
@Schema(description = "工艺ID") |
||||
@TableField("CRAFT_ID") |
||||
private Long craftId; |
||||
|
||||
@Schema(description = "手动增加标识") |
||||
@TableField("MANUAL_INCREASE") |
||||
private Integer manualIncrease; |
||||
|
||||
@Schema(description = "报工类型") |
||||
@TableField("YIELD_TYPE") |
||||
private Integer yieldType; |
||||
|
||||
@Schema(description = "父订单ID") |
||||
@TableField("FATHER_YO_ID") |
||||
private Long fatherYoId; |
||||
|
||||
@Schema(description = "外协转工标识") |
||||
@TableField("NEWLEV_FLAG") |
||||
private String newlevFlag; |
||||
|
||||
@Schema(description = "是否可生产") |
||||
@TableField("PRODUCE_BOOL") |
||||
private Integer produceBool; |
||||
|
||||
@Schema(description = "使用部门编码") |
||||
@TableField("USE_DEPTCODE") |
||||
private String useDeptcode; |
||||
|
||||
@Schema(description = "产品产线") |
||||
@TableField("PO_PROD_LINE") |
||||
private String poProdLine; |
||||
|
||||
@Schema(description = "订单备注") |
||||
@TableField("PO_MEMO") |
||||
private String poMemo; |
||||
|
||||
@Schema(description = "烧结模具准备状态") |
||||
@TableField("SJ_MOLD_PREPARATION") |
||||
private Long sjMoldPreparation; |
||||
|
||||
@Schema(description = "烧结齐套准备状态") |
||||
@TableField("SJ_KIT_PREPARATION") |
||||
private Long sjKitPreparation; |
||||
|
||||
@Schema(description = "配套人") |
||||
@TableField("PK_USERNAME") |
||||
private String pkUsername; |
||||
|
||||
@Schema(description = "配套时间") |
||||
@TableField("PK_DATE") |
||||
private Date pkDate; |
||||
|
||||
@Schema(description = "齐套操作人") |
||||
@TableField("KIT_PREPARATION_MAN") |
||||
private Long kitPreparationMan; |
||||
|
||||
@Schema(description = "齐套操作时间") |
||||
@TableField("KIT_PREPARATION_TIME") |
||||
private Date kitPreparationTime; |
||||
} |
||||
@ -0,0 +1,16 @@ |
||||
package org.springblade.desk.logistics.mapper; |
||||
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
||||
import com.baomidou.mybatisplus.core.metadata.IPage; |
||||
import org.apache.ibatis.annotations.Param; |
||||
import org.springblade.desk.logistics.pojo.entity.Location; |
||||
import org.springblade.desk.logistics.pojo.entity.PrYieldOrder; |
||||
import org.springblade.desk.logistics.pojo.vo.LocationVO; |
||||
|
||||
import java.util.List; |
||||
|
||||
public interface PrYieldOrderMapper extends BaseMapper<PrYieldOrder> { |
||||
|
||||
|
||||
|
||||
} |
||||
@ -0,0 +1,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"> |
||||
<mapper namespace = "org.springblade.desk.logistics.mapper.PrYieldOrderMapper"> |
||||
|
||||
|
||||
</mapper> |
||||
@ -0,0 +1,45 @@ |
||||
/** |
||||
* 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.logistics.service; |
||||
|
||||
import com.baomidou.mybatisplus.extension.service.IService; |
||||
import org.springblade.core.mp.base.BaseService; |
||||
import org.springblade.desk.logistics.pojo.entity.PrWorkPlan; |
||||
import org.springblade.desk.logistics.pojo.entity.PrYieldOrder; |
||||
import org.springblade.desk.logistics.pojo.entity.WeighData; |
||||
|
||||
import java.math.BigDecimal; |
||||
|
||||
/** |
||||
* 物流称重存储 服务类 |
||||
* |
||||
* @author BladeX |
||||
* @since 2025-11-12 |
||||
*/ |
||||
public interface IPrYieldOrderService extends IService<PrYieldOrder> { |
||||
|
||||
|
||||
} |
||||
@ -0,0 +1,49 @@ |
||||
package org.springblade.desk.logistics.service.impl; /** |
||||
* 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) |
||||
*/ |
||||
|
||||
|
||||
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
||||
import lombok.extern.slf4j.Slf4j; |
||||
import org.springblade.desk.logistics.mapper.PrWorkPlanMapper; |
||||
import org.springblade.desk.logistics.mapper.PrYieldOrderMapper; |
||||
import org.springblade.desk.logistics.pojo.entity.PrWorkPlan; |
||||
import org.springblade.desk.logistics.pojo.entity.PrYieldOrder; |
||||
import org.springblade.desk.logistics.service.IPrWorkPlanService; |
||||
import org.springblade.desk.logistics.service.IPrYieldOrderService; |
||||
import org.springframework.stereotype.Service; |
||||
|
||||
/** |
||||
* 车间订单、 服务实现类 |
||||
* |
||||
* @author BladeX |
||||
* @since 2025-11-12 |
||||
*/ |
||||
@Service |
||||
@Slf4j |
||||
public class PrYieldOrderServiceImpl extends ServiceImpl<PrYieldOrderMapper, PrYieldOrder> implements IPrYieldOrderService { |
||||
|
||||
|
||||
} |
||||
Loading…
Reference in new issue