Browse Source

2024-03-19 更新

master
fengyuan_yang 2 years ago
parent
commit
bed69c6cdb
  1. 12
      src/main/java/com/spring/modules/part/entity/OperationEntity.java
  2. 5
      src/main/java/com/spring/modules/part/entity/RoutingAllFieldEntity.java
  3. 34
      src/main/resources/mapper/part/BomManagementMapper.xml
  4. 8
      src/main/resources/mapper/part/RoutingManagementMapper.xml

12
src/main/java/com/spring/modules/part/entity/OperationEntity.java

@ -21,6 +21,10 @@ public class OperationEntity {
* 物料编码 * 物料编码
*/ */
private String partNo; private String partNo;
/**
* 物料名称
*/
private String partDesc;
/** /**
* 工艺版本号 * 工艺版本号
*/ */
@ -33,6 +37,14 @@ public class OperationEntity {
* 替代编码 * 替代编码
*/ */
private String alternativeNo; private String alternativeNo;
/**
* 替代描述
*/
private String alternativeDescription;
/**
* 替代状态
*/
private String status;
/** /**
* 工序编码 * 工序编码
*/ */

5
src/main/java/com/spring/modules/part/entity/RoutingAllFieldEntity.java

@ -213,6 +213,9 @@ public class RoutingAllFieldEntity extends QueryPage {
* 规格型号 * 规格型号
*/ */
private String spec; private String spec;
/**
* 物料类型
*/
private String partType;
} }

34
src/main/resources/mapper/part/BomManagementMapper.xml

@ -295,17 +295,37 @@
<!-- 查bom明细对象 --> <!-- 查bom明细对象 -->
<select id="queryOperationList" parameterType="OperationEntity" resultType="OperationEntity"> <select id="queryOperationList" parameterType="OperationEntity" resultType="OperationEntity">
select select
operation_id,
operation_no,
operation_name
from plm_routing_component
a.site,
a.part_no,
a.routing_revision,
a.routing_type,
a.alternative_no,
b.alternative_description,
b.status,
a.operation_id,
a.operation_no,
a.operation_name
from plm_routing_component as a
left join plm_routing_detail as b on a.site = b.site and a.part_no = b.part_no and a.routing_revision = b.routing_revision and a.routing_type = b.routing_type and a.alternative_no = b.alternative_no
<where> <where>
site = #{site} and part_no = #{partNo}
a.site = #{site} and a.part_no = #{partNo}
<if test = "routingRevision != null and routingRevision != ''">
AND a.routing_revision = #{routingRevision}
</if>
<if test = "routingType != null and routingType != ''">
AND a.routing_type = #{routingType}
</if>
<if test = "alternativeNo != null and alternativeNo != ''">
AND a.alternative_no = #{alternativeNo}
</if>
<if test = "operationNo != null and operationNo != ''">
AND a.operation_no = #{operationNo}
</if>
<if test = "operationName != null and operationName != ''"> <if test = "operationName != null and operationName != ''">
AND operation_name like #{operationName}
AND a.operation_name like #{operationName}
</if> </if>
<if test = "operationId != null and operationId != ''"> <if test = "operationId != null and operationId != ''">
AND operation_id = #{operationId}
AND a.operation_id = #{operationId}
</if> </if>
</where> </where>
</select> </select>

8
src/main/resources/mapper/part/RoutingManagementMapper.xml

@ -40,16 +40,20 @@
part_desc, part_desc,
spec, spec,
um_id as printUnit, um_id as printUnit,
dbo.get_um_name(um_id) as printUnitName
dbo.get_um_name(um_id) as printUnitName,
part_type
FROM part FROM part
<where> <where>
site = #{site} and active = 'Y' site = #{site} and active = 'Y'
<if test = "partNo != null and partNo != ''"> <if test = "partNo != null and partNo != ''">
AND part_no like #{partNo}
AND part_no = #{partNo}
</if> </if>
<if test = "partDesc != null and partDesc != ''"> <if test = "partDesc != null and partDesc != ''">
AND part_desc like #{partDesc} AND part_desc like #{partDesc}
</if> </if>
<if test = "status != null and status != ''">
AND status = #{status}
</if>
</where> </where>
</select> </select>

Loading…
Cancel
Save