2022-03-01 18:49:22 +08:00
|
|
|
package com.engine.salary.web;
|
|
|
|
|
|
2022-04-16 15:33:51 +08:00
|
|
|
import com.engine.common.util.ServiceUtil;
|
2023-08-14 20:07:29 +08:00
|
|
|
import com.engine.salary.entity.taxdeclaration.dto.*;
|
|
|
|
|
import com.engine.salary.entity.taxdeclaration.param.*;
|
2022-04-18 18:56:17 +08:00
|
|
|
import com.engine.salary.service.TaxDeclarationExcelService;
|
2022-04-16 15:33:51 +08:00
|
|
|
import com.engine.salary.service.TaxDeclarationService;
|
2022-04-18 18:56:17 +08:00
|
|
|
import com.engine.salary.service.impl.TaxDeclarationExcelServiceImpl;
|
2022-04-16 15:33:51 +08:00
|
|
|
import com.engine.salary.service.impl.TaxDeclarationServiceImpl;
|
|
|
|
|
import com.engine.salary.util.ResponseResult;
|
|
|
|
|
import com.engine.salary.util.SalaryDateUtil;
|
|
|
|
|
import com.engine.salary.util.page.PageInfo;
|
2022-04-19 20:58:30 +08:00
|
|
|
import com.engine.salary.wrapper.TaxDeclarationDetailWrapper;
|
2022-04-16 15:33:51 +08:00
|
|
|
import com.engine.salary.wrapper.TaxDeclarationWrapper;
|
2023-08-10 09:33:04 +08:00
|
|
|
import com.engine.salary.wrapper.TaxDeclareRecordWrapper;
|
2022-04-16 15:33:51 +08:00
|
|
|
import io.swagger.v3.oas.annotations.parameters.RequestBody;
|
2022-05-09 10:32:14 +08:00
|
|
|
import lombok.extern.slf4j.Slf4j;
|
2022-04-18 18:56:17 +08:00
|
|
|
import org.apache.poi.xssf.usermodel.XSSFWorkbook;
|
2022-04-16 15:33:51 +08:00
|
|
|
import weaver.hrm.HrmUserVarify;
|
|
|
|
|
import weaver.hrm.User;
|
|
|
|
|
|
|
|
|
|
import javax.servlet.http.HttpServletRequest;
|
|
|
|
|
import javax.servlet.http.HttpServletResponse;
|
|
|
|
|
import javax.ws.rs.*;
|
|
|
|
|
import javax.ws.rs.core.Context;
|
|
|
|
|
import javax.ws.rs.core.MediaType;
|
2022-04-18 18:56:17 +08:00
|
|
|
import javax.ws.rs.core.Response;
|
|
|
|
|
import javax.ws.rs.core.StreamingOutput;
|
|
|
|
|
import java.io.UnsupportedEncodingException;
|
|
|
|
|
import java.net.URLEncoder;
|
|
|
|
|
import java.text.ParseException;
|
2022-05-09 10:32:14 +08:00
|
|
|
import java.time.LocalDate;
|
2023-08-10 09:33:04 +08:00
|
|
|
import java.util.Collection;
|
|
|
|
|
import java.util.List;
|
2022-04-16 15:33:51 +08:00
|
|
|
|
|
|
|
|
|
2022-05-09 10:32:14 +08:00
|
|
|
@Slf4j
|
2022-03-01 18:49:22 +08:00
|
|
|
public class TaxDeclarationController {
|
|
|
|
|
|
2022-05-09 10:32:14 +08:00
|
|
|
private TaxDeclarationService getService(User user) {
|
2022-06-14 11:13:31 +08:00
|
|
|
return ServiceUtil.getService(TaxDeclarationServiceImpl.class, user);
|
2022-05-09 10:32:14 +08:00
|
|
|
}
|
2022-04-16 15:33:51 +08:00
|
|
|
|
2022-05-09 10:32:14 +08:00
|
|
|
private TaxDeclarationWrapper getTaxDeclarationWrapper(User user) {
|
|
|
|
|
return ServiceUtil.getService(TaxDeclarationWrapper.class, user);
|
|
|
|
|
}
|
2022-04-16 15:33:51 +08:00
|
|
|
|
2022-05-09 10:32:14 +08:00
|
|
|
private TaxDeclarationExcelService getTaxDeclarationExcelService(User user) {
|
2023-08-14 20:07:29 +08:00
|
|
|
return ServiceUtil.getService(TaxDeclarationExcelServiceImpl.class, user);
|
2022-05-09 10:32:14 +08:00
|
|
|
}
|
2022-04-16 15:33:51 +08:00
|
|
|
|
2022-05-09 10:32:14 +08:00
|
|
|
private TaxDeclarationDetailWrapper getTaxDeclarationDetailWrapper(User user) {
|
|
|
|
|
return ServiceUtil.getService(TaxDeclarationDetailWrapper.class, user);
|
|
|
|
|
}
|
|
|
|
|
|
2023-08-10 09:33:04 +08:00
|
|
|
private TaxDeclareRecordWrapper getTaxDeclareRecordWrapper(User user) {
|
|
|
|
|
return ServiceUtil.getService(TaxDeclareRecordWrapper.class, user);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
2022-05-09 10:32:14 +08:00
|
|
|
//个税申报表列表
|
|
|
|
|
@POST
|
|
|
|
|
@Path("/list")
|
|
|
|
|
@Produces(MediaType.APPLICATION_JSON)
|
|
|
|
|
public String list(@Context HttpServletRequest request, @Context HttpServletResponse response, @RequestBody TaxDeclarationListQueryParam queryParam) throws ParseException {
|
|
|
|
|
User user = HrmUserVarify.getUser(request, response);
|
2023-08-14 20:07:29 +08:00
|
|
|
queryParam.setFromSalaryMonth(SalaryDateUtil.stringToDate(queryParam.getFromSalaryMonthStr() == null ? "" : queryParam.getFromSalaryMonthStr()));
|
|
|
|
|
queryParam.setEndSalaryMonth(SalaryDateUtil.stringToDate(queryParam.getEndSalaryMonthStr() == null ? "" : queryParam.getEndSalaryMonthStr()));
|
2022-05-09 10:32:14 +08:00
|
|
|
return new ResponseResult<TaxDeclarationListQueryParam, PageInfo<TaxDeclarationListDTO>>(user).run(getTaxDeclarationWrapper(user)::listPage, queryParam);
|
|
|
|
|
}
|
|
|
|
|
|
2023-06-12 10:40:01 +08:00
|
|
|
@POST
|
|
|
|
|
@Path("/withDrawTaxDeclaration")
|
|
|
|
|
@Produces(MediaType.APPLICATION_JSON)
|
|
|
|
|
public String deleteTaxDeclaration(@Context HttpServletRequest request, @Context HttpServletResponse response, @RequestBody TaxDeclarationSaveParam param) {
|
|
|
|
|
User user = HrmUserVarify.getUser(request, response);
|
|
|
|
|
return new ResponseResult<Long, String>(user).run(getTaxDeclarationWrapper(user)::withDrawTaxDeclaration, param.getTaxDeclarationId());
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
2022-05-09 10:32:14 +08:00
|
|
|
//个税申报表表单
|
|
|
|
|
@GET
|
|
|
|
|
@Path("/getForm")
|
|
|
|
|
@Produces(MediaType.APPLICATION_JSON)
|
|
|
|
|
public String getForm(@Context HttpServletRequest request, @Context HttpServletResponse response, @QueryParam(value = "id") Long id) {
|
|
|
|
|
User user = HrmUserVarify.getUser(request, response);
|
|
|
|
|
return new ResponseResult<Long, TaxDeclarationFormDTO>(user).run(getTaxDeclarationWrapper(user)::getForm, id);
|
|
|
|
|
}
|
2022-04-16 15:33:51 +08:00
|
|
|
|
2022-05-09 10:32:14 +08:00
|
|
|
//个税申报表相关信息
|
|
|
|
|
@GET
|
|
|
|
|
@Path("/getTaxDeclarationInfo")
|
|
|
|
|
@Produces(MediaType.APPLICATION_JSON)
|
|
|
|
|
public String getTaxDeclarationInfo(@Context HttpServletRequest request, @Context HttpServletResponse response, @QueryParam(value = "taxDeclarationId") Long taxDeclarationId) {
|
|
|
|
|
User user = HrmUserVarify.getUser(request, response);
|
|
|
|
|
return new ResponseResult<Long, TaxDeclarationInfoDTO>(user).run(getTaxDeclarationWrapper(user)::getTaxDeclarationInfoById, taxDeclarationId);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
//个税申报表生成
|
|
|
|
|
@POST
|
|
|
|
|
@Path("/save")
|
|
|
|
|
@Produces(MediaType.APPLICATION_JSON)
|
|
|
|
|
public String save(@Context HttpServletRequest request, @Context HttpServletResponse response, @RequestBody TaxDeclarationSaveParam param) {
|
|
|
|
|
User user = HrmUserVarify.getUser(request, response);
|
|
|
|
|
param.setSalaryMonth(SalaryDateUtil.String2YearMonth(param.getSalaryMonthStr()));
|
|
|
|
|
return new ResponseResult<TaxDeclarationSaveParam, Long>(user).run(getTaxDeclarationWrapper(user)::save, param);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
//个税申报表详情列表
|
|
|
|
|
@POST
|
|
|
|
|
@Path("/detail/list")
|
|
|
|
|
@Produces(MediaType.APPLICATION_JSON)
|
|
|
|
|
public String listTaxDeclarationDetail(@Context HttpServletRequest request, @Context HttpServletResponse response, @RequestBody TaxDeclarationDetailListQueryParam param) {
|
|
|
|
|
User user = HrmUserVarify.getUser(request, response);
|
|
|
|
|
param.setTaxDeclarationId(Long.parseLong(param.getTaxDeclarationIdStr()));
|
2022-06-10 13:33:48 +08:00
|
|
|
return new ResponseResult<TaxDeclarationDetailListQueryParam, PageInfo>(user).run(getTaxDeclarationDetailWrapper(user)::listPage, param);
|
2022-05-09 10:32:14 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
//个税申报表相关信息
|
|
|
|
|
@GET
|
|
|
|
|
@Path("/export")
|
|
|
|
|
@Produces(MediaType.APPLICATION_OCTET_STREAM)
|
|
|
|
|
public Response exportTaxDeclaration(@Context HttpServletRequest request, @Context HttpServletResponse response, @QueryParam(value = "taxDeclarationId") Long taxDeclarationId) {
|
|
|
|
|
try {
|
2022-04-18 18:56:17 +08:00
|
|
|
User user = HrmUserVarify.getUser(request, response);
|
|
|
|
|
XSSFWorkbook workbook = getTaxDeclarationExcelService(user).exportTaxDeclaration(taxDeclarationId);
|
|
|
|
|
|
2022-05-09 10:32:14 +08:00
|
|
|
String fileName = "个税申报表" + LocalDate.now();
|
2022-04-18 18:56:17 +08:00
|
|
|
try {
|
|
|
|
|
fileName = URLEncoder.encode(fileName + ".xlsx", "UTF-8");
|
|
|
|
|
} catch (UnsupportedEncodingException e) {
|
|
|
|
|
e.printStackTrace();
|
|
|
|
|
}
|
2022-03-01 18:49:22 +08:00
|
|
|
|
2022-04-18 18:56:17 +08:00
|
|
|
StreamingOutput output = outputStream -> {
|
|
|
|
|
workbook.write(outputStream);
|
|
|
|
|
outputStream.flush();
|
|
|
|
|
};
|
|
|
|
|
response.setContentType("application/octet-stream");
|
|
|
|
|
return Response.ok(output).header("Content-disposition", "attachment;filename=" + fileName).header("Cache-Control", "no-cache").build();
|
2022-05-09 10:32:14 +08:00
|
|
|
} catch (Exception e) {
|
|
|
|
|
log.error("个税申报表导出异常", e);
|
|
|
|
|
throw e;
|
2022-04-18 18:56:17 +08:00
|
|
|
}
|
2022-05-09 10:32:14 +08:00
|
|
|
}
|
2023-08-10 09:33:04 +08:00
|
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 刷新个税申报表的待刷新标识
|
|
|
|
|
*
|
|
|
|
|
* @param param 更新参数
|
|
|
|
|
* @return
|
|
|
|
|
*/
|
2023-08-14 20:07:29 +08:00
|
|
|
@POST
|
2023-08-10 09:33:04 +08:00
|
|
|
@Path("/updateIcon")
|
|
|
|
|
@Produces(MediaType.APPLICATION_JSON)
|
2023-08-14 20:07:29 +08:00
|
|
|
public String updateIcon(@Context HttpServletRequest request, @Context HttpServletResponse response, @RequestBody TaxDeclareRecordParam param) {
|
2023-08-10 09:33:04 +08:00
|
|
|
User user = HrmUserVarify.getUser(request, response);
|
2023-08-14 20:07:29 +08:00
|
|
|
return new ResponseResult<Long, TaxDeclarationInfoDTO>(user).run(getTaxDeclareRecordWrapper(user)::updateIcon, param.getTaxDeclareRecordId());
|
2023-08-10 09:33:04 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 个税申报表生成
|
|
|
|
|
*
|
|
|
|
|
* @param ids 个税申报记录id
|
|
|
|
|
* @return
|
|
|
|
|
*/
|
2023-08-14 20:07:29 +08:00
|
|
|
@POST
|
2023-08-10 09:33:04 +08:00
|
|
|
@Path("/delete")
|
|
|
|
|
@Produces(MediaType.APPLICATION_JSON)
|
2023-08-14 20:07:29 +08:00
|
|
|
public String delete(@Context HttpServletRequest request, @Context HttpServletResponse response, @RequestBody Collection<Long> ids) {
|
|
|
|
|
User user = HrmUserVarify.getUser(request, response);
|
|
|
|
|
return new ResponseResult<Collection<Long>, TaxDeclarationInfoDTO>(user).run(getTaxDeclareRecordWrapper(user)::delete, ids);
|
2023-08-10 09:33:04 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 个税申报表是否已经生成
|
|
|
|
|
*
|
|
|
|
|
* @param index 进度缓存索引
|
|
|
|
|
* @return
|
|
|
|
|
*/
|
2023-08-14 20:07:29 +08:00
|
|
|
@GET
|
|
|
|
|
@Path("/getRate")
|
2023-08-10 09:33:04 +08:00
|
|
|
@Produces(MediaType.APPLICATION_JSON)
|
2023-08-14 20:07:29 +08:00
|
|
|
public String getRate(@Context HttpServletRequest request, @Context HttpServletResponse response, @QueryParam(value = "index") String index) {
|
|
|
|
|
User user = HrmUserVarify.getUser(request, response);
|
|
|
|
|
return new ResponseResult<String, TaxDeclarationRateDTO>(user).run(getTaxDeclareRecordWrapper(user)::getRate, index);
|
2023-08-10 09:33:04 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 获取个税申报记录下的个税申报表TAB
|
|
|
|
|
*
|
|
|
|
|
* @param id 个税申报记录id
|
|
|
|
|
* @return
|
|
|
|
|
*/
|
2023-08-14 20:07:29 +08:00
|
|
|
@GET
|
|
|
|
|
@Path("/getTaxDeclarationTab")
|
2023-08-10 09:33:04 +08:00
|
|
|
@Produces(MediaType.APPLICATION_JSON)
|
2023-08-14 20:07:29 +08:00
|
|
|
public String getTaxDeclarationTab(@Context HttpServletRequest request, @Context HttpServletResponse response, @QueryParam(value = "id") Long id) {
|
|
|
|
|
User user = HrmUserVarify.getUser(request, response);
|
|
|
|
|
return new ResponseResult<Long, List<TaxDeclarationTabDTO>>(user).run(getTaxDeclareRecordWrapper(user)::getTaxDeclarationTab, id);
|
2023-08-10 09:33:04 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 在线申报
|
|
|
|
|
*
|
|
|
|
|
* @param taxDeclareRecordParam 在线申报参数
|
|
|
|
|
* @return
|
|
|
|
|
*/
|
2023-08-14 20:07:29 +08:00
|
|
|
@POST
|
2023-08-10 09:33:04 +08:00
|
|
|
@Path("/declare")
|
|
|
|
|
@Produces(MediaType.APPLICATION_JSON)
|
2023-08-14 20:07:29 +08:00
|
|
|
public String declare(@Context HttpServletRequest request, @Context HttpServletResponse response, @RequestBody TaxDeclareRecordParam taxDeclareRecordParam) {
|
|
|
|
|
User user = HrmUserVarify.getUser(request, response);
|
|
|
|
|
return new ResponseResult<Long, String>(user).run(getTaxDeclareRecordWrapper(user)::declare, taxDeclareRecordParam.getTaxDeclareRecordId());
|
2023-08-10 09:33:04 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 获取在线申报反馈
|
|
|
|
|
*
|
|
|
|
|
* @param taxDeclareRecordParam 申报反馈参数
|
|
|
|
|
* @return
|
|
|
|
|
*/
|
2023-08-14 20:07:29 +08:00
|
|
|
@POST
|
2023-08-10 09:33:04 +08:00
|
|
|
@Path("/getDeclareFeedback")
|
|
|
|
|
@Produces(MediaType.APPLICATION_JSON)
|
2023-08-14 20:07:29 +08:00
|
|
|
public String getDeclareFeedback(@Context HttpServletRequest request, @Context HttpServletResponse response, @RequestBody TaxDeclareRecordParam taxDeclareRecordParam) {
|
|
|
|
|
User user = HrmUserVarify.getUser(request, response);
|
|
|
|
|
return new ResponseResult<Long, String>(user).run(getTaxDeclareRecordWrapper(user)::getDeclareFeedback, taxDeclareRecordParam.getTaxDeclareRecordId());
|
2023-08-10 09:33:04 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 作废
|
|
|
|
|
*
|
|
|
|
|
* @param taxDeclareRecordParam 作废参数
|
|
|
|
|
* @return
|
|
|
|
|
*/
|
2023-08-14 20:07:29 +08:00
|
|
|
@POST
|
2023-08-10 09:33:04 +08:00
|
|
|
@Path("/cancel")
|
|
|
|
|
@Produces(MediaType.APPLICATION_JSON)
|
2023-08-14 20:07:29 +08:00
|
|
|
public String cancel(@Context HttpServletRequest request, @Context HttpServletResponse response, @RequestBody TaxDeclareRecordParam taxDeclareRecordParam) {
|
|
|
|
|
User user = HrmUserVarify.getUser(request, response);
|
|
|
|
|
return new ResponseResult<Long, String>(user).run(getTaxDeclareRecordWrapper(user)::cancelDeclare, taxDeclareRecordParam.getTaxDeclareRecordId());
|
2023-08-10 09:33:04 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 获取作废反馈
|
|
|
|
|
*
|
|
|
|
|
* @param taxDeclareRecordParam 作废反馈参数
|
|
|
|
|
* @return
|
|
|
|
|
*/
|
2023-08-14 20:07:29 +08:00
|
|
|
@POST
|
2023-08-10 09:33:04 +08:00
|
|
|
@Path("/getCancelFeedback")
|
|
|
|
|
@Produces(MediaType.APPLICATION_JSON)
|
2023-08-14 20:07:29 +08:00
|
|
|
public String getCancelFeedback(@Context HttpServletRequest request, @Context HttpServletResponse response, @RequestBody TaxDeclareRecordParam taxDeclareRecordParam) {
|
|
|
|
|
User user = HrmUserVarify.getUser(request, response);
|
|
|
|
|
return new ResponseResult<Long, String>(user).run(getTaxDeclareRecordWrapper(user)::getCancelFeedback, taxDeclareRecordParam.getTaxDeclareRecordId());
|
2023-08-10 09:33:04 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 更正申报
|
|
|
|
|
*
|
|
|
|
|
* @param taxDeclareRecordParam 更正申报参数
|
|
|
|
|
* @return
|
|
|
|
|
*/
|
2023-08-14 20:07:29 +08:00
|
|
|
@POST
|
2023-08-10 09:33:04 +08:00
|
|
|
@Path("/updateDeclare")
|
|
|
|
|
@Produces(MediaType.APPLICATION_JSON)
|
2023-08-14 20:07:29 +08:00
|
|
|
public String updateDeclare(@Context HttpServletRequest request, @Context HttpServletResponse response, @RequestBody TaxDeclareRecordParam taxDeclareRecordParam) {
|
|
|
|
|
User user = HrmUserVarify.getUser(request, response);
|
|
|
|
|
return new ResponseResult<Long, String>(user).run(getTaxDeclareRecordWrapper(user)::updateDeclare, taxDeclareRecordParam.getTaxDeclareRecordId());
|
2023-08-10 09:33:04 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 税局端申报状态查询
|
|
|
|
|
*
|
|
|
|
|
* @param taxDeclareRecordParam 查询参数
|
|
|
|
|
* @return
|
|
|
|
|
*/
|
2023-08-14 20:07:29 +08:00
|
|
|
@POST
|
2023-08-10 09:33:04 +08:00
|
|
|
@Path("/queryDeclareStatus")
|
|
|
|
|
@Produces(MediaType.APPLICATION_JSON)
|
2023-08-14 20:07:29 +08:00
|
|
|
public String queryDeclareStatus(@Context HttpServletRequest request, @Context HttpServletResponse response, @RequestBody TaxDeclareRecordParam taxDeclareRecordParam) {
|
|
|
|
|
User user = HrmUserVarify.getUser(request, response);
|
|
|
|
|
return new ResponseResult<Long, String>(user).run(getTaxDeclareRecordWrapper(user)::queryDeclareStatus, taxDeclareRecordParam.getTaxDeclareRecordId());
|
2023-08-10 09:33:04 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 税局端申报明细查询
|
|
|
|
|
*
|
|
|
|
|
* @param taxDeclareRecordParam 查询申报明细参数
|
|
|
|
|
* @return
|
|
|
|
|
*/
|
2023-08-14 20:07:29 +08:00
|
|
|
@POST
|
2023-08-10 09:33:04 +08:00
|
|
|
@Path("/queryCompanyIncomes")
|
|
|
|
|
@Produces(MediaType.APPLICATION_JSON)
|
2023-08-14 20:07:29 +08:00
|
|
|
public String queryCompanyIncomes(@Context HttpServletRequest request, @Context HttpServletResponse response, @RequestBody TaxDeclareRecordParam taxDeclareRecordParam) {
|
|
|
|
|
User user = HrmUserVarify.getUser(request, response);
|
|
|
|
|
return new ResponseResult<Long, String>(user).run(getTaxDeclareRecordWrapper(user)::queryCompanyIncomes, taxDeclareRecordParam.getTaxDeclareRecordId());
|
2023-08-10 09:33:04 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 刷新数据
|
|
|
|
|
*
|
|
|
|
|
* @param taxDeclareRecordParam 刷新数据参数
|
|
|
|
|
* @return
|
|
|
|
|
*/
|
2023-08-14 20:07:29 +08:00
|
|
|
@POST
|
2023-08-10 09:33:04 +08:00
|
|
|
@Path("/refreshData")
|
|
|
|
|
@Produces(MediaType.APPLICATION_JSON)
|
2023-08-14 20:07:29 +08:00
|
|
|
public String refreshData(@Context HttpServletRequest request, @Context HttpServletResponse response, @RequestBody TaxDeclareRecordParam taxDeclareRecordParam) {
|
|
|
|
|
User user = HrmUserVarify.getUser(request, response);
|
|
|
|
|
return new ResponseResult<Long, String>(user).run(getTaxDeclareRecordWrapper(user)::refreshData, taxDeclareRecordParam.getTaxDeclareRecordId());
|
2023-08-10 09:33:04 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 个税申报表详情列表
|
|
|
|
|
*
|
|
|
|
|
* @param queryParam 查询条件
|
|
|
|
|
* @return
|
|
|
|
|
*/
|
2023-08-14 20:07:29 +08:00
|
|
|
@POST
|
2023-08-10 09:33:04 +08:00
|
|
|
@Path("/detail/list")
|
|
|
|
|
@Produces(MediaType.APPLICATION_JSON)
|
2023-08-14 20:07:29 +08:00
|
|
|
public String listTaxDeclarationValue(@Context HttpServletRequest request, @Context HttpServletResponse response, @RequestBody TaxDeclarationValueListQueryParam queryParam) {
|
|
|
|
|
User user = HrmUserVarify.getUser(request, response);
|
|
|
|
|
return new ResponseResult<TaxDeclarationValueListQueryParam, PageInfo>(user).run(getTaxDeclareRecordWrapper(user)::listValuePage, queryParam);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// /**
|
|
|
|
|
// * 导出个税申报表申报数据
|
|
|
|
|
// *
|
|
|
|
|
// * @param queryParam 导出参数
|
|
|
|
|
// * @return
|
|
|
|
|
// */
|
|
|
|
|
// @POST
|
|
|
|
|
// @Path("/detail/export")
|
|
|
|
|
// @Produces(MediaType.APPLICATION_JSON)
|
|
|
|
|
// public String exportTaxDeclaration(@Context HttpServletRequest request, @Context HttpServletResponse response, @RequestBody TaxDeclarationValueListQueryParam queryParam) {
|
|
|
|
|
// User user = HrmUserVarify.getUser(request, response);
|
|
|
|
|
// return new ResponseResult<TaxDeclarationValueListQueryParam, PageInfo>(user).run(getTaxDeclareRecordWrapper(user)::exportTaxDeclarationValue, queryParam);
|
|
|
|
|
//
|
|
|
|
|
// }
|
2023-08-10 09:33:04 +08:00
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 个税申报表申报数据-人员未报送列表
|
|
|
|
|
*
|
|
|
|
|
* @param queryParam 查询条件
|
|
|
|
|
* @return
|
|
|
|
|
*/
|
2023-08-14 20:07:29 +08:00
|
|
|
@POST
|
2023-08-10 09:33:04 +08:00
|
|
|
@Path("/employee/list4NotDeclare")
|
|
|
|
|
@Produces(MediaType.APPLICATION_JSON)
|
2023-08-14 20:07:29 +08:00
|
|
|
public String listEmployee4NotDeclare(@Context HttpServletRequest request, @Context HttpServletResponse response, @RequestBody AbnormalEmployeeListQueryParam queryParam) {
|
|
|
|
|
User user = HrmUserVarify.getUser(request, response);
|
|
|
|
|
return new ResponseResult<AbnormalEmployeeListQueryParam, PageInfo<AbnormalEmployeeListDTO>>(user).run(getTaxDeclareRecordWrapper(user)::listEmployeePage4NotDeclare, queryParam);
|
2023-08-10 09:33:04 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 个税申报表申报数据-报送人员无申报数据列表
|
|
|
|
|
*
|
|
|
|
|
* @param queryParam 查询条件
|
|
|
|
|
* @return
|
|
|
|
|
*/
|
2023-08-14 20:07:29 +08:00
|
|
|
@POST
|
2023-08-10 09:33:04 +08:00
|
|
|
@Path("/employee/list4NoValue")
|
|
|
|
|
@Produces(MediaType.APPLICATION_JSON)
|
2023-08-14 20:07:29 +08:00
|
|
|
public String listEmployee4NoValue(@Context HttpServletRequest request, @Context HttpServletResponse response, @RequestBody AbnormalEmployeeListQueryParam queryParam) {
|
|
|
|
|
User user = HrmUserVarify.getUser(request, response);
|
|
|
|
|
return new ResponseResult<AbnormalEmployeeListQueryParam, PageInfo<AbnormalEmployeeListDTO>>(user).run(getTaxDeclareRecordWrapper(user)::listEmployeePage4NoValue, queryParam);
|
2023-08-10 09:33:04 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 个税申报表申报数据-申报失败列表
|
|
|
|
|
*
|
|
|
|
|
* @param queryParam 查询条件
|
|
|
|
|
* @return
|
|
|
|
|
*/
|
2023-08-14 20:07:29 +08:00
|
|
|
@POST
|
2023-08-10 09:33:04 +08:00
|
|
|
@Path("/employee/list4Fail")
|
|
|
|
|
@Produces(MediaType.APPLICATION_JSON)
|
2023-08-14 20:07:29 +08:00
|
|
|
public String listEmployee4Fail(@Context HttpServletRequest request, @Context HttpServletResponse response, @RequestBody AbnormalEmployeeListQueryParam queryParam) {
|
|
|
|
|
User user = HrmUserVarify.getUser(request, response);
|
|
|
|
|
return new ResponseResult<AbnormalEmployeeListQueryParam, PageInfo<AbnormalEmployeeListDTO>>(user).run(getTaxDeclareRecordWrapper(user)::listEmployeePage4Fail, queryParam);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// /**
|
|
|
|
|
// * 个税申报表申报数据-导出人员未报送列表
|
|
|
|
|
// *
|
|
|
|
|
// * @param queryParam 查询条件
|
|
|
|
|
// * @return
|
|
|
|
|
// */
|
|
|
|
|
// @POST
|
|
|
|
|
// @Path("/employee/export4NotDeclare")
|
|
|
|
|
// @Produces(MediaType.APPLICATION_JSON)
|
|
|
|
|
// public String exportEmployee4NotDeclare(@Context HttpServletRequest request, @Context HttpServletResponse response, @RequestBody AbnormalEmployeeListQueryParam queryParam) {
|
|
|
|
|
//
|
|
|
|
|
// Map<String, Object> map = taxDeclareRecordWrapper.exportEmployee4NotDeclare(queryParam, UserContext.getCurrentUser());
|
|
|
|
|
// return WeaResult.success(map);
|
|
|
|
|
// }
|
|
|
|
|
|
|
|
|
|
// /**
|
|
|
|
|
// * 个税申报表申报数据-导出报送人员无申报数据列表
|
|
|
|
|
// *
|
|
|
|
|
// * @param queryParam 查询条件
|
|
|
|
|
// * @return
|
|
|
|
|
// */
|
|
|
|
|
// @POST
|
|
|
|
|
// @Path("/employee/export4NoValue")
|
|
|
|
|
// @Produces(MediaType.APPLICATION_JSON)
|
|
|
|
|
// public String exportEmployee4NoValue(@Context HttpServletRequest request, @Context HttpServletResponse response, @RequestBody AbnormalEmployeeListQueryParam queryParam) {
|
|
|
|
|
// Map<String, Object> map = taxDeclareRecordWrapper.exportEmployee4NoValue(queryParam, UserContext.getCurrentUser());
|
|
|
|
|
// return WeaResult.success(map);
|
|
|
|
|
// }
|
|
|
|
|
//
|
|
|
|
|
// /**
|
|
|
|
|
// * 个税申报表申报数据-导出申报失败列表
|
|
|
|
|
// *
|
|
|
|
|
// * @param queryParam 导出参数
|
|
|
|
|
// * @return
|
|
|
|
|
// */
|
|
|
|
|
// @POST
|
|
|
|
|
// @Path("/employee/export4Fail")
|
|
|
|
|
// @Produces(MediaType.APPLICATION_JSON)
|
|
|
|
|
// public String exportEmployee4Fail(@Context HttpServletRequest request, @Context HttpServletResponse response, @RequestBody AbnormalEmployeeListQueryParam queryParam) {
|
|
|
|
|
// Map<String, Object> map = taxDeclareRecordWrapper.exportEmployee4Fail(queryParam, UserContext.getCurrentUser());
|
|
|
|
|
// return WeaResult.success(map);
|
|
|
|
|
// }
|
2023-08-10 09:33:04 +08:00
|
|
|
|
2022-03-01 18:49:22 +08:00
|
|
|
}
|