tao.mo

common-dao | 修改 | 操作日志类型调整

mt
2025年1月13日18:22:43
...@@ -2,6 +2,7 @@ package com.fedex.connect.common.dao.log; ...@@ -2,6 +2,7 @@ package com.fedex.connect.common.dao.log;
2 2
3 import com.fedex.connect.common.model.log.Operation; 3 import com.fedex.connect.common.model.log.Operation;
4 import com.fedex.connect.common.model.log.OperationExample; 4 import com.fedex.connect.common.model.log.OperationExample;
5 +import com.fedex.connect.common.model.log.OperationWithBLOBs;
5 import java.util.List; 6 import java.util.List;
6 import org.apache.ibatis.annotations.Param; 7 import org.apache.ibatis.annotations.Param;
7 8
...@@ -12,25 +13,25 @@ public interface OperationMapper { ...@@ -12,25 +13,25 @@ public interface OperationMapper {
12 13
13 int deleteByPrimaryKey(Long id); 14 int deleteByPrimaryKey(Long id);
14 15
15 - int insert(Operation record); 16 + int insert(OperationWithBLOBs record);
16 17
17 - int insertSelective(Operation record); 18 + int insertSelective(OperationWithBLOBs record);
18 19
19 - List<Operation> selectByExampleWithBLOBs(OperationExample example); 20 + List<OperationWithBLOBs> selectByExampleWithBLOBs(OperationExample example);
20 21
21 List<Operation> selectByExample(OperationExample example); 22 List<Operation> selectByExample(OperationExample example);
22 23
23 - Operation selectByPrimaryKey(Long id); 24 + OperationWithBLOBs selectByPrimaryKey(Long id);
24 25
25 - int updateByExampleSelective(@Param("record") Operation record, @Param("example") OperationExample example); 26 + int updateByExampleSelective(@Param("record") OperationWithBLOBs record, @Param("example") OperationExample example);
26 27
27 - int updateByExampleWithBLOBs(@Param("record") Operation record, @Param("example") OperationExample example); 28 + int updateByExampleWithBLOBs(@Param("record") OperationWithBLOBs record, @Param("example") OperationExample example);
28 29
29 int updateByExample(@Param("record") Operation record, @Param("example") OperationExample example); 30 int updateByExample(@Param("record") Operation record, @Param("example") OperationExample example);
30 31
31 - int updateByPrimaryKeySelective(Operation record); 32 + int updateByPrimaryKeySelective(OperationWithBLOBs record);
32 33
33 - int updateByPrimaryKeyWithBLOBs(Operation record); 34 + int updateByPrimaryKeyWithBLOBs(OperationWithBLOBs record);
34 35
35 int updateByPrimaryKey(Operation record); 36 int updateByPrimaryKey(Operation record);
36 } 37 }
...\ No newline at end of file ...\ No newline at end of file
......
...@@ -44,21 +44,6 @@ public class Operation implements Serializable { ...@@ -44,21 +44,6 @@ public class Operation implements Serializable {
44 private String url; 44 private String url;
45 45
46 /** 46 /**
47 - * 请求参数
48 - */
49 - private String requestParameters;
50 -
51 - /**
52 - * 操作结果
53 - */
54 - private String result;
55 -
56 - /**
57 - * 状态(0:展示、1:不展示)
58 - */
59 - private Long status;
60 -
61 - /**
62 * 创建时间 47 * 创建时间
63 */ 48 */
64 private Date createTime; 49 private Date createTime;
...@@ -103,11 +88,6 @@ public class Operation implements Serializable { ...@@ -103,11 +88,6 @@ public class Operation implements Serializable {
103 */ 88 */
104 private Long exceuteConsume; 89 private Long exceuteConsume;
105 90
106 - /**
107 - * 备注
108 - */
109 - private String remark;
110 -
111 private static final long serialVersionUID = 1L; 91 private static final long serialVersionUID = 1L;
112 92
113 public Long getId() { 93 public Long getId() {
...@@ -166,30 +146,6 @@ public class Operation implements Serializable { ...@@ -166,30 +146,6 @@ public class Operation implements Serializable {
166 this.url = url == null ? null : url.trim(); 146 this.url = url == null ? null : url.trim();
167 } 147 }
168 148
169 - public String getRequestParameters() {
170 - return requestParameters;
171 - }
172 -
173 - public void setRequestParameters(String requestParameters) {
174 - this.requestParameters = requestParameters == null ? null : requestParameters.trim();
175 - }
176 -
177 - public String getResult() {
178 - return result;
179 - }
180 -
181 - public void setResult(String result) {
182 - this.result = result == null ? null : result.trim();
183 - }
184 -
185 - public Long getStatus() {
186 - return status;
187 - }
188 -
189 - public void setStatus(Long status) {
190 - this.status = status;
191 - }
192 -
193 public Date getCreateTime() { 149 public Date getCreateTime() {
194 return createTime; 150 return createTime;
195 } 151 }
...@@ -262,14 +218,6 @@ public class Operation implements Serializable { ...@@ -262,14 +218,6 @@ public class Operation implements Serializable {
262 this.exceuteConsume = exceuteConsume; 218 this.exceuteConsume = exceuteConsume;
263 } 219 }
264 220
265 - public String getRemark() {
266 - return remark;
267 - }
268 -
269 - public void setRemark(String remark) {
270 - this.remark = remark == null ? null : remark.trim();
271 - }
272 -
273 @Override 221 @Override
274 public String toString() { 222 public String toString() {
275 StringBuilder sb = new StringBuilder(); 223 StringBuilder sb = new StringBuilder();
...@@ -283,9 +231,6 @@ public class Operation implements Serializable { ...@@ -283,9 +231,6 @@ public class Operation implements Serializable {
283 sb.append(", module=").append(module); 231 sb.append(", module=").append(module);
284 sb.append(", describe=").append(describe); 232 sb.append(", describe=").append(describe);
285 sb.append(", url=").append(url); 233 sb.append(", url=").append(url);
286 - sb.append(", requestParameters=").append(requestParameters);
287 - sb.append(", result=").append(result);
288 - sb.append(", status=").append(status);
289 sb.append(", createTime=").append(createTime); 234 sb.append(", createTime=").append(createTime);
290 sb.append(", createUserId=").append(createUserId); 235 sb.append(", createUserId=").append(createUserId);
291 sb.append(", createUserName=").append(createUserName); 236 sb.append(", createUserName=").append(createUserName);
...@@ -295,7 +240,6 @@ public class Operation implements Serializable { ...@@ -295,7 +240,6 @@ public class Operation implements Serializable {
295 sb.append(", requestTime=").append(requestTime); 240 sb.append(", requestTime=").append(requestTime);
296 sb.append(", responseTime=").append(responseTime); 241 sb.append(", responseTime=").append(responseTime);
297 sb.append(", exceuteConsume=").append(exceuteConsume); 242 sb.append(", exceuteConsume=").append(exceuteConsume);
298 - sb.append(", remark=").append(remark);
299 sb.append(", serialVersionUID=").append(serialVersionUID); 243 sb.append(", serialVersionUID=").append(serialVersionUID);
300 sb.append("]"); 244 sb.append("]");
301 return sb.toString(); 245 return sb.toString();
......
...@@ -595,206 +595,6 @@ public class OperationExample { ...@@ -595,206 +595,6 @@ public class OperationExample {
595 return (Criteria) this; 595 return (Criteria) this;
596 } 596 }
597 597
598 - public Criteria andRequestParametersIsNull() {
599 - addCriterion("REQUEST_PARAMETERS is null");
600 - return (Criteria) this;
601 - }
602 -
603 - public Criteria andRequestParametersIsNotNull() {
604 - addCriterion("REQUEST_PARAMETERS is not null");
605 - return (Criteria) this;
606 - }
607 -
608 - public Criteria andRequestParametersEqualTo(String value) {
609 - addCriterion("REQUEST_PARAMETERS =", value, "requestParameters");
610 - return (Criteria) this;
611 - }
612 -
613 - public Criteria andRequestParametersNotEqualTo(String value) {
614 - addCriterion("REQUEST_PARAMETERS <>", value, "requestParameters");
615 - return (Criteria) this;
616 - }
617 -
618 - public Criteria andRequestParametersGreaterThan(String value) {
619 - addCriterion("REQUEST_PARAMETERS >", value, "requestParameters");
620 - return (Criteria) this;
621 - }
622 -
623 - public Criteria andRequestParametersGreaterThanOrEqualTo(String value) {
624 - addCriterion("REQUEST_PARAMETERS >=", value, "requestParameters");
625 - return (Criteria) this;
626 - }
627 -
628 - public Criteria andRequestParametersLessThan(String value) {
629 - addCriterion("REQUEST_PARAMETERS <", value, "requestParameters");
630 - return (Criteria) this;
631 - }
632 -
633 - public Criteria andRequestParametersLessThanOrEqualTo(String value) {
634 - addCriterion("REQUEST_PARAMETERS <=", value, "requestParameters");
635 - return (Criteria) this;
636 - }
637 -
638 - public Criteria andRequestParametersLike(String value) {
639 - addCriterion("REQUEST_PARAMETERS like", value, "requestParameters");
640 - return (Criteria) this;
641 - }
642 -
643 - public Criteria andRequestParametersNotLike(String value) {
644 - addCriterion("REQUEST_PARAMETERS not like", value, "requestParameters");
645 - return (Criteria) this;
646 - }
647 -
648 - public Criteria andRequestParametersIn(List<String> values) {
649 - addCriterion("REQUEST_PARAMETERS in", values, "requestParameters");
650 - return (Criteria) this;
651 - }
652 -
653 - public Criteria andRequestParametersNotIn(List<String> values) {
654 - addCriterion("REQUEST_PARAMETERS not in", values, "requestParameters");
655 - return (Criteria) this;
656 - }
657 -
658 - public Criteria andRequestParametersBetween(String value1, String value2) {
659 - addCriterion("REQUEST_PARAMETERS between", value1, value2, "requestParameters");
660 - return (Criteria) this;
661 - }
662 -
663 - public Criteria andRequestParametersNotBetween(String value1, String value2) {
664 - addCriterion("REQUEST_PARAMETERS not between", value1, value2, "requestParameters");
665 - return (Criteria) this;
666 - }
667 -
668 - public Criteria andResultIsNull() {
669 - addCriterion("RESULT is null");
670 - return (Criteria) this;
671 - }
672 -
673 - public Criteria andResultIsNotNull() {
674 - addCriterion("RESULT is not null");
675 - return (Criteria) this;
676 - }
677 -
678 - public Criteria andResultEqualTo(String value) {
679 - addCriterion("RESULT =", value, "result");
680 - return (Criteria) this;
681 - }
682 -
683 - public Criteria andResultNotEqualTo(String value) {
684 - addCriterion("RESULT <>", value, "result");
685 - return (Criteria) this;
686 - }
687 -
688 - public Criteria andResultGreaterThan(String value) {
689 - addCriterion("RESULT >", value, "result");
690 - return (Criteria) this;
691 - }
692 -
693 - public Criteria andResultGreaterThanOrEqualTo(String value) {
694 - addCriterion("RESULT >=", value, "result");
695 - return (Criteria) this;
696 - }
697 -
698 - public Criteria andResultLessThan(String value) {
699 - addCriterion("RESULT <", value, "result");
700 - return (Criteria) this;
701 - }
702 -
703 - public Criteria andResultLessThanOrEqualTo(String value) {
704 - addCriterion("RESULT <=", value, "result");
705 - return (Criteria) this;
706 - }
707 -
708 - public Criteria andResultLike(String value) {
709 - addCriterion("RESULT like", value, "result");
710 - return (Criteria) this;
711 - }
712 -
713 - public Criteria andResultNotLike(String value) {
714 - addCriterion("RESULT not like", value, "result");
715 - return (Criteria) this;
716 - }
717 -
718 - public Criteria andResultIn(List<String> values) {
719 - addCriterion("RESULT in", values, "result");
720 - return (Criteria) this;
721 - }
722 -
723 - public Criteria andResultNotIn(List<String> values) {
724 - addCriterion("RESULT not in", values, "result");
725 - return (Criteria) this;
726 - }
727 -
728 - public Criteria andResultBetween(String value1, String value2) {
729 - addCriterion("RESULT between", value1, value2, "result");
730 - return (Criteria) this;
731 - }
732 -
733 - public Criteria andResultNotBetween(String value1, String value2) {
734 - addCriterion("RESULT not between", value1, value2, "result");
735 - return (Criteria) this;
736 - }
737 -
738 - public Criteria andStatusIsNull() {
739 - addCriterion("STATUS is null");
740 - return (Criteria) this;
741 - }
742 -
743 - public Criteria andStatusIsNotNull() {
744 - addCriterion("STATUS is not null");
745 - return (Criteria) this;
746 - }
747 -
748 - public Criteria andStatusEqualTo(Long value) {
749 - addCriterion("STATUS =", value, "status");
750 - return (Criteria) this;
751 - }
752 -
753 - public Criteria andStatusNotEqualTo(Long value) {
754 - addCriterion("STATUS <>", value, "status");
755 - return (Criteria) this;
756 - }
757 -
758 - public Criteria andStatusGreaterThan(Long value) {
759 - addCriterion("STATUS >", value, "status");
760 - return (Criteria) this;
761 - }
762 -
763 - public Criteria andStatusGreaterThanOrEqualTo(Long value) {
764 - addCriterion("STATUS >=", value, "status");
765 - return (Criteria) this;
766 - }
767 -
768 - public Criteria andStatusLessThan(Long value) {
769 - addCriterion("STATUS <", value, "status");
770 - return (Criteria) this;
771 - }
772 -
773 - public Criteria andStatusLessThanOrEqualTo(Long value) {
774 - addCriterion("STATUS <=", value, "status");
775 - return (Criteria) this;
776 - }
777 -
778 - public Criteria andStatusIn(List<Long> values) {
779 - addCriterion("STATUS in", values, "status");
780 - return (Criteria) this;
781 - }
782 -
783 - public Criteria andStatusNotIn(List<Long> values) {
784 - addCriterion("STATUS not in", values, "status");
785 - return (Criteria) this;
786 - }
787 -
788 - public Criteria andStatusBetween(Long value1, Long value2) {
789 - addCriterion("STATUS between", value1, value2, "status");
790 - return (Criteria) this;
791 - }
792 -
793 - public Criteria andStatusNotBetween(Long value1, Long value2) {
794 - addCriterion("STATUS not between", value1, value2, "status");
795 - return (Criteria) this;
796 - }
797 -
798 public Criteria andCreateTimeIsNull() { 598 public Criteria andCreateTimeIsNull() {
799 addCriterion("CREATE_TIME is null"); 599 addCriterion("CREATE_TIME is null");
800 return (Criteria) this; 600 return (Criteria) this;
......
1 +package com.fedex.connect.common.model.log;
2 +
3 +import java.io.Serializable;
4 +
5 +/**
6 + * DESC: 操作日志
7 + * TABLE: ICLEARIMP.T_LOG_OPERATION
8 + */
9 +public class OperationWithBLOBs extends Operation implements Serializable {
10 + /**
11 + * 备注
12 + */
13 + private String remark;
14 +
15 + /**
16 + * 请求参数
17 + */
18 + private String requestParameters;
19 +
20 + /**
21 + * 请求结果
22 + */
23 + private String result;
24 +
25 + private static final long serialVersionUID = 1L;
26 +
27 + public String getRemark() {
28 + return remark;
29 + }
30 +
31 + public void setRemark(String remark) {
32 + this.remark = remark == null ? null : remark.trim();
33 + }
34 +
35 + public String getRequestParameters() {
36 + return requestParameters;
37 + }
38 +
39 + public void setRequestParameters(String requestParameters) {
40 + this.requestParameters = requestParameters == null ? null : requestParameters.trim();
41 + }
42 +
43 + public String getResult() {
44 + return result;
45 + }
46 +
47 + public void setResult(String result) {
48 + this.result = result == null ? null : result.trim();
49 + }
50 +
51 + @Override
52 + public String toString() {
53 + StringBuilder sb = new StringBuilder();
54 + sb.append(getClass().getSimpleName());
55 + sb.append(" [");
56 + sb.append("Hash = ").append(hashCode());
57 + sb.append(", remark=").append(remark);
58 + sb.append(", requestParameters=").append(requestParameters);
59 + sb.append(", result=").append(result);
60 + sb.append(", serialVersionUID=").append(serialVersionUID);
61 + sb.append("]");
62 + return sb.toString();
63 + }
64 +}
...\ No newline at end of file ...\ No newline at end of file