Commit 315be869 authored by fangxinjiang's avatar fangxinjiang

社保审核 社保公积金更新SQL 优化

parent 3b474932
...@@ -39,4 +39,6 @@ public interface TProvidentFundMapper extends BaseMapper<TProvidentFund> { ...@@ -39,4 +39,6 @@ public interface TProvidentFundMapper extends BaseMapper<TProvidentFund> {
IPage<TProvidentFund> getTProvidentFundPage(Page<TProvidentFund> page, @Param("tProvidentFund") TProvidentFund tProvidentFund); IPage<TProvidentFund> getTProvidentFundPage(Page<TProvidentFund> page, @Param("tProvidentFund") TProvidentFund tProvidentFund);
int updateFundInfoById( @Param("tProvidentFund")TProvidentFund providentFund); int updateFundInfoById( @Param("tProvidentFund")TProvidentFund providentFund);
int updateByIdOfAudit(@Param("tProvidentFund")TProvidentFund providentFund);
} }
...@@ -3376,7 +3376,7 @@ public class TDispatchInfoServiceImpl extends ServiceImpl<TDispatchInfoMapper, T ...@@ -3376,7 +3376,7 @@ public class TDispatchInfoServiceImpl extends ServiceImpl<TDispatchInfoMapper, T
sf.setFundReduceDate(null); sf.setFundReduceDate(null);
} }
} }
fundMapper.updateById(providentFund); fundMapper.updateByIdOfAudit(providentFund);
} }
} }
......
...@@ -306,4 +306,17 @@ ...@@ -306,4 +306,17 @@
</trim> </trim>
WHERE id=#{tProvidentFund.id} WHERE id=#{tProvidentFund.id}
</update> </update>
<update id="updateByIdOfAudit">
update t_provident_fund
<trim prefix="set" suffixOverrides=",">
<if test="tProvidentFund.reduceCan != null">REDUCE_CAN=#{tProvidentFund.reduceCan},</if>
<if test="tProvidentFund.auditTime != null">AUDIT_TIME=#{tProvidentFund.auditTime},</if>
<if test="tProvidentFund.auditUser != null">AUDIT_USER=#{tProvidentFund.auditUser},</if>
<if test="tProvidentFund.auditUserName != null">AUDIT_USER_NAME=#{tProvidentFund.auditUserName},</if>
<if test="tProvidentFund.auditStatus != null">AUDIT_STATUS=#{tProvidentFund.auditStatus},</if>
<if test="tProvidentFund.deleteFlag != null">DELETE_FLAG=#{tProvidentFund.deleteFlag},</if>
</trim>
WHERE id=#{tProvidentFund.id}
</update>
</mapper> </mapper>
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