薪资接口的新要求
This commit is contained in:
@@ -117,10 +117,18 @@ public class OaEmployeeTemplateBindingController extends BaseController {
|
||||
if (bo.getPayYear() == null || bo.getPayMonth() == null) {
|
||||
return R.fail("请选择发薪年月");
|
||||
}
|
||||
if (bo.getDefaultInsuranceTemplateId() == null || bo.getDefaultSalaryTemplateId() == null) {
|
||||
if (bo.getDefaultPersonalInsuranceTemplateId() == null || bo.getDefaultSalaryTemplateId() == null || bo.getDefaultCompanyInsuranceTemplateId() == null) {
|
||||
return R.fail("请选择默认模板");
|
||||
}
|
||||
return toAjax(iOaEmployeeTemplateBindingService.calculateSalary(bo.getEmployeeIds(), bo.getPayYear(), bo.getPayMonth(), bo.getDefaultInsuranceTemplateId(), bo.getDefaultSalaryTemplateId()));
|
||||
|
||||
return toAjax(iOaEmployeeTemplateBindingService.calculateSalary(
|
||||
bo.getEmployeeIds(),
|
||||
bo.getPayYear(),
|
||||
bo.getPayMonth(),
|
||||
bo.getDefaultPersonalInsuranceTemplateId(), // 个人
|
||||
bo.getDefaultCompanyInsuranceTemplateId(), // 企业
|
||||
bo.getDefaultSalaryTemplateId()
|
||||
));
|
||||
}
|
||||
// 7. 批量确认发放
|
||||
@PostMapping("/finalize")
|
||||
|
||||
Reference in New Issue
Block a user