소스 검색

发票参数模糊查询

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