- 在 IWmsAttendanceCheckService 中新增 updateByBo 方法 - 扩展 WmsAttendanceCheckBo 类继承 BaseEntity 并添加多个考勤字段 - 添加考勤状态、迟到早退分钟数、扣款金额等相关属性 - 在控制器中实现 PUT 请求的编辑接口 - 添加 EditGroup 验证组支持 - 实现服务层 updateByBo 方法进行数据库更新操作
45 lines
1.1 KiB
Java
45 lines
1.1 KiB
Java
package com.klp.domain.bo;
|
|
|
|
import com.fasterxml.jackson.annotation.JsonFormat;
|
|
import com.klp.common.core.domain.BaseEntity;
|
|
import lombok.Data;
|
|
import lombok.EqualsAndHashCode;
|
|
import org.springframework.format.annotation.DateTimeFormat;
|
|
|
|
import java.math.BigDecimal;
|
|
import java.util.Date;
|
|
|
|
@Data
|
|
@EqualsAndHashCode(callSuper = true)
|
|
public class WmsAttendanceCheckBo extends BaseEntity {
|
|
|
|
private Long checkId;
|
|
private Long userId;
|
|
private String employeeName;
|
|
private Long shiftId;
|
|
|
|
@JsonFormat(pattern = "yyyy-MM-dd")
|
|
@DateTimeFormat(pattern = "yyyy-MM-dd")
|
|
private Date startDate;
|
|
|
|
@JsonFormat(pattern = "yyyy-MM-dd")
|
|
@DateTimeFormat(pattern = "yyyy-MM-dd")
|
|
private Date endDate;
|
|
|
|
private Integer p1LateMinutes;
|
|
private Integer p1EarlyMinutes;
|
|
private String p1Status;
|
|
private BigDecimal p1Deduct;
|
|
|
|
private Integer p2LateMinutes;
|
|
private Integer p2EarlyMinutes;
|
|
private String p2Status;
|
|
private BigDecimal p2Deduct;
|
|
|
|
private String absentType;
|
|
private Integer continuousAbsentDays;
|
|
private BigDecimal totalDeduct;
|
|
private String overallStatus;
|
|
private String remark;
|
|
}
|