Browse Source

2023-08-02

master
杨奉源 2 years ago
parent
commit
0a3132d86c
  1. 2
      src/main/resources/mapper/pda/ToolDetailMapper.xml
  2. 25
      src/main/resources/mapper/pda/ToolTransDetailMapper.xml

2
src/main/resources/mapper/pda/ToolDetailMapper.xml

@ -533,7 +533,7 @@
tool_id, tool_id,
tool_instance_id, tool_instance_id,
est_use_qty, est_use_qty,
actual_use_qty,
isnull(actual_use_qty,0) as actualUseQty,
add_use_qty, add_use_qty,
prop, prop,
create_by, create_by,

25
src/main/resources/mapper/pda/ToolTransDetailMapper.xml

@ -280,11 +280,8 @@
and trd.trans_no like #{query.typeFlag} + '%' and trd.trans_no like #{query.typeFlag} + '%'
</otherwise> </otherwise>
</choose> </choose>
<if test = "query.toolId != null and query.toolId != ''">
AND td.tool_id LIKE '%' + #{query.toolId}+'%'
</if>
<if test = "query.toolInstanceId != null and query.toolInstanceId != ''"> <if test = "query.toolInstanceId != null and query.toolInstanceId != ''">
AND trd.tool_instance_id LIKE '%' + #{query.toolInstanceId}+'%'
AND trd.tool_instance_id = #{query.toolInstanceId}
</if> </if>
<if test = "query.locationId != null and query.locationId != ''"> <if test = "query.locationId != null and query.locationId != ''">
AND trd.location_id LIKE '%' + #{query.locationId}+'%' AND trd.location_id LIKE '%' + #{query.locationId}+'%'
@ -325,11 +322,8 @@
and trd.trans_no like #{query.typeFlag} + '%' and trd.trans_no like #{query.typeFlag} + '%'
</otherwise> </otherwise>
</choose> </choose>
<if test = "query.toolId != null and query.toolId != ''">
AND td.tool_id LIKE '%' + #{query.toolId}+'%'
</if>
<if test = "query.toolInstanceId != null and query.toolInstanceId != ''"> <if test = "query.toolInstanceId != null and query.toolInstanceId != ''">
AND trd.tool_instance_id LIKE '%' + #{query.toolInstanceId}+'%'
AND trd.tool_instance_id = #{query.toolInstanceId}
</if> </if>
<if test = "query.locationId != null and query.locationId != ''"> <if test = "query.locationId != null and query.locationId != ''">
AND trd.locationId LIKE '%' + #{query.locationId}+'%' AND trd.locationId LIKE '%' + #{query.locationId}+'%'
@ -369,11 +363,8 @@
and trd.trans_no like #{query.typeFlag} + '%' and trd.trans_no like #{query.typeFlag} + '%'
</otherwise> </otherwise>
</choose> </choose>
<if test = "query.toolId != null and query.toolId != ''">
AND td.tool_id LIKE '%' + #{query.toolId}+'%'
</if>
<if test = "query.toolInstanceId != null and query.toolInstanceId != ''"> <if test = "query.toolInstanceId != null and query.toolInstanceId != ''">
AND trd.tool_instance_id LIKE '%' + #{query.toolInstanceId}+'%'
AND trd.tool_instance_id = #{query.toolInstanceId}
</if> </if>
<if test = "query.locationId != null and query.locationId != ''"> <if test = "query.locationId != null and query.locationId != ''">
AND trd.locationId LIKE '%' + #{query.locationId}+'%' AND trd.locationId LIKE '%' + #{query.locationId}+'%'
@ -414,11 +405,8 @@
and trd.trans_no like #{query.typeFlag} + '%' and trd.trans_no like #{query.typeFlag} + '%'
</otherwise> </otherwise>
</choose> </choose>
<if test = "query.toolId != null and query.toolId != ''">
AND td.tool_id LIKE '%' + #{query.toolId}+'%'
</if>
<if test = "query.toolInstanceId != null and query.toolInstanceId != ''"> <if test = "query.toolInstanceId != null and query.toolInstanceId != ''">
AND trd.tool_instance_id LIKE '%' + #{query.toolInstanceId}+'%'
AND trd.tool_instance_id = #{query.toolInstanceId}
</if> </if>
<if test = "query.locationId != null and query.locationId != ''"> <if test = "query.locationId != null and query.locationId != ''">
AND trd.locationId LIKE '%' + #{query.locationId}+'%' AND trd.locationId LIKE '%' + #{query.locationId}+'%'
@ -459,11 +447,8 @@
and trd.trans_no like #{query.typeFlag} + '%' and trd.trans_no like #{query.typeFlag} + '%'
</otherwise> </otherwise>
</choose> </choose>
<if test = "query.toolId != null and query.toolId != ''">
AND td.tool_id LIKE '%' + #{query.toolId}+'%'
</if>
<if test = "query.toolInstanceId != null and query.toolInstanceId != ''"> <if test = "query.toolInstanceId != null and query.toolInstanceId != ''">
AND trd.tool_instance_id LIKE '%' + #{query.toolInstanceId}+'%'
AND trd.tool_instance_id = #{query.toolInstanceId}
</if> </if>
<if test = "query.locationId != null and query.locationId != ''"> <if test = "query.locationId != null and query.locationId != ''">
AND trd.location_id LIKE '%' + #{query.locationId}+'%' AND trd.location_id LIKE '%' + #{query.locationId}+'%'

Loading…
Cancel
Save