|
|
@ -1998,25 +1998,29 @@ |
|
|
</update> |
|
|
</update> |
|
|
|
|
|
|
|
|
<select id="queryPartByPartNo" resultType="com.spring.modules.part.entity.PartInformationEntity"> |
|
|
<select id="queryPartByPartNo" resultType="com.spring.modules.part.entity.PartInformationEntity"> |
|
|
select |
|
|
|
|
|
site, |
|
|
|
|
|
part_no, |
|
|
|
|
|
part_desc, |
|
|
|
|
|
spec, |
|
|
|
|
|
part_type_db, |
|
|
|
|
|
dbo.get_part_unitCost(site, part_no) as standardCost, |
|
|
|
|
|
status, |
|
|
|
|
|
um_id |
|
|
|
|
|
from part |
|
|
|
|
|
|
|
|
select p.site, |
|
|
|
|
|
p.part_no, |
|
|
|
|
|
p.part_desc, |
|
|
|
|
|
p.spec, |
|
|
|
|
|
p.part_type_db, |
|
|
|
|
|
dbo.get_part_unitCost(p.site, p.part_no) as standardCost, |
|
|
|
|
|
p.status, |
|
|
|
|
|
p.um_id, |
|
|
|
|
|
p.ifs_part_no, |
|
|
|
|
|
p.configuration_id |
|
|
|
|
|
from part p |
|
|
where active = 'Y' |
|
|
where active = 'Y' |
|
|
<if test="params.site != null and params.site != ''"> |
|
|
<if test="params.site != null and params.site != ''"> |
|
|
and site = #{params.site} |
|
|
|
|
|
|
|
|
and p.site = #{params.site} |
|
|
</if> |
|
|
</if> |
|
|
<if test="params.partNo != null and params.partNo != ''"> |
|
|
<if test="params.partNo != null and params.partNo != ''"> |
|
|
and part_no like #{params.partNo} |
|
|
|
|
|
|
|
|
and p.part_no like #{params.partNo} |
|
|
</if> |
|
|
</if> |
|
|
<if test="params.partDesc != null and params.partDesc != ''"> |
|
|
<if test="params.partDesc != null and params.partDesc != ''"> |
|
|
and part_desc like #{params.partDesc} |
|
|
|
|
|
|
|
|
and p.part_desc like #{params.partDesc} |
|
|
|
|
|
</if> |
|
|
|
|
|
<if test="params.ifsPartNo != null and params.ifsPartNo != ''"> |
|
|
|
|
|
and p.ifs_part_no like #{params.ifsPartNo} |
|
|
</if> |
|
|
</if> |
|
|
</select> |
|
|
</select> |
|
|
|
|
|
|
|
|
|