Przeglądaj źródła

fix: xml文件调整

shc 3 lat temu
rodzic
commit
0f697cb450

+ 10 - 10
hnqz-upms/hnqz-upms-biz/src/main/resources/mapper/SysDeptSubMapper.xml

@@ -20,16 +20,16 @@
 		t.id_card_number,
 		sum(t.settle_amount) AS totalAmount
 		FROM wm_score_package_settle_note t
-		WHERE t.subject_location = #{query.subjectLocation, jdbcType=VARCHAR}
+		WHERE t.subject_location = #{query.location, jdbcType=VARCHAR}
 		AND t.create_time > #{query.startTime,jdbcType=TIMESTAMP}
 		AND t.create_time < #{query.endTime,jdbcType=TIMESTAMP}
 		AND t.id_card_number IN
-		<foreach item="item" index="index" collection="query.idCard" open="(" separator="," close=")">
+		<foreach item="item" index="index" collection="query.idCards" open="(" separator="," close=")">
 			#{item}
 		</foreach>
-		<if test="query.ids != null and query.ids.size()>0">
+		<if test="query.settleNoteIds != null and query.settleNoteIds.size()>0">
 			AND t.id NOT IN
-			<foreach item="item" index="index" collection="query.ids" open="(" separator="," close=")">
+			<foreach item="item" index="index" collection="query.settleNoteIds" open="(" separator="," close=")">
 				#{item}
 			</foreach>
 		</if>
@@ -41,16 +41,16 @@
 		t.user_id,
 		sum(t.settle_amount) AS totalAmount
 		FROM wm_score_package_settle_note t
-		WHERE t.subject_location = #{query.subjectLocation, jdbcType=VARCHAR}
+		WHERE t.subject_location = #{query.location, jdbcType=VARCHAR}
 		AND t.create_time &gt; #{query.startTime,jdbcType=TIMESTAMP}
 		AND t.create_time &lt; #{query.endTime,jdbcType=TIMESTAMP}
 		AND t.user_id IN
 		<foreach item="item" index="index" collection="query.userIds" open="(" separator="," close=")">
 			#{item}
 		</foreach>
-		<if test="query.ids != null and query.ids.size()>0">
+		<if test="query.settleNoteIds != null and query.settleNoteIds.size()>0">
 			AND t.id NOT IN
-			<foreach item="item" index="index" collection="query.ids" open="(" separator="," close=")">
+			<foreach item="item" index="index" collection="query.settleNoteIds" open="(" separator="," close=")">
 				#{item}
 			</foreach>
 		</if>
@@ -64,12 +64,12 @@
 		WHERE t.create_time &gt; #{query.startTime,jdbcType=TIMESTAMP}
 		AND t.create_time &lt; #{query.endTime,jdbcType=TIMESTAMP}
 		AND t.id_card_number IN
-		<foreach item="item" index="index" collection="query.idCard" open="(" separator="," close=")">
+		<foreach item="item" index="index" collection="query.idCards" open="(" separator="," close=")">
 			#{item}
 		</foreach>
-		<if test="query.ids != null and query.ids.size()>0">
+		<if test="query.settleNoteIds != null and query.settleNoteIds.size()>0">
 			AND t.id NOT IN
-			<foreach item="item" index="index" collection="query.ids" open="(" separator="," close=")">
+			<foreach item="item" index="index" collection="query.settleNoteIds" open="(" separator="," close=")">
 				#{item}
 			</foreach>
 		</if>