|
|
|
@ -21,15 +21,15 @@ |
|
|
|
ItemType |
|
|
|
FROM plm_properties_item |
|
|
|
<where> |
|
|
|
site = #{site} |
|
|
|
<if test="itemType != null and itemType != ''"> |
|
|
|
and ItemType = #{itemType} |
|
|
|
site = #{query.site} |
|
|
|
<if test="query.itemType != null and query.itemType != ''"> |
|
|
|
and ItemType = #{query.itemType} |
|
|
|
</if> |
|
|
|
<if test="itemNo != null and itemNo != ''"> |
|
|
|
AND ItemNo LIKE '%' + #{itemNo}+'%' |
|
|
|
<if test="query.itemNo != null and query.itemNo != ''"> |
|
|
|
AND ItemNo LIKE '%' + #{query.itemNo}+'%' |
|
|
|
</if> |
|
|
|
<if test="itemDesc != null and itemDesc != ''"> |
|
|
|
AND ItemDesc LIKE '%' + #{itemDesc}+'%' |
|
|
|
<if test="query.itemDesc != null and query.itemDesc != ''"> |
|
|
|
AND ItemDesc LIKE '%' + #{query.itemDesc}+'%' |
|
|
|
</if> |
|
|
|
</where> |
|
|
|
order by ItemType ,ItemNo |
|
|
|
@ -339,27 +339,27 @@ |
|
|
|
version,edit_flag,properties_code_no,dbo.get_properties_codeDesc(site,function_type,properties_code_no) properties_code_desc |
|
|
|
FROM plm_bm_model_header |
|
|
|
<where> |
|
|
|
site = #{site} |
|
|
|
<if test="codeNo != null and codeNo != ''"> |
|
|
|
AND code_no like '%' + #{codeNo} +'%' |
|
|
|
site = #{query.site} |
|
|
|
<if test="query.codeNo != null and query.codeNo != ''"> |
|
|
|
AND code_no like '%' + #{query.codeNo} +'%' |
|
|
|
</if> |
|
|
|
<if test="codeDesc != null and codeDesc != ''"> |
|
|
|
AND code_desc like '%' + #{codeDesc} +'%' |
|
|
|
<if test="query.codeDesc != null and query.codeDesc != ''"> |
|
|
|
AND code_desc like '%' + #{query.codeDesc} +'%' |
|
|
|
</if> |
|
|
|
<if test="active != null and active != ''"> |
|
|
|
AND active = #{active} |
|
|
|
<if test="query.active != null and query.active != ''"> |
|
|
|
AND active = #{query.active} |
|
|
|
</if> |
|
|
|
<if test="buNo != null and buNo != ''"> |
|
|
|
AND bu_no = #{buNo} |
|
|
|
<if test="query.buNo != null and query.buNo != ''"> |
|
|
|
AND bu_no = #{query.buNo} |
|
|
|
</if> |
|
|
|
<if test="functionType != null and functionType != ''"> |
|
|
|
and function_type = #{functionType} |
|
|
|
<if test="query.functionType != null and query.functionType != ''"> |
|
|
|
and function_type = #{query.functionType} |
|
|
|
</if> |
|
|
|
<if test="editFlag != null and editFlag != ''"> |
|
|
|
and edit_flag = #{editFlag} |
|
|
|
<if test="query.editFlag != null and query.editFlag != ''"> |
|
|
|
and edit_flag = #{query.editFlag} |
|
|
|
</if> |
|
|
|
<if test="username != null and username != '' and username != 'admin'"> |
|
|
|
AND bu_no in ( select bu_no from AccessBu where site=#{site} and username=#{username} ) |
|
|
|
<if test="query.username != null and query.username != '' and query.username != 'admin'"> |
|
|
|
AND bu_no in ( select bu_no from AccessBu where site=#{query.site} and username=#{query.username} ) |
|
|
|
</if> |
|
|
|
</where> |
|
|
|
order by bu_no,order_id |
|
|
|
|