Commit 658d41f0 authored by huyuchen's avatar huyuchen

稿酬导入修改

parent fe4d0a4f
...@@ -1967,9 +1967,9 @@ public class SalaryUploadServiceImpl extends ServiceImpl<TSalaryStandardMapper, ...@@ -1967,9 +1967,9 @@ public class SalaryUploadServiceImpl extends ServiceImpl<TSalaryStandardMapper,
nowTaxT = getNowTaxRemu(actualSalarySumNow); nowTaxT = getNowTaxRemu(actualSalarySumNow);
relaySalary = BigDecimalUtils.safeAdd(actualSalarySumNow, nowTaxT).setScale(SalaryConstants.PLACES, BigDecimal.ROUND_HALF_UP); relaySalary = BigDecimalUtils.safeAdd(actualSalarySumNow, nowTaxT).setScale(SalaryConstants.PLACES, BigDecimal.ROUND_HALF_UP);
a.setSalaryTaxUnit(nowTaxT); a.setSalaryTax(nowTaxT);
a.setActualSalary(actualSalarySumNow); a.setActualSalary(relaySalary);
a.setRelaySalaryUnit(relaySalary); a.setRelaySalaryUnit(actualSalarySumNow);
a.setRelaySalary(actualSalarySumNow); a.setRelaySalary(actualSalarySumNow);
if (sumTax.compareTo(BigDecimal.ZERO) != 0) { if (sumTax.compareTo(BigDecimal.ZERO) != 0) {
nowTaxT = BigDecimalUtils.safeSubtract(nowTaxT, sumTax).setScale(SalaryConstants.PLACES, BigDecimal.ROUND_HALF_UP); nowTaxT = BigDecimalUtils.safeSubtract(nowTaxT, sumTax).setScale(SalaryConstants.PLACES, BigDecimal.ROUND_HALF_UP);
...@@ -1979,7 +1979,7 @@ public class SalaryUploadServiceImpl extends ServiceImpl<TSalaryStandardMapper, ...@@ -1979,7 +1979,7 @@ public class SalaryUploadServiceImpl extends ServiceImpl<TSalaryStandardMapper,
sai.setCnName(SalaryConstants.RELAY_SALARY); sai.setCnName(SalaryConstants.RELAY_SALARY);
sai.setJavaFiedName(SalaryConstants.RELAY_SALARY_JAVA); sai.setJavaFiedName(SalaryConstants.RELAY_SALARY_JAVA);
sai.setIsTax(CommonConstants.ZERO_INT); sai.setIsTax(CommonConstants.ZERO_INT);
sai.setSalaryMoney(relaySalary); sai.setSalaryMoney(actualSalarySumNow);
saiList.add(sai); saiList.add(sai);
return nowTaxT; return nowTaxT;
} }
......
...@@ -200,8 +200,8 @@ public class TPaymentInfoServiceImpl extends ServiceImpl<TPaymentInfoMapper, TPa ...@@ -200,8 +200,8 @@ public class TPaymentInfoServiceImpl extends ServiceImpl<TPaymentInfoMapper, TPa
return R.failed("已推送至结算平台禁止删除!"); return R.failed("已推送至结算平台禁止删除!");
} }
if (CommonConstants.TWO_STRING.equals(paymentInfo.getSalaryFundFlag()) || if (CommonConstants.ONE_STRING.equals(paymentInfo.getSalaryFundFlag()) ||
CommonConstants.TWO_STRING.equals(paymentInfo.getSalarySocialFlag())) { CommonConstants.ONE_STRING.equals(paymentInfo.getSalarySocialFlag())) {
return R.failed("该数据已与薪资结算,禁止删除"); return R.failed("该数据已与薪资结算,禁止删除");
} }
baseMapper.deleteById(id); baseMapper.deleteById(id);
...@@ -225,8 +225,8 @@ public class TPaymentInfoServiceImpl extends ServiceImpl<TPaymentInfoMapper, TPa ...@@ -225,8 +225,8 @@ public class TPaymentInfoServiceImpl extends ServiceImpl<TPaymentInfoMapper, TPa
CommonConstants.ZERO_STRING.equals(paymentInfo.getPushStatus())) { CommonConstants.ZERO_STRING.equals(paymentInfo.getPushStatus())) {
return R.failed("存在不符合条件的数据(已推送至结算平台或非本人创建),禁止删除!"); return R.failed("存在不符合条件的数据(已推送至结算平台或非本人创建),禁止删除!");
} }
if (CommonConstants.TWO_STRING.equals(paymentInfo.getSalaryFundFlag()) || if (CommonConstants.ONE_STRING.equals(paymentInfo.getSalaryFundFlag()) ||
CommonConstants.TWO_STRING.equals(paymentInfo.getSalarySocialFlag())) { CommonConstants.ONE_STRING.equals(paymentInfo.getSalarySocialFlag())) {
return R.failed("存在不符合条件的数据(已与薪资结算),禁止删除"); return R.failed("存在不符合条件的数据(已与薪资结算),禁止删除");
} }
baseMapper.deleteById(id); baseMapper.deleteById(id);
......
...@@ -2258,6 +2258,7 @@ public class TPreDispatchInfoServiceImpl extends ServiceImpl<TPreDispatchInfoMap ...@@ -2258,6 +2258,7 @@ public class TPreDispatchInfoServiceImpl extends ServiceImpl<TPreDispatchInfoMap
importVo.setWorkingHours(preInfo.getWorkingHoursAdd()); importVo.setWorkingHours(preInfo.getWorkingHoursAdd());
importVo.setEmpNational(CommonConstants.ONE_STRING); importVo.setEmpNational(CommonConstants.ONE_STRING);
importVo.setEducationName(CommonConstants.FIVE_STRING); importVo.setEducationName(CommonConstants.FIVE_STRING);
importVo.setTrustRemark("预派单");
if (null != preInfo.getPensionBase()){ if (null != preInfo.getPensionBase()){
importVo.setRecordBase(preInfo.getPensionBase()); importVo.setRecordBase(preInfo.getPensionBase());
} }
......
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