|
|
@ -15,13 +15,18 @@ |
|
|
from DC_partListDetail pd |
|
|
from DC_partListDetail pd |
|
|
left join DC_ItemDef d on pd.site = d.site and pd.item_no = d.item_no |
|
|
left join DC_ItemDef d on pd.site = d.site and pd.item_no = d.item_no |
|
|
<where> |
|
|
<where> |
|
|
<if test="site != null and site != ''"> |
|
|
|
|
|
and pd.site = #{site} |
|
|
|
|
|
|
|
|
<if test="exactFlag == null or exactFlag != 'Y'.toString()"> |
|
|
|
|
|
<if test="site != null and site != ''"> |
|
|
|
|
|
and pd.site = #{site} |
|
|
|
|
|
</if> |
|
|
</if> |
|
|
</if> |
|
|
<if test="drawingNo != null and drawingNo != ''"> |
|
|
<if test="drawingNo != null and drawingNo != ''"> |
|
|
and drawing_no = #{drawingNo} |
|
|
|
|
|
|
|
|
and pd.drawing_no = #{drawingNo} |
|
|
</if> |
|
|
</if> |
|
|
</where> |
|
|
</where> |
|
|
|
|
|
<if test="exactFlag != null and exactFlag == 'Y'.toString()"> |
|
|
|
|
|
order by pd.site, pd.item_no |
|
|
|
|
|
</if> |
|
|
</select> |
|
|
</select> |
|
|
|
|
|
|
|
|
<select id="queryErpPart" resultType="com.spring.modules.part.entity.MasterPartInformationEntity"> |
|
|
<select id="queryErpPart" resultType="com.spring.modules.part.entity.MasterPartInformationEntity"> |
|
|
@ -45,11 +50,20 @@ |
|
|
from DC_PartList p |
|
|
from DC_PartList p |
|
|
left join part_catalog pc on p.erp_part_no = pc.part_no |
|
|
left join part_catalog pc on p.erp_part_no = pc.part_no |
|
|
<where> |
|
|
<where> |
|
|
<if test="site != null and site != ''"> |
|
|
|
|
|
and p.site = #{site} |
|
|
|
|
|
|
|
|
<if test="exactFlag == null or exactFlag != 'Y'.toString()"> |
|
|
|
|
|
<if test="site != null and site != ''"> |
|
|
|
|
|
and p.site = #{site} |
|
|
|
|
|
</if> |
|
|
</if> |
|
|
</if> |
|
|
<if test="drawingNo != null and drawingNo != ''"> |
|
|
<if test="drawingNo != null and drawingNo != ''"> |
|
|
and p.drawing_no like #{drawingNo} |
|
|
|
|
|
|
|
|
<choose> |
|
|
|
|
|
<when test="exactFlag != null and exactFlag == 'Y'.toString()"> |
|
|
|
|
|
and p.drawing_no = #{drawingNo} |
|
|
|
|
|
</when> |
|
|
|
|
|
<otherwise> |
|
|
|
|
|
and p.drawing_no like #{drawingNo} |
|
|
|
|
|
</otherwise> |
|
|
|
|
|
</choose> |
|
|
</if> |
|
|
</if> |
|
|
<if test="drawingDesc != null and drawingDesc != ''"> |
|
|
<if test="drawingDesc != null and drawingDesc != ''"> |
|
|
and p.drawing_desc like #{drawingDesc} |
|
|
and p.drawing_desc like #{drawingDesc} |
|
|
@ -73,6 +87,9 @@ |
|
|
and p.creator like #{creator} |
|
|
and p.creator like #{creator} |
|
|
</if> |
|
|
</if> |
|
|
</where> |
|
|
</where> |
|
|
|
|
|
<if test="exactFlag != null and exactFlag == 'Y'.toString()"> |
|
|
|
|
|
order by p.site, p.create_date |
|
|
|
|
|
</if> |
|
|
</select> |
|
|
</select> |
|
|
|
|
|
|
|
|
<select id="countGeneratedDrawingNo" resultType="int"> |
|
|
<select id="countGeneratedDrawingNo" resultType="int"> |
|
|
|