From 55eb3d480594f4c0dd382eaeeb8548bf911d6ad7 Mon Sep 17 00:00:00 2001
From: zhang <zc857179121@qq.com>
Date: 星期四, 23 十月 2025 08:28:08 +0800
Subject: [PATCH] 13
---
src/main/java/com/zy/asrs/entity/DocType.java | 90 +++++++++++++++++++++++++++++++-------------
1 files changed, 63 insertions(+), 27 deletions(-)
diff --git a/src/main/java/com/zy/asrs/entity/DocType.java b/src/main/java/com/zy/asrs/entity/DocType.java
index 14e5776..05032f1 100644
--- a/src/main/java/com/zy/asrs/entity/DocType.java
+++ b/src/main/java/com/zy/asrs/entity/DocType.java
@@ -25,7 +25,7 @@
/**
* 绫诲瀷缂栧彿
*/
- @ApiModelProperty(value= "绫诲瀷缂栧彿")
+ @ApiModelProperty(value = "绫诲瀷缂栧彿")
@TableId(value = "doc_id", type = IdType.INPUT)
@TableField("doc_id")
private Long docId;
@@ -33,67 +33,69 @@
/**
* 绫诲瀷鍚嶇О
*/
- @ApiModelProperty(value= "绫诲瀷鍚嶇О")
+ @ApiModelProperty(value = "绫诲瀷鍚嶇О")
@TableField("doc_name")
private String docName;
/**
* 鍏ュ簱 1: 鍏ュ簱 0: 闈炲叆搴�
*/
- @ApiModelProperty(value= "鍏ュ簱 1: 鍏ュ簱 0: 闈炲叆搴� ")
+ @ApiModelProperty(value = "鍏ュ簱 1: 鍏ュ簱 0: 闈炲叆搴� ")
private Integer pakin;
/**
* 鍑哄簱 1: 鍑哄簱 0: 闈炲嚭搴�
*/
- @ApiModelProperty(value= "鍑哄簱 1: 鍑哄簱 0: 闈炲嚭搴� ")
+ @ApiModelProperty(value = "鍑哄簱 1: 鍑哄簱 0: 闈炲嚭搴� ")
private Integer pakout;
/**
* 鐘舵�� 1: 姝e父 0: 绂佺敤
*/
- @ApiModelProperty(value= "鐘舵�� 1: 姝e父 0: 绂佺敤 ")
+ @ApiModelProperty(value = "鐘舵�� 1: 姝e父 0: 绂佺敤 ")
private Integer status;
/**
* 娣诲姞浜哄憳
*/
- @ApiModelProperty(value= "娣诲姞浜哄憳")
+ @ApiModelProperty(value = "娣诲姞浜哄憳")
@TableField("create_by")
private Long createBy;
/**
* 娣诲姞鏃堕棿
*/
- @ApiModelProperty(value= "娣诲姞鏃堕棿")
+ @ApiModelProperty(value = "娣诲姞鏃堕棿")
@TableField("create_time")
- @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
+ @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
private Date createTime;
/**
* 淇敼浜哄憳
*/
- @ApiModelProperty(value= "淇敼浜哄憳")
+ @ApiModelProperty(value = "淇敼浜哄憳")
@TableField("update_by")
private Long updateBy;
/**
* 淇敼鏃堕棿
*/
- @ApiModelProperty(value= "淇敼鏃堕棿")
+ @ApiModelProperty(value = "淇敼鏃堕棿")
@TableField("update_time")
- @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
+ @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
private Date updateTime;
/**
* 澶囨敞
*/
- @ApiModelProperty(value= "澶囨敞")
+ @ApiModelProperty(value = "澶囨敞")
private String memo;
public String getPakin$() {
- if (null == this.pakin){ return null; }
- switch (this.pakin){
+ if (null == this.pakin) {
+ return null;
+ }
+ switch (this.pakin) {
case 1:
return "鍏ュ簱";
case 0:
@@ -104,8 +106,10 @@
}
public String getPakout$() {
- if (null == this.pakout){ return null; }
- switch (this.pakout){
+ if (null == this.pakout) {
+ return null;
+ }
+ switch (this.pakout) {
case 1:
return "鍑哄簱";
case 0:
@@ -115,9 +119,11 @@
}
}
- public String getStatus$(){
- if (null == this.status){ return null; }
- switch (this.status){
+ public String getStatus$() {
+ if (null == this.status) {
+ return null;
+ }
+ switch (this.status) {
case 1:
return "姝e父";
case 0:
@@ -127,37 +133,67 @@
}
}
- public String getCreateBy$(){
+ public String getCreateBy$() {
UserService service = SpringUtils.getBean(UserService.class);
User user = service.selectById(this.createBy);
- if (!Cools.isEmpty(user)){
+ if (!Cools.isEmpty(user)) {
return String.valueOf(user.getUsername());
}
return null;
}
- public String getCreateTime$(){
- if (Cools.isEmpty(this.createTime)){
+ public String getCreateTime$() {
+ if (Cools.isEmpty(this.createTime)) {
return "";
}
return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(this.createTime);
}
- public String getUpdateBy$(){
+ public String getUpdateBy$() {
UserService service = SpringUtils.getBean(UserService.class);
User user = service.selectById(this.updateBy);
- if (!Cools.isEmpty(user)){
+ if (!Cools.isEmpty(user)) {
return String.valueOf(user.getUsername());
}
return null;
}
- public String getUpdateTime$(){
- if (Cools.isEmpty(this.updateTime)){
+ public String getUpdateTime$() {
+ if (Cools.isEmpty(this.updateTime)) {
return "";
}
return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(this.updateTime);
}
+ public String getDocName$() {
+ if (Cools.isEmpty(this.docName)) {
+ return "";
+ } else {
+ switch (this.docName) {
+ case "閲囪喘閿�鍞紙鍑哄簱锛�":
+ case "閲囪喘閿�鍞紙鍏ュ簱锛�":
+ return "TF_PSS";
+ case "搴撳瓨璋冩嫧锛堝嚭搴擄級":
+ case "搴撳瓨璋冩嫧锛堝叆搴擄級":
+ return "TF_IC";
+ case "搴撳瓨璋冩暣锛堝嚭搴擄級":
+ case "搴撳瓨璋冩暣锛堝叆搴擄級":
+ return "TF_IJ";
+ case "鐢熶骇棰嗘枡锛堝嚭搴擄級":
+ case "鐢熶骇棰嗘枡锛堝叆搴擄級":
+ return "TF_ML";
+ case "鐢熶骇缂村簱锛堝嚭搴擄級":
+ case "鐢熶骇缂村簱锛堝叆搴擄級":
+ return "TF_MM0";
+ case "鎵樺伐閫�鍥烇紙鍑哄簱锛�":
+ case "鎵樺伐閫�鍥烇紙鍏ュ簱锛�":
+ return "TF_TC";
+ default:
+ return this.docName;
+ }
+ }
+
+ }
+
}
--
Gitblit v1.9.1