|
|
@ -100,7 +100,7 @@ |
|
|
update_by, |
|
|
update_by, |
|
|
plm_part_no, |
|
|
plm_part_no, |
|
|
ifs_part_no, |
|
|
ifs_part_no, |
|
|
case when status = 'Y' or (ifs_part_no is not null and ifs_part_no <![CDATA[<>]]> '') then '正式物料' else '临时物料' end as statusDesc |
|
|
|
|
|
|
|
|
case when status = 'Y' then '正式物料' else '临时物料' end as statusDesc |
|
|
FROM part |
|
|
FROM part |
|
|
<where> |
|
|
<where> |
|
|
site = #{query.site} |
|
|
site = #{query.site} |
|
|
@ -125,6 +125,15 @@ |
|
|
<if test="query.endDate != null "> |
|
|
<if test="query.endDate != null "> |
|
|
AND #{query.endDate} >= create_date |
|
|
AND #{query.endDate} >= create_date |
|
|
</if> |
|
|
</if> |
|
|
|
|
|
<if test = 'query.status != null and query.status != "" and query.status == "Y"'> |
|
|
|
|
|
AND status = 'Y' |
|
|
|
|
|
</if> |
|
|
|
|
|
<if test = 'query.status != null and query.status != "" and query.status == "N"'> |
|
|
|
|
|
AND status <![CDATA[<>]]> 'Y' |
|
|
|
|
|
</if> |
|
|
|
|
|
<if test = "query.ifsPartNo != null and query.ifsPartNo != ''"> |
|
|
|
|
|
AND ifs_part_no like #{query.ifsPartNo} |
|
|
|
|
|
</if> |
|
|
</where> |
|
|
</where> |
|
|
</select> |
|
|
</select> |
|
|
|
|
|
|
|
|
|