Browse Source

项目物料功能:增加 '是否存在打料记录'查询条件

java8
赵宏斌 2 weeks ago
parent
commit
de955809ab
  1. 3
      src/main/java/com/xujie/sys/modules/pms/data/EamProjectPartInfoData.java
  2. 12
      src/main/resources/mapper/pms/EamProjectMapper.xml

3
src/main/java/com/xujie/sys/modules/pms/data/EamProjectPartInfoData.java

@ -153,6 +153,9 @@ public class EamProjectPartInfoData extends EamProjectInfoData{
@TableField(exist = false)
private String partNo;
@TableField(exist = false)
private String feedingFlag;
@DateTimeFormat(pattern = "yyyy-MM-dd")
@JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
@TableField(exist = false)

12
src/main/resources/mapper/pms/EamProjectMapper.xml

@ -430,6 +430,18 @@
)
)
</if>
<if test="query.feedingFlag != null and query.feedingFlag == 1 ">
and (
select count(*) from plm_proofing_information ppi
where ppi.project_id = a.project_id and ppi.test_part_id = a.id
) > 0
</if>
<if test="query.feedingFlag != null and query.feedingFlag == 2 ">
and (
select count(*) from plm_proofing_information ppi
where ppi.project_id = a.project_id and ppi.test_part_id = a.id
) = 0
</if>
<if test="query.projectNo != null and query.projectNo != ''">
AND
(b.project_no = #{query.projectNo} OR b.project_no IN (SELECT Value FROM CKT_MES_II_REAL.dbo.SplitString(#{query.projectNo}, ',')))

Loading…
Cancel
Save