src/main/java/com/ruoyi/production/bean/vo/ProductionOrderRoutingOperationVo.java
@@ -23,4 +23,10 @@ @Schema(description = "基础工序ID") private Long productionOrderRoutingOperationId; @Schema(description = "计划人员姓名") private String planPersonName; @Schema(description = "计划执行人员姓名") private String executorName; } src/main/java/com/ruoyi/production/pojo/ProductionOrderRoutingOperation.java
@@ -70,4 +70,10 @@ @Schema(description = "类型 区分计时和计件,0计时,1计件") private Integer type; @Schema(description = "计划人员ID") private Long planPerson; @Schema(description = "计划执行人员ID") private Long executor; } src/main/java/com/ruoyi/technology/bean/vo/TechnologyRoutingOperationVo.java
@@ -24,4 +24,10 @@ @Schema(description = "单位") private String unit; @Schema(description = "计划人员姓名") private String planPersonName; @Schema(description = "计划执行人员姓名") private String executorName; } src/main/java/com/ruoyi/technology/pojo/TechnologyRoutingOperation.java
@@ -61,4 +61,10 @@ @Schema(description = "类型 区分计时和计件,0计时,1计件") private Integer type; @Schema(description = "计划人员ID") private Long planPerson; @Schema(description = "计划执行人员ID") private Long executor; } src/main/resources/mapper/production/ProductionOrderRoutingOperationMapper.xml
@@ -14,6 +14,8 @@ <result column="drag_sort" property="dragSort" /> <result column="is_quality" property="isQuality" /> <result column="type" property="type" /> <result column="plan_person" property="planPerson" /> <result column="executor" property="executor" /> <result column="create_user" property="createUser" /> <result column="dept_id" property="deptId" /> </resultMap> @@ -24,6 +26,8 @@ <result column="productName" property="productName" /> <result column="model" property="model" /> <result column="unit" property="unit" /> <result column="planPersonName" property="planPersonName" /> <result column="executorName" property="executorName" /> </resultMap> <select id="selectVoListByOrderId" resultMap="OperationVoResultMap"> @@ -33,11 +37,15 @@ too.id AS technologyOperationId, p.product_name AS productName, pm.model AS model, pm.unit AS unit pm.unit AS unit, sp.staff_name AS planPersonName, se.staff_name AS executorName FROM production_order_routing_operation poro LEFT JOIN technology_operation too ON poro.technology_operation_id = too.id LEFT JOIN product_model pm ON poro.product_model_id = pm.id LEFT JOIN product p ON pm.product_id = p.id LEFT JOIN staff_on_job sp ON poro.plan_person = sp.id LEFT JOIN staff_on_job se ON poro.executor = se.id WHERE poro.production_order_id = #{orderId} ORDER BY poro.drag_sort ASC, poro.id ASC </select> src/main/resources/mapper/technology/TechnologyRoutingOperationMapper.xml
@@ -13,6 +13,8 @@ <result column="drag_sort" property="dragSort" /> <result column="is_quality" property="isQuality" /> <result column="type" property="type" /> <result column="plan_person" property="planPerson" /> <result column="executor" property="executor" /> <result column="create_user" property="createUser" /> <result column="dept_id" property="deptId" /> </resultMap> @@ -23,11 +25,15 @@ p.product_name as productName, pm.model, pm.model as specificationName, pm.unit pm.unit, sp.staff_name as planPersonName, se.staff_name as executorName from technology_routing_operation tro left join technology_operation top2 on tro.technology_operation_id = top2.id left join product_model pm on tro.product_model_id = pm.id left join product p on pm.product_id = p.id left join staff_on_job sp on tro.plan_person = sp.id left join staff_on_job se on tro.executor = se.id <where> <if test="c != null"> <if test="c.id != null"> @@ -59,11 +65,15 @@ p.product_name as productName, pm.model, pm.model as specificationName, pm.unit pm.unit, sp.staff_name as planPersonName, se.staff_name as executorName from technology_routing_operation tro left join technology_operation top2 on tro.technology_operation_id = top2.id left join product_model pm on tro.product_model_id = pm.id left join product p on pm.product_id = p.id left join staff_on_job sp on tro.plan_person = sp.id left join staff_on_job se on tro.executor = se.id <where> <if test="c != null"> <if test="c.id != null"> @@ -95,11 +105,15 @@ p.product_name as productName, pm.model, pm.model as specificationName, pm.unit pm.unit, sp.staff_name as planPersonName, se.staff_name as executorName from technology_routing_operation tro left join technology_operation top2 on tro.technology_operation_id = top2.id left join product_model pm on tro.product_model_id = pm.id left join product p on pm.product_id = p.id left join staff_on_job sp on tro.plan_person = sp.id left join staff_on_job se on tro.executor = se.id where tro.id = #{id} limit 1 </select>