|
@@ -15,6 +15,7 @@
|
|
|
<result column="cooperation_organ_id_" property="cooperationOrganId"/>
|
|
|
<result column="apply_user_id_" property="applyUserId"/>
|
|
|
<result column="type_" property="type" typeHandler="com.ym.mec.common.dal.CustomEnumTypeHandler"/>
|
|
|
+ <result column="fee_project_" property="feeProject" typeHandler="com.ym.mec.common.dal.CustomEnumTypeHandler"/>
|
|
|
<result column="amount_" property="amount"/>
|
|
|
<result column="item_detail_" property="itemDetail"/>
|
|
|
<result column="payment_time_" property="paymentTime"/>
|
|
@@ -38,17 +39,22 @@
|
|
|
<insert id="insert" parameterType="com.ym.mec.biz.dal.entity.FinancialExpenditure" useGeneratedKeys="true" keyColumn="id"
|
|
|
keyProperty="id">
|
|
|
INSERT INTO financial_expenditure (batch_no_,financial_process_no_,dingtalk_process_no_,
|
|
|
- organ_id_,cooperation_organ_id_,apply_user_id_,amount_,item_detail_,payment_time_,cause_,create_time_,update_time_)
|
|
|
+ organ_id_,cooperation_organ_id_,apply_user_id_,amount_,item_detail_,payment_time_,cause_,create_time_,update_time_,fee_project_,type_)
|
|
|
VALUES(#{batchNo},#{financialProcessNo},#{dingtalkProcessNo},#{organId},#{cooperationOrganId},#{applyUserId},#{amount},
|
|
|
- #{itemDetail},#{paymentTime},#{cause},now(),now())
|
|
|
+ #{itemDetail},#{paymentTime},#{cause},now(),now(),#{feeProject,typeHandler=com.ym.mec.common.dal.CustomEnumTypeHandler},
|
|
|
+ #{type,typeHandler=com.ym.mec.common.dal.CustomEnumTypeHandler})
|
|
|
</insert>
|
|
|
+
|
|
|
<insert id="batchInsert">
|
|
|
INSERT INTO financial_expenditure (batch_no_,financial_process_no_,dingtalk_process_no_,
|
|
|
- organ_id_,cooperation_organ_id_,apply_user_id_,amount_,item_detail_,payment_time_,cause_,create_time_,update_time_)
|
|
|
+ organ_id_,cooperation_organ_id_,apply_user_id_,amount_,item_detail_,payment_time_,cause_,create_time_,update_time_,fee_project_,type_)
|
|
|
VALUES
|
|
|
<foreach collection="financialExpenditures" item="item" separator=",">
|
|
|
- (#{item.batchNo},#{item.financialProcessNo},#{item.dingtalkProcessNo},#{item.organId},#{item.cooperationOrganId},#{item.applyUserId},#{item.amount},
|
|
|
- #{item.itemDetail},#{item.paymentTime},#{item.cause},now(),now())
|
|
|
+ (#{item.batchNo},#{item.financialProcessNo},#{item.dingtalkProcessNo},#{item.organId},
|
|
|
+ #{item.cooperationOrganId},#{item.applyUserId},#{item.amount},
|
|
|
+ #{item.itemDetail},#{item.paymentTime},#{item.cause},now(),now(),
|
|
|
+ #{item.feeProject,typeHandler=com.ym.mec.common.dal.CustomEnumTypeHandler},
|
|
|
+ #{item.type,typeHandler=com.ym.mec.common.dal.CustomEnumTypeHandler})
|
|
|
</foreach>
|
|
|
</insert>
|
|
|
|
|
@@ -56,8 +62,11 @@
|
|
|
<update id="update" parameterType="com.ym.mec.biz.dal.entity.FinancialExpenditure">
|
|
|
UPDATE financial_expenditure
|
|
|
<set>
|
|
|
- <if test="delFlag != null">
|
|
|
- del_flag_ = #{delFlag},
|
|
|
+ <if test="feeProject != null">
|
|
|
+ fee_project_ = #{feeProject,typeHandler=com.ym.mec.common.dal.CustomEnumTypeHandler},
|
|
|
+ </if>
|
|
|
+ <if test="type != null">
|
|
|
+ type_ = #{type,typeHandler=com.ym.mec.common.dal.CustomEnumTypeHandler},
|
|
|
</if>
|
|
|
<if test="batchNo != null">
|
|
|
batch_no_ = #{batchNo},
|
|
@@ -108,6 +117,12 @@
|
|
|
<if test="batchNo != null and batchNo != ''">
|
|
|
AND fe.batch_no_ = #{batchNo}
|
|
|
</if>
|
|
|
+ <if test="feeProject != null">
|
|
|
+ AND fe.fee_project_ = #{feeProject}
|
|
|
+ </if>
|
|
|
+ <if test="type != null">
|
|
|
+ AND fe.type_ = #{type}
|
|
|
+ </if>
|
|
|
<if test="financialProcessNo != null and financialProcessNo != ''">
|
|
|
AND fe.financial_process_no_ = #{financialProcessNo}
|
|
|
</if>
|