This commit is contained in:
@@ -0,0 +1,72 @@
|
||||
package jnpf.personnels;
|
||||
|
||||
import jnpf.model.attendance.vo.DailyApprovalVo;
|
||||
import jnpf.model.personnels.dto.emp.FtbEmpQueryDTO;
|
||||
import jnpf.model.personnels.dto.roster.meta.FtbPersonnlesJobTenureDTO;
|
||||
import jnpf.model.personnels.dto.secondment.FtbSecondMentQueryDTO;
|
||||
import jnpf.model.personnels.dto.staff.roster.FtbPersonnelsStaffRosterDto;
|
||||
import jnpf.model.personnels.vo.roster.FtbPersonnelsChangeInfoVO;
|
||||
import jnpf.model.personnels.vo.roster.FtbPersonnlesJobTenureVO;
|
||||
import jnpf.model.personnels.vo.secondment.FtbPersonnelsSecondmentVO;
|
||||
import jnpf.util.NoDataSourceBind;
|
||||
import org.springframework.cloud.openfeign.FeignClient;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.PostMapping;
|
||||
import org.springframework.web.bind.annotation.RequestBody;
|
||||
import org.springframework.web.bind.annotation.RequestParam;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
/**
|
||||
* @Author: peng.hao
|
||||
* @create: 2025/10/3
|
||||
*/
|
||||
@FeignClient(name = "jnpf-ftb")
|
||||
public interface FtbPersonneApi {
|
||||
|
||||
/**
|
||||
*根据userId 查询人事异动信息
|
||||
*/
|
||||
@GetMapping("/web-app/staff-home-page/get-personnel-change-info")
|
||||
FtbPersonnelsChangeInfoVO getPersonnelChangeInfo(@RequestParam(name = "userId") String userId);
|
||||
|
||||
|
||||
@PostMapping("/web-app/staff-home-page/get-personnel-change-info-batch")
|
||||
Map<String, FtbPersonnelsChangeInfoVO> getPersonnelChangeInfoBatch(@RequestBody List<String> userIds);
|
||||
/**
|
||||
* 根据userI 和开始时间结束时间查询借调记录
|
||||
*/
|
||||
@GetMapping("/web/secondment/get-secondment-record")
|
||||
List<FtbPersonnelsSecondmentVO> getSecondmentRecord(@RequestParam("userId") String userId,
|
||||
@RequestParam(value = "startLeaveTime",required = false) String startLeaveTime,
|
||||
@RequestParam(value = "endLeaveTime",required = false)String endLeaveTime);
|
||||
|
||||
/**
|
||||
* 批量查询审批中和审批完成的借调记录
|
||||
*/
|
||||
@PostMapping("/web/secondment/get-secondment-record-bath")
|
||||
List<FtbPersonnelsSecondmentVO> getSecondmentRecordBath(@RequestBody FtbSecondMentQueryDTO dto);
|
||||
|
||||
|
||||
/**
|
||||
* 查询审批中和审批完成的借调记录
|
||||
*/
|
||||
@PostMapping("/web/secondment/list-query-approval")
|
||||
List<DailyApprovalVo> queryListApproval(@RequestBody FtbSecondMentQueryDTO dto);
|
||||
|
||||
/**
|
||||
* 模糊搜索 电话 名称
|
||||
*/
|
||||
@PostMapping("/web/personnels-emp-entry/search-phone-name")
|
||||
List<FtbPersonnelsStaffRosterDto> searchPhoneName(@RequestBody FtbEmpQueryDTO dto);
|
||||
|
||||
/**
|
||||
* 查询岗龄
|
||||
* @param req
|
||||
* @return
|
||||
*/
|
||||
@PostMapping("/web-app/staff-home-page/query-positionTenure-age")
|
||||
@NoDataSourceBind
|
||||
List<FtbPersonnlesJobTenureVO> queryPositionTenureAge(@RequestBody FtbPersonnlesJobTenureDTO req);
|
||||
}
|
||||
@@ -0,0 +1,38 @@
|
||||
package jnpf.personnels;
|
||||
|
||||
import jnpf.base.ActionResult;
|
||||
import jnpf.model.personnels.dto.contractinfo.ContactStatusInfo;
|
||||
import jnpf.personnels.fallback.FtbPersonnelsContaceInfoManagerFallBackApi;
|
||||
import jnpf.util.NoDataSourceBind;
|
||||
import org.springframework.cloud.openfeign.FeignClient;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.PostMapping;
|
||||
import org.springframework.web.bind.annotation.RequestBody;
|
||||
import org.springframework.web.bind.annotation.RequestParam;
|
||||
|
||||
|
||||
@FeignClient(name = "jnpf-ftb", fallback = FtbPersonnelsContaceInfoManagerFallBackApi.class, path = "/web/personnelsContactInfo")
|
||||
public interface FtbPersonnelsContactInfoManagerApi {
|
||||
|
||||
/**
|
||||
* 同步合同信息
|
||||
*
|
||||
* @param info
|
||||
* @return
|
||||
*/
|
||||
@PostMapping("/syncContactInfo")
|
||||
@NoDataSourceBind
|
||||
ActionResult<Boolean> syncContactInfo(@RequestBody ContactStatusInfo info);
|
||||
|
||||
/**
|
||||
* 定时任务检测未签署合同消息
|
||||
*
|
||||
* @param tenantId
|
||||
* @return
|
||||
*/
|
||||
@GetMapping("/checkNotSendContactSign")
|
||||
@NoDataSourceBind
|
||||
ActionResult<Boolean> checkNotSendContactSign(@RequestParam("tenantId") String tenantId);
|
||||
|
||||
|
||||
}
|
||||
@@ -0,0 +1,19 @@
|
||||
package jnpf.personnels;
|
||||
|
||||
import org.springframework.cloud.openfeign.FeignClient;
|
||||
import org.springframework.web.bind.annotation.PutMapping;
|
||||
import org.springframework.web.bind.annotation.RequestParam;
|
||||
|
||||
/**
|
||||
* 入职api
|
||||
*/
|
||||
@FeignClient(name = "jnpf-ftb", path = "/web/personnels-emp-entry")
|
||||
public interface FtbPersonnelsEmEntryApi {
|
||||
|
||||
/**
|
||||
* 根据userId修改手机号信息
|
||||
*/
|
||||
@PutMapping("/update-phone-by-userId")
|
||||
void updatePhoneByUserId( @RequestParam("userId") String userId,
|
||||
@RequestParam("phone") String phone);
|
||||
}
|
||||
@@ -0,0 +1,30 @@
|
||||
package jnpf.personnels;
|
||||
|
||||
import jnpf.model.personnels.vo.employeetype.FtbPersonnelsEmployeeTypeVO;
|
||||
import jnpf.personnels.fallback.FtbPersonnelsEmployeeTypeRemoteFallBackApi;
|
||||
import org.springframework.cloud.openfeign.FeignClient;
|
||||
import org.springframework.web.bind.annotation.PostMapping;
|
||||
import org.springframework.web.bind.annotation.RequestBody;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
/**
|
||||
* 员工类型模块
|
||||
*
|
||||
* @author wangchunxiang
|
||||
* @date 2025/09/30
|
||||
*/
|
||||
@FeignClient(name = "jnpf-ftb", fallback = FtbPersonnelsEmployeeTypeRemoteFallBackApi.class, path = "/web/employee-type")
|
||||
public interface FtbPersonnelsEmployeeTypeRemoteApi {
|
||||
|
||||
/**
|
||||
* 根据用户ID集合查询员工类型ID、名称
|
||||
*
|
||||
* @param userIds 用户ID集合
|
||||
* @return key为用户Id,value为员工类型
|
||||
*/
|
||||
@PostMapping("/get-employee-type-by-user-ids")
|
||||
Map<String, FtbPersonnelsEmployeeTypeVO> getEmployeeTypeByUserIds(@RequestBody List<String> userIds);
|
||||
|
||||
}
|
||||
@@ -0,0 +1,28 @@
|
||||
package jnpf.personnels;
|
||||
|
||||
import jnpf.base.ActionResult;
|
||||
import jnpf.model.personnels.dto.oa.FtbPersonnelsEmployInfoForOA;
|
||||
import jnpf.personnels.fallback.FtbPersonnelsEmploymentApplyFallBackApi;
|
||||
import jnpf.util.NoDataSourceBind;
|
||||
import org.springframework.cloud.openfeign.FeignClient;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.RequestParam;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
|
||||
@FeignClient(name = "jnpf-ftb", fallback = FtbPersonnelsEmploymentApplyFallBackApi.class, path = "/web/personnels-staff-employment-apply")
|
||||
public interface FtbPersonnelsEmploymentApplyApi {
|
||||
|
||||
@GetMapping("/updateEmploymentApplyStatus")
|
||||
@NoDataSourceBind
|
||||
public ActionResult updateEmploymentApplyStatus(@RequestParam("tenantId") String tenantId);
|
||||
|
||||
/**
|
||||
* 入职办理列表查询 ForOA 回显 姓名 手机
|
||||
*/
|
||||
@GetMapping("/inquire-about-the-entry-list")
|
||||
ActionResult<List<FtbPersonnelsEmployInfoForOA>> inquireAboutTheEntryList(@RequestParam(required = false, name = "keyWords") String keyWords,
|
||||
@RequestParam(required = false,name = "phone")String phone,
|
||||
@RequestParam(required = false,name = "workerName")String workerName);
|
||||
}
|
||||
@@ -0,0 +1,44 @@
|
||||
package jnpf.personnels;
|
||||
|
||||
import jnpf.base.ActionResult;
|
||||
import jnpf.model.personnels.dto.oa.FtbPersonnelsEmployInfoForOA;
|
||||
import jnpf.model.personnels.vo.range.FtbRangeConfigDIYVO;
|
||||
import jnpf.model.personnels.vo.range.FtbRangeConfigVO;
|
||||
import jnpf.personnels.fallback.FtbPersonnelsEmploymentApplyFallBackApi;
|
||||
import jnpf.personnels.fallback.FtbPersonnelsInfoConfigBackApi;
|
||||
import jnpf.util.NoDataSourceBind;
|
||||
import org.springframework.cloud.openfeign.FeignClient;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.RequestParam;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
import java.util.List;
|
||||
|
||||
|
||||
@FeignClient(name = "jnpf-ftb", fallback = FtbPersonnelsInfoConfigBackApi.class, path = "/web/range-config")
|
||||
public interface FtbPersonnelsInfoConfigApi {
|
||||
|
||||
/**
|
||||
* 查询是平均范围配置 还是自定义配置
|
||||
* @param type 1 年龄 2 薪资 3 工龄
|
||||
* @return 配置类型 1平均 2自定义
|
||||
*/
|
||||
@GetMapping("/query-type")
|
||||
ActionResult<Integer> queryType(@RequestParam("type") Integer type);
|
||||
|
||||
/**
|
||||
* 查询平均区间配置范围
|
||||
* @param type 1 年龄 2 薪资 3 工龄
|
||||
*/
|
||||
@GetMapping("/query-info")
|
||||
ActionResult<FtbRangeConfigVO> queryInfo(@RequestParam("type") Integer type);
|
||||
|
||||
/**
|
||||
* 查询自定义区间配置范围
|
||||
*
|
||||
* @param type 1 年龄 2 薪资 3 工龄
|
||||
*/
|
||||
@GetMapping("/query-info-diy")
|
||||
ActionResult<List<FtbRangeConfigDIYVO>> queryDiyInfo(@RequestParam("type") Integer type);
|
||||
|
||||
}
|
||||
@@ -0,0 +1,59 @@
|
||||
package jnpf.personnels;
|
||||
|
||||
import jnpf.model.personnels.dto.roster.meta.PersonnelsMetaDTO;
|
||||
import jnpf.model.personnels.dto.salary.FtbXcCustomFieldDto;
|
||||
import jnpf.model.personnels.req.roster.FtbPersonnelsMetaDataReq;
|
||||
import jnpf.model.personnels.req.roster.FtbPersonnelsMetaFuctionReq;
|
||||
import jnpf.model.personnels.vo.salary.FtbXcCustomFieldVo;
|
||||
import jnpf.personnels.fallback.FtbPersonnelsMetaDataManagerFallBackApi;
|
||||
import jnpf.util.NoDataSourceBind;
|
||||
import org.springframework.cloud.openfeign.FeignClient;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
import java.util.Date;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
|
||||
@FeignClient(name = "jnpf-ftb", fallback = FtbPersonnelsMetaDataManagerFallBackApi.class, path = "/web/personnels/metaData")
|
||||
public interface FtbPersonnelsMetaDataManagerApi {
|
||||
|
||||
@PostMapping("/getMetaData")
|
||||
@NoDataSourceBind
|
||||
public List<PersonnelsMetaDTO> getMetaData(@RequestBody FtbPersonnelsMetaDataReq info);
|
||||
|
||||
/**
|
||||
* 查询用户当月是否已经离职
|
||||
*
|
||||
* @param userId 用户ID
|
||||
* @param tenantId 租户ID
|
||||
* @return true-已经离职 false-未离职
|
||||
*/
|
||||
@GetMapping("/queryCurrMonthDepartStatus/{userId}/{tenantId}")
|
||||
@NoDataSourceBind
|
||||
public Boolean queryCurrMonthDepartStatus(@PathVariable("userId") String userId, @PathVariable("tenantId") String tenantId);
|
||||
|
||||
|
||||
/**
|
||||
* 查询用户当月是否已经离职
|
||||
*
|
||||
* @param req 请求
|
||||
* @return true-已经离职 false-未离职
|
||||
*/
|
||||
@PostMapping("/queryCurrMonthDepartStatusByDate")
|
||||
@NoDataSourceBind
|
||||
Boolean queryCurrMonthDepartStatusByDate(@RequestBody FtbPersonnelsMetaFuctionReq req);
|
||||
|
||||
/**
|
||||
* 批量查询员工是否离职
|
||||
*/
|
||||
@PostMapping("/query-current-month-leave")
|
||||
@NoDataSourceBind
|
||||
Map<String,Boolean> queryCurrMonthLeave(@RequestBody FtbPersonnelsMetaFuctionReq req);
|
||||
|
||||
/**
|
||||
* 批量查询员工自定义字段
|
||||
*/
|
||||
@PostMapping("/query-custom-filed")
|
||||
List<FtbXcCustomFieldVo> queryCustomFiled(@RequestBody FtbXcCustomFieldDto req);
|
||||
}
|
||||
@@ -0,0 +1,50 @@
|
||||
package jnpf.personnels;
|
||||
|
||||
import jnpf.model.personnels.dto.rewardspunishments.FtbPersonnelSalaryRewardDTO;
|
||||
import jnpf.model.personnels.dto.salary.FtbSalaryMetaDataQueryDto;
|
||||
import jnpf.model.personnels.vo.rewardspunishments.FtbPersonnelSalaryRewardVO;
|
||||
import jnpf.model.personnels.vo.rewardspunishments.FtbXcEmployeeRewardRecordsVO;
|
||||
import jnpf.util.NoDataSourceBind;
|
||||
import org.springframework.cloud.openfeign.FeignClient;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.PostMapping;
|
||||
import org.springframework.web.bind.annotation.RequestBody;
|
||||
import org.springframework.web.bind.annotation.RequestParam;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
import java.util.Date;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 查询指定用户,指定月份内,被奖励和处罚的合计
|
||||
*/
|
||||
@FeignClient(name = "jnpf-ftb", path = "/ftb-personnels-rewards-punishments")
|
||||
public interface FtbPersonnelsRewardsPunishmentsApi {
|
||||
|
||||
/**
|
||||
* 薪酬奖励合计
|
||||
*/
|
||||
@PostMapping(value = "/salary-reward")
|
||||
List<FtbPersonnelSalaryRewardVO> salaryReward(@RequestBody FtbPersonnelSalaryRewardDTO ftbPersonnelSalaryRewardDTO);
|
||||
|
||||
/**
|
||||
* 薪酬惩罚合计
|
||||
*/
|
||||
@PostMapping(value = "/pay-penalty")
|
||||
List<FtbPersonnelSalaryRewardVO> totalSalaryPenalty(@RequestBody FtbPersonnelSalaryRewardDTO ftbPersonnelSalaryRewardDTO);
|
||||
|
||||
/**
|
||||
* 薪酬获取奖励和惩罚api
|
||||
*/
|
||||
@PostMapping(value = "/salaryMetaDataQuery")
|
||||
@NoDataSourceBind
|
||||
BigDecimal salaryMetaDataQuery(@RequestBody FtbSalaryMetaDataQueryDto dto);
|
||||
|
||||
/**
|
||||
* 薪酬获取奖励和惩罚api(批量)
|
||||
*/
|
||||
@PostMapping(value = "/salary-meta-data-batch-query")
|
||||
@NoDataSourceBind
|
||||
List<FtbXcEmployeeRewardRecordsVO> salaryBatchMetaDataQuery(@RequestBody FtbSalaryMetaDataQueryDto dto);
|
||||
|
||||
}
|
||||
@@ -0,0 +1,25 @@
|
||||
package jnpf.personnels;
|
||||
|
||||
import jnpf.base.ActionResult;
|
||||
import jnpf.model.personnels.vo.rewardspunishments.FtbPersonnelsRewardsPunishmentApprovalVO;
|
||||
import jnpf.personnels.fallback.FtbPersonnelsRewardsPunishmentsRemoteFallBackApi;
|
||||
import org.springframework.cloud.openfeign.FeignClient;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.RequestParam;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
@FeignClient(name = "jnpf-ftb", path = "/ftb-personnels-rewards-punishments", fallback = FtbPersonnelsRewardsPunishmentsRemoteFallBackApi.class)
|
||||
public interface FtbPersonnelsRewardsPunishmentsRemoteApi {
|
||||
|
||||
|
||||
/**
|
||||
* OA审批获取奖惩规则
|
||||
*
|
||||
* @param type 类型,0奖励,1惩罚
|
||||
* @return {@link ActionResult }
|
||||
*/
|
||||
@GetMapping(value = "/list-approval")
|
||||
ActionResult<List<FtbPersonnelsRewardsPunishmentApprovalVO>> listApproval(@RequestParam("type") Integer type);
|
||||
|
||||
}
|
||||
@@ -0,0 +1,147 @@
|
||||
package jnpf.personnels;
|
||||
|
||||
import io.swagger.v3.oas.annotations.Operation;
|
||||
import jnpf.base.ActionResult;
|
||||
import jnpf.base.vo.PageListVO;
|
||||
import jnpf.model.personnels.dto.roster.QueryCompanyAgeDto;
|
||||
import jnpf.model.personnels.dto.staff.employment.FtbPersonnelsStaffEmploymentApplyDto;
|
||||
import jnpf.model.personnels.dto.staff.roster.FtbPersonnelsStaffRosterDto;
|
||||
import jnpf.model.personnels.dto.staff.roster.ShopManagerUserDto;
|
||||
import jnpf.model.personnels.dto.staff.roster.StaffRosterInfoDto;
|
||||
import jnpf.model.personnels.req.roster.StaffRosterListReq;
|
||||
import jnpf.model.personnels.req.roster.StaffRosterReq;
|
||||
import jnpf.permission.model.user.UserListVO;
|
||||
import jnpf.permission.vo.user.UserListMatchVO;
|
||||
import jnpf.personnels.fallback.FtbPersonnelsRosterManagerFallBackApi;
|
||||
import jnpf.util.NoDataSourceBind;
|
||||
import org.springframework.cloud.openfeign.FeignClient;
|
||||
import org.springframework.cloud.openfeign.SpringQueryMap;
|
||||
import org.springframework.validation.annotation.Validated;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
|
||||
@FeignClient(name = "jnpf-ftb", fallback = FtbPersonnelsRosterManagerFallBackApi.class, path = "/web/personnels-staff-roster")
|
||||
public interface FtbPersonnelsRosterManagerApi {
|
||||
|
||||
@NoDataSourceBind
|
||||
@GetMapping("/updateCompanyAge")
|
||||
ActionResult updateCompanyAge(@RequestParam("tenantId") String tenantId);
|
||||
|
||||
|
||||
/**
|
||||
* 绑定手机号
|
||||
*
|
||||
* @param userId 用户ID
|
||||
* @param phone 手机号
|
||||
* @return
|
||||
*/
|
||||
@PostMapping("/bindPhone")
|
||||
@NoDataSourceBind
|
||||
public ActionResult<Boolean> bindPhone(@RequestParam("tenantCode") String tenantCode, @RequestParam("userId") String userId, @RequestParam("phone") String phone);
|
||||
|
||||
|
||||
@NoDataSourceBind
|
||||
@PostMapping("/queryCompanyAge/{tenantId}")
|
||||
ActionResult<List<QueryCompanyAgeDto>> queryCompanyAge(@RequestBody List<String> userIds, @PathVariable("tenantId") String tenantId);
|
||||
|
||||
/**
|
||||
* 查询未提交入职登记表的用户
|
||||
*
|
||||
* @param tenantId
|
||||
* @return
|
||||
*/
|
||||
@NoDataSourceBind
|
||||
@GetMapping("/queryNoSubmitForm")
|
||||
ActionResult<List<StaffRosterInfoDto>> queryNoSubmitForm(@RequestParam("tenantId") String tenantId);
|
||||
|
||||
|
||||
/**
|
||||
* 查询健康证过期的用户
|
||||
*
|
||||
* @param tenantId
|
||||
* @param days 距离健康证 快过期的天数
|
||||
* @return
|
||||
*/
|
||||
@NoDataSourceBind
|
||||
@GetMapping("/queryHealthExpire")
|
||||
ActionResult<List<StaffRosterInfoDto>> queryHealthExpire(@RequestParam("tenantId") String tenantId, @RequestParam(value = "days", required = false) Long days, @RequestParam(value = "months", required = false) Long months);
|
||||
|
||||
|
||||
/**
|
||||
* 花名册查询列表
|
||||
*
|
||||
* @param req
|
||||
* @return {@link ActionResult}<{@link FtbPersonnelsStaffEmploymentApplyDto}>
|
||||
*/
|
||||
@GetMapping("/query-list")
|
||||
ActionResult<PageListVO<FtbPersonnelsStaffRosterDto>> pageLists(@Validated @SpringQueryMap StaffRosterListReq req);
|
||||
|
||||
/**
|
||||
* 花名册查询列表 _post
|
||||
*
|
||||
* @param req
|
||||
* @return {@link ActionResult}<{@link FtbPersonnelsStaffEmploymentApplyDto}>
|
||||
*/
|
||||
@PostMapping("/query-list/postWithSalary")
|
||||
ActionResult<PageListVO<FtbPersonnelsStaffRosterDto>> postWithSalary(@Validated @RequestBody StaffRosterListReq req);
|
||||
|
||||
/**
|
||||
* 花名册查询列表不分页
|
||||
*/
|
||||
@PostMapping("/query-list/post-with-salary-no-page")
|
||||
List<FtbPersonnelsStaffRosterDto> postWithSalaryNoPage(@Validated @RequestBody StaffRosterListReq req);
|
||||
|
||||
/**
|
||||
* 花名册列表查询-无权限
|
||||
* @param req
|
||||
* @return ActionResult<FtbPersonnelsStaffRosterDto>
|
||||
*/
|
||||
@PostMapping("/query-list/byUserIds")
|
||||
ActionResult<List<FtbPersonnelsStaffRosterDto>> getPersonnelByUserIds(@RequestBody StaffRosterListReq req);
|
||||
|
||||
@PostMapping("/query-list/post")
|
||||
ActionResult<PageListVO<FtbPersonnelsStaffRosterDto>> pageListsPost(@Validated @RequestBody StaffRosterListReq req);
|
||||
|
||||
/**
|
||||
* 查询离职人员信息
|
||||
* @return
|
||||
*/
|
||||
@PostMapping("/queryDepartUser")
|
||||
ActionResult<List<FtbPersonnelsStaffRosterDto>> queryDepartUser(@RequestBody List<String> userIds);
|
||||
|
||||
@Operation(summary = "[匹配]-指定user们哪些存在,哪些不存在, 包含花名册离职的用户")
|
||||
@PostMapping("/user/list/match/ids")
|
||||
ActionResult<UserListMatchVO> getUserListByMatch(@RequestBody List<String> userIds);
|
||||
|
||||
/**
|
||||
* 根据用户ID查询所属门店负责人信息
|
||||
*
|
||||
* @param tenantId
|
||||
* @param userIds 用户ID
|
||||
* @return
|
||||
*/
|
||||
@NoDataSourceBind
|
||||
@PostMapping("/queryShopManagerUser/{tenantId}")
|
||||
ActionResult<ShopManagerUserDto> queryShopManagerUser(@PathVariable("tenantId") String tenantId, @RequestBody List<String> userIds);
|
||||
|
||||
@NoDataSourceBind
|
||||
@GetMapping("/timingAlertTrialJob/{tenantId}")
|
||||
@Deprecated(since = "人事2.1废弃试岗状态")
|
||||
ActionResult<List<UserListVO>> timingAlertTrialJob(@PathVariable("tenantId") String tenantId);
|
||||
|
||||
/**
|
||||
* 根据用户ID查询用户信息
|
||||
* @param req
|
||||
* @return
|
||||
*/
|
||||
@PostMapping("/queryWithUserIds")
|
||||
List<FtbPersonnelsStaffRosterDto> queryWithUserIds( @RequestBody StaffRosterListReq req);
|
||||
|
||||
/**
|
||||
* 查询指定userIds用户信息
|
||||
*/
|
||||
@PostMapping("/queryWithUserIds/post")
|
||||
List<FtbPersonnelsStaffRosterDto> queryWithUserIdsPost(@RequestBody StaffRosterReq req);
|
||||
}
|
||||
@@ -0,0 +1,52 @@
|
||||
package jnpf.personnels;
|
||||
|
||||
import jnpf.base.ActionResult;
|
||||
import jnpf.model.personnels.dto.turnover.FtbDepUserDTO;
|
||||
import jnpf.model.personnels.vo.turnover.FtbPersonnelsTurnoverManagementVO;
|
||||
import jnpf.permission.vo.v2.user.UserBoundVO;
|
||||
import jnpf.personnels.fallback.FtbPersonnelsTurnoverManagementFallBackApi;
|
||||
import jnpf.util.NoDataSourceBind;
|
||||
import org.springframework.cloud.openfeign.FeignClient;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.PostMapping;
|
||||
import org.springframework.web.bind.annotation.RequestBody;
|
||||
import org.springframework.web.bind.annotation.RequestParam;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @Title: FtbPersonnelsTurnoverManagementApi
|
||||
* @Author: peng.hao
|
||||
* @create: 2024/2/19 10:36
|
||||
*/
|
||||
@FeignClient(name = "jnpf-ftb", fallback = FtbPersonnelsTurnoverManagementFallBackApi.class, path = "/web/personnels-turnover")
|
||||
public interface FtbPersonnelsTurnoverManagementApi {
|
||||
|
||||
@GetMapping("/closeUserAccountRegularlyAfterResignation")
|
||||
@NoDataSourceBind
|
||||
ActionResult<String> closeUserAccountRegularlyAfterResignation(@RequestParam("tenantId") String tenantId);
|
||||
|
||||
/**
|
||||
* 离职用户已签署离职协议
|
||||
* @param userId 用户id
|
||||
* @return
|
||||
*/
|
||||
@GetMapping("/user-has-sign-an-agreement")
|
||||
Boolean userHasSignedASeparationAgreement(@RequestParam("userId") String userId,@RequestParam("flag") Integer flag);
|
||||
|
||||
/**
|
||||
* 获取所有离职人员信息
|
||||
*/
|
||||
@GetMapping("/query-turnover-list")
|
||||
List<FtbPersonnelsTurnoverManagementVO> queryTurnoverList();
|
||||
/**
|
||||
* 获取离职人员信息
|
||||
* 1.按多个userId
|
||||
* 2.按多个组织id
|
||||
* 3.按多个岗位id
|
||||
*/
|
||||
@PostMapping("/get-dep-user")
|
||||
List<UserBoundVO> getInformationAboutTheDepartingPerson(@RequestBody FtbDepUserDTO dto);
|
||||
@PostMapping("/not-token-get-dep-user")
|
||||
List<UserBoundVO> getInformationAboutTheDepartingPersonNotToken(@RequestBody FtbDepUserDTO dto);
|
||||
}
|
||||
@@ -0,0 +1,24 @@
|
||||
package jnpf.personnels.fallback;
|
||||
|
||||
import jnpf.base.ActionResult;
|
||||
import jnpf.model.personnels.dto.contractinfo.ContactStatusInfo;
|
||||
import jnpf.personnels.FtbPersonnelsContactInfoManagerApi;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.springframework.stereotype.Component;
|
||||
|
||||
|
||||
@Component
|
||||
@Slf4j
|
||||
public class FtbPersonnelsContaceInfoManagerFallBackApi implements FtbPersonnelsContactInfoManagerApi {
|
||||
|
||||
|
||||
@Override
|
||||
public ActionResult<Boolean> syncContactInfo(ContactStatusInfo info) {
|
||||
return null;
|
||||
}
|
||||
|
||||
@Override
|
||||
public ActionResult<Boolean> checkNotSendContactSign(String tenantId) {
|
||||
return null;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,18 @@
|
||||
package jnpf.personnels.fallback;
|
||||
|
||||
import jnpf.model.personnels.vo.employeetype.FtbPersonnelsEmployeeTypeVO;
|
||||
import jnpf.personnels.FtbPersonnelsEmployeeTypeRemoteApi;
|
||||
import org.springframework.stereotype.Component;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
@Component
|
||||
public class FtbPersonnelsEmployeeTypeRemoteFallBackApi implements FtbPersonnelsEmployeeTypeRemoteApi {
|
||||
|
||||
@Override
|
||||
public Map<String, FtbPersonnelsEmployeeTypeVO> getEmployeeTypeByUserIds(List<String> userIds) {
|
||||
return null;
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,26 @@
|
||||
package jnpf.personnels.fallback;
|
||||
|
||||
import jnpf.base.ActionResult;
|
||||
import jnpf.model.personnels.dto.oa.FtbPersonnelsEmployInfoForOA;
|
||||
import jnpf.personnels.FtbPersonnelsEmploymentApplyApi;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.springframework.stereotype.Component;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
|
||||
@Component
|
||||
@Slf4j
|
||||
public class FtbPersonnelsEmploymentApplyFallBackApi implements FtbPersonnelsEmploymentApplyApi {
|
||||
|
||||
|
||||
@Override
|
||||
public ActionResult updateEmploymentApplyStatus(String tenantId) {
|
||||
return null;
|
||||
}
|
||||
|
||||
@Override
|
||||
public ActionResult<List<FtbPersonnelsEmployInfoForOA>> inquireAboutTheEntryList(String keyWords, String phone, String workerName) {
|
||||
return null;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,29 @@
|
||||
package jnpf.personnels.fallback;
|
||||
|
||||
import jnpf.base.ActionResult;
|
||||
import jnpf.model.personnels.vo.range.FtbRangeConfigDIYVO;
|
||||
import jnpf.model.personnels.vo.range.FtbRangeConfigVO;
|
||||
import jnpf.personnels.FtbPersonnelsInfoConfigApi;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.springframework.stereotype.Component;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
@Component
|
||||
@Slf4j
|
||||
public class FtbPersonnelsInfoConfigBackApi implements FtbPersonnelsInfoConfigApi {
|
||||
@Override
|
||||
public ActionResult<Integer> queryType(Integer type) {
|
||||
return null;
|
||||
}
|
||||
|
||||
@Override
|
||||
public ActionResult<FtbRangeConfigVO> queryInfo(Integer type) {
|
||||
return null;
|
||||
}
|
||||
|
||||
@Override
|
||||
public ActionResult<List<FtbRangeConfigDIYVO>> queryDiyInfo(Integer type) {
|
||||
return null;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,47 @@
|
||||
package jnpf.personnels.fallback;
|
||||
|
||||
import jnpf.model.personnels.dto.roster.meta.PersonnelsMetaDTO;
|
||||
import jnpf.model.personnels.dto.salary.FtbXcCustomFieldDto;
|
||||
import jnpf.model.personnels.req.roster.FtbPersonnelsMetaDataReq;
|
||||
import jnpf.model.personnels.req.roster.FtbPersonnelsMetaFuctionReq;
|
||||
import jnpf.model.personnels.vo.salary.FtbXcCustomFieldVo;
|
||||
import jnpf.personnels.FtbPersonnelsMetaDataManagerApi;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.springframework.stereotype.Component;
|
||||
|
||||
import java.util.Date;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
|
||||
@Component
|
||||
@Slf4j
|
||||
public class FtbPersonnelsMetaDataManagerFallBackApi implements FtbPersonnelsMetaDataManagerApi {
|
||||
|
||||
|
||||
@Override
|
||||
public List<PersonnelsMetaDTO> getMetaData(FtbPersonnelsMetaDataReq info) {
|
||||
return null;
|
||||
}
|
||||
|
||||
@Override
|
||||
public Boolean queryCurrMonthDepartStatus(String userId, String tenantId) {
|
||||
return null;
|
||||
}
|
||||
|
||||
@Override
|
||||
public Boolean queryCurrMonthDepartStatusByDate(FtbPersonnelsMetaFuctionReq req) {
|
||||
return null;
|
||||
}
|
||||
|
||||
@Override
|
||||
public Map<String, Boolean> queryCurrMonthLeave(FtbPersonnelsMetaFuctionReq req) {
|
||||
return Map.of();
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<FtbXcCustomFieldVo> queryCustomFiled(FtbXcCustomFieldDto req) {
|
||||
return List.of();
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,18 @@
|
||||
package jnpf.personnels.fallback;
|
||||
|
||||
import jnpf.base.ActionResult;
|
||||
import jnpf.model.personnels.vo.rewardspunishments.FtbPersonnelsRewardsPunishmentApprovalVO;
|
||||
import jnpf.personnels.FtbPersonnelsRewardsPunishmentsRemoteApi;
|
||||
import org.springframework.stereotype.Component;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
@Component
|
||||
public class FtbPersonnelsRewardsPunishmentsRemoteFallBackApi implements FtbPersonnelsRewardsPunishmentsRemoteApi {
|
||||
|
||||
@Override
|
||||
public ActionResult<List<FtbPersonnelsRewardsPunishmentApprovalVO>> listApproval(Integer type) {
|
||||
return ActionResult.fail("OA审批获取奖惩规则降级处理");
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,107 @@
|
||||
package jnpf.personnels.fallback;
|
||||
|
||||
import jnpf.base.ActionResult;
|
||||
import jnpf.base.vo.PageListVO;
|
||||
import jnpf.model.personnels.dto.roster.QueryCompanyAgeDto;
|
||||
import jnpf.model.personnels.dto.staff.roster.FtbPersonnelsStaffRosterDto;
|
||||
import jnpf.model.personnels.dto.staff.roster.ShopManagerUserDto;
|
||||
import jnpf.model.personnels.dto.staff.roster.StaffRosterInfoDto;
|
||||
import jnpf.model.personnels.req.roster.StaffRosterListReq;
|
||||
import jnpf.model.personnels.req.roster.StaffRosterReq;
|
||||
import jnpf.permission.model.user.UserListVO;
|
||||
import jnpf.permission.vo.user.UserListMatchVO;
|
||||
import jnpf.personnels.FtbPersonnelsRosterManagerApi;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.springframework.stereotype.Component;
|
||||
import org.springframework.web.bind.annotation.RequestBody;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
|
||||
@Component
|
||||
@Slf4j
|
||||
public class FtbPersonnelsRosterManagerFallBackApi implements FtbPersonnelsRosterManagerApi {
|
||||
|
||||
|
||||
@Override
|
||||
public ActionResult updateCompanyAge(String tenantId) {
|
||||
return null;
|
||||
}
|
||||
|
||||
@Override
|
||||
public ActionResult<Boolean> bindPhone(String tenantCode, String userId, String phone) {
|
||||
return null;
|
||||
}
|
||||
|
||||
@Override
|
||||
public ActionResult<List<QueryCompanyAgeDto>> queryCompanyAge(List<String> userIds, String tenantId) {
|
||||
return null;
|
||||
}
|
||||
|
||||
@Override
|
||||
public ActionResult<List<StaffRosterInfoDto>> queryNoSubmitForm(String tenantId) {
|
||||
return null;
|
||||
}
|
||||
|
||||
@Override
|
||||
public ActionResult<List<StaffRosterInfoDto>> queryHealthExpire(String tenantId, Long days, Long months) {
|
||||
return null;
|
||||
}
|
||||
|
||||
@Override
|
||||
public ActionResult<PageListVO<FtbPersonnelsStaffRosterDto>> pageLists(StaffRosterListReq req) {
|
||||
return null;
|
||||
}
|
||||
|
||||
@Override
|
||||
public ActionResult<PageListVO<FtbPersonnelsStaffRosterDto>> pageListsPost(StaffRosterListReq req) {
|
||||
return null;
|
||||
}
|
||||
|
||||
@Override
|
||||
public ActionResult<PageListVO<FtbPersonnelsStaffRosterDto>> postWithSalary(StaffRosterListReq req) {
|
||||
return null;
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<FtbPersonnelsStaffRosterDto> postWithSalaryNoPage(StaffRosterListReq req) {
|
||||
return List.of();
|
||||
}
|
||||
|
||||
@Override
|
||||
public ActionResult<List<FtbPersonnelsStaffRosterDto>> getPersonnelByUserIds(StaffRosterListReq req) {
|
||||
return null;
|
||||
}
|
||||
|
||||
@Override
|
||||
public ActionResult<UserListMatchVO> getUserListByMatch(List<String> userIds) {
|
||||
return null;
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public ActionResult<List<FtbPersonnelsStaffRosterDto>> queryDepartUser(@RequestBody List<String> userIds) {
|
||||
return null;
|
||||
}
|
||||
|
||||
@Override
|
||||
public ActionResult<ShopManagerUserDto> queryShopManagerUser(String tenantId, List<String> userIds) {
|
||||
return null;
|
||||
}
|
||||
|
||||
@Override
|
||||
public ActionResult<List<UserListVO>> timingAlertTrialJob(String tenantId) {
|
||||
return null;
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<FtbPersonnelsStaffRosterDto> queryWithUserIds(StaffRosterListReq req) {
|
||||
return null;
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<FtbPersonnelsStaffRosterDto> queryWithUserIdsPost(StaffRosterReq req) {
|
||||
return null;
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,47 @@
|
||||
package jnpf.personnels.fallback;
|
||||
|
||||
import jnpf.base.ActionResult;
|
||||
import jnpf.model.personnels.dto.turnover.FtbDepUserDTO;
|
||||
import jnpf.model.personnels.vo.turnover.FtbPersonnelsTurnoverManagementVO;
|
||||
import jnpf.permission.vo.v2.user.UserBoundVO;
|
||||
import jnpf.personnels.FtbPersonnelsTurnoverManagementApi;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.springframework.stereotype.Component;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @Title: FtbPersonnelsTurnoverManagementFallBackApi
|
||||
* @Author: peng.hao
|
||||
* @create: 2024/2/19 10:38
|
||||
*/
|
||||
@Slf4j
|
||||
@Component
|
||||
public class FtbPersonnelsTurnoverManagementFallBackApi implements FtbPersonnelsTurnoverManagementApi {
|
||||
|
||||
@Override
|
||||
public ActionResult<String> closeUserAccountRegularlyAfterResignation(String tenantId) {
|
||||
return null;
|
||||
}
|
||||
|
||||
@Override
|
||||
public Boolean userHasSignedASeparationAgreement(String userId, Integer flag) {
|
||||
return null;
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<FtbPersonnelsTurnoverManagementVO> queryTurnoverList() {
|
||||
return null;
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<UserBoundVO> getInformationAboutTheDepartingPerson(FtbDepUserDTO dto) {
|
||||
return null;
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<UserBoundVO> getInformationAboutTheDepartingPersonNotToken(FtbDepUserDTO dto) {
|
||||
return List.of();
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user