Browse Source

新增库存台账模糊查询

zhongwei
tyty 1 year ago
parent
commit
ecb961a2dc
  1. 2
      hzims-service/assets/src/main/java/com/hnac/hzims/spare/mapper/SpAllocationMapper.xml
  2. 2
      hzims-service/assets/src/main/java/com/hnac/hzims/spare/mapper/SpWarehouseInMapper.xml
  3. 2
      hzims-service/assets/src/main/java/com/hnac/hzims/spare/mapper/SpWarehouseOutMapper.xml

2
hzims-service/assets/src/main/java/com/hnac/hzims/spare/mapper/SpAllocationMapper.xml

@ -46,7 +46,7 @@
wt_sp_allocation wa wt_sp_allocation wa
JOIN wt_sp_warehouse sw ON wa.OUT_WAREHOUSE_ID = sw.id JOIN wt_sp_warehouse sw ON wa.OUT_WAREHOUSE_ID = sw.id
<if test="params.code!=null and params.code!=''"> <if test="params.code!=null and params.code!=''">
and wa.code = #{params.code} and wa.code like concat('%',#{params.code},'%')
</if> </if>
<if test="params.status!=null"> <if test="params.status!=null">
and wa.status = #{params.status} and wa.status = #{params.status}

2
hzims-service/assets/src/main/java/com/hnac/hzims/spare/mapper/SpWarehouseInMapper.xml

@ -47,7 +47,7 @@
wt_sp_warehouse_in wi wt_sp_warehouse_in wi
JOIN wt_sp_warehouse sw ON wi.STORAGE_ROOM = sw.id JOIN wt_sp_warehouse sw ON wi.STORAGE_ROOM = sw.id
<if test="params.code!=null and params.code!=''"> <if test="params.code!=null and params.code!=''">
and wi.code = #{params.code} and wi.code like concat('%',#{params.code},'%')
</if> </if>
<if test="params.type!=null"> <if test="params.type!=null">
and wi.type = #{params.type} and wi.type = #{params.type}

2
hzims-service/assets/src/main/java/com/hnac/hzims/spare/mapper/SpWarehouseOutMapper.xml

@ -47,7 +47,7 @@
wt_sp_warehouse_out wo wt_sp_warehouse_out wo
JOIN wt_sp_warehouse sw ON wo.STORAGE_ROOM = sw.id JOIN wt_sp_warehouse sw ON wo.STORAGE_ROOM = sw.id
<if test="params.code!=null and params.code!=''"> <if test="params.code!=null and params.code!=''">
and wo.code = #{params.code} and wo.code like concat('%',#{params.code},'%')
</if> </if>
<if test="params.type!=null"> <if test="params.type!=null">
and wo.type = #{params.type} and wo.type = #{params.type}

Loading…
Cancel
Save