WHERE a.DELETE_FLAG = '0' and a.SECOND_INDICATOR_BELONG is not null
<iftest="tSettleDomain != null">
<iftest="tSettleDomain != null">
<iftest="tSettleDomain.departNo != null and tSettleDomain.departNo.trim() != ''">
<iftest="tSettleDomain.departNo != null and tSettleDomain.departNo.trim() != ''">
and a.DEPART_NO = #{tSettleDomain.departNo}
and a.DEPART_NO = #{tSettleDomain.departNo}
...
@@ -498,7 +498,4 @@
...
@@ -498,7 +498,4 @@
and a.id in (select b.settle_id from m_setttle_customer_user b where b.user_id = #{userId}) and a.DELETE_FLAG = '0'
and a.id in (select b.settle_id from m_setttle_customer_user b where b.user_id = #{userId}) and a.DELETE_FLAG = '0'
group by a.CUSTOMER_NO order by CREATE_TIME desc
group by a.CUSTOMER_NO order by CREATE_TIME desc
</select>
</select>
<updateid="updateHistoryData">
update ekp_24a8e6a7fc143bb8c48a a,t_settle_domain b set b.FIRST_INDICATOR_BELONG = a.fd_3b1abe1f56113e_text,b.SECOND_INDICATOR_BELONG = a.fd_3b1abe1f56113e_text where a.fd_3a37fe508071fe = b.DEPART_NO