From 2331d50cf12f0b8c882e6850d3a6a11baf4985e6 Mon Sep 17 00:00:00 2001 From: 刘小明 <liuxm_a@163.com> Date: 星期二, 24 九月 2024 14:30:48 +0800 Subject: [PATCH] 接口中添加产品类型字段 --- pms-parent/pms-global/src/main/java/com/dy/pmsGlobal/pojoPr/PrOrderItem.java | 2 ++ pms-parent/pms-global/src/main/java/com/dy/pmsGlobal/pojoPr/PrProductionProcess.java | 5 +++++ pms-parent/pms-global/src/main/java/com/dy/pmsGlobal/pojoPr/PrAssemblyPlan.java | 2 ++ pms-parent/pms-global/src/main/resources/mapper/PrProductionProcessMapper.xml | 2 ++ pms-parent/pms-global/src/main/resources/mapper/PrAssemblyPlanMapper.xml | 2 ++ pms-parent/pms-global/src/main/resources/mapper/PrOrderItemMapper.xml | 18 +++++++++--------- 6 files changed, 22 insertions(+), 9 deletions(-) diff --git a/pms-parent/pms-global/src/main/java/com/dy/pmsGlobal/pojoPr/PrAssemblyPlan.java b/pms-parent/pms-global/src/main/java/com/dy/pmsGlobal/pojoPr/PrAssemblyPlan.java index fcf0b62..d14dc6a 100644 --- a/pms-parent/pms-global/src/main/java/com/dy/pmsGlobal/pojoPr/PrAssemblyPlan.java +++ b/pms-parent/pms-global/src/main/java/com/dy/pmsGlobal/pojoPr/PrAssemblyPlan.java @@ -99,6 +99,8 @@ @TableField(exist = false) public String proName; @TableField(exist = false) + public String proType; + @TableField(exist = false) public String batchNo; @TableField(exist = false) public String processName; diff --git a/pms-parent/pms-global/src/main/java/com/dy/pmsGlobal/pojoPr/PrOrderItem.java b/pms-parent/pms-global/src/main/java/com/dy/pmsGlobal/pojoPr/PrOrderItem.java index ac53bae..e1ef75a 100644 --- a/pms-parent/pms-global/src/main/java/com/dy/pmsGlobal/pojoPr/PrOrderItem.java +++ b/pms-parent/pms-global/src/main/java/com/dy/pmsGlobal/pojoPr/PrOrderItem.java @@ -39,6 +39,8 @@ @TableField(exist = false) public String name; + @TableField(exist = false) + public String proType; /** * 鐢熶骇鏁伴噺 diff --git a/pms-parent/pms-global/src/main/java/com/dy/pmsGlobal/pojoPr/PrProductionProcess.java b/pms-parent/pms-global/src/main/java/com/dy/pmsGlobal/pojoPr/PrProductionProcess.java index 30dc559..8e49472 100644 --- a/pms-parent/pms-global/src/main/java/com/dy/pmsGlobal/pojoPr/PrProductionProcess.java +++ b/pms-parent/pms-global/src/main/java/com/dy/pmsGlobal/pojoPr/PrProductionProcess.java @@ -45,6 +45,11 @@ */ @TableField(exist = false) public String proName; + /** + * 浜у搧绫诲瀷 + */ + @TableField(exist = false) + public String proType; /** * 鍚嶇О diff --git a/pms-parent/pms-global/src/main/resources/mapper/PrAssemblyPlanMapper.xml b/pms-parent/pms-global/src/main/resources/mapper/PrAssemblyPlanMapper.xml index 6531127..bca0a78 100644 --- a/pms-parent/pms-global/src/main/resources/mapper/PrAssemblyPlanMapper.xml +++ b/pms-parent/pms-global/src/main/resources/mapper/PrAssemblyPlanMapper.xml @@ -23,6 +23,8 @@ <result property="outputNumber" column="output_number" jdbcType="INTEGER"/> <association property="proName" column="pro_id" javaType="java.lang.Long" select="com.dy.pmsGlobal.daoPlt.PltProductMapper.selectProNameById" fetchType="eager"/> + <association property="proType" column="pro_id" javaType="java.lang.Long" + select="com.dy.pmsGlobal.daoPlt.PltProductMapper.selectProTypeById" fetchType="eager" /> <association property="creatorName" column="creator" javaType="java.lang.Long" select="com.dy.pmsGlobal.daoBa.BaUserMapper.selectNameByUserId" fetchType="eager"/> <association property="batchNo" column="batch_id" javaType="java.lang.Long" diff --git a/pms-parent/pms-global/src/main/resources/mapper/PrOrderItemMapper.xml b/pms-parent/pms-global/src/main/resources/mapper/PrOrderItemMapper.xml index d473442..f55383b 100644 --- a/pms-parent/pms-global/src/main/resources/mapper/PrOrderItemMapper.xml +++ b/pms-parent/pms-global/src/main/resources/mapper/PrOrderItemMapper.xml @@ -5,15 +5,15 @@ <mapper namespace="com.dy.pmsGlobal.daoPr.PrOrderItemMapper"> <resultMap id="BaseResultMap" type="com.dy.pmsGlobal.pojoPr.PrOrderItem"> - <id property="id" column="id" jdbcType="BIGINT"/> - <result property="orderId" column="order_id" jdbcType="BIGINT"/> - <result property="proId" column="pro_id" jdbcType="BIGINT"/> - <result property="number" column="number" jdbcType="INTEGER"/> - <result property="completeNumber" column="complete_number" jdbcType="INTEGER"/> - <result column="deleted" property="deleted" typeHandler="com.dy.common.mybatis.BooleanTypeHandler" /> - <result property="name" column="name" jdbcType="VARCHAR"/> - <!-- <association property="proName" column="pro_id" javaType="java.lang.Long" - select="com.dy.pmsGlobal.daoPlt.PltProductMapper.selectProNameById" fetchType="eager"/>--> + <id property="id" column="id" jdbcType="BIGINT"/> + <result property="orderId" column="order_id" jdbcType="BIGINT"/> + <result property="proId" column="pro_id" jdbcType="BIGINT"/> + <result property="number" column="number" jdbcType="INTEGER"/> + <result property="completeNumber" column="complete_number" jdbcType="INTEGER"/> + <result column="deleted" property="deleted" typeHandler="com.dy.common.mybatis.BooleanTypeHandler" /> + <result property="name" column="name" jdbcType="VARCHAR"/> + <association property="proType" column="pro_id" javaType="java.lang.Long" + select="com.dy.pmsGlobal.daoPlt.PltProductMapper.selectProTypeById" fetchType="eager" /> </resultMap> <sql id="Base_Column_List"> diff --git a/pms-parent/pms-global/src/main/resources/mapper/PrProductionProcessMapper.xml b/pms-parent/pms-global/src/main/resources/mapper/PrProductionProcessMapper.xml index 8d74700..08e0e9d 100644 --- a/pms-parent/pms-global/src/main/resources/mapper/PrProductionProcessMapper.xml +++ b/pms-parent/pms-global/src/main/resources/mapper/PrProductionProcessMapper.xml @@ -15,6 +15,8 @@ <result property="remark" column="remark" jdbcType="VARCHAR"/> <association property="proName" column="pro_id" javaType="java.lang.Long" select="com.dy.pmsGlobal.daoPlt.PltProductMapper.selectProNameById" fetchType="eager" /> + <association property="proType" column="pro_id" javaType="java.lang.Long" + select="com.dy.pmsGlobal.daoPlt.PltProductMapper.selectProTypeById" fetchType="eager" /> <association property="creatorName" column="creator" javaType="java.lang.Long" select="com.dy.pmsGlobal.daoBa.BaUserMapper.selectNameByUserId" fetchType="eager" /> <association property="isQuote" column="id" javaType="java.lang.Boolean" fetchType="eager" -- Gitblit v1.8.0