|
|
@@ -7,7 +7,9 @@
|
|
|
<sql id="Base_Column_List">
|
|
|
mac_id, mac_code, mac_name, mac_type, balance, display_no, flg_default, mac_receipt_code, remarks, flg_valid, cp_id, op_create_time, op_create_user_id, op_update_time, op_update_user_id, op_app_code, op_timestamp, op_db_user
|
|
|
</sql>
|
|
|
-
|
|
|
+ <sql id="Base_Column_List_">
|
|
|
+ tmma.mac_id, tmma.mac_code, tmma.mac_name, tmma.mac_type, tmma.balance, tmma.display_no, tmma.flg_default, tmma.mac_receipt_code, tmma.remarks, tmma.flg_valid, tmma.cp_id, tmma.op_create_time, tmma.op_create_user_id, tmma.op_update_time, tmma.op_update_user_id, tmma.op_app_code, tmma.op_timestamp, tmma.op_db_user
|
|
|
+ </sql>
|
|
|
<!-- 通用查询映射结果 -->
|
|
|
<resultMap id="BaseResultMap" type="com.dk.mdm.model.response.mst.MoneyAccountResponse">
|
|
|
<id column="mac_id" property="macId"/>
|
|
|
@@ -158,9 +160,11 @@
|
|
|
<!-- 根据主键查询表t_mst_money_account的一行数据 -->
|
|
|
<select id="selectById" resultMap="BaseResultMap">
|
|
|
SELECT
|
|
|
- <include refid="Base_Column_List"/>
|
|
|
- FROM dkic_b.t_mst_money_account
|
|
|
- WHERE mac_id = #{macId}::uuid
|
|
|
+ <include refid="Base_Column_List_"/>
|
|
|
+ ,tmdd.data_value AS "macTypeName"
|
|
|
+ FROM dkic_b.t_mst_money_account tmma
|
|
|
+ left join dkic_b.t_mst_dictionary_data tmdd on tmma.mac_type=tmdd.data_id
|
|
|
+ WHERE tmma.mac_id = #{macId}::uuid
|
|
|
</select>
|
|
|
|
|
|
<select id="selectDisplayNo" resultType="Integer">
|