From 82de5a307466894bbb0258f8a63a26a7bb96d80d Mon Sep 17 00:00:00 2001 From: zhang <zc857179121@qq.com> Date: 星期四, 16 十月 2025 09:55:35 +0800 Subject: [PATCH] 13 --- src/main/java/com/zy/asrs/entity/DocLog.java | 37 ++++++++++++++++++++----------------- 1 files changed, 20 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 1f25e05..e950583 100644 --- a/src/main/java/com/zy/asrs/entity/DocLog.java +++ b/src/main/java/com/zy/asrs/entity/DocLog.java @@ -20,64 +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; @@ -153,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: @@ -173,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