Commit f480da60 authored by fangxinjiang's avatar fangxinjiang

Merge remote-tracking branch 'origin/MVP1.4' into MVP1.4

parents 5ae9e3f1 ef1c7e4f
package com.yifu.cloud.plus.v1.yifu.archives.vo; package com.yifu.cloud.plus.v1.yifu.archives.vo;
import com.baomidou.mybatisplus.annotation.TableLogic; import com.baomidou.mybatisplus.annotation.TableLogic;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Getter; import lombok.Getter;
import lombok.Setter; import lombok.Setter;
import lombok.ToString; import lombok.ToString;
...@@ -102,11 +103,13 @@ public class BusinessEmployeeExtendVO implements Serializable { ...@@ -102,11 +103,13 @@ public class BusinessEmployeeExtendVO implements Serializable {
/** /**
* B端维护的离职时间 * B端维护的离职时间
*/ */
private LocalDateTime businessLeaveDate; @JsonFormat(shape = JsonFormat.Shape.STRING, pattern="yyyy-MM-dd HH:mm:ss")
private LocalDateTime businessLeaveDate;
/** /**
* B端维护的入职时间 * B端维护的入职时间
*/ */
@JsonFormat(shape = JsonFormat.Shape.STRING, pattern="yyyy-MM-dd HH:mm:ss")
private LocalDateTime businessEnjoinDate; private LocalDateTime businessEnjoinDate;
/** /**
......
...@@ -24,12 +24,12 @@ public class AddVacationMonitorClearLogDTO implements Serializable { ...@@ -24,12 +24,12 @@ public class AddVacationMonitorClearLogDTO implements Serializable {
*/ */
@NotNull(message = "年假监控id不能为空") @NotNull(message = "年假监控id不能为空")
@Schema(description = "年假监控id") @Schema(description = "年假监控id")
Integer vacationMonitorId; private String vacationMonitorId;
/** /**
* 清零说明 * 清零说明
*/ */
@Schema(description = "清零说明") @Schema(description = "清零说明")
String clearNote; private String clearNote;
} }
...@@ -91,12 +91,12 @@ public class TVacationInfo implements Serializable { ...@@ -91,12 +91,12 @@ public class TVacationInfo implements Serializable {
/** /**
* 创建人id * 创建人id
*/ */
private Integer createUserId; private String createUserId;
/** /**
* 更新人id * 更新人id
*/ */
private Integer updateUserId; private String updateUserId;
/** /**
* 假勤状态 0待休 1休假中 2到期待销假 3已销假 * 假勤状态 0待休 1休假中 2到期待销假 3已销假
......
...@@ -5,6 +5,7 @@ import com.baomidou.mybatisplus.annotation.TableField; ...@@ -5,6 +5,7 @@ import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId; import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName; import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model; import com.baomidou.mybatisplus.extension.activerecord.Model;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data; import lombok.Data;
import java.math.BigDecimal; import java.math.BigDecimal;
...@@ -17,11 +18,12 @@ import java.time.LocalDateTime; ...@@ -17,11 +18,12 @@ import java.time.LocalDateTime;
@TableName(value ="t_vacation_monitor") @TableName(value ="t_vacation_monitor")
@Data @Data
public class TVacationMonitor extends Model<TVacationMonitor> { public class TVacationMonitor extends Model<TVacationMonitor> {
/** /**
* 主键 *
*/ */
@TableId(type = IdType.AUTO) @TableId(type = IdType.ASSIGN_ID)
private Integer id; @Schema(description = "")
private String id;
/** /**
* 年份 * 年份
......
...@@ -46,7 +46,7 @@ public class TVacationMonitorClearLog extends Model<TVacationMonitorClearLog> { ...@@ -46,7 +46,7 @@ public class TVacationMonitorClearLog extends Model<TVacationMonitorClearLog> {
/** /**
* 清零人id * 清零人id
*/ */
private Integer clearUserId; private String clearUserId;
/** /**
* 清零时间 * 清零时间
...@@ -56,7 +56,7 @@ public class TVacationMonitorClearLog extends Model<TVacationMonitorClearLog> { ...@@ -56,7 +56,7 @@ public class TVacationMonitorClearLog extends Model<TVacationMonitorClearLog> {
/** /**
* 年假监控id * 年假监控id
*/ */
private Integer vacationMonitorId; private String vacationMonitorId;
@TableField(exist = false) @TableField(exist = false)
private static final long serialVersionUID = 1L; private static final long serialVersionUID = 1L;
......
...@@ -20,11 +20,11 @@ import java.time.LocalDateTime; ...@@ -20,11 +20,11 @@ import java.time.LocalDateTime;
@TableName(value ="t_vacation_rule_config") @TableName(value ="t_vacation_rule_config")
@Data @Data
public class TVacationRuleConfig extends Model<TVacationRuleConfig> { public class TVacationRuleConfig extends Model<TVacationRuleConfig> {
/** /**
* 主键 *
*/ */
@TableId(type = IdType.ASSIGN_ID) @TableId(type = IdType.ASSIGN_ID)
private Integer id; private String id;
/** /**
* 假期类型 1年假 * 假期类型 1年假
......
...@@ -24,7 +24,7 @@ public class TVacationMonitorVO implements Serializable { ...@@ -24,7 +24,7 @@ public class TVacationMonitorVO implements Serializable {
* 主键 * 主键
*/ */
@Schema(description = "主键") @Schema(description = "主键")
private Integer id; private String id;
/** /**
* 年份 * 年份
......
...@@ -22,7 +22,7 @@ public class VacationRuleConfigVO implements Serializable { ...@@ -22,7 +22,7 @@ public class VacationRuleConfigVO implements Serializable {
* 主键 * 主键
*/ */
@Schema(description = "主键") @Schema(description = "主键")
private Integer id; private String id;
/** /**
* 假期类型 1年假 * 假期类型 1年假
......
...@@ -21,8 +21,8 @@ import java.util.List; ...@@ -21,8 +21,8 @@ import java.util.List;
/** /**
* 假勤信息表 controller * 假勤信息表 controller
* @author: wangweiguo * @author: huyc
* @date: 2021-08-20 * @date: 2023/1/13
*/ */
@RestController @RestController
@RequiredArgsConstructor @RequiredArgsConstructor
...@@ -36,8 +36,8 @@ public class TVacationInfoController { ...@@ -36,8 +36,8 @@ public class TVacationInfoController {
* 分页查询: 条件分页查询 * 分页查询: 条件分页查询
* @param query 查询条件 * @param query 查询条件
* @return: R<IPage<TVacationInfoVO>> * @return: R<IPage<TVacationInfoVO>>
* @author: wangweiguo * @author: huyc
* @date: 2021-08-20 * @date: 2023/1/13
*/ */
@Operation(summary = "分页查询", description = "分页查询") @Operation(summary = "分页查询", description = "分页查询")
@GetMapping("/getListByPage") @GetMapping("/getListByPage")
...@@ -49,8 +49,8 @@ public class TVacationInfoController { ...@@ -49,8 +49,8 @@ public class TVacationInfoController {
* 导入: 通过json串格式导入假勤信息 * 导入: 通过json串格式导入假勤信息
* @param jsonStr json字符串数据 * @param jsonStr json字符串数据
* @return: com.yifu.cloud.v1.common.core.util.R<java.lang.Boolean> * @return: com.yifu.cloud.v1.common.core.util.R<java.lang.Boolean>
* @author: wangweiguo * @author: huyc
* @date: 2021/8/24 * @date: 2023/1/13
*/ */
@Operation(summary = "导入: 通过json串格式导入假勤信息", description = "导入: 通过json串格式导入假勤信息") @Operation(summary = "导入: 通过json串格式导入假勤信息", description = "导入: 通过json串格式导入假勤信息")
@PostMapping("/batchImportByJsonStr") @PostMapping("/batchImportByJsonStr")
...@@ -62,8 +62,8 @@ public class TVacationInfoController { ...@@ -62,8 +62,8 @@ public class TVacationInfoController {
* 查询:根据条件出列表 * 查询:根据条件出列表
* @param query 查询条件 * @param query 查询条件
* @return: IPage<com.yifu.cloud.v1.hrobusiness.api.vo.vacation.TVacationInfoVO>> * @return: IPage<com.yifu.cloud.v1.hrobusiness.api.vo.vacation.TVacationInfoVO>>
* @author: wangweiguo * @author: huyc
* @date: 2021/8/24 * @date: 2023/1/13
*/ */
@Operation(summary = "查询:根据条件出列表", description = "查询:根据条件出列表") @Operation(summary = "查询:根据条件出列表", description = "查询:根据条件出列表")
@GetMapping("/getList") @GetMapping("/getList")
...@@ -75,8 +75,8 @@ public class TVacationInfoController { ...@@ -75,8 +75,8 @@ public class TVacationInfoController {
* 查询-详情:根据id查询数据 * 查询-详情:根据id查询数据
* @param id * @param id
* @return: R<TVacationInfoVO> * @return: R<TVacationInfoVO>
* @author: wangweiguo * @author: huyc
* @date: 2021-08-24 * @date: 2023/1/13
*/ */
@Operation(summary = "查询-详情:根据id查询数据", description = "查询-详情:根据id查询数据") @Operation(summary = "查询-详情:根据id查询数据", description = "查询-详情:根据id查询数据")
@GetMapping("/{id}") @GetMapping("/{id}")
...@@ -88,8 +88,8 @@ public class TVacationInfoController { ...@@ -88,8 +88,8 @@ public class TVacationInfoController {
* 添加:新增-单条-添加一条记录 * 添加:新增-单条-添加一条记录
* @param dto * @param dto
* @return: R<TVacationInfo> * @return: R<TVacationInfo>
* @author: wangweiguo * @author: huyc
* @date: 2021-08-24 * @date: 2023/1/13
*/ */
@Operation(summary = "添加:新增-单条-添加一条记录", description = "添加:新增-单条-添加一条记录") @Operation(summary = "添加:新增-单条-添加一条记录", description = "添加:新增-单条-添加一条记录")
@PostMapping @PostMapping
...@@ -101,8 +101,8 @@ public class TVacationInfoController { ...@@ -101,8 +101,8 @@ public class TVacationInfoController {
* 销假:单条-根据id更新记录 * 销假:单条-根据id更新记录
* @param dto dto * @param dto dto
* @return: R<Boolean> * @return: R<Boolean>
* @author: wangweiguo * @author: huyc
* @date: 2021-08-24 * @date: 2023/1/13
*/ */
@Operation(summary = "销假:单条-根据id更新", description = "销假:单条-根据id更新") @Operation(summary = "销假:单条-根据id更新", description = "销假:单条-根据id更新")
@PostMapping("/vacationEnd/{id}") @PostMapping("/vacationEnd/{id}")
...@@ -114,8 +114,8 @@ public class TVacationInfoController { ...@@ -114,8 +114,8 @@ public class TVacationInfoController {
* 删除-单条:根据id删除记录 * 删除-单条:根据id删除记录
* @param id * @param id
* @return: R<Boolean> * @return: R<Boolean>
* @author: wangweiguo * @author: huyc
* @date: 2021-08-20 * @date: 2023/1/13
*/ */
@Operation(summary = "根据id删除记录", description = "根据id删除记录") @Operation(summary = "根据id删除记录", description = "根据id删除记录")
@DeleteMapping("/{id}") @DeleteMapping("/{id}")
...@@ -124,9 +124,9 @@ public class TVacationInfoController { ...@@ -124,9 +124,9 @@ public class TVacationInfoController {
} }
/** /**
* @author wangweiguo
* @description 更新假勤信息中的冗余信息 * @description 更新假勤信息中的冗余信息
* @date 20:32 2021/8/24 * @author: huyc
* @date: 2023/1/13
* @param dtoList 更新冗余字段dto集合 * @param dtoList 更新冗余字段dto集合
* @return com.yifu.cloud.v1.common.core.util.R<java.lang.Boolean> * @return com.yifu.cloud.v1.common.core.util.R<java.lang.Boolean>
**/ **/
......
...@@ -15,8 +15,8 @@ import java.util.List; ...@@ -15,8 +15,8 @@ import java.util.List;
/** /**
* @description: 假期监控清零日志表 controller * @description: 假期监控清零日志表 controller
* @author: wangweiguo * @author: huyc
* @date: 2021-08-16 * @date: 2023/1/13
*/ */
@RestController @RestController
@AllArgsConstructor @AllArgsConstructor
...@@ -30,12 +30,12 @@ public class TVacationMonitorClearLogController { ...@@ -30,12 +30,12 @@ public class TVacationMonitorClearLogController {
* @description: 查询-列表: 查询当前年假所有清零记录 * @description: 查询-列表: 查询当前年假所有清零记录
* @param vacationMonitorId 年假监控id * @param vacationMonitorId 年假监控id
* @return: R<List<TVacationMonitorClearLogVO>> * @return: R<List<TVacationMonitorClearLogVO>>
* @author: wangweiguo * @author: huyc
* @date: 2021-08-16 * @date: 2023/1/13
*/ */
@Operation(summary = "查询-列表: 查询当前年假所有清零记录", description = "查询-列表: 查询当前年假所有清零记录") @Operation(summary = "查询-列表: 查询当前年假所有清零记录", description = "查询-列表: 查询当前年假所有清零记录")
@GetMapping("/getList") @GetMapping("/getList")
public R<List<TVacationMonitorClearLogVO>> getList(@RequestParam("vacationMonitorId") @Parameter(description = "年假监控id", required = true) Integer vacationMonitorId) { public R<List<TVacationMonitorClearLogVO>> getList(@RequestParam("vacationMonitorId") @Parameter(description = "年假监控id", required = true) String vacationMonitorId) {
return this.tVacationMonitorClearLogService.getList(vacationMonitorId); return this.tVacationMonitorClearLogService.getList(vacationMonitorId);
} }
...@@ -43,8 +43,8 @@ public class TVacationMonitorClearLogController { ...@@ -43,8 +43,8 @@ public class TVacationMonitorClearLogController {
* @description: 清零说明: 记录年假清零说明 * @description: 清零说明: 记录年假清零说明
* @param dto * @param dto
* @return: R<Boolean> * @return: R<Boolean>
* @author: wangweiguo * @author: huyc
* @date: 2021-08-16 * @date: 2023/1/13
*/ */
@Operation(summary = "清零说明: 记录年假清零说明", description = "清零说明: 记录年假清零说明") @Operation(summary = "清零说明: 记录年假清零说明", description = "清零说明: 记录年假清零说明")
@PostMapping("/clearNote") @PostMapping("/clearNote")
......
...@@ -18,8 +18,8 @@ import java.util.List; ...@@ -18,8 +18,8 @@ import java.util.List;
/** /**
* @description: 假期监控表 controller * @description: 假期监控表 controller
* @author: wangweiguo * @author: huyc
* @date: 2021-08-13 * @date: 2023/1/13
*/ */
@Slf4j @Slf4j
@RestController @RestController
...@@ -34,8 +34,8 @@ public class TVacationMonitorController { ...@@ -34,8 +34,8 @@ public class TVacationMonitorController {
* @description: 分页查询: 条件分页查询 * @description: 分页查询: 条件分页查询
* @param query 查询条件 * @param query 查询条件
* @return: R<IPage<TVacationMonitorVO>> * @return: R<IPage<TVacationMonitorVO>>
* @author: wangweiguo * @author: huyc
* @date: 2021-08-13 * @date: 2023/1/13
*/ */
@Operation(summary = "分页查询: 条件分页查询", description = "分页查询: 条件分页查询") @Operation(summary = "分页查询: 条件分页查询", description = "分页查询: 条件分页查询")
@GetMapping("/getListByPage") @GetMapping("/getListByPage")
...@@ -47,8 +47,8 @@ public class TVacationMonitorController { ...@@ -47,8 +47,8 @@ public class TVacationMonitorController {
* @description: 导出:根据查询条件导出 * @description: 导出:根据查询条件导出
* @param query 查询条件 * @param query 查询条件
* @return: R<List<TVacationMonitorVO>> * @return: R<List<TVacationMonitorVO>>
* @author: wangweiguo * @author: huyc
* @date: 2021-08-13 * @date: 2023/1/13
*/ */
@Operation(summary = "导出:根据查询条件导出", description = "导出:根据查询条件导出") @Operation(summary = "导出:根据查询条件导出", description = "导出:根据查询条件导出")
@GetMapping("/exportByParams") @GetMapping("/exportByParams")
...@@ -60,8 +60,8 @@ public class TVacationMonitorController { ...@@ -60,8 +60,8 @@ public class TVacationMonitorController {
* @description: 查询-剩余年假:根据身份证号查询剩余年假 * @description: 查询-剩余年假:根据身份证号查询剩余年假
* @param idcard * @param idcard
* @return: com.yifu.cloud.v1.common.core.util.R<java.math.BigDecimal> * @return: com.yifu.cloud.v1.common.core.util.R<java.math.BigDecimal>
* @author: wangweiguo * @author: huyc
* @date: 2021/8/17 * @date: 2023/1/13
*/ */
@Operation(summary = "查询-剩余年假:根据身份证号查询剩余年假", description = "查询-剩余年假:根据身份证号查询剩余年假") @Operation(summary = "查询-剩余年假:根据身份证号查询剩余年假", description = "查询-剩余年假:根据身份证号查询剩余年假")
@GetMapping("getNotUsedVacationDurationByIdCard") @GetMapping("getNotUsedVacationDurationByIdCard")
...@@ -72,8 +72,8 @@ public class TVacationMonitorController { ...@@ -72,8 +72,8 @@ public class TVacationMonitorController {
/** /**
* @description: 定时任务:内部服务调用,每天初始化员工年假信息 * @description: 定时任务:内部服务调用,每天初始化员工年假信息
* @return: com.yifu.cloud.v1.common.core.util.R<java.lang.Boolean> * @return: com.yifu.cloud.v1.common.core.util.R<java.lang.Boolean>
* @author: wangweiguo * @author: huyc
* @date: 2021/8/17 * @date: 2023/1/13
*/ */
@Inner @Inner
@PostMapping("/inner/buildMonitorDataForCurrentYear") @PostMapping("/inner/buildMonitorDataForCurrentYear")
...@@ -84,8 +84,8 @@ public class TVacationMonitorController { ...@@ -84,8 +84,8 @@ public class TVacationMonitorController {
/** /**
* @description: 冗余更新:更新监控表中冗余的员工信息,电信工号和岗位 * @description: 冗余更新:更新监控表中冗余的员工信息,电信工号和岗位
* @return: com.yifu.cloud.v1.common.core.util.R<java.lang.Boolean> * @return: com.yifu.cloud.v1.common.core.util.R<java.lang.Boolean>
* @author: wangweiguo * @author: huyc
* @date: 2021/8/23 * @date: 2023/1/13
*/ */
@Inner @Inner
@PostMapping("/inner/updateRedundancyEmployeeFields") @PostMapping("/inner/updateRedundancyEmployeeFields")
......
...@@ -16,8 +16,8 @@ import javax.validation.Valid; ...@@ -16,8 +16,8 @@ import javax.validation.Valid;
/** /**
* @description: 假期配置controller * @description: 假期配置controller
* @author: wangweiguo * @author: huyc
* @date: 2021/8/13 * @date: 2023/1/13
*/ */
@AllArgsConstructor @AllArgsConstructor
@RequestMapping("/vacationRule") @RequestMapping("/vacationRule")
...@@ -30,8 +30,8 @@ public class TVacationRuleConfigController { ...@@ -30,8 +30,8 @@ public class TVacationRuleConfigController {
/** /**
* @description: 获取年假配置规则 * @description: 获取年假配置规则
* @return: com.yifu.cloud.v1.common.core.util.R<com.yifu.cloud.v1.hrobusiness.api.vo.vacation.VacationRuleConfigVO> * @return: com.yifu.cloud.v1.common.core.util.R<com.yifu.cloud.v1.hrobusiness.api.vo.vacation.VacationRuleConfigVO>
* @author: wangweiguo * @author: huyc
* @date: 2021/8/13 * @date: 2023/1/13
*/ */
@Operation(summary = "获取年假配置规则", description = "获取年假配置规则") @Operation(summary = "获取年假配置规则", description = "获取年假配置规则")
@GetMapping("/getVacationRuleConfig") @GetMapping("/getVacationRuleConfig")
...@@ -47,8 +47,8 @@ public class TVacationRuleConfigController { ...@@ -47,8 +47,8 @@ public class TVacationRuleConfigController {
* @description: * @description:
* @param dto * @param dto
* @return: com.yifu.cloud.v1.common.core.util.R<java.lang.Boolean> * @return: com.yifu.cloud.v1.common.core.util.R<java.lang.Boolean>
* @author: wangweiguo * @author: huyc
* @date: 2021/8/13 * @date: 2023/1/13
*/ */
@Operation(summary = "新增或保存假期配置规则", description = "新增或保存假期配置规则") @Operation(summary = "新增或保存假期配置规则", description = "新增或保存假期配置规则")
@PostMapping("/addOrSave") @PostMapping("/addOrSave")
......
...@@ -13,8 +13,8 @@ import java.util.List; ...@@ -13,8 +13,8 @@ import java.util.List;
/** /**
* @description: 假勤信息表 mapper * @description: 假勤信息表 mapper
* @Entity com.yifu.cloud.v1.hrobusiness.api.entity.vacation.TVacationInfo * @Entity com.yifu.cloud.v1.hrobusiness.api.entity.vacation.TVacationInfo
* @author: wangweiguo * @author: huyc
* @date: 2021-08-20 * @date: 2023/1/13
*/ */
@Mapper @Mapper
public interface TVacationInfoMapper extends BaseMapper<TVacationInfo> { public interface TVacationInfoMapper extends BaseMapper<TVacationInfo> {
...@@ -23,8 +23,8 @@ public interface TVacationInfoMapper extends BaseMapper<TVacationInfo> { ...@@ -23,8 +23,8 @@ public interface TVacationInfoMapper extends BaseMapper<TVacationInfo> {
* @description: 分页查询: 条件分页查询 * @description: 分页查询: 条件分页查询
* @param query 查询条件 * @param query 查询条件
* @return: R<IPage<TVacationInfoVO>> * @return: R<IPage<TVacationInfoVO>>
* @author: wangweiguo * @author: huyc
* @date: 2021-08-20 * @date: 2023/1/13
*/ */
Page<TVacationInfoVO> getListByPage(Page<TVacationInfoVO> page, @Param("query") TVacationInfoQuery query); Page<TVacationInfoVO> getListByPage(Page<TVacationInfoVO> page, @Param("query") TVacationInfoQuery query);
...@@ -32,8 +32,8 @@ public interface TVacationInfoMapper extends BaseMapper<TVacationInfo> { ...@@ -32,8 +32,8 @@ public interface TVacationInfoMapper extends BaseMapper<TVacationInfo> {
* @description: 列表查询查询: 条件列表查询 * @description: 列表查询查询: 条件列表查询
* @param query 查询条件 * @param query 查询条件
* @return: List<TVacationInfoVO> * @return: List<TVacationInfoVO>
* @author: wangweiguo * @author: huyc
* @date: 2021-08-24 * @date: 2023/1/13
*/ */
List<TVacationInfoVO> getListByPage(@Param("query") TVacationInfoQuery query); List<TVacationInfoVO> getListByPage(@Param("query") TVacationInfoQuery query);
......
...@@ -8,8 +8,8 @@ import org.apache.ibatis.annotations.Mapper; ...@@ -8,8 +8,8 @@ import org.apache.ibatis.annotations.Mapper;
/** /**
* @description: 假期监控清零日志表 mapper * @description: 假期监控清零日志表 mapper
* @Entity com.yifu.cloud.v1.hrobusiness.api.entity.vacation.TVacationMonitorClearLog * @Entity com.yifu.cloud.v1.hrobusiness.api.entity.vacation.TVacationMonitorClearLog
* @author: wangweiguo * @author: huyc
* @date: 2021-08-16 * @date: 2023/1/13
*/ */
@Mapper @Mapper
public interface TVacationMonitorClearLogMapper extends BaseMapper<TVacationMonitorClearLog> { public interface TVacationMonitorClearLogMapper extends BaseMapper<TVacationMonitorClearLog> {
......
...@@ -14,8 +14,8 @@ import java.util.List; ...@@ -14,8 +14,8 @@ import java.util.List;
/** /**
* @description: 假期监控表 mapper * @description: 假期监控表 mapper
* @Entity generator.domain.TVacationMonitor * @Entity generator.domain.TVacationMonitor
* @author: wangweiguo * @author: huyc
* @date: 2021-08-13 * @date: 2023/1/13
*/ */
@Mapper @Mapper
public interface TVacationMonitorMapper extends BaseMapper<TVacationMonitor> { public interface TVacationMonitorMapper extends BaseMapper<TVacationMonitor> {
......
...@@ -7,8 +7,8 @@ import org.apache.ibatis.annotations.Mapper; ...@@ -7,8 +7,8 @@ import org.apache.ibatis.annotations.Mapper;
/** /**
* @description: 假期配置表mapper * @description: 假期配置表mapper
* @Entity generator.domain.TVacationRuleConfig * @Entity generator.domain.TVacationRuleConfig
* @author: wangweiguo * @author: huyc
* @date: 2021/8/13 * @date: 2023/1/13
*/ */
@Mapper @Mapper
public interface TVacationRuleConfigMapper extends BaseMapper<TVacationRuleConfig> { public interface TVacationRuleConfigMapper extends BaseMapper<TVacationRuleConfig> {
......
...@@ -11,8 +11,8 @@ import java.util.List; ...@@ -11,8 +11,8 @@ import java.util.List;
/** /**
* B端离职信息表 * B端离职信息表
* *
* @author hgw * @author: huyc
* @date 2021-08-17 17:02:47 * @date: 2023/1/13
*/ */
public interface TBusLeaveService extends IService<TBusLeave> { public interface TBusLeaveService extends IService<TBusLeave> {
......
...@@ -15,8 +15,8 @@ import java.util.List; ...@@ -15,8 +15,8 @@ import java.util.List;
/** /**
* 假勤信息表 service层 * 假勤信息表 service层
* @author: wangweiguo * @author: huyc
* @date: 2021-08-20 * @date: 2023/1/13
*/ */
public interface TVacationInfoService extends IService<TVacationInfo> { public interface TVacationInfoService extends IService<TVacationInfo> {
...@@ -24,8 +24,8 @@ public interface TVacationInfoService extends IService<TVacationInfo> { ...@@ -24,8 +24,8 @@ public interface TVacationInfoService extends IService<TVacationInfo> {
* 分页查询: 条件分页查询 * 分页查询: 条件分页查询
* @param query 查询条件 * @param query 查询条件
* @return: R<IPage<TVacationInfoVO>> * @return: R<IPage<TVacationInfoVO>>
* @author: wangweiguo * @author: huyc
* @date: 2021-08-20 * @date: 2023/1/13
*/ */
R<IPage<TVacationInfoVO>> getListByPage(TVacationInfoQuery query); R<IPage<TVacationInfoVO>> getListByPage(TVacationInfoQuery query);
...@@ -33,8 +33,8 @@ public interface TVacationInfoService extends IService<TVacationInfo> { ...@@ -33,8 +33,8 @@ public interface TVacationInfoService extends IService<TVacationInfo> {
* 查询:根据条件出列表 * 查询:根据条件出列表
* @param query 查询条件 * @param query 查询条件
* @return: IPage<com.yifu.cloud.v1.hrobusiness.api.vo.vacation.TVacationInfoVO>> * @return: IPage<com.yifu.cloud.v1.hrobusiness.api.vo.vacation.TVacationInfoVO>>
* @author: wangweiguo * @author: huyc
* @date: 2021/8/24 * @date: 2023/1/13
*/ */
R<List<TVacationInfoVO>> getList(TVacationInfoQuery query); R<List<TVacationInfoVO>> getList(TVacationInfoQuery query);
...@@ -42,8 +42,8 @@ public interface TVacationInfoService extends IService<TVacationInfo> { ...@@ -42,8 +42,8 @@ public interface TVacationInfoService extends IService<TVacationInfo> {
* 查询-详情:根据id查询数据 * 查询-详情:根据id查询数据
* @param id * @param id
* @return: R<TVacationInfoVO> * @return: R<TVacationInfoVO>
* @author: wangweiguo * @author: huyc
* @date: 2021-08-24 * @date: 2023/1/13
*/ */
R<TVacationInfoVO> getDataById(String id); R<TVacationInfoVO> getDataById(String id);
...@@ -51,8 +51,8 @@ public interface TVacationInfoService extends IService<TVacationInfo> { ...@@ -51,8 +51,8 @@ public interface TVacationInfoService extends IService<TVacationInfo> {
* 销假:单条-根据id更新记录 * 销假:单条-根据id更新记录
* @param dto dto * @param dto dto
* @return: R<Boolean> * @return: R<Boolean>
* @author: wangweiguo * @author: huyc
* @date: 2021-08-24 * @date: 2023/1/13
*/ */
R<Boolean> vacationEnd(ChangeVacationStatusDTO dto); R<Boolean> vacationEnd(ChangeVacationStatusDTO dto);
...@@ -60,8 +60,8 @@ public interface TVacationInfoService extends IService<TVacationInfo> { ...@@ -60,8 +60,8 @@ public interface TVacationInfoService extends IService<TVacationInfo> {
* 导入: 通过json串格式导入假勤信息 * 导入: 通过json串格式导入假勤信息
* @param jsonStr json字符串数据 * @param jsonStr json字符串数据
* @return: com.yifu.cloud.v1.common.core.util.R<java.lang.Boolean> * @return: com.yifu.cloud.v1.common.core.util.R<java.lang.Boolean>
* @author: wangweiguo * @author: huyc
* @date: 2021/8/24 * @date: 2023/1/13
*/ */
R<List<ErrorMessage>> batchImportByJsonStr(String jsonStr); R<List<ErrorMessage>> batchImportByJsonStr(String jsonStr);
...@@ -69,8 +69,8 @@ public interface TVacationInfoService extends IService<TVacationInfo> { ...@@ -69,8 +69,8 @@ public interface TVacationInfoService extends IService<TVacationInfo> {
* 删除-单条:根据id删除记录 * 删除-单条:根据id删除记录
* @param id * @param id
* @return: R<Boolean> * @return: R<Boolean>
* @author: wangweiguo * @author: huyc
* @date: 2021-08-20 * @date: 2023/1/13
*/ */
R<Boolean> removeDataById(String id); R<Boolean> removeDataById(String id);
...@@ -78,15 +78,15 @@ public interface TVacationInfoService extends IService<TVacationInfo> { ...@@ -78,15 +78,15 @@ public interface TVacationInfoService extends IService<TVacationInfo> {
* 添加:新增-单条-添加一条记录 * 添加:新增-单条-添加一条记录
* @param dto * @param dto
* @return: R<TVacationInfo> * @return: R<TVacationInfo>
* @author: wangweiguo * @author: huyc
* @date: 2021-08-24 * @date: 2023/1/13
*/ */
R<TVacationInfo> saveData(AddOrUpdateTVacationInfoDTO dto); R<TVacationInfo> saveData(AddOrUpdateTVacationInfoDTO dto);
/** /**
* @author wangweiguo
* @description 更新假勤信息中的冗余信息 * @description 更新假勤信息中的冗余信息
* @date 20:32 2021/8/24 * @author: huyc
* @date: 2023/1/13
* @param dtoList 更新冗余字段dto集合 * @param dtoList 更新冗余字段dto集合
* @return com.yifu.cloud.v1.common.core.util.R<java.lang.Boolean> * @return com.yifu.cloud.v1.common.core.util.R<java.lang.Boolean>
**/ **/
......
...@@ -11,8 +11,8 @@ import java.util.List; ...@@ -11,8 +11,8 @@ import java.util.List;
/** /**
* @description: 假期监控清零日志表 service层 * @description: 假期监控清零日志表 service层
* @author: wangweiguo * @author: huyc
* @date: 2021-08-16 * @date: 2023/1/13
*/ */
public interface TVacationMonitorClearLogService extends IService<TVacationMonitorClearLog> { public interface TVacationMonitorClearLogService extends IService<TVacationMonitorClearLog> {
...@@ -20,17 +20,17 @@ public interface TVacationMonitorClearLogService extends IService<TVacationMonit ...@@ -20,17 +20,17 @@ public interface TVacationMonitorClearLogService extends IService<TVacationMonit
* @description: 查询-列表: 查询当前年假所有清零记录 * @description: 查询-列表: 查询当前年假所有清零记录
* @param vacationMonitorId 年假监控id * @param vacationMonitorId 年假监控id
* @return: R<List<TVacationMonitorClearLogVO>> * @return: R<List<TVacationMonitorClearLogVO>>
* @author: wangweiguo * @author: huyc
* @date: 2021-08-16 * @date: 2023/1/13
*/ */
R<List<TVacationMonitorClearLogVO>> getList(Integer vacationMonitorId); R<List<TVacationMonitorClearLogVO>> getList(String vacationMonitorId);
/** /**
* @description: 清零说明: 记录年假清零说明 * @description: 清零说明: 记录年假清零说明
* @param dto * @param dto
* @return: R<Boolean> * @return: R<Boolean>
* @author: wangweiguo * @author: huyc
* @date: 2021-08-16 * @date: 2023/1/13
*/ */
R<Boolean> clearNote(AddVacationMonitorClearLogDTO dto); R<Boolean> clearNote(AddVacationMonitorClearLogDTO dto);
} }
...@@ -13,8 +13,8 @@ import java.util.List; ...@@ -13,8 +13,8 @@ import java.util.List;
/** /**
* @description: 假期监控表 service层 * @description: 假期监控表 service层
* @author: wangweiguo * @author: huyc
* @date: 2021-08-13 * @date: 2023/1/13
*/ */
public interface TVacationMonitorService extends IService<TVacationMonitor> { public interface TVacationMonitorService extends IService<TVacationMonitor> {
...@@ -22,8 +22,8 @@ public interface TVacationMonitorService extends IService<TVacationMonitor> { ...@@ -22,8 +22,8 @@ public interface TVacationMonitorService extends IService<TVacationMonitor> {
* @description: 分页查询: 条件分页查询 * @description: 分页查询: 条件分页查询
* @param query 查询条件 * @param query 查询条件
* @return: R<IPage<TVacationMonitorVO>> * @return: R<IPage<TVacationMonitorVO>>
* @author: wangweiguo * @author: huyc
* @date: 2021-08-13 * @date: 2023/1/13
*/ */
R<IPage<TVacationMonitorVO>> getListByPage(TVacationMonitorQuery query); R<IPage<TVacationMonitorVO>> getListByPage(TVacationMonitorQuery query);
...@@ -31,8 +31,8 @@ public interface TVacationMonitorService extends IService<TVacationMonitor> { ...@@ -31,8 +31,8 @@ public interface TVacationMonitorService extends IService<TVacationMonitor> {
* @description: 导出:根据查询条件导出 * @description: 导出:根据查询条件导出
* @param query 查询条件 * @param query 查询条件
* @return: R<List<TVacationMonitorVO>> * @return: R<List<TVacationMonitorVO>>
* @author: wangweiguo * @author: huyc
* @date: 2021-08-13 * @date: 2023/1/13
*/ */
R<List<TVacationMonitorVO>> exportByParams(TVacationMonitorQuery query); R<List<TVacationMonitorVO>> exportByParams(TVacationMonitorQuery query);
...@@ -40,8 +40,8 @@ public interface TVacationMonitorService extends IService<TVacationMonitor> { ...@@ -40,8 +40,8 @@ public interface TVacationMonitorService extends IService<TVacationMonitor> {
* @description: 保存或者更新监控记录 * @description: 保存或者更新监控记录
* @param entity * @param entity
* @return: boolean * @return: boolean
* @author: wangweiguo * @author: huyc
* @date: 2021/8/16 * @date: 2023/1/13
*/ */
boolean saveOrUpdateData(TVacationMonitor entity); boolean saveOrUpdateData(TVacationMonitor entity);
...@@ -49,8 +49,8 @@ public interface TVacationMonitorService extends IService<TVacationMonitor> { ...@@ -49,8 +49,8 @@ public interface TVacationMonitorService extends IService<TVacationMonitor> {
* @description: 批量保存 OR 新增 * @description: 批量保存 OR 新增
* @param list * @param list
* @return: boolean * @return: boolean
* @author: wangweiguo * @author: huyc
* @date: 2021/8/16 * @date: 2023/1/13
*/ */
boolean batchSaveOrUpdateData(List<TVacationMonitor> list); boolean batchSaveOrUpdateData(List<TVacationMonitor> list);
...@@ -58,24 +58,24 @@ public interface TVacationMonitorService extends IService<TVacationMonitor> { ...@@ -58,24 +58,24 @@ public interface TVacationMonitorService extends IService<TVacationMonitor> {
* @description: 查询:根据身份证号查询剩余年假 * @description: 查询:根据身份证号查询剩余年假
* @param idcard * @param idcard
* @return: com.yifu.cloud.v1.common.core.util.R<java.math.BigDecimal> * @return: com.yifu.cloud.v1.common.core.util.R<java.math.BigDecimal>
* @author: wangweiguo * @author: huyc
* @date: 2021/8/17 * @date: 2023/1/13
*/ */
R<BigDecimal> getNotUsedVacationDurationByIdCard(String idcard); R<BigDecimal> getNotUsedVacationDurationByIdCard(String idcard);
/** /**
* @description: 定时任务:内部服务调用,每天初始化员工年假信息 * @description: 定时任务:内部服务调用,每天初始化员工年假信息
* @return: com.yifu.cloud.v1.common.core.util.R<java.lang.Boolean> * @return: com.yifu.cloud.v1.common.core.util.R<java.lang.Boolean>
* @author: wangweiguo * @author: huyc
* @date: 2021/8/17 * @date: 2023/1/13
*/ */
R<Boolean> buildMonitorData(); R<Boolean> buildMonitorData();
/** /**
* @description: 冗余更新:更新监控表中冗余的员工信息,电信工号和岗位 * @description: 冗余更新:更新监控表中冗余的员工信息,电信工号和岗位
* @return: com.yifu.cloud.v1.common.core.util.R<java.lang.Boolean> * @return: com.yifu.cloud.v1.common.core.util.R<java.lang.Boolean>
* @author: wangweiguo * @author: huyc
* @date: 2021/8/23 * @date: 2023/1/13
*/ */
R<Boolean> updateRedundancyEmployeeFields(List<UpdateVacationRedundancyDTO> dtoList); R<Boolean> updateRedundancyEmployeeFields(List<UpdateVacationRedundancyDTO> dtoList);
...@@ -85,8 +85,8 @@ public interface TVacationMonitorService extends IService<TVacationMonitor> { ...@@ -85,8 +85,8 @@ public interface TVacationMonitorService extends IService<TVacationMonitor> {
* @param vacationDuration 假期时长 * @param vacationDuration 假期时长
* @param year 年份 * @param year 年份
* @return: boolean * @return: boolean
* @author: wangweiguo * @author: huyc
* @date: 2021/8/24 * @date: 2023/1/13
*/ */
boolean releaseVacationDuration(String empIdcard, BigDecimal vacationDuration, String year); boolean releaseVacationDuration(String empIdcard, BigDecimal vacationDuration, String year);
...@@ -96,8 +96,8 @@ public interface TVacationMonitorService extends IService<TVacationMonitor> { ...@@ -96,8 +96,8 @@ public interface TVacationMonitorService extends IService<TVacationMonitor> {
* @param vacationDuration 假期时长 * @param vacationDuration 假期时长
* @param year 年份 * @param year 年份
* @return: boolean * @return: boolean
* @author: wangweiguo * @author: huyc
* @date: 2021/8/24 * @date: 2023/1/13
*/ */
boolean consumeVacationDuration(String empIdcard, BigDecimal vacationDuration, String year); boolean consumeVacationDuration(String empIdcard, BigDecimal vacationDuration, String year);
...@@ -106,8 +106,8 @@ public interface TVacationMonitorService extends IService<TVacationMonitor> { ...@@ -106,8 +106,8 @@ public interface TVacationMonitorService extends IService<TVacationMonitor> {
* @param empIdcard 身份证号 * @param empIdcard 身份证号
* @param year 假勤年份 * @param year 假勤年份
* @return: com.yifu.cloud.v1.hrobusiness.api.entity.vacation.TVacationMonitor * @return: com.yifu.cloud.v1.hrobusiness.api.entity.vacation.TVacationMonitor
* @author: wangweiguo * @author: huyc
* @date: 2021/8/24 * @date: 2023/1/13
*/ */
TVacationMonitor getMonitorByEmpIdcardAndYear(String empIdcard, String year); TVacationMonitor getMonitorByEmpIdcardAndYear(String empIdcard, String year);
} }
...@@ -11,16 +11,16 @@ import java.time.LocalDateTime; ...@@ -11,16 +11,16 @@ import java.time.LocalDateTime;
/** /**
* @description: 假期配置 service * @description: 假期配置 service
* @author: wangweiguo * @author: huyc
* @date: 2021/8/13 * @date: 2023/1/13
*/ */
public interface TVacationRuleConfigService extends IService<TVacationRuleConfig> { public interface TVacationRuleConfigService extends IService<TVacationRuleConfig> {
/** /**
* @description: 获取年假配置规则 * @description: 获取年假配置规则
* @return: com.yifu.cloud.v1.common.core.util.R<com.yifu.cloud.v1.hrobusiness.api.vo.vacation.VacationRuleConfigVO> * @return: com.yifu.cloud.v1.common.core.util.R<com.yifu.cloud.v1.hrobusiness.api.vo.vacation.VacationRuleConfigVO>
* @author: wangweiguo * @author: huyc
* @date: 2021/8/13 * @date: 2023/1/13
*/ */
R<VacationRuleConfigVO> getVacationRuleConfig(); R<VacationRuleConfigVO> getVacationRuleConfig();
...@@ -29,8 +29,8 @@ public interface TVacationRuleConfigService extends IService<TVacationRuleConfig ...@@ -29,8 +29,8 @@ public interface TVacationRuleConfigService extends IService<TVacationRuleConfig
* @param user * @param user
* @param dto * @param dto
* @return: com.yifu.cloud.v1.common.core.util.R<java.lang.Boolean> * @return: com.yifu.cloud.v1.common.core.util.R<java.lang.Boolean>
* @author: wangweiguo * @author: huyc
* @date: 2021/8/13 * @date: 2023/1/13
*/ */
R<Boolean> addOrSave(YifuUser user, AddOrSaveVacationRuleDTO dto); R<Boolean> addOrSave(YifuUser user, AddOrSaveVacationRuleDTO dto);
...@@ -38,8 +38,8 @@ public interface TVacationRuleConfigService extends IService<TVacationRuleConfig ...@@ -38,8 +38,8 @@ public interface TVacationRuleConfigService extends IService<TVacationRuleConfig
* @description: 根据入职时间返回年假天数 * @description: 根据入职时间返回年假天数
* @param enjoinDate 入职时间 * @param enjoinDate 入职时间
* @return: java.lang.Integer 年假天数 * @return: java.lang.Integer 年假天数
* @author: wangweiguo * @author: huyc
* @date: 2021/8/13 * @date: 2023/1/13
*/ */
Integer annualLeaveCalculationFormula(LocalDateTime enjoinDate); Integer annualLeaveCalculationFormula(LocalDateTime enjoinDate);
} }
...@@ -14,8 +14,8 @@ import java.util.List; ...@@ -14,8 +14,8 @@ import java.util.List;
/** /**
* B端离职信息表 * B端离职信息表
* *
* @author hgw * @author: huyc
* @date 2021-08-17 17:02:47 * @date: 2023/1/13
*/ */
@Service("tBusLeaveService") @Service("tBusLeaveService")
public class TBusLeaveServiceImpl extends ServiceImpl<TBusLeaveMapper, TBusLeave> implements TBusLeaveService { public class TBusLeaveServiceImpl extends ServiceImpl<TBusLeaveMapper, TBusLeave> implements TBusLeaveService {
......
...@@ -47,8 +47,8 @@ import java.util.concurrent.locks.ReentrantLock; ...@@ -47,8 +47,8 @@ import java.util.concurrent.locks.ReentrantLock;
/** /**
* @description: 假勤信息表 service实现层 * @description: 假勤信息表 service实现层
* @author: wangweiguo * @author: huyc
* @date: 2021-08-20 * @date: 2023/1/13
*/ */
@AllArgsConstructor @AllArgsConstructor
@Service @Service
...@@ -69,8 +69,8 @@ implements TVacationInfoService { ...@@ -69,8 +69,8 @@ implements TVacationInfoService {
* @description: 分页查询: 条件分页查询 * @description: 分页查询: 条件分页查询
* @param query 查询条件 * @param query 查询条件
* @return: R<IPage<TVacationInfoVO>> * @return: R<IPage<TVacationInfoVO>>
* @author: wangweiguo * @author: huyc
* @date: 2021-08-24 * @date: 2023/1/13
*/ */
@Override @Override
public R<IPage<TVacationInfoVO>> getListByPage(TVacationInfoQuery query) { public R<IPage<TVacationInfoVO>> getListByPage(TVacationInfoQuery query) {
...@@ -84,8 +84,8 @@ implements TVacationInfoService { ...@@ -84,8 +84,8 @@ implements TVacationInfoService {
* @description: 查询:根据条件出列表 * @description: 查询:根据条件出列表
* @param query 查询条件 * @param query 查询条件
* @return: IPage<com.yifu.cloud.v1.hrobusiness.api.vo.vacation.TVacationInfoVO>> * @return: IPage<com.yifu.cloud.v1.hrobusiness.api.vo.vacation.TVacationInfoVO>>
* @author: wangweiguo * @author: huyc
* @date: 2021/8/24 * @date: 2023/1/13
*/ */
@Override @Override
public R<List<TVacationInfoVO>> getList(TVacationInfoQuery query) { public R<List<TVacationInfoVO>> getList(TVacationInfoQuery query) {
...@@ -130,7 +130,7 @@ implements TVacationInfoService { ...@@ -130,7 +130,7 @@ implements TVacationInfoService {
entity.setVacationNote(dto.getVacationNote()); entity.setVacationNote(dto.getVacationNote());
entity.setActuralVacationEndTime(dto.getActuralVacationEndTime()); entity.setActuralVacationEndTime(dto.getActuralVacationEndTime());
entity.setUpdateUser(user.getNickname()); entity.setUpdateUser(user.getNickname());
entity.setUpdateUserId(Integer.valueOf(user.getId())); entity.setUpdateUserId(user.getId());
entity.setUpdateTime(LocalDateTime.now()); entity.setUpdateTime(LocalDateTime.now());
boolean isSuccess = this.updateById(entity); boolean isSuccess = this.updateById(entity);
return R.ok(isSuccess,CommonConstants.RESULT_DATA_SUCESS); return R.ok(isSuccess,CommonConstants.RESULT_DATA_SUCESS);
...@@ -239,7 +239,7 @@ implements TVacationInfoService { ...@@ -239,7 +239,7 @@ implements TVacationInfoService {
LocalDate vacationStart = dto.getVacationStartTime(); LocalDate vacationStart = dto.getVacationStartTime();
BeanUtil.copyProperties(dto, entity, CopyOptions.create().setIgnoreNullValue(true).setIgnoreProperties("vacationEndTime", "vacationStartTime")); BeanUtil.copyProperties(dto, entity, CopyOptions.create().setIgnoreNullValue(true).setIgnoreProperties("vacationEndTime", "vacationStartTime"));
entity.setCreateUser(user.getNickname()); entity.setCreateUser(user.getNickname());
entity.setCreateUserId(Integer.valueOf(user.getId())); entity.setCreateUserId(user.getId());
entity.setBusinessPost(businessEmployeeExtend.getBusinessPost()); entity.setBusinessPost(businessEmployeeExtend.getBusinessPost());
entity.setEmpName(businessEmployeeExtend.getEmpName()); entity.setEmpName(businessEmployeeExtend.getEmpName());
entity.setEmpIdcard(businessEmployeeExtend.getEmpIdcard()); entity.setEmpIdcard(businessEmployeeExtend.getEmpIdcard());
...@@ -351,7 +351,7 @@ implements TVacationInfoService { ...@@ -351,7 +351,7 @@ implements TVacationInfoService {
TVacationInfo entity = new TVacationInfo(); TVacationInfo entity = new TVacationInfo();
BeanUtil.copyProperties(dto, entity); BeanUtil.copyProperties(dto, entity);
entity.setCreateUser(user.getNickname()); entity.setCreateUser(user.getNickname());
entity.setCreateUserId(Integer.valueOf(user.getId())); entity.setCreateUserId(user.getId());
entity.setCreateTime(LocalDateTime.now()); entity.setCreateTime(LocalDateTime.now());
if (StringUtils.equals(BusinessCommonContants.YEAR_VACATION_VALUE, entity.getVacationType())) { if (StringUtils.equals(BusinessCommonContants.YEAR_VACATION_VALUE, entity.getVacationType())) {
String vacationYear = String.valueOf(dto.getVacationStartTime().getYear()); String vacationYear = String.valueOf(dto.getVacationStartTime().getYear());
......
...@@ -25,8 +25,8 @@ import static com.yifu.cloud.plus.v1.business.util.BusinessResultErrorMsg.*; ...@@ -25,8 +25,8 @@ import static com.yifu.cloud.plus.v1.business.util.BusinessResultErrorMsg.*;
/** /**
* @description: 假期监控清零日志表 service实现层 * @description: 假期监控清零日志表 service实现层
* @author: wangweiguo * @author: huyc
* @date: 2021-08-16 * @date: 2023/1/13
*/ */
@Service @Service
@AllArgsConstructor @AllArgsConstructor
...@@ -43,7 +43,7 @@ implements TVacationMonitorClearLogService { ...@@ -43,7 +43,7 @@ implements TVacationMonitorClearLogService {
* @Date: 2023/1/6 11:14 * @Date: 2023/1/6 11:14
*/ */
@Override @Override
public R<List<TVacationMonitorClearLogVO>> getList(Integer vacationMonitorId) { public R<List<TVacationMonitorClearLogVO>> getList(String vacationMonitorId) {
if (vacationMonitorId == null) { if (vacationMonitorId == null) {
return R.ok(null,VACATION_MONITOR_ID_IS_NOT_NULL); return R.ok(null,VACATION_MONITOR_ID_IS_NOT_NULL);
} }
...@@ -90,7 +90,7 @@ implements TVacationMonitorClearLogService { ...@@ -90,7 +90,7 @@ implements TVacationMonitorClearLogService {
log.setVacationYear(vacationMonitor.getVacationYear()); log.setVacationYear(vacationMonitor.getVacationYear());
log.setClearDuration(vacationMonitor.getNotUsedVacationDuration()); log.setClearDuration(vacationMonitor.getNotUsedVacationDuration());
log.setClearUser(user.getNickname()); log.setClearUser(user.getNickname());
log.setClearUserId(Integer.valueOf(user.getId())); log.setClearUserId(user.getId());
log.setClearTime(LocalDateTime.now()); log.setClearTime(LocalDateTime.now());
boolean isSuccess = this.save(log); boolean isSuccess = this.save(log);
......
...@@ -34,8 +34,8 @@ import java.util.stream.Collectors; ...@@ -34,8 +34,8 @@ import java.util.stream.Collectors;
/** /**
* @description: 假期监控表 service实现层 * @description: 假期监控表 service实现层
* @author: wangweiguo * @author: huyc
* @date: 2021-08-13 * @date: 2023/1/13
*/ */
@Service @Service
@AllArgsConstructor @AllArgsConstructor
...@@ -50,8 +50,8 @@ implements TVacationMonitorService { ...@@ -50,8 +50,8 @@ implements TVacationMonitorService {
* @description: 分页查询: 条件分页查询 * @description: 分页查询: 条件分页查询
* @param query 查询条件 * @param query 查询条件
* @return: R<IPage<TVacationMonitorVO>> * @return: R<IPage<TVacationMonitorVO>>
* @author: wangweiguo * @author: huyc
* @date: 2021-08-13 * @date: 2023/1/13
*/ */
@Override @Override
public R<IPage<TVacationMonitorVO>> getListByPage(TVacationMonitorQuery query) { public R<IPage<TVacationMonitorVO>> getListByPage(TVacationMonitorQuery query) {
...@@ -68,8 +68,8 @@ implements TVacationMonitorService { ...@@ -68,8 +68,8 @@ implements TVacationMonitorService {
* @description: 导出:根据查询条件导出 * @description: 导出:根据查询条件导出
* @param query 查询条件 * @param query 查询条件
* @return: R<List<TVacationMonitorVO>> * @return: R<List<TVacationMonitorVO>>
* @author: wangweiguo * @author: huyc
* @date: 2021-08-13 * @date: 2023/1/13
*/ */
@Override @Override
public R<List<TVacationMonitorVO>> exportByParams(TVacationMonitorQuery query) { public R<List<TVacationMonitorVO>> exportByParams(TVacationMonitorQuery query) {
...@@ -82,8 +82,8 @@ implements TVacationMonitorService { ...@@ -82,8 +82,8 @@ implements TVacationMonitorService {
* @description: 保存或者更新监控记录 * @description: 保存或者更新监控记录
* @param entity * @param entity
* @return: boolean * @return: boolean
* @author: wangweiguo * @author: huyc
* @date: 2021/8/16 * @date: 2023/1/13
*/ */
@Override @Override
public boolean saveOrUpdateData(TVacationMonitor entity) { public boolean saveOrUpdateData(TVacationMonitor entity) {
...@@ -95,8 +95,8 @@ implements TVacationMonitorService { ...@@ -95,8 +95,8 @@ implements TVacationMonitorService {
* @description: 批量保存 OR 新增 * @description: 批量保存 OR 新增
* @param list * @param list
* @return: boolean * @return: boolean
* @author: wangweiguo * @author: huyc
* @date: 2021/8/16 * @date: 2023/1/13
*/ */
@Override @Override
public boolean batchSaveOrUpdateData(List<TVacationMonitor> list) { public boolean batchSaveOrUpdateData(List<TVacationMonitor> list) {
...@@ -113,8 +113,8 @@ implements TVacationMonitorService { ...@@ -113,8 +113,8 @@ implements TVacationMonitorService {
* @description: 查询-剩余年假:根据身份证号查询剩余年假 * @description: 查询-剩余年假:根据身份证号查询剩余年假
* @param idcard * @param idcard
* @return: com.yifu.cloud.v1.common.core.util.R<java.math.BigDecimal> * @return: com.yifu.cloud.v1.common.core.util.R<java.math.BigDecimal>
* @author: wangweiguo * @author: huyc
* @date: 2021/8/17 * @date: 2023/1/13
*/ */
@Override @Override
public R<BigDecimal> getNotUsedVacationDurationByIdCard(String idcard) { public R<BigDecimal> getNotUsedVacationDurationByIdCard(String idcard) {
...@@ -132,8 +132,8 @@ implements TVacationMonitorService { ...@@ -132,8 +132,8 @@ implements TVacationMonitorService {
/** /**
* @description: 定时任务:内部服务调用,每天初始化员工年假信息 * @description: 定时任务:内部服务调用,每天初始化员工年假信息
* @return: com.yifu.cloud.v1.common.core.util.R<java.lang.Boolean> * @return: com.yifu.cloud.v1.common.core.util.R<java.lang.Boolean>
* @author: wangweiguo * @author: huyc
* @date: 2021/8/17 * @date: 2023/1/13
*/ */
@Override @Override
public R<Boolean> buildMonitorData() { public R<Boolean> buildMonitorData() {
...@@ -144,7 +144,7 @@ implements TVacationMonitorService { ...@@ -144,7 +144,7 @@ implements TVacationMonitorService {
if (R.isSuccess(listR) && Common.isNotNull(listR.getData()) && Common.isNotNull(listR.getData().getExtendVO())) { if (R.isSuccess(listR) && Common.isNotNull(listR.getData()) && Common.isNotNull(listR.getData().getExtendVO())) {
List<BusinessEmployeeExtendVO> list = listR.getData().getExtendVO(); List<BusinessEmployeeExtendVO> list = listR.getData().getExtendVO();
List<TVacationMonitor> collect = list.stream().map(vo -> { List<TVacationMonitor> collect = list.stream().map(vo -> {
TVacationMonitor monitor = null; TVacationMonitor monitor;
if (null != vo.getBusinessEnjoinDate()) { if (null != vo.getBusinessEnjoinDate()) {
String curentYear = String.valueOf(LocalDate.now().getYear()); String curentYear = String.valueOf(LocalDate.now().getYear());
monitor = this.lambdaQuery() monitor = this.lambdaQuery()
...@@ -175,8 +175,8 @@ implements TVacationMonitorService { ...@@ -175,8 +175,8 @@ implements TVacationMonitorService {
/** /**
* @description: 冗余更新:更新监控表中冗余的员工信息,电信工号和岗位 * @description: 冗余更新:更新监控表中冗余的员工信息,电信工号和岗位
* @return: com.yifu.cloud.v1.common.core.util.R<java.lang.Boolean> * @return: com.yifu.cloud.v1.common.core.util.R<java.lang.Boolean>
* @author: wangweiguo * @author: huyc
* @date: 2021/8/23 * @date: 2023/1/13
*/ */
@Override @Override
public R<Boolean> updateRedundancyEmployeeFields(List<UpdateVacationRedundancyDTO> dtoList) { public R<Boolean> updateRedundancyEmployeeFields(List<UpdateVacationRedundancyDTO> dtoList) {
...@@ -198,8 +198,8 @@ implements TVacationMonitorService { ...@@ -198,8 +198,8 @@ implements TVacationMonitorService {
* @param vacationDuration 假期时长 * @param vacationDuration 假期时长
* @param year 年份 * @param year 年份
* @return: boolean * @return: boolean
* @author: wangweiguo * @author: huyc
* @date: 2021/8/24 * @date: 2023/1/13
*/ */
@Override @Override
public boolean releaseVacationDuration(String empIdcard, BigDecimal vacationDuration, String year) { public boolean releaseVacationDuration(String empIdcard, BigDecimal vacationDuration, String year) {
...@@ -214,8 +214,8 @@ implements TVacationMonitorService { ...@@ -214,8 +214,8 @@ implements TVacationMonitorService {
* @param vacationDuration 假期时长 * @param vacationDuration 假期时长
* @param year 年份 * @param year 年份
* @return: boolean * @return: boolean
* @author: wangweiguo * @author: huyc
* @date: 2021/8/24 * @date: 2023/1/13
*/ */
@Override @Override
public boolean consumeVacationDuration(String empIdcard, BigDecimal vacationDuration, String year) { public boolean consumeVacationDuration(String empIdcard, BigDecimal vacationDuration, String year) {
...@@ -229,8 +229,8 @@ implements TVacationMonitorService { ...@@ -229,8 +229,8 @@ implements TVacationMonitorService {
* @param empIdcard 身份证号 * @param empIdcard 身份证号
* @param year 假勤年份 * @param year 假勤年份
* @return: com.yifu.cloud.v1.hrobusiness.api.entity.vacation.TVacationMonitor * @return: com.yifu.cloud.v1.hrobusiness.api.entity.vacation.TVacationMonitor
* @author: wangweiguo * @author: huyc
* @date: 2021/8/24 * @date: 2023/1/13
*/ */
@Override @Override
public TVacationMonitor getMonitorByEmpIdcardAndYear(String empIdcard, String year) { public TVacationMonitor getMonitorByEmpIdcardAndYear(String empIdcard, String year) {
...@@ -244,8 +244,8 @@ implements TVacationMonitorService { ...@@ -244,8 +244,8 @@ implements TVacationMonitorService {
* @description: 保存前,属性赋值 * @description: 保存前,属性赋值
* @param entity * @param entity
* @return: void * @return: void
* @author: wangweiguo * @author: huyc
* @date: 2021/8/16 * @date: 2023/1/13
*/ */
private void beforeSaveInit(TVacationMonitor entity) { private void beforeSaveInit(TVacationMonitor entity) {
if (null != entity) { if (null != entity) {
......
...@@ -21,8 +21,8 @@ import java.time.temporal.TemporalAdjusters; ...@@ -21,8 +21,8 @@ import java.time.temporal.TemporalAdjusters;
/** /**
* @description: 假期配置 service实现层 * @description: 假期配置 service实现层
* @author: wangweiguo * @author: huyc
* @date: 2021/8/13 * @date: 2023/1/13
*/ */
@Service @Service
public class TVacationRuleConfigServiceImpl extends ServiceImpl<TVacationRuleConfigMapper, TVacationRuleConfig> public class TVacationRuleConfigServiceImpl extends ServiceImpl<TVacationRuleConfigMapper, TVacationRuleConfig>
...@@ -33,8 +33,8 @@ implements TVacationRuleConfigService { ...@@ -33,8 +33,8 @@ implements TVacationRuleConfigService {
/** /**
* @description: 获取年假配置规则 * @description: 获取年假配置规则
* @return: com.yifu.cloud.v1.common.core.util.R<com.yifu.cloud.v1.hrobusiness.api.vo.vacation.VacationRuleConfigVO> * @return: com.yifu.cloud.v1.common.core.util.R<com.yifu.cloud.v1.hrobusiness.api.vo.vacation.VacationRuleConfigVO>
* @author: wangweiguo * @author: huyc
* @date: 2021/8/13 * @date: 2023/1/13
*/ */
@Override @Override
public R<VacationRuleConfigVO> getVacationRuleConfig() { public R<VacationRuleConfigVO> getVacationRuleConfig() {
...@@ -50,8 +50,8 @@ implements TVacationRuleConfigService { ...@@ -50,8 +50,8 @@ implements TVacationRuleConfigService {
* @param user * @param user
* @param dto * @param dto
* @return: com.yifu.cloud.v1.common.core.util.R<java.lang.Boolean> * @return: com.yifu.cloud.v1.common.core.util.R<java.lang.Boolean>
* @author: wangweiguo * @author: huyc
* @date: 2021/8/13 * @date: 2023/1/13
*/ */
@Override @Override
public R<Boolean> addOrSave(YifuUser user, AddOrSaveVacationRuleDTO dto) { public R<Boolean> addOrSave(YifuUser user, AddOrSaveVacationRuleDTO dto) {
...@@ -80,8 +80,8 @@ implements TVacationRuleConfigService { ...@@ -80,8 +80,8 @@ implements TVacationRuleConfigService {
* @description: 根据入职时间返回年假天数 * @description: 根据入职时间返回年假天数
* @param enjoinDate 入职时间 * @param enjoinDate 入职时间
* @return: java.lang.Integer 年假天数 * @return: java.lang.Integer 年假天数
* @author: wangweiguo * @author: huyc
* @date: 2021/8/13 * @date: 2023/1/13
*/ */
@Override @Override
public Integer annualLeaveCalculationFormula(LocalDateTime enjoinDate) { public Integer annualLeaveCalculationFormula(LocalDateTime enjoinDate) {
......
...@@ -10,7 +10,7 @@ ...@@ -10,7 +10,7 @@
<result property="clearDuration" column="CLEAR_DURATION" jdbcType="DECIMAL"/> <result property="clearDuration" column="CLEAR_DURATION" jdbcType="DECIMAL"/>
<result property="vacationYear" column="VACATION_YEAR" jdbcType="CHAR"/> <result property="vacationYear" column="VACATION_YEAR" jdbcType="CHAR"/>
<result property="clearUser" column="CLEAR_USER" jdbcType="VARCHAR"/> <result property="clearUser" column="CLEAR_USER" jdbcType="VARCHAR"/>
<result property="clearUserId" column="CLEAR_USER_ID" jdbcType="INTEGER"/> <result property="clearUserId" column="CLEAR_USER_ID" jdbcType="VARCHAR"/>
<result property="clearTime" column="CLEAR_TIME" jdbcType="TIMESTAMP"/> <result property="clearTime" column="CLEAR_TIME" jdbcType="TIMESTAMP"/>
<result property="vacationMonitorId" column="VACATION_MONITOR_ID" jdbcType="INTEGER"/> <result property="vacationMonitorId" column="VACATION_MONITOR_ID" jdbcType="INTEGER"/>
</resultMap> </resultMap>
......
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
<mapper namespace="com.yifu.cloud.plus.v1.business.mapper.vacation.TVacationRuleConfigMapper"> <mapper namespace="com.yifu.cloud.plus.v1.business.mapper.vacation.TVacationRuleConfigMapper">
<resultMap id="BaseResultMap" type="com.yifu.cloud.plus.v1.business.entity.vacation.TVacationRuleConfig"> <resultMap id="BaseResultMap" type="com.yifu.cloud.plus.v1.business.entity.vacation.TVacationRuleConfig">
<id property="id" column="ID" jdbcType="INTEGER"/> <id property="id" column="ID" jdbcType="VARCHAR"/>
<result property="type" column="TYPE" jdbcType="CHAR"/> <result property="type" column="TYPE" jdbcType="CHAR"/>
<result property="vacationAutoInit" column="VACATION_AUTO_INIT" jdbcType="CHAR"/> <result property="vacationAutoInit" column="VACATION_AUTO_INIT" jdbcType="CHAR"/>
<result property="vacationInitDate" column="VACATION_INIT_DATE" jdbcType="DATE"/> <result property="vacationInitDate" column="VACATION_INIT_DATE" jdbcType="DATE"/>
......
...@@ -369,7 +369,7 @@ public class ArchivesDaprUtil { ...@@ -369,7 +369,7 @@ public class ArchivesDaprUtil {
* @return * @return
**/ **/
public R<TBusinessDataListVo> getNotLeaveExtendList() { public R<TBusinessDataListVo> getNotLeaveExtendList() {
R<TBusinessDataListVo> res = HttpDaprUtil.invokeMethodPost(daprArchivesProperties.getAppUrl(),daprArchivesProperties.getAppId(),"/customerBusiness/temployeeBusiness/inner/getNotLeaveExtendList" , "", TBusinessEmployeeExtendInfo.class, SecurityConstants.FROM_IN); R<TBusinessDataListVo> res = HttpDaprUtil.invokeMethodPost(daprArchivesProperties.getAppUrl(),daprArchivesProperties.getAppId(),"/customerBusiness/temployeeBusiness/inner/getNotLeaveExtendList" , "", TBusinessDataListVo.class, SecurityConstants.FROM_IN);
if (Common.isEmpty(res)){ if (Common.isEmpty(res)){
return R.failed("获取所有非离职员工拓展表信息失败!"); return R.failed("获取所有非离职员工拓展表信息失败!");
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment