Commit 86b52ddc authored by huyuchen's avatar huyuchen

商险优化修改

parent 63c4a0e2
...@@ -102,6 +102,20 @@ public interface TPaymentInfoMapper extends BaseMapper<TPaymentInfo> { ...@@ -102,6 +102,20 @@ public interface TPaymentInfoMapper extends BaseMapper<TPaymentInfo> {
*/ */
int updateStatusById(@Param("tPaymentInfo")TPaymentInfo tPaymentInfo); int updateStatusById(@Param("tPaymentInfo")TPaymentInfo tPaymentInfo);
/**
* 更新结算状态
* @param sUpdateList 缴费库
* @return
*/
int updateBatchByIdList(@Param("details")List<TPaymentInfo> sUpdateList);
/**
* 更新结算状态
* @param sUpdateList 缴费库
* @return
*/
int updateBatchByIdList1(@Param("details")List<TPaymentInfo> sUpdateList);
/** /**
* 通过ID获取缴费库 及社保、公积金明细 * 通过ID获取缴费库 及社保、公积金明细
* @param id * @param id
......
...@@ -3409,10 +3409,10 @@ public class TPaymentInfoServiceImpl extends ServiceImpl<TPaymentInfoMapper, TPa ...@@ -3409,10 +3409,10 @@ public class TPaymentInfoServiceImpl extends ServiceImpl<TPaymentInfoMapper, TPa
} }
} }
if (!sUpdateList.isEmpty()) { if (!sUpdateList.isEmpty()) {
this.updateBatchById(sUpdateList); baseMapper.updateBatchByIdList(sUpdateList);
} }
if (!zSpdateList.isEmpty()) { if (!zSpdateList.isEmpty()) {
this.updateBatchById(zSpdateList); baseMapper.updateBatchByIdList1(zSpdateList);
} }
} catch (Exception e) { } catch (Exception e) {
log.error("更新社保结算状态失败", e); log.error("更新社保结算状态失败", e);
......
...@@ -1270,6 +1270,22 @@ ...@@ -1270,6 +1270,22 @@
where ID = #{tPaymentInfo.id} where ID = #{tPaymentInfo.id}
</update> </update>
<update id="updateBatchByIdList">
<foreach collection="details" index="index" item="item" separator=";">
update t_payment_info set INCOME_SETTLE_FLAG = #{item.incomeSettleFlag},
INCOME_COLLECT_FLAG = #{item.incomeCollectFlag}
where ID = #{item.id}
</foreach>
</update>
<update id="updateBatchByIdList1">
<foreach collection="details" index="index" item="item" separator=";">
update t_payment_info set PAY_SETTLE_FLAG = #{item.paySettleFlag},
PAY_COLLECT_FLAG = #{item.payCollectFlag}
where ID = #{item.id}
</foreach>
</update>
<!--tPaymentInfo 按ID查收缴费库包含社保和公积金明细的数据查询--> <!--tPaymentInfo 按ID查收缴费库包含社保和公积金明细的数据查询-->
<select id="getAllInfoById" resultMap="tPaymentAllInfoMap"> <select id="getAllInfoById" resultMap="tPaymentAllInfoMap">
SELECT SELECT
......
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