fix: 局端税编查询问题修复

release
liufeilong 2 years ago
parent 8c7187bbbf
commit b60387f672
  1. 4
      order-management-base-service/src/main/resources/mybatis/mapper/TaxClassCodeMapper.xml

@ -102,7 +102,7 @@
</if> </if>
</if> </if>
<if test="parameter != null and parameter != ''"> <if test="parameter != null and parameter != ''">
<if test="dataType == 0 and type == '' and type == null"> <if test="dataType == 0 and (type == null or type == '')">
AND concat_ws(',',tcc.spbm,tcc.spmc,tcc.spjc,tcc.zzstsgl) LIKE AND concat_ws(',',tcc.spbm,tcc.spmc,tcc.spjc,tcc.zzstsgl) LIKE
CONCAT(CONCAT('%',#{parameter}),'%') CONCAT(CONCAT('%',#{parameter}),'%')
</if> </if>
@ -111,7 +111,7 @@
CONCAT(CONCAT('%',#{parameter}),'%') CONCAT(CONCAT('%',#{parameter}),'%')
</if> </if>
<if test="dataType == 0 and type != '' and type != null"> <if test="dataType == 0 and (type != null and type != '')">
AND concat_ws(',',tcc.spbm,tcc.spmc,tcc.spjc,tcc.zzstsgl,tcc.sm) AND concat_ws(',',tcc.spbm,tcc.spmc,tcc.spjc,tcc.zzstsgl,tcc.sm)
LIKE CONCAT(CONCAT('%',#{parameter}),'%') LIKE CONCAT(CONCAT('%',#{parameter}),'%')
</if> </if>

Loading…
Cancel
Save