|
@@ -9,13 +9,13 @@
|
|
|
</select>
|
|
|
<select id="selectGroupIdsByAccountId" resultType="java.lang.Long">
|
|
|
SELECT group_id FROM `ctop_rule_account_threshold`
|
|
|
- WHERE (batch_no !='' and batch_no is null)
|
|
|
+ WHERE (batch_no !='' and batch_no is not null)
|
|
|
and account_id = #{accountId}
|
|
|
group by group_id
|
|
|
</select>
|
|
|
<select id="selectbatchNosByGroupIdId" resultType="java.lang.String">
|
|
|
SELECT batch_no FROM `ctop_rule_account_threshold`
|
|
|
- WHERE (batch_no !='' and batch_no is null)
|
|
|
+ WHERE (batch_no !='' and batch_no is not null)
|
|
|
and account_id = #{accountId}
|
|
|
and group_id = #{groupId}
|
|
|
GROUP BY batch_no
|
|
@@ -28,10 +28,10 @@
|
|
|
</select>
|
|
|
|
|
|
<select id="getBatchNo" resultType="java.lang.String">
|
|
|
- select batch_no from ctop_rule_account_threshold
|
|
|
+ select batch_no from ctop_rule_account_threshold
|
|
|
where account_id = #{accountId}
|
|
|
and group_id = #{groupId}
|
|
|
- and (batch_no !='' and batch_no is null)
|
|
|
+ and (batch_no !='' and batch_no is not null)
|
|
|
group by batch_no
|
|
|
</select>
|
|
|
</mapper>
|