|
|
@@ -1195,4 +1195,26 @@
|
|
|
</if>
|
|
|
</select>
|
|
|
|
|
|
+ <!-- 获取资金账户-->
|
|
|
+ <select id="getMac" resultType="java.util.Map">
|
|
|
+ select tmma.mac_id as "macId",
|
|
|
+ tmma.mac_code as "macCode",
|
|
|
+ tmma.mac_name as "macName",
|
|
|
+ tmma.mac_type as "macType",
|
|
|
+ tmma.balance,
|
|
|
+ tmma.display_no as "displayNo",
|
|
|
+ tmma.flg_default as "flgDefault",
|
|
|
+ tmma.mac_receipt_code as "macReceiptCode",
|
|
|
+ tmma.remarks
|
|
|
+ from dkic_b.t_mst_money_account tmma
|
|
|
+ where tmma.flg_valid
|
|
|
+ and tmma.cp_id = #{cpId}
|
|
|
+ <if test="macCode !=null and macCode !=''">
|
|
|
+ AND tmma.mac_code LIKE concat('%',my_ex.likequery(#{macCode}),'%')
|
|
|
+ </if>
|
|
|
+ <if test="macName !=null and macName !=''">
|
|
|
+ AND tmma.mac_name LIKE concat('%',my_ex.likequery(#{macName}),'%')
|
|
|
+ </if>
|
|
|
+ order by tmma.display_no
|
|
|
+ </select>
|
|
|
</mapper>
|