Преглед изворни кода

fix:结算单全部查询条件修改

CAYK\miaosen.zhao пре 5 месеци
родитељ
комит
0dedbfd2e3
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      src/main/resources/mapper/settlement/SettlementBasicInfoMapper.xml

+ 1 - 1
src/main/resources/mapper/settlement/SettlementBasicInfoMapper.xml

@@ -140,7 +140,7 @@
                 </foreach>
             </if>
             <if test="businessNo != null and businessNo != ''">
-                AND t2.business_number = #{businessNo}
+                AND (t2.settlement_number LIKE concat('%',#{businessNo},'%') or t2.business_number LIKE concat('%',#{businessNo},'%'))
             </if>
             <if test="startDate != null">
                 <![CDATA[ AND DATE_FORMAT(t2.settlement_date, '%Y-%m-%d')>=  DATE_FORMAT(#{startDate}, '%Y-%m-%d') ]]>