From 1c0dbad152362ac704a27ecfc5b5d08247385d87 Mon Sep 17 00:00:00 2001 From: zhang <zc857179121@qq.com> Date: 星期二, 21 十月 2025 17:12:48 +0800 Subject: [PATCH] 13 --- src/main/java/com/zy/asrs/entity/DocLog.java | 40 +++++++++++++++++++++++----------------- 1 files changed, 23 insertions(+), 17 deletions(-) diff --git a/src/main/java/com/zy/asrs/entity/DocLog.java b/src/main/java/com/zy/asrs/entity/DocLog.java index 88c959a..e950583 100644 --- a/src/main/java/com/zy/asrs/entity/DocLog.java +++ b/src/main/java/com/zy/asrs/entity/DocLog.java @@ -1,7 +1,9 @@ package com.zy.asrs.entity; import com.baomidou.mybatisplus.annotations.TableField; +import com.baomidou.mybatisplus.annotations.TableId; import com.baomidou.mybatisplus.annotations.TableName; +import com.baomidou.mybatisplus.enums.IdType; import com.core.common.Cools; import io.swagger.annotations.ApiModelProperty; import org.springframework.format.annotation.DateTimeFormat; @@ -18,63 +20,65 @@ /** * ID */ - @ApiModelProperty(value= "ID") + @ApiModelProperty(value = "ID") + @TableId(value = "id", type = IdType.AUTO) private Long id; /** * 鍗曟嵁缂栧彿 */ - @ApiModelProperty(value= "鍗曟嵁缂栧彿") + @ApiModelProperty(value = "鍗曟嵁缂栧彿") @TableField("doc_num") private String docNum; /** * 鍗曟嵁绫诲瀷 */ - @ApiModelProperty(value= "鍗曟嵁绫诲瀷") + @ApiModelProperty(value = "鍗曟嵁绫诲瀷") @TableField("doc_id") private Long docId; /** * 鍗曟嵁鍚嶇О */ - @ApiModelProperty(value= "鍗曟嵁鍚嶇О") + @ApiModelProperty(value = "鍗曟嵁鍚嶇О") @TableField("doc_name") private String docName; /** * 鍟嗗搧缂栧彿 */ - @ApiModelProperty(value= "鍟嗗搧缂栧彿") + @ApiModelProperty(value = "鍟嗗搧缂栧彿") private String matnr; /** * 涓婃姤鏁伴噺 */ - @ApiModelProperty(value= "涓婃姤鏁伴噺") + @ApiModelProperty(value = "涓婃姤鏁伴噺") private Double qua; /** - * 缁撴灉 1: 鎴愬姛 0: 澶辫触 + * 缁撴灉 1: 鎴愬姛 0: 澶辫触 */ - @ApiModelProperty(value= "缁撴灉 1: 鎴愬姛 0: 澶辫触 ") + @ApiModelProperty(value = "缁撴灉 1: 鎴愬姛 0: 澶辫触 ") private Integer success; /** * 涓婃姤鏃堕棿 */ - @ApiModelProperty(value= "涓婃姤鏃堕棿") + @ApiModelProperty(value = "涓婃姤鏃堕棿") @TableField("send_time") - @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss") + @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") private Date sendTime; /** * 澶囨敞 */ - @ApiModelProperty(value= "澶囨敞") + @ApiModelProperty(value = "澶囨敞") private String memo; - public DocLog() {} + public DocLog() { + } public DocLog(String docNum, Long docId, String docName, String matnr, Double qua, Integer success, Date sendTime, String memo) { this.docNum = docNum; @@ -150,9 +154,11 @@ return success; } - public String getSuccess$(){ - if (null == this.success){ return null; } - switch (this.success){ + public String getSuccess$() { + if (null == this.success) { + return null; + } + switch (this.success) { case 1: return "鎴愬姛"; case 0: @@ -170,8 +176,8 @@ return sendTime; } - public String getSendTime$(){ - if (Cools.isEmpty(this.sendTime)){ + public String getSendTime$() { + if (Cools.isEmpty(this.sendTime)) { return ""; } return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(this.sendTime); -- Gitblit v1.9.1