提交 895122da authored 作者: 刘海泉's avatar 刘海泉

增加日子实体

上级 4493f6fe
package com.clx.performance.model;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.msl.common.config.KeyColumn;
import com.msl.common.model.HasKey;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import java.time.LocalDateTime;
@Getter
@Setter
@NoArgsConstructor
@TableName(autoResultMap = true)
public class OrderChildExceptionReportOperationLog implements HasKey<Integer> {
@TableId(value = "id", type = IdType.AUTO)
private Integer id; //id
private String reportNo; //运单编号
private Integer type; //操作事项编码
private String result; //处理结果
private Long createBy; //操作人编号
private String createName; //操作人名称
private LocalDateTime createTime; //创建时间
private LocalDateTime modifiedTime; //修改时间
@KeyColumn("id")
@Override
public Integer gainKey() {
return id;
}
}
\ No newline at end of file
package com.clx.performance.enums;
import lombok.AllArgsConstructor;
import lombok.Getter;
import java.util.Arrays;
import java.util.Optional;
public enum CarrierExceptionLogEnum {
;
@Getter
@AllArgsConstructor
public enum Type {
CREATE(1, "创建违约单"),
TIMEOUT(2, "超时货主处理"),
APPEAL(3, "申诉"),
APPEAL_DEAL(4, "申诉处理"),
AGREE(5, "同意扣罚"),
TRANSFER_DRIVER_BREAK_CONTRACT(6, "转司机违约"),
;
private final Integer code;
private final String name;
public static Optional<Type> getByCode(Integer code) {
return Arrays.stream(values()).filter(e -> e.code.equals(code)).findFirst();
}
public static String getMsgByCode(Integer code) {
if (code == null) {return null;}
return getByCode(code).map(Type::getName).orElse(null);
}
}
}
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论