From bb28c2f09f7fa36b8b80f9d19f23631623b80d1c Mon Sep 17 00:00:00 2001
From: pang.jiabao <pang_jiabao@163.com>
Date: 星期六, 01 三月 2025 16:59:46 +0800
Subject: [PATCH] #
---
zy-asrs-wms/src/main/java/com/zy/asrs/wms/system/entity/OperationRecord.java | 378 +++++++++++++++++++++++++++---------------------------
1 files changed, 189 insertions(+), 189 deletions(-)
diff --git a/zy-asrs-wms/src/main/java/com/zy/asrs/wms/system/entity/OperationRecord.java b/zy-asrs-wms/src/main/java/com/zy/asrs/wms/system/entity/OperationRecord.java
index b756848..6f545d5 100644
--- a/zy-asrs-wms/src/main/java/com/zy/asrs/wms/system/entity/OperationRecord.java
+++ b/zy-asrs-wms/src/main/java/com/zy/asrs/wms/system/entity/OperationRecord.java
@@ -1,189 +1,189 @@
-package com.zy.asrs.wms.system.entity;
-
-import com.baomidou.mybatisplus.annotation.IdType;
-import com.baomidou.mybatisplus.annotation.TableId;
-import com.baomidou.mybatisplus.annotation.TableName;
-import com.zy.asrs.framework.common.Cools;
-import com.zy.asrs.framework.common.SpringUtils;
-import com.zy.asrs.wms.system.service.HostService;
-import com.zy.asrs.wms.system.service.UserService;
-import io.swagger.annotations.ApiModelProperty;
-import lombok.Data;
-import org.springframework.format.annotation.DateTimeFormat;
-
-import java.io.Serializable;
-import java.text.SimpleDateFormat;
-import java.util.Date;
-
-@Data
-@TableName("sys_operation_record")
-public class OperationRecord implements Serializable {
-
- private static final long serialVersionUID = 1L;
-
- /**
- * ID
- */
- @ApiModelProperty(value= "ID")
- @TableId(value = "id", type = IdType.AUTO)
- private Long id;
-
- /**
- * 鍚嶇О绌洪棿
- */
- @ApiModelProperty(value= "鍚嶇О绌洪棿")
- private String namespace;
-
- /**
- * 鎺ュ彛鍦板潃
- */
- @ApiModelProperty(value= "鎺ュ彛鍦板潃")
- private String url;
-
- /**
- * 骞冲彴瀵嗛挜
- */
- @ApiModelProperty(value= "骞冲彴瀵嗛挜")
- private String appkey;
-
- /**
- * 鏃堕棿鎴�
- */
- @ApiModelProperty(value= "鏃堕棿鎴�")
- private String timestamp;
-
- /**
- * 瀹㈡埛绔疘P
- */
- @ApiModelProperty(value= "瀹㈡埛绔疘P")
- private String clientIp;
-
- /**
- * 璇锋眰鍐呭
- */
- @ApiModelProperty(value= "璇锋眰鍐呭")
- private String request;
-
- /**
- * 鍝嶅簲鍐呭
- */
- @ApiModelProperty(value= "鍝嶅簲鍐呭")
- private String response;
-
- /**
- * 娑堣�楁椂闂�
- */
- @ApiModelProperty(value= "娑堣�楁椂闂�")
- private Integer spendTime;
-
- /**
- * 寮傚父鍐呭
- */
- @ApiModelProperty(value= "寮傚父鍐呭")
- private String err;
-
- /**
- * 缁撴灉 1: 鎴愬姛 0: 澶辫触
- */
- @ApiModelProperty(value= "缁撴灉 1: 鎴愬姛 0: 澶辫触 ")
- private Integer result;
-
- /**
- * 鐢ㄦ埛
- */
- @ApiModelProperty(value= "鐢ㄦ埛")
- private Long userId;
-
- /**
- * 鎵�灞炴満鏋�
- */
- @ApiModelProperty(value= "鎵�灞炴満鏋�")
- private Long hostId;
-
- /**
- * 娣诲姞鏃堕棿
- */
- @ApiModelProperty(value= "娣诲姞鏃堕棿")
- @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
- private Date createTime;
-
- /**
- * 澶囨敞
- */
- @ApiModelProperty(value= "澶囨敞")
- private String memo;
-
- public OperationRecord() {}
-
- public OperationRecord(String namespace, String url, String appkey, String timestamp, String clientIp, String request, String response, Integer spendTime, String err, Integer result, Long userId, Long hostId, Date createTime, String memo) {
- this.namespace = namespace;
- this.url = url;
- this.appkey = appkey;
- this.timestamp = timestamp;
- this.clientIp = clientIp;
- this.request = request;
- this.response = response;
- this.spendTime = spendTime;
- this.err = err;
- this.result = result;
- this.userId = userId;
- this.hostId = hostId;
- this.createTime = createTime;
- this.memo = memo;
- }
-
-// OperationRecord operationRecord = new OperationRecord(
-// null, // 鍚嶇О绌洪棿
-// null, // 鎺ュ彛鍦板潃
-// null, // 骞冲彴瀵嗛挜
-// null, // 鏃堕棿鎴�
-// null, // 瀹㈡埛绔疘P
-// null, // 璇锋眰鍐呭
-// null, // 鍝嶅簲鍐呭
-// null, // 寮傚父鍐呭
-// null, // 缁撴灉
-// null, // 鐢ㄦ埛
-// null, // 鎵�灞炴満鏋�
-// null, // 娣诲姞鏃堕棿
-// null // 澶囨敞
-// );
-
- public String getResult$(){
- if (null == this.result){ return null; }
- switch (this.result){
- case 1:
- return "鎴愬姛";
- case 0:
- return "澶辫触";
- default:
- return String.valueOf(this.result);
- }
- }
-
- public String getUserId$(){
- UserService service = SpringUtils.getBean(UserService.class);
- User user = service.getById(this.userId);
- if (!Cools.isEmpty(user)){
- return String.valueOf(user.getNickname());
- }
- return null;
- }
-
- public String getHostId$(){
- HostService service = SpringUtils.getBean(HostService.class);
- Host host = service.getById(this.hostId);
- if (!Cools.isEmpty(host)){
- return String.valueOf(host.getName());
- }
- return null;
- }
-
- public String getCreateTime$(){
- if (Cools.isEmpty(this.createTime)){
- return "";
- }
- return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(this.createTime);
- }
-
-
-}
+package com.zy.asrs.wms.system.entity;
+
+import com.baomidou.mybatisplus.annotation.IdType;
+import com.baomidou.mybatisplus.annotation.TableId;
+import com.baomidou.mybatisplus.annotation.TableName;
+import com.zy.asrs.framework.common.Cools;
+import com.zy.asrs.framework.common.SpringUtils;
+import com.zy.asrs.wms.system.service.HostService;
+import com.zy.asrs.wms.system.service.UserService;
+import io.swagger.annotations.ApiModelProperty;
+import lombok.Data;
+import org.springframework.format.annotation.DateTimeFormat;
+
+import java.io.Serializable;
+import java.text.SimpleDateFormat;
+import java.util.Date;
+
+@Data
+@TableName("sys_operation_record")
+public class OperationRecord implements Serializable {
+
+ private static final long serialVersionUID = 1L;
+
+ /**
+ * ID
+ */
+ @ApiModelProperty(value= "ID")
+ @TableId(value = "id", type = IdType.AUTO)
+ private Long id;
+
+ /**
+ * 鍚嶇О绌洪棿
+ */
+ @ApiModelProperty(value= "鍚嶇О绌洪棿")
+ private String namespace;
+
+ /**
+ * 鎺ュ彛鍦板潃
+ */
+ @ApiModelProperty(value= "鎺ュ彛鍦板潃")
+ private String url;
+
+ /**
+ * 骞冲彴瀵嗛挜
+ */
+ @ApiModelProperty(value= "骞冲彴瀵嗛挜")
+ private String appkey;
+
+ /**
+ * 鏃堕棿鎴�
+ */
+ @ApiModelProperty(value= "鏃堕棿鎴�")
+ private String timestamp;
+
+ /**
+ * 瀹㈡埛绔疘P
+ */
+ @ApiModelProperty(value= "瀹㈡埛绔疘P")
+ private String clientIp;
+
+ /**
+ * 璇锋眰鍐呭
+ */
+ @ApiModelProperty(value= "璇锋眰鍐呭")
+ private String request;
+
+ /**
+ * 鍝嶅簲鍐呭
+ */
+ @ApiModelProperty(value= "鍝嶅簲鍐呭")
+ private String response;
+
+ /**
+ * 娑堣�楁椂闂�
+ */
+ @ApiModelProperty(value= "娑堣�楁椂闂�")
+ private Integer spendTime;
+
+ /**
+ * 寮傚父鍐呭
+ */
+ @ApiModelProperty(value= "寮傚父鍐呭")
+ private String err;
+
+ /**
+ * 缁撴灉 1: 鎴愬姛 0: 澶辫触
+ */
+ @ApiModelProperty(value= "缁撴灉 1: 鎴愬姛 0: 澶辫触 ")
+ private Integer result;
+
+ /**
+ * 鐢ㄦ埛
+ */
+ @ApiModelProperty(value= "鐢ㄦ埛")
+ private Long userId;
+
+ /**
+ * 鎵�灞炴満鏋�
+ */
+ @ApiModelProperty(value= "鎵�灞炴満鏋�")
+ private Long hostId;
+
+ /**
+ * 娣诲姞鏃堕棿
+ */
+ @ApiModelProperty(value= "娣诲姞鏃堕棿")
+ @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
+ private Date createTime;
+
+ /**
+ * 澶囨敞
+ */
+ @ApiModelProperty(value= "澶囨敞")
+ private String memo;
+
+ public OperationRecord() {}
+
+ public OperationRecord(String namespace, String url, String appkey, String timestamp, String clientIp, String request, String response, Integer spendTime, String err, Integer result, Long userId, Long hostId, Date createTime, String memo) {
+ this.namespace = namespace;
+ this.url = url;
+ this.appkey = appkey;
+ this.timestamp = timestamp;
+ this.clientIp = clientIp;
+ this.request = request;
+ this.response = response;
+ this.spendTime = spendTime;
+ this.err = err;
+ this.result = result;
+ this.userId = userId;
+ this.hostId = hostId;
+ this.createTime = createTime;
+ this.memo = memo;
+ }
+
+// OperationRecord operationRecord = new OperationRecord(
+// null, // 鍚嶇О绌洪棿
+// null, // 鎺ュ彛鍦板潃
+// null, // 骞冲彴瀵嗛挜
+// null, // 鏃堕棿鎴�
+// null, // 瀹㈡埛绔疘P
+// null, // 璇锋眰鍐呭
+// null, // 鍝嶅簲鍐呭
+// null, // 寮傚父鍐呭
+// null, // 缁撴灉
+// null, // 鐢ㄦ埛
+// null, // 鎵�灞炴満鏋�
+// null, // 娣诲姞鏃堕棿
+// null // 澶囨敞
+// );
+
+ public String getResult$(){
+ if (null == this.result){ return null; }
+ switch (this.result){
+ case 1:
+ return "鎴愬姛";
+ case 0:
+ return "澶辫触";
+ default:
+ return String.valueOf(this.result);
+ }
+ }
+
+ public String getUserId$(){
+ UserService service = SpringUtils.getBean(UserService.class);
+ User user = service.getById(this.userId);
+ if (!Cools.isEmpty(user)){
+ return String.valueOf(user.getNickname());
+ }
+ return null;
+ }
+
+ public String getHostId$(){
+ HostService service = SpringUtils.getBean(HostService.class);
+ Host host = service.getById(this.hostId);
+ if (!Cools.isEmpty(host)){
+ return String.valueOf(host.getName());
+ }
+ return null;
+ }
+
+ public String getCreateTime$(){
+ if (Cools.isEmpty(this.createTime)){
+ return "";
+ }
+ return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(this.createTime);
+ }
+
+
+}
--
Gitblit v1.9.1