dingxin 6 년 전
부모
커밋
f2ef9157bf
1개의 변경된 파일4개의 추가작업 그리고 4개의 파일을 삭제
  1. 4
    4
      CODE/smart-community/property-api/src/main/resources/mapper/BillStatementMapper.xml

+ 4
- 4
CODE/smart-community/property-api/src/main/resources/mapper/BillStatementMapper.xml 파일 보기

@@ -14,19 +14,19 @@
14 14
         <where>
15 15
             <trim prefixOverrides="and | or">
16 16
                 <if test="map.id != null">
17
-                    and tbs.id = #{map.id}
17
+                    and tbs.id like CONCAT('%',#{map.id},'%')
18 18
                 </if>
19 19
                 <if test="map.billId != null">
20
-                    and tb.id = #{map.billId}
20
+                    and tb.id like CONCAT('%',#{map.billId},'%')
21 21
                 </if>
22 22
                 <if test="map.billName != null and map.billName != ''">
23 23
                     and tb.bill_name like CONCAT('%',#{map.billName},'%')
24 24
                 </if>
25 25
                 <if test="map.billInvoiceId != null">
26
-                    and tbs.bill_invoice_id = #{map.billInvoiceId}
26
+                    and tbs.bill_invoice_id like CONCAT('%',#{map.billInvoiceId},'%')
27 27
                 </if>
28 28
                 <if test="map.payName != null and map.payName != ''">
29
-                    and tbs.pay_name like CONCAT('%', #{map.payName}, '%')
29
+                    and tbs.pay_name like CONCAT('%', #{map.payName},'%')
30 30
                 </if>
31 31
                 <if test="map.communityId != null">
32 32
                     and tbs.community_id = #{map.communityId}