Files
klp-oa/klp-wms/src/main/java/com/klp/domain/bo/WmsAttendanceShiftBo.java
Joshi e42afdaf20 refactor(domain): 优化班次时间字段类型
- 将 startTime、endTime、startTime2、endTime2 字段从 Date 类型改为 LocalTime 类型
- 为所有时间字段添加 @JsonFormat 注解以支持 HH:mm:ss 格式
- 为所有时间字段添加 @DateTimeFormat 注解以支持表单绑定
- 更新 WmsAttendanceShift、WmsAttendanceShiftBo 和 WmsAttendanceShiftVo 三个类的时间字段定义
- 移除旧的 java.util.Date 导入并添加 java.time.LocalTime 导入
- 添加对 Spring DateTimeFormat 注解的支持导入
2026-05-09 10:19:50 +08:00

89 lines
1.6 KiB
Java
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

package com.klp.domain.bo;
import com.klp.common.core.domain.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;
import javax.validation.constraints.*;
import java.math.BigDecimal;
import java.time.LocalTime;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;
/**
* 班次业务对象 wms_attendance_shift
*
* @author klp
* @date 2026-05-08
*/
@Data
@EqualsAndHashCode(callSuper = true)
public class WmsAttendanceShiftBo extends BaseEntity {
/**
* 主键ID
*/
private Long shiftId;
/**
* 班次名称(长白/夜班/办公)
*/
private String shiftName;
/**
* 班次类型(白班/夜班)
*/
private String shiftType;
/**
* 季节(夏季/冬季)
*/
private String season;
/**
* 上班1
*/
@JsonFormat(pattern = "HH:mm:ss")
@DateTimeFormat(pattern = "HH:mm:ss")
private LocalTime startTime;
/**
* 下班1
*/
@JsonFormat(pattern = "HH:mm:ss")
@DateTimeFormat(pattern = "HH:mm:ss")
private LocalTime endTime;
/**
* 上班2
*/
@JsonFormat(pattern = "HH:mm:ss")
@DateTimeFormat(pattern = "HH:mm:ss")
private LocalTime startTime2;
/**
* 下班2
*/
@JsonFormat(pattern = "HH:mm:ss")
@DateTimeFormat(pattern = "HH:mm:ss")
private LocalTime endTime2;
/**
* 是否跨天
*/
private Long isCrossDay;
/**
* 工时如18小时
*/
private BigDecimal workHours;
/**
* 备注
*/
private String remark;
}