|
|
@@ -5,36 +5,38 @@
|
|
|
<!-- 通用设置 -->
|
|
|
<!-- 通用查询列 -->
|
|
|
<sql id="Base_Column_List">
|
|
|
- item_id, acc_item_type, object_id, org_id, staff_id, biznis_type, biznis_id, biznis_no, acc_date, rec_status, amt_should, amt_handle, amt_waive, amt_residue, remarks, make_staff, make_time, 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
|
|
|
+ item_id, acc_item_type, object_id, org_id, staff_id, biznis_type, biznis_id, biznis_no, acc_date, rec_status, amt_rec, amt_pay, amt_should, amt_handle, amt_waive, amt_residue, remarks, make_staff, make_time, 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>
|
|
|
|
|
|
<!-- 通用查询映射结果 -->
|
|
|
<resultMap id="BaseResultMap" type="com.dk.mdm.model.pojo.mac.AccountItem">
|
|
|
<id column="item_id" property="itemId"/>
|
|
|
- <result column="acc_item_type" property="accItemType" typeHandler="UuidTypeHandler"/>
|
|
|
+ <result column="acc_item_type" property="accItemType"/>
|
|
|
<result column="object_id" property="objectId" typeHandler="UuidTypeHandler"/>
|
|
|
<result column="org_id" property="orgId" typeHandler="UuidTypeHandler"/>
|
|
|
<result column="staff_id" property="staffId" typeHandler="UuidTypeHandler"/>
|
|
|
<result column="biznis_type" property="biznisType"/>
|
|
|
<result column="biznis_id" property="biznisId" typeHandler="UuidTypeHandler"/>
|
|
|
<result column="biznis_no" property="biznisNo"/>
|
|
|
- <result column="acc_date" property="accDate" typeHandler="TimestampTypeHandler"/>
|
|
|
+ <result column="acc_date" property="accDate" typeHandler="TimestampTypeHandler"/>
|
|
|
<result column="rec_status" property="recStatus"/>
|
|
|
+ <result column="amt_rec" property="amtRec"/>
|
|
|
+ <result column="amt_pay" property="amtPay"/>
|
|
|
<result column="amt_should" property="amtShould"/>
|
|
|
<result column="amt_handle" property="amtHandle"/>
|
|
|
<result column="amt_waive" property="amtWaive"/>
|
|
|
<result column="amt_residue" property="amtResidue"/>
|
|
|
<result column="remarks" property="remarks"/>
|
|
|
<result column="make_staff" property="makeStaff" typeHandler="UuidTypeHandler"/>
|
|
|
- <result column="make_time" property="makeTime" typeHandler="TimestampTypeHandler"/>
|
|
|
+ <result column="make_time" property="makeTime" typeHandler="TimestampTypeHandler"/>
|
|
|
<result column="flg_valid" property="flgValid"/>
|
|
|
<result column="cp_id" property="cpId"/>
|
|
|
- <result column="op_create_time" property="opCreateTime" typeHandler="TimestampTypeHandler"/>
|
|
|
+ <result column="op_create_time" property="opCreateTime" typeHandler="TimestampTypeHandler"/>
|
|
|
<result column="op_create_user_id" property="opCreateUserId" typeHandler="UuidTypeHandler"/>
|
|
|
- <result column="op_update_time" property="opUpdateTime" typeHandler="TimestampTypeHandler"/>
|
|
|
+ <result column="op_update_time" property="opUpdateTime" typeHandler="TimestampTypeHandler"/>
|
|
|
<result column="op_update_user_id" property="opUpdateUserId" typeHandler="UuidTypeHandler"/>
|
|
|
<result column="op_app_code" property="opAppCode"/>
|
|
|
- <result column="op_timestamp" property="opTimestamp" typeHandler="TimestampTypeHandler"/>
|
|
|
+ <result column="op_timestamp" property="opTimestamp" typeHandler="TimestampTypeHandler"/>
|
|
|
<result column="op_db_user" property="opDbUser"/>
|
|
|
</resultMap>
|
|
|
|
|
|
@@ -68,6 +70,12 @@
|
|
|
<if test="recStatus != null and recStatus != ''">
|
|
|
AND rec_status = #{recStatus}
|
|
|
</if>
|
|
|
+ <if test="amtRec != null">
|
|
|
+ AND amt_rec = #{amtRec}
|
|
|
+ </if>
|
|
|
+ <if test="amtPay != null">
|
|
|
+ AND amt_pay = #{amtPay}
|
|
|
+ </if>
|
|
|
<if test="amtShould != null">
|
|
|
AND amt_should = #{amtShould}
|
|
|
</if>
|
|
|
@@ -159,7 +167,7 @@
|
|
|
SELECT
|
|
|
<include refid="Base_Column_List"/>
|
|
|
FROM t_mac_account_item
|
|
|
- WHERE item_id = #{itemId}
|
|
|
+ WHERE item_id = #{id}::uuid
|
|
|
for update
|
|
|
</select>
|
|
|
|
|
|
@@ -185,6 +193,8 @@
|
|
|
biznis_no,
|
|
|
acc_date,
|
|
|
rec_status,
|
|
|
+ amt_rec,
|
|
|
+ amt_pay,
|
|
|
amt_should,
|
|
|
amt_handle,
|
|
|
amt_waive,
|
|
|
@@ -200,7 +210,7 @@
|
|
|
<foreach collection="list" index="index" item="item" separator=",">
|
|
|
(
|
|
|
<trim suffixOverrides=",">
|
|
|
- #{item.accItemType}::uuid,
|
|
|
+ #{item.accItemType},
|
|
|
#{item.objectId}::uuid,
|
|
|
#{item.orgId}::uuid,
|
|
|
#{item.staffId}::uuid,
|
|
|
@@ -209,6 +219,8 @@
|
|
|
#{item.biznisNo},
|
|
|
#{item.accDate},
|
|
|
#{item.recStatus},
|
|
|
+ #{item.amtRec},
|
|
|
+ #{item.amtPay},
|
|
|
#{item.amtShould},
|
|
|
#{item.amtHandle},
|
|
|
#{item.amtWaive},
|