|
|
|
@ -379,6 +379,37 @@ |
|
|
|
</delete> |
|
|
|
<!-- 查询-物料编码 --> |
|
|
|
<select id="searchPartNoData" resultType="com.gaotao.modules.base.entity.PartData"> |
|
|
|
Select T.PartNo,T.Site,T.PartDescription,T.Spec,T.UMID,T.Active,T.CreateDate,T.Remark,T.ConfigurationTemplateID |
|
|
|
from Part as T |
|
|
|
<where> |
|
|
|
AND T.Site in (Select Site from AccessSite where upper(UserID)=#{user}) |
|
|
|
<if test=" site != null and site != ''"> |
|
|
|
AND T.Site = #{site} |
|
|
|
</if> |
|
|
|
<if test="partNo != null and partNo != ''"> |
|
|
|
AND T.PartNo LIKE #{partNo} |
|
|
|
</if> |
|
|
|
<if test="partDescription != null and partDescription != ''"> |
|
|
|
AND T.PartDescription LIKE #{partDescription} |
|
|
|
</if> |
|
|
|
<if test="spec != null and spec != ''"> |
|
|
|
AND T.Spec LIKE #{spec} |
|
|
|
</if> |
|
|
|
<if test="active != null and active != ''"> |
|
|
|
AND T.Active = #{active} |
|
|
|
</if> |
|
|
|
<if test=" date1 != null "> |
|
|
|
AND T.CreateDate >= #{date1} |
|
|
|
</if> |
|
|
|
<if test=" date2 != null "> |
|
|
|
AND #{date2} >=T.CreateDate |
|
|
|
</if> |
|
|
|
</where> |
|
|
|
|
|
|
|
</select> |
|
|
|
|
|
|
|
|
|
|
|
<select id="searchPartNoDataWithPage" resultType="com.gaotao.modules.base.entity.PartData"> |
|
|
|
Select T.PartNo,T.Site,T.PartDescription,T.Spec,T.UMID,T.Active,T.CreateDate,T.Remark,T.ConfigurationTemplateID |
|
|
|
from Part as T |
|
|
|
<where> |
|
|
|
|