浏览代码

发票参数模糊查询

wangli 4 年之前
父节点
当前提交
616c7bdb4f
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      smart-city-platform/src/main/resources/mapper/pay/PayInvoiceParamMapper.xml

+ 1 - 1
smart-city-platform/src/main/resources/mapper/pay/PayInvoiceParamMapper.xml

@@ -42,7 +42,7 @@
         inner join pay_sys_dict dict on dict.type='收费类型' and dict.site_id=#{siteId} and dict.customer_id=#{customerId} and dict.value=param.feetype
         where param.del_flag='0' and param.site_id=#{siteId} and param.customer_id=#{customerId}
         <if test="queryparam != null">
-           and  (dict.label = #{queryparam} or param.goodstaxno = #{queryparam})
+           and  (dict.label like concat('%',#{queryparam},'%') or param.goodstaxno like concat('%',#{queryparam},'%'))
         </if>
 
         order by param.feetype