Commit f28f84e0 authored by huyuchen's avatar huyuchen

优化修改

parent ceebc93e
...@@ -84,6 +84,13 @@ public interface TPaymentInfoMapper extends BaseMapper<TPaymentInfo> { ...@@ -84,6 +84,13 @@ public interface TPaymentInfoMapper extends BaseMapper<TPaymentInfo> {
*/ */
int updateDeleteInfo(@Param("tPaymentInfo")TPaymentInfo tPaymentInfo); int updateDeleteInfo(@Param("tPaymentInfo")TPaymentInfo tPaymentInfo);
/**
* 更新结算状态
* @param tPaymentInfo 缴费库
* @return
*/
int updateStatusById(@Param("tPaymentInfo")TPaymentInfo tPaymentInfo);
/** /**
* 通过ID获取缴费库 及社保、公积金明细 * 通过ID获取缴费库 及社保、公积金明细
* @param id * @param id
......
...@@ -3291,7 +3291,7 @@ public class TPaymentInfoServiceImpl extends ServiceImpl<TPaymentInfoMapper, TPa ...@@ -3291,7 +3291,7 @@ public class TPaymentInfoServiceImpl extends ServiceImpl<TPaymentInfoMapper, TPa
paymentInfo.setPaySettleFlag(viewVo.getPaySettleFlag()); paymentInfo.setPaySettleFlag(viewVo.getPaySettleFlag());
paymentInfo.setPayCollectFlag(viewVo.getPayCollectFlag()); paymentInfo.setPayCollectFlag(viewVo.getPayCollectFlag());
} }
baseMapper.updateById(paymentInfo); baseMapper.updateStatusById(paymentInfo);
} }
} else if (viewVo.getSettleFlag().contains(SocialConstants.DIFF_TYPE_ONE)) { } else if (viewVo.getSettleFlag().contains(SocialConstants.DIFF_TYPE_ONE)) {
//根据明细id更新结算状态 //根据明细id更新结算状态
......
...@@ -1058,6 +1058,26 @@ ...@@ -1058,6 +1058,26 @@
</trim> </trim>
where ID = #{tPaymentInfo.id} where ID = #{tPaymentInfo.id}
</update> </update>
<update id="updateStatusById">
update t_payment_info
<trim prefix="SET" suffixOverrides=",">
<if test="tPaymentInfo != null">
<if test="tPaymentInfo.incomeSettleFlag != '' and tPaymentInfo.incomeSettleFlag.trim() != ''">
INCOME_SETTLE_FLAG = #{tPaymentInfo.incomeSettleFlag},
</if>
<if test="tPaymentInfo.incomeCollectFlag != '' and tPaymentInfo.incomeCollectFlag.trim() != ''">
INCOME_COLLECT_FLAG = #{tPaymentInfo.incomeCollectFlag},
</if>
<if test="tPaymentInfo.paySettleFlag != null and tPaymentInfo.paySettleFlag.trim() != ''">
PAY_SETTLE_FLAG = #{tPaymentInfo.paySettleFlag},
</if>
<if test="tPaymentInfo.payCollectFlag != null and tPaymentInfo.payCollectFlag.trim() != ''">
PAY_COLLECT_FLAG = #{tPaymentInfo.payCollectFlag},
</if>
</if>
</trim>
where ID = #{tPaymentInfo.id}
</update>
<!--tPaymentInfo 按ID查收缴费库包含社保和公积金明细的数据查询--> <!--tPaymentInfo 按ID查收缴费库包含社保和公积金明细的数据查询-->
<select id="getAllInfoById" resultMap="tPaymentAllInfoMap"> <select id="getAllInfoById" resultMap="tPaymentAllInfoMap">
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment