福利核算干预数据导入功能优化v1
This commit is contained in:
parent
572c4cb9f1
commit
8c7a5d477a
|
|
@ -1688,10 +1688,10 @@ public class SIAccountBiz extends Service {
|
|||
}
|
||||
|
||||
/**
|
||||
* 批量更新福利台账
|
||||
* 更新福利台账
|
||||
*/
|
||||
public void batchUpdateByEmployeeIdAndBillMonth(List<InsuranceAccountDetailPO> insuranceAccountDetailPOS) {
|
||||
getInsuranceAccountDetailMapper().batchUpdateByEmployeeIdAndBillMonth(insuranceAccountDetailPOS);
|
||||
public void updateByEmployeeIdAndBillMonth(InsuranceAccountDetailPO insuranceAccountDetailPO) {
|
||||
getInsuranceAccountDetailMapper().updateByEmployeeIdAndBillMonth(insuranceAccountDetailPO);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
|
|
@ -106,8 +106,8 @@ public interface InsuranceAccountDetailMapper {
|
|||
List<InsuranceArchivesEmployeePO> changeList(@Param("userName") String userName);
|
||||
|
||||
/**
|
||||
* 根据员工id和账单月份批量更新数据
|
||||
* 根据员工id和账单月份更新数据
|
||||
*/
|
||||
void batchUpdateByEmployeeIdAndBillMonth(@Param("pos") Collection<InsuranceAccountDetailPO> pos);
|
||||
void updateByEmployeeIdAndBillMonth(InsuranceAccountDetailPO po);
|
||||
|
||||
}
|
||||
|
|
|
|||
|
|
@ -761,31 +761,31 @@
|
|||
)a
|
||||
</select>
|
||||
|
||||
<update id="batchUpdateByEmployeeIdAndBillMonth">
|
||||
<foreach collection="pos" item="item" index="index" separator=";">
|
||||
UPDATE hrsa_bill_detail
|
||||
<set>
|
||||
<update id="updateByEmployeeIdAndBillMonth" parameterType="com.engine.salary.entity.siaccount.po.InsuranceAccountDetailPO">
|
||||
UPDATE hrsa_bill_detail
|
||||
<set>
|
||||
|
||||
<if test="null != socialPerJson and '' != socialPerJson">social_per_json = #{socialPerJson},</if>
|
||||
<if test="null != socialPerSum and '' != socialPerSum">social_per_sum = #{socialPerSum},</if>
|
||||
<if test="null != fundPerJson and '' != fundPerJson">fund_per_json = #{fundPerJson},</if>
|
||||
<if test="null != fundPerSum and '' != fundPerSum">fund_per_sum = #{fundPerSum},</if>
|
||||
<if test="null != otherPerJson and '' != otherPerJson">other_per_json = #{otherPerJson},</if>
|
||||
<if test="null != otherPerSum and '' != otherPerSum">other_per_sum = #{otherPerSum},</if>
|
||||
<if test="null != perSum and '' != perSum">per_sum = #{perSum},</if>
|
||||
<if test="null != socialComJson and '' != socialComJson">social_com_json = #{socialComJson},</if>
|
||||
<if test="null != socialComSum and '' != socialComSum">social_com_sum = #{socialComSum},</if>
|
||||
<if test="null != fundComJson and '' != fundComJson">fund_com_json = #{fundComJson},</if>
|
||||
<if test="null != fundComSum and '' != fundComSum">fund_com_sum = #{fundComSum},</if>
|
||||
<if test="null != otherComJson and '' != otherComJson">other_com_json = #{otherComJson},</if>
|
||||
<if test="null != otherComSum and '' != otherComSum">other_com_sum = #{otherComSum},</if>
|
||||
<if test="null != updateTime">update_time = #{updateTime},</if>
|
||||
|
||||
</set>
|
||||
WHERE employee_id = #{employeeId}
|
||||
AND bill_month = #{billMonth}
|
||||
AND delete_type = 0
|
||||
|
||||
<if test="null != item.socialPerJson and '' != item.socialPerJson">social_per_json = #{item.socialPerJson},</if>
|
||||
<if test="null != item.socialPerSum and '' != item.socialPerSum">social_per_sum = #{item.socialPerSum},</if>
|
||||
<if test="null != item.fundPerJson and '' != item.fundPerJson">fund_per_json = #{item.fundPerJson},</if>
|
||||
<if test="null != item.fundPerSum and '' != item.fundPerSum">fund_per_sum = #{item.fundPerSum},</if>
|
||||
<if test="null != item.otherPerJson and '' != item.otherPerJson">other_per_json = #{item.otherPerJson},</if>
|
||||
<if test="null != item.otherPerSum and '' != item.otherPerSum">other_per_sum = #{item.otherPerSum},</if>
|
||||
<if test="null != item.perSum and '' != item.perSum">per_sum = #{item.perSum},</if>
|
||||
<if test="null != item.socialComJson and '' != item.socialComJson">social_com_json = #{item.socialComJson},</if>
|
||||
<if test="null != item.socialComSum and '' != item.socialComSum">social_com_sum = #{item.socialComSum},</if>
|
||||
<if test="null != item.fundComJson and '' != item.fundComJson">fund_com_json = #{item.fundComJson},</if>
|
||||
<if test="null != item.fundComSum and '' != item.fundComSum">fund_com_sum = #{item.fundComSum},</if>
|
||||
<if test="null != item.otherComJson and '' != item.otherComJson">other_com_json = #{item.otherComJson},</if>
|
||||
<if test="null != item.otherComSum and '' != item.otherComSum">other_com_sum = #{item.otherComSum},</if>
|
||||
<if test="null != item.updateTime">update_time = #{item.updateTime},</if>
|
||||
|
||||
</set>
|
||||
WHERE employee_id = #{item.employeeId}
|
||||
AND bill_month = #{item.billMonth}
|
||||
AND delete_type = 0
|
||||
</foreach>
|
||||
</update>
|
||||
|
||||
</mapper>
|
||||
|
|
@ -1183,7 +1183,10 @@ public class SIAccountServiceImpl extends Service implements SIAccountService {
|
|||
//将待更新列表加密
|
||||
InsuranceAccountDetailPOEncrypt.encryptInsuranceAccountDetailPOList(updateInsuranceAccountDetailList);
|
||||
//更新
|
||||
getSiAccountBiz(user).batchUpdateByEmployeeIdAndBillMonth(updateInsuranceAccountDetailList);
|
||||
for(InsuranceAccountDetailPO po : updateInsuranceAccountDetailList) {
|
||||
getSiAccountBiz(user).updateByEmployeeIdAndBillMonth(po);
|
||||
}
|
||||
|
||||
apidatas.put("successCount", successCount);
|
||||
apidatas.put("errorCount", failCount);
|
||||
apidatas.put("errorData", excelComments);
|
||||
|
|
|
|||
Loading…
Reference in New Issue