diff --git a/src/com/engine/salary/web/TaxAgentController.java b/src/com/engine/salary/web/TaxAgentController.java index 6b67b9de4..8695bf32b 100644 --- a/src/com/engine/salary/web/TaxAgentController.java +++ b/src/com/engine/salary/web/TaxAgentController.java @@ -274,6 +274,16 @@ public class TaxAgentController { User user = HrmUserVarify.getUser(request, response); return new ResponseResult, List>>(user).run(getTaxAgentWrapper(user)::selectListAsAdmin); } + + + @GET + @Path("/getEmpListInTaxAgent") + @Produces(MediaType.APPLICATION_JSON) + public String getEmpListInTaxAgent(@Context HttpServletRequest request, @Context HttpServletResponse response, @QueryParam(value = "id") Long id) { + User user = HrmUserVarify.getUser(request, response); + return new ResponseResult>(user).run(getTaxAgentWrapper(user)::getEmpListInTaxAgent, id); + } + /* ******* 个税扣缴义务人 end ***********************************************************************************************/ /* ******* 分管理员 start ***********************************************************************************************/ diff --git a/src/com/engine/salary/wrapper/TaxAgentWrapper.java b/src/com/engine/salary/wrapper/TaxAgentWrapper.java index 70e49f9dd..6dd21c58b 100644 --- a/src/com/engine/salary/wrapper/TaxAgentWrapper.java +++ b/src/com/engine/salary/wrapper/TaxAgentWrapper.java @@ -5,10 +5,7 @@ import com.engine.core.impl.Service; import com.engine.salary.entity.datacollection.DataCollectionEmployee; import com.engine.salary.entity.hrm.HrmStatus; import com.engine.salary.entity.taxagent.bo.TaxAgentBO; -import com.engine.salary.entity.taxagent.dto.TaxAgentEmployeeOptionDTO; -import com.engine.salary.entity.taxagent.dto.TaxAgentFormDTO; -import com.engine.salary.entity.taxagent.dto.TaxAgentManageRangeFormDTO; -import com.engine.salary.entity.taxagent.dto.TaxAgentManageRangeListDTO; +import com.engine.salary.entity.taxagent.dto.*; import com.engine.salary.entity.taxagent.param.*; import com.engine.salary.entity.taxagent.po.TaxAgentAdminPO; import com.engine.salary.entity.taxagent.po.TaxAgentPO; @@ -350,4 +347,13 @@ public class TaxAgentWrapper extends Service { getTaxAgentManageRangeService(user).deleteByIds(ids); return StringUtils.EMPTY; } + + /** + * 获取个税管理的人员情况 + * @param id + * @return + */ + public List getEmpListInTaxAgent(Long id) { + return getTaxAgentService(user).listTaxAgentAndEmployeeTree((long) user.getUID()); + } }