维护估计控制层
This commit is contained in:
parent
413de52d6a
commit
f4ebcf987c
|
|
@ -0,0 +1,9 @@
|
|||
package com.api.salary.web;
|
||||
|
||||
|
||||
import javax.ws.rs.Path;
|
||||
|
||||
@Path("/bs/hrmsalary/maintainer")
|
||||
public class MaintainerController extends com.engine.salary.maintainer.MaintainerController{
|
||||
|
||||
}
|
||||
|
|
@ -0,0 +1,56 @@
|
|||
package com.engine.salary.maintainer;
|
||||
|
||||
import com.engine.common.util.ServiceUtil;
|
||||
import com.engine.salary.maintainer.salaryacct.SalaryAcctManager;
|
||||
import com.engine.salary.maintainer.salaryacct.SalaryAcctSupplementParam;
|
||||
import com.engine.salary.util.ResponseResult;
|
||||
import io.swagger.v3.oas.annotations.parameters.RequestBody;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import weaver.hrm.HrmUserVarify;
|
||||
import weaver.hrm.User;
|
||||
|
||||
import javax.servlet.http.HttpServletRequest;
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
import javax.ws.rs.POST;
|
||||
import javax.ws.rs.Path;
|
||||
import javax.ws.rs.Produces;
|
||||
import javax.ws.rs.core.Context;
|
||||
import javax.ws.rs.core.MediaType;
|
||||
import java.util.Map;
|
||||
|
||||
/**
|
||||
* 累计专项附加扣除
|
||||
* <p>Copyright: Copyright (c) 2022</p>
|
||||
* <p>Company: 泛微软件</p>
|
||||
*
|
||||
* @author qiantao
|
||||
* @version 1.0
|
||||
**/
|
||||
@Slf4j
|
||||
public class MaintainerController {
|
||||
|
||||
private SalaryAcctManager getSalaryAcctManager(User user) {
|
||||
return ServiceUtil.getService(SalaryAcctManager.class, user);
|
||||
}
|
||||
|
||||
//---------------------------薪资核算 start ------------------------------------
|
||||
|
||||
/**
|
||||
* 补充核算
|
||||
*
|
||||
* @param queryParam
|
||||
* @return
|
||||
*/
|
||||
@POST
|
||||
@Path("/template/list")
|
||||
@Produces(MediaType.APPLICATION_JSON)
|
||||
public String templateList(@Context HttpServletRequest request, @Context HttpServletResponse response, @RequestBody SalaryAcctSupplementParam queryParam) {
|
||||
User user = HrmUserVarify.getUser(request, response);
|
||||
return new ResponseResult<SalaryAcctSupplementParam, Map<String, Object>>(user).run(getSalaryAcctManager(user)::supplementAcctRecord, queryParam);
|
||||
}
|
||||
|
||||
|
||||
|
||||
//---------------------------薪资核算 end ------------------------------------
|
||||
|
||||
}
|
||||
Loading…
Reference in New Issue