|
|
@@ -5,7 +5,7 @@
|
|
|
<!-- 通用设置 -->
|
|
|
<!-- 通用查询列 -->
|
|
|
<sql id="Base_Column_List">
|
|
|
- item_id, mac_id, flow_type, invoice_id, amt_inflow, acc_date, 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, mac_id, flow_type, invoice_id, amt_inflow, acc_date, remarks, make_staff, make_time, flg_valid, cp_id
|
|
|
</sql>
|
|
|
|
|
|
<!-- 通用查询映射结果 -->
|
|
|
@@ -21,13 +21,6 @@
|
|
|
<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_user_id" property="opCreateUserId" typeHandler="UuidTypeHandler"/>
|
|
|
- <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_db_user" property="opDbUser"/>
|
|
|
</resultMap>
|
|
|
|
|
|
<!-- 通用条件列 -->
|
|
|
@@ -63,27 +56,6 @@
|
|
|
<if test="cpId != null">
|
|
|
AND cp_id = #{cpId}
|
|
|
</if>
|
|
|
- <if test="opCreateTime != null">
|
|
|
- AND op_create_time = #{opCreateTime}
|
|
|
- </if>
|
|
|
- <if test="opCreateUserId != null and opCreateUserId != ''">
|
|
|
- AND op_create_user_id = #{opCreateUserId}
|
|
|
- </if>
|
|
|
- <if test="opUpdateTime != null">
|
|
|
- AND op_update_time = #{opUpdateTime}
|
|
|
- </if>
|
|
|
- <if test="opUpdateUserId != null and opUpdateUserId != ''">
|
|
|
- AND op_update_user_id = #{opUpdateUserId}
|
|
|
- </if>
|
|
|
- <if test="opAppCode != null and opAppCode != ''">
|
|
|
- AND op_app_code = #{opAppCode}
|
|
|
- </if>
|
|
|
- <if test="opTimestamp != null">
|
|
|
- AND op_timestamp = #{opTimestamp}
|
|
|
- </if>
|
|
|
- <if test="opDbUser != null and opDbUser != ''">
|
|
|
- AND op_db_user = #{opDbUser}
|
|
|
- </if>
|
|
|
</where>
|
|
|
</sql>
|
|
|
|
|
|
@@ -99,7 +71,7 @@
|
|
|
<select id="selectByCond" resultMap="BaseResultMap">
|
|
|
SELECT
|
|
|
<include refid="Base_Column_List"/>
|
|
|
- FROM t_mst_money_account_item
|
|
|
+ FROM dkic_b.t_mst_money_account_item
|
|
|
<include refid="Condition"/>
|
|
|
<if test="pageSize != null and currentPage != null and pageSize != 0 and currentPage != 0">
|
|
|
limit #{end} offset #{start}
|
|
|
@@ -110,7 +82,7 @@
|
|
|
<select id="countByCond" resultType="Long">
|
|
|
SELECT
|
|
|
count(1)
|
|
|
- FROM t_mst_money_account_item
|
|
|
+ FROM dkic_b.t_mst_money_account_item
|
|
|
<include refid="Condition"/>
|
|
|
</select>
|
|
|
|
|
|
@@ -118,7 +90,7 @@
|
|
|
<select id="selectById" resultMap="BaseResultMap">
|
|
|
SELECT
|
|
|
<include refid="Base_Column_List"/>
|
|
|
- FROM t_mst_money_account_item
|
|
|
+ FROM dkic_b.t_mst_money_account_item
|
|
|
WHERE item_id = #{id}::uuid
|
|
|
</select>
|
|
|
|
|
|
@@ -126,7 +98,7 @@
|
|
|
<select id="selectByIdForUpdate" resultMap="BaseResultMap">
|
|
|
SELECT
|
|
|
<include refid="Base_Column_List"/>
|
|
|
- FROM t_mst_money_account_item
|
|
|
+ FROM dkic_b.t_mst_money_account_item
|
|
|
WHERE item_id = #{id}::uuid
|
|
|
for update
|
|
|
</select>
|
|
|
@@ -135,7 +107,7 @@
|
|
|
<select id="selectByInvoiceIdForUpdate" resultMap="BaseResultMap">
|
|
|
SELECT
|
|
|
<include refid="Base_Column_List"/>
|
|
|
- FROM t_mst_money_account_item
|
|
|
+ FROM dkic_b.t_mst_money_account_item
|
|
|
WHERE invoice_id = #{id}::uuid
|
|
|
for update
|
|
|
</select>
|
|
|
@@ -144,13 +116,13 @@
|
|
|
<select id="selectByIdsForUpdate" resultMap="BaseResultMap">
|
|
|
SELECT
|
|
|
<include refid="Base_Column_List"/>
|
|
|
- FROM t_mst_money_account_item
|
|
|
+ FROM dkic_b.t_mst_money_account_item
|
|
|
<include refid="idsForeach"/>
|
|
|
for update
|
|
|
</select>
|
|
|
|
|
|
<insert id="insertBatch">
|
|
|
- insert into t_mst_money_account_item
|
|
|
+ insert into dkic_b.t_mst_money_account_item
|
|
|
(
|
|
|
<trim suffixOverrides=",">
|
|
|
mac_id,
|