账套-个税字段对应、累计字段对应
This commit is contained in:
parent
3004394e96
commit
4ba4dbc090
|
|
@ -74,6 +74,10 @@ public class SalarySobController {
|
||||||
private SalarySobTaxReportRuleWrapper getSalarySobTaxReportRuleWrapper(User user) {
|
private SalarySobTaxReportRuleWrapper getSalarySobTaxReportRuleWrapper(User user) {
|
||||||
return ServiceUtil.getService(SalarySobTaxReportRuleWrapper.class, user);
|
return ServiceUtil.getService(SalarySobTaxReportRuleWrapper.class, user);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private SalarySobAddUpRuleWrapper getSalarySobAddUpRuleWrapper(User user) {
|
||||||
|
return ServiceUtil.getService(SalarySobAddUpRuleWrapper.class, user);
|
||||||
|
}
|
||||||
/**********************************薪资账套 start*********************************/
|
/**********************************薪资账套 start*********************************/
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
@ -418,6 +422,38 @@ public class SalarySobController {
|
||||||
|
|
||||||
/**********************************薪资账套的回算项目 end*********************************/
|
/**********************************薪资账套的回算项目 end*********************************/
|
||||||
|
|
||||||
|
/**********************************薪资账套的累计字段对应关系 start*********************************/
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 薪资账套下的累计字段对应关系
|
||||||
|
*
|
||||||
|
* @param id 薪资账套id
|
||||||
|
* @return
|
||||||
|
*/
|
||||||
|
@GET
|
||||||
|
@Path("/adduprule/getForm")
|
||||||
|
@Produces(MediaType.APPLICATION_JSON)
|
||||||
|
public String getSalarySobAddUpForm(@Context HttpServletRequest request, @Context HttpServletResponse response, @QueryParam(value = "id") Long id) {
|
||||||
|
User user = HrmUserVarify.getUser(request, response);
|
||||||
|
return new ResponseResult<Long, SalarySobBackItemFormDTO>(user).run(getSalarySobAddUpRuleWrapper(user)::getForm, id);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 保存薪资账套下的累计字段对应关系
|
||||||
|
*
|
||||||
|
* @param saveParam 保存参数
|
||||||
|
* @return
|
||||||
|
*/
|
||||||
|
@POST
|
||||||
|
@Path("/adduprule/save")
|
||||||
|
@Produces(MediaType.APPLICATION_JSON)
|
||||||
|
public String saveSalarySobAddUp(@Context HttpServletRequest request, @Context HttpServletResponse response, @RequestBody SalarySobAddUpRuleSaveParam saveParam) {
|
||||||
|
User user = HrmUserVarify.getUser(request, response);
|
||||||
|
return new ResponseResult<SalarySobAddUpRuleSaveParam, List<SalarySobBackItemDTO>>(user).run(getSalarySobAddUpRuleWrapper(user)::save, saveParam);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**********************************薪资账套的累计字段对应关系 end*********************************/
|
||||||
|
|
||||||
|
|
||||||
/**********************************薪资账套的个税申报表规则 start*********************************/
|
/**********************************薪资账套的个税申报表规则 start*********************************/
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1,43 @@
|
||||||
|
package com.engine.salary.wrapper;
|
||||||
|
|
||||||
|
import com.engine.common.util.ServiceUtil;
|
||||||
|
import com.engine.core.impl.Service;
|
||||||
|
import com.engine.salary.entity.salarysob.dto.SalarySobAddUpRuleDTO;
|
||||||
|
import com.engine.salary.entity.salarysob.param.SalarySobAddUpRuleSaveParam;
|
||||||
|
import com.engine.salary.service.SalarySobAddUpRuleService;
|
||||||
|
import com.engine.salary.service.impl.SalarySobAddUpRuleServiceImpl;
|
||||||
|
import weaver.hrm.User;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @description: 薪资账套的累计字段对应关系
|
||||||
|
* @author: xiajun
|
||||||
|
* @modified By: xiajun
|
||||||
|
* @date: Created in 2023/1/4 10:36 AM
|
||||||
|
* @version:v1.0
|
||||||
|
*/
|
||||||
|
public class SalarySobAddUpRuleWrapper extends Service {
|
||||||
|
|
||||||
|
private SalarySobAddUpRuleService getSalarySobAddUpRuleService(User user) {
|
||||||
|
return ServiceUtil.getService(SalarySobAddUpRuleServiceImpl.class, user);
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* 获取薪资账套的累计字段对应关系
|
||||||
|
*
|
||||||
|
* @param salarySobId
|
||||||
|
* @return
|
||||||
|
*/
|
||||||
|
public List<SalarySobAddUpRuleDTO> getForm(Long salarySobId) {
|
||||||
|
return getSalarySobAddUpRuleService(user).listSalarySobAddUpRuleDTO(salarySobId);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 保存薪资账套的累计字段对应关系
|
||||||
|
*
|
||||||
|
* @param saveParam
|
||||||
|
*/
|
||||||
|
public void save(SalarySobAddUpRuleSaveParam saveParam) {
|
||||||
|
getSalarySobAddUpRuleService(user).saveByParam(saveParam);
|
||||||
|
}
|
||||||
|
}
|
||||||
Loading…
Reference in New Issue