Qchen před 2 roky
rodič
revize
d0903a2959

+ 3 - 3
src/main/resources/mapper/modules/inv/InvSourceMapper.xml

@@ -172,7 +172,7 @@
             and a.insurance_clearing_state = #{param.insuranceClearingState}
         </if>
         <if test="param.insuredName != null and param.insuredName != ''">
-            and a.insured_name = #{insuredName}
+            and a.insured_name = #{param.insuredName}
         </if>
         <if test="param.revenueTimeStartTime != null and param.revenueTimeStartTime != ''">
             and a.revenue_time <![CDATA[ >= ]]> CAST(CONCAT(#{param.revenueTimeStartTime},' 00:00:00') AS datetime)
@@ -181,10 +181,10 @@
             and a.revenue_time <![CDATA[ <= ]]> CAST(CONCAT(#{param.revenueTimeEndTime},' 23:59:59') AS datetime)
         </if>
         <if test="param.revenueName != null and param.revenueName != ''">
-            and a.revenue_name = #{revenueName}
+            and a.revenue_name = #{param.revenueName}
         </if>
         <if test="param.invSourceType != null and param.invSourceType != ''">
-            and a.inv_source_type = #{invSourceType}
+            and a.inv_source_type = #{param.invSourceType}
         </if>
 
     </select>