gaodd пре 2 година
родитељ
комит
cc7f038e15

+ 8 - 0
src/main/java/com/chinaitop/depot/DataDocking/controller/DataController.java

@@ -14,6 +14,7 @@ import org.springframework.web.bind.annotation.RestController;
14 14
 
15 15
 import com.chinaitop.depot.basic.service.BasicStorehouseService;
16 16
 import com.chinaitop.depot.basic.service.BasicTankService;
17
+import com.chinaitop.depot.basic.service.SystemOutsideDataService;
17 18
 
18 19
 import io.swagger.annotations.Api;
19 20
 import io.swagger.annotations.ApiImplicitParam;
@@ -32,6 +33,9 @@ public class DataController {
32 33
     
33 34
     @Resource
34 35
     private BasicStorehouseService basicStorehouseService;
36
+    
37
+    @Resource
38
+	private SystemOutsideDataService systemOutsideDataService;
35 39
 
36 40
     @RequestMapping(value = "/tankEdit", produces = MediaType.APPLICATION_JSON_VALUE, method = RequestMethod.POST)
37 41
     @ApiOperation(value="接收市平台传过来的油罐基础数据")
@@ -44,10 +48,12 @@ public class DataController {
44 48
 
45 49
     	try {
46 50
 			resultMap = basicTankService.saveOrUpdateSptTankData(datas);
51
+			systemOutsideDataService.addlogger("ygjcsj", datas, resultMap.toString());
47 52
 		} catch (Exception e) {
48 53
 			resultMap.put("status", "error");
49 54
 			resultMap.put("msg", "数据存储异常,请联系管理员");
50 55
 			logger.error(e.getMessage(), e);
56
+			systemOutsideDataService.addlogger("ygjcsj", datas, resultMap.toString());
51 57
 		}
52 58
     	logger.info("接收到市平台传来的油罐数据串返回结果时是:\r\n"+resultMap);
53 59
 		return resultMap;
@@ -64,10 +70,12 @@ public class DataController {
64 70
 
65 71
     	try {
66 72
 			resultMap = basicStorehouseService.saveOrUpdateSptStorehouseData(datas);
73
+			systemOutsideDataService.addlogger("cfjcsj", datas, resultMap.toString());
67 74
 		} catch (Exception e) {
68 75
 			resultMap.put("status", "error");
69 76
 			resultMap.put("msg", "数据存储异常,请联系管理员");
70 77
 			logger.error(e.getMessage(), e);
78
+			systemOutsideDataService.addlogger("cfjcsj", datas, resultMap.toString());
71 79
 		}
72 80
     	logger.info("接收到市平台传来的仓房数据串返回结果时是:\r\n"+resultMap);
73 81
 		return resultMap;

+ 30 - 0
src/main/java/com/chinaitop/depot/basic/mapper/SystemOutsideDataMapper.java

@@ -0,0 +1,30 @@
1
+package com.chinaitop.depot.basic.mapper;
2
+
3
+import com.chinaitop.depot.basic.model.SystemOutsideData;
4
+import com.chinaitop.depot.basic.model.SystemOutsideDataExample;
5
+import java.util.List;
6
+import org.apache.ibatis.annotations.Param;
7
+
8
+public interface SystemOutsideDataMapper {
9
+    int countByExample(SystemOutsideDataExample example);
10
+
11
+    int deleteByExample(SystemOutsideDataExample example);
12
+
13
+    int deleteByPrimaryKey(String id);
14
+
15
+    int insert(SystemOutsideData record);
16
+
17
+    int insertSelective(SystemOutsideData record);
18
+
19
+    List<SystemOutsideData> selectByExample(SystemOutsideDataExample example);
20
+
21
+    SystemOutsideData selectByPrimaryKey(String id);
22
+
23
+    int updateByExampleSelective(@Param("record") SystemOutsideData record, @Param("example") SystemOutsideDataExample example);
24
+
25
+    int updateByExample(@Param("record") SystemOutsideData record, @Param("example") SystemOutsideDataExample example);
26
+
27
+    int updateByPrimaryKeySelective(SystemOutsideData record);
28
+
29
+    int updateByPrimaryKey(SystemOutsideData record);
30
+}

+ 211 - 0
src/main/java/com/chinaitop/depot/basic/mapper/SystemOutsideDataMapper.xml

@@ -0,0 +1,211 @@
1
+<?xml version="1.0" encoding="UTF-8"?>
2
+<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
3
+<mapper namespace="com.chinaitop.depot.basic.mapper.SystemOutsideDataMapper">
4
+  <resultMap id="BaseResultMap" type="com.chinaitop.depot.basic.model.SystemOutsideData">
5
+    <id column="id" jdbcType="VARCHAR" property="id" />
6
+    <result column="titles" jdbcType="VARCHAR" property="titles" />
7
+    <result column="jssj" jdbcType="VARCHAR" property="jssj" />
8
+    <result column="fhsj" jdbcType="VARCHAR" property="fhsj" />
9
+    <result column="input_time" jdbcType="TIMESTAMP" property="inputTime" />
10
+  </resultMap>
11
+  <sql id="Example_Where_Clause">
12
+    <where>
13
+      <foreach collection="oredCriteria" item="criteria" separator="or">
14
+        <if test="criteria.valid">
15
+          <trim prefix="(" prefixOverrides="and" suffix=")">
16
+            <foreach collection="criteria.criteria" item="criterion">
17
+              <choose>
18
+                <when test="criterion.noValue">
19
+                  and ${criterion.condition}
20
+                </when>
21
+                <when test="criterion.singleValue">
22
+                  and ${criterion.condition} #{criterion.value}
23
+                </when>
24
+                <when test="criterion.betweenValue">
25
+                  and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
26
+                </when>
27
+                <when test="criterion.listValue">
28
+                  and ${criterion.condition}
29
+                  <foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
30
+                    #{listItem}
31
+                  </foreach>
32
+                </when>
33
+              </choose>
34
+            </foreach>
35
+          </trim>
36
+        </if>
37
+      </foreach>
38
+    </where>
39
+  </sql>
40
+  <sql id="Update_By_Example_Where_Clause">
41
+    <where>
42
+      <foreach collection="example.oredCriteria" item="criteria" separator="or">
43
+        <if test="criteria.valid">
44
+          <trim prefix="(" prefixOverrides="and" suffix=")">
45
+            <foreach collection="criteria.criteria" item="criterion">
46
+              <choose>
47
+                <when test="criterion.noValue">
48
+                  and ${criterion.condition}
49
+                </when>
50
+                <when test="criterion.singleValue">
51
+                  and ${criterion.condition} #{criterion.value}
52
+                </when>
53
+                <when test="criterion.betweenValue">
54
+                  and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
55
+                </when>
56
+                <when test="criterion.listValue">
57
+                  and ${criterion.condition}
58
+                  <foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
59
+                    #{listItem}
60
+                  </foreach>
61
+                </when>
62
+              </choose>
63
+            </foreach>
64
+          </trim>
65
+        </if>
66
+      </foreach>
67
+    </where>
68
+  </sql>
69
+  <sql id="Base_Column_List">
70
+    id, titles, jssj, fhsj, input_time
71
+  </sql>
72
+  <select id="selectByExample" parameterType="com.chinaitop.depot.basic.model.SystemOutsideDataExample" resultMap="BaseResultMap">
73
+    select
74
+    <if test="distinct">
75
+      distinct
76
+    </if>
77
+    <include refid="Base_Column_List" />
78
+    from system_outside_data
79
+    <if test="_parameter != null">
80
+      <include refid="Example_Where_Clause" />
81
+    </if>
82
+    <if test="orderByClause != null">
83
+      order by ${orderByClause}
84
+    </if>
85
+  </select>
86
+  <select id="selectByPrimaryKey" parameterType="java.lang.Integer" resultMap="BaseResultMap">
87
+    select 
88
+    <include refid="Base_Column_List" />
89
+    from system_outside_data
90
+    where id = #{id,jdbcType=INTEGER}
91
+  </select>
92
+  <delete id="deleteByPrimaryKey" parameterType="java.lang.Integer">
93
+    delete from system_outside_data
94
+    where id = #{id,jdbcType=INTEGER}
95
+  </delete>
96
+  <delete id="deleteByExample" parameterType="com.chinaitop.depot.basic.model.SystemOutsideDataExample">
97
+    delete from system_outside_data
98
+    <if test="_parameter != null">
99
+      <include refid="Example_Where_Clause" />
100
+    </if>
101
+  </delete>
102
+  <insert id="insert" parameterType="com.chinaitop.depot.basic.model.SystemOutsideData">
103
+    insert into system_outside_data (id, titles, jssj, 
104
+      fhsj, input_time)
105
+    values (#{id,jdbcType=VARCHAR}, #{titles,jdbcType=VARCHAR}, #{jssj,jdbcType=VARCHAR}, 
106
+      #{fhsj,jdbcType=VARCHAR}, #{inputTime,jdbcType=TIMESTAMP})
107
+  </insert>
108
+  <insert id="insertSelective" parameterType="com.chinaitop.depot.basic.model.SystemOutsideData">
109
+    insert into system_outside_data
110
+    <trim prefix="(" suffix=")" suffixOverrides=",">
111
+      <if test="id != null">
112
+        id,
113
+      </if>
114
+      <if test="titles != null">
115
+        titles,
116
+      </if>
117
+      <if test="jssj != null">
118
+        jssj,
119
+      </if>
120
+      <if test="fhsj != null">
121
+        fhsj,
122
+      </if>
123
+      <if test="inputTime != null">
124
+        input_time,
125
+      </if>
126
+    </trim>
127
+    <trim prefix="values (" suffix=")" suffixOverrides=",">
128
+      <if test="id != null">
129
+        #{id,jdbcType=VARCHAR},
130
+      </if>
131
+      <if test="titles != null">
132
+        #{titles,jdbcType=VARCHAR},
133
+      </if>
134
+      <if test="jssj != null">
135
+        #{jssj,jdbcType=VARCHAR},
136
+      </if>
137
+      <if test="fhsj != null">
138
+        #{fhsj,jdbcType=VARCHAR},
139
+      </if>
140
+      <if test="inputTime != null">
141
+        #{inputTime,jdbcType=TIMESTAMP},
142
+      </if>
143
+    </trim>
144
+  </insert>
145
+  <select id="countByExample" parameterType="com.chinaitop.depot.basic.model.SystemOutsideDataExample" resultType="java.lang.Integer">
146
+    select count(*) from system_outside_data
147
+    <if test="_parameter != null">
148
+      <include refid="Example_Where_Clause" />
149
+    </if>
150
+  </select>
151
+  <update id="updateByExampleSelective" parameterType="map">
152
+    update system_outside_data
153
+    <set>
154
+      <if test="record.id != null">
155
+        id = #{record.id,jdbcType=VARCHAR},
156
+      </if>
157
+      <if test="record.titles != null">
158
+        titles = #{record.titles,jdbcType=VARCHAR},
159
+      </if>
160
+      <if test="record.jssj != null">
161
+        jssj = #{record.jssj,jdbcType=VARCHAR},
162
+      </if>
163
+      <if test="record.fhsj != null">
164
+        fhsj = #{record.fhsj,jdbcType=VARCHAR},
165
+      </if>
166
+      <if test="record.inputTime != null">
167
+        input_time = #{record.inputTime,jdbcType=TIMESTAMP},
168
+      </if>
169
+    </set>
170
+    <if test="_parameter != null">
171
+      <include refid="Update_By_Example_Where_Clause" />
172
+    </if>
173
+  </update>
174
+  <update id="updateByExample" parameterType="map">
175
+    update system_outside_data
176
+    set id = #{record.id,jdbcType=VARCHAR},
177
+      titles = #{record.titles,jdbcType=VARCHAR},
178
+      jssj = #{record.jssj,jdbcType=VARCHAR},
179
+      fhsj = #{record.fhsj,jdbcType=VARCHAR},
180
+      input_time = #{record.inputTime,jdbcType=TIMESTAMP}
181
+    <if test="_parameter != null">
182
+      <include refid="Update_By_Example_Where_Clause" />
183
+    </if>
184
+  </update>
185
+  <update id="updateByPrimaryKeySelective" parameterType="com.chinaitop.depot.basic.model.SystemOutsideData">
186
+    update system_outside_data
187
+    <set>
188
+      <if test="titles != null">
189
+        titles = #{titles,jdbcType=VARCHAR},
190
+      </if>
191
+      <if test="jssj != null">
192
+        jssj = #{jssj,jdbcType=VARCHAR},
193
+      </if>
194
+      <if test="fhsj != null">
195
+        fhsj = #{fhsj,jdbcType=VARCHAR},
196
+      </if>
197
+      <if test="inputTime != null">
198
+        input_time = #{inputTime,jdbcType=TIMESTAMP},
199
+      </if>
200
+    </set>
201
+    where id = #{id,jdbcType=VARCHAR}
202
+  </update>
203
+  <update id="updateByPrimaryKey" parameterType="com.chinaitop.depot.basic.model.SystemOutsideData">
204
+    update system_outside_data
205
+    set titles = #{titles,jdbcType=VARCHAR},
206
+      jssj = #{jssj,jdbcType=VARCHAR},
207
+      fhsj = #{fhsj,jdbcType=VARCHAR},
208
+      input_time = #{inputTime,jdbcType=TIMESTAMP}
209
+    where id = #{id,jdbcType=VARCHAR}
210
+  </update>
211
+</mapper>

+ 95 - 0
src/main/java/com/chinaitop/depot/basic/model/SystemOutsideData.java

@@ -0,0 +1,95 @@
1
+package com.chinaitop.depot.basic.model;
2
+
3
+import java.util.Date;
4
+
5
+public class SystemOutsideData {
6
+    private String id;
7
+
8
+    private String titles;
9
+
10
+    private String jssj;
11
+
12
+    private String fhsj;
13
+
14
+    private Date inputTime;
15
+
16
+    /**
17
+     * 主键唯一ID
18
+     * @return id 主键唯一ID
19
+     */
20
+    public String getId() {
21
+        return id;
22
+    }
23
+
24
+    /**
25
+     * 主键唯一ID
26
+     * @param id 主键唯一ID
27
+     */
28
+    public void setId(String id) {
29
+        this.id = id == null ? null : id.trim();
30
+    }
31
+
32
+    /**
33
+     * 功能标志
34
+     * @return titles 功能标志
35
+     */
36
+    public String getTitles() {
37
+        return titles;
38
+    }
39
+
40
+    /**
41
+     * 功能标志
42
+     * @param titles 功能标志
43
+     */
44
+    public void setTitles(String titles) {
45
+        this.titles = titles == null ? null : titles.trim();
46
+    }
47
+
48
+    /**
49
+     * 接收数据
50
+     * @return jssj 接收数据
51
+     */
52
+    public String getJssj() {
53
+        return jssj;
54
+    }
55
+
56
+    /**
57
+     * 接收数据
58
+     * @param jssj 接收数据
59
+     */
60
+    public void setJssj(String jssj) {
61
+        this.jssj = jssj == null ? null : jssj.trim();
62
+    }
63
+
64
+    /**
65
+     * 返回数据
66
+     * @return fhsj 返回数据
67
+     */
68
+    public String getFhsj() {
69
+        return fhsj;
70
+    }
71
+
72
+    /**
73
+     * 返回数据
74
+     * @param fhsj 返回数据
75
+     */
76
+    public void setFhsj(String fhsj) {
77
+        this.fhsj = fhsj == null ? null : fhsj.trim();
78
+    }
79
+
80
+    /**
81
+     * 数据保存时间
82
+     * @return input_time 数据保存时间
83
+     */
84
+    public Date getInputTime() {
85
+        return inputTime;
86
+    }
87
+
88
+    /**
89
+     * 数据保存时间
90
+     * @param inputTime 数据保存时间
91
+     */
92
+    public void setInputTime(Date inputTime) {
93
+        this.inputTime = inputTime;
94
+    }
95
+}

+ 559 - 0
src/main/java/com/chinaitop/depot/basic/model/SystemOutsideDataExample.java

@@ -0,0 +1,559 @@
1
+package com.chinaitop.depot.basic.model;
2
+
3
+import java.util.ArrayList;
4
+import java.util.Date;
5
+import java.util.List;
6
+
7
+public class SystemOutsideDataExample {
8
+    /**
9
+     * system_outside_data
10
+     */
11
+    protected String orderByClause;
12
+
13
+    /**
14
+     * system_outside_data
15
+     */
16
+    protected boolean distinct;
17
+
18
+    /**
19
+     * system_outside_data
20
+     */
21
+    protected List<Criteria> oredCriteria;
22
+
23
+    public SystemOutsideDataExample() {
24
+        oredCriteria = new ArrayList<Criteria>();
25
+    }
26
+
27
+    public void setOrderByClause(String orderByClause) {
28
+        this.orderByClause = orderByClause;
29
+    }
30
+
31
+    public String getOrderByClause() {
32
+        return orderByClause;
33
+    }
34
+
35
+    public void setDistinct(boolean distinct) {
36
+        this.distinct = distinct;
37
+    }
38
+
39
+    public boolean isDistinct() {
40
+        return distinct;
41
+    }
42
+
43
+    public List<Criteria> getOredCriteria() {
44
+        return oredCriteria;
45
+    }
46
+
47
+    public void or(Criteria criteria) {
48
+        oredCriteria.add(criteria);
49
+    }
50
+
51
+    public Criteria or() {
52
+        Criteria criteria = createCriteriaInternal();
53
+        oredCriteria.add(criteria);
54
+        return criteria;
55
+    }
56
+
57
+    public Criteria createCriteria() {
58
+        Criteria criteria = createCriteriaInternal();
59
+        if (oredCriteria.size() == 0) {
60
+            oredCriteria.add(criteria);
61
+        }
62
+        return criteria;
63
+    }
64
+
65
+    protected Criteria createCriteriaInternal() {
66
+        Criteria criteria = new Criteria();
67
+        return criteria;
68
+    }
69
+
70
+    public void clear() {
71
+        oredCriteria.clear();
72
+        orderByClause = null;
73
+        distinct = false;
74
+    }
75
+
76
+    /**
77
+     * system_outside_data 2023-10-08
78
+     */
79
+    protected abstract static class GeneratedCriteria {
80
+        protected List<Criterion> criteria;
81
+
82
+        protected GeneratedCriteria() {
83
+            super();
84
+            criteria = new ArrayList<Criterion>();
85
+        }
86
+
87
+        public boolean isValid() {
88
+            return criteria.size() > 0;
89
+        }
90
+
91
+        public List<Criterion> getAllCriteria() {
92
+            return criteria;
93
+        }
94
+
95
+        public List<Criterion> getCriteria() {
96
+            return criteria;
97
+        }
98
+
99
+        protected void addCriterion(String condition) {
100
+            if (condition == null) {
101
+                throw new RuntimeException("Value for condition cannot be null");
102
+            }
103
+            criteria.add(new Criterion(condition));
104
+        }
105
+
106
+        protected void addCriterion(String condition, Object value, String property) {
107
+            if (value == null) {
108
+                throw new RuntimeException("Value for " + property + " cannot be null");
109
+            }
110
+            criteria.add(new Criterion(condition, value));
111
+        }
112
+
113
+        protected void addCriterion(String condition, Object value1, Object value2, String property) {
114
+            if (value1 == null || value2 == null) {
115
+                throw new RuntimeException("Between values for " + property + " cannot be null");
116
+            }
117
+            criteria.add(new Criterion(condition, value1, value2));
118
+        }
119
+
120
+        public Criteria andIdIsNull() {
121
+            addCriterion("id is null");
122
+            return (Criteria) this;
123
+        }
124
+
125
+        public Criteria andIdIsNotNull() {
126
+            addCriterion("id is not null");
127
+            return (Criteria) this;
128
+        }
129
+
130
+        public Criteria andIdEqualTo(String value) {
131
+            addCriterion("id =", value, "id");
132
+            return (Criteria) this;
133
+        }
134
+
135
+        public Criteria andIdNotEqualTo(String value) {
136
+            addCriterion("id <>", value, "id");
137
+            return (Criteria) this;
138
+        }
139
+
140
+        public Criteria andIdGreaterThan(String value) {
141
+            addCriterion("id >", value, "id");
142
+            return (Criteria) this;
143
+        }
144
+
145
+        public Criteria andIdGreaterThanOrEqualTo(String value) {
146
+            addCriterion("id >=", value, "id");
147
+            return (Criteria) this;
148
+        }
149
+
150
+        public Criteria andIdLessThan(String value) {
151
+            addCriterion("id <", value, "id");
152
+            return (Criteria) this;
153
+        }
154
+
155
+        public Criteria andIdLessThanOrEqualTo(String value) {
156
+            addCriterion("id <=", value, "id");
157
+            return (Criteria) this;
158
+        }
159
+
160
+        public Criteria andIdLike(String value) {
161
+            addCriterion("id like", value, "id");
162
+            return (Criteria) this;
163
+        }
164
+
165
+        public Criteria andIdNotLike(String value) {
166
+            addCriterion("id not like", value, "id");
167
+            return (Criteria) this;
168
+        }
169
+
170
+        public Criteria andIdIn(List<String> values) {
171
+            addCriterion("id in", values, "id");
172
+            return (Criteria) this;
173
+        }
174
+
175
+        public Criteria andIdNotIn(List<String> values) {
176
+            addCriterion("id not in", values, "id");
177
+            return (Criteria) this;
178
+        }
179
+
180
+        public Criteria andIdBetween(String value1, String value2) {
181
+            addCriterion("id between", value1, value2, "id");
182
+            return (Criteria) this;
183
+        }
184
+
185
+        public Criteria andIdNotBetween(String value1, String value2) {
186
+            addCriterion("id not between", value1, value2, "id");
187
+            return (Criteria) this;
188
+        }
189
+
190
+        public Criteria andTitlesIsNull() {
191
+            addCriterion("titles is null");
192
+            return (Criteria) this;
193
+        }
194
+
195
+        public Criteria andTitlesIsNotNull() {
196
+            addCriterion("titles is not null");
197
+            return (Criteria) this;
198
+        }
199
+
200
+        public Criteria andTitlesEqualTo(String value) {
201
+            addCriterion("titles =", value, "titles");
202
+            return (Criteria) this;
203
+        }
204
+
205
+        public Criteria andTitlesNotEqualTo(String value) {
206
+            addCriterion("titles <>", value, "titles");
207
+            return (Criteria) this;
208
+        }
209
+
210
+        public Criteria andTitlesGreaterThan(String value) {
211
+            addCriterion("titles >", value, "titles");
212
+            return (Criteria) this;
213
+        }
214
+
215
+        public Criteria andTitlesGreaterThanOrEqualTo(String value) {
216
+            addCriterion("titles >=", value, "titles");
217
+            return (Criteria) this;
218
+        }
219
+
220
+        public Criteria andTitlesLessThan(String value) {
221
+            addCriterion("titles <", value, "titles");
222
+            return (Criteria) this;
223
+        }
224
+
225
+        public Criteria andTitlesLessThanOrEqualTo(String value) {
226
+            addCriterion("titles <=", value, "titles");
227
+            return (Criteria) this;
228
+        }
229
+
230
+        public Criteria andTitlesLike(String value) {
231
+            addCriterion("titles like", value, "titles");
232
+            return (Criteria) this;
233
+        }
234
+
235
+        public Criteria andTitlesNotLike(String value) {
236
+            addCriterion("titles not like", value, "titles");
237
+            return (Criteria) this;
238
+        }
239
+
240
+        public Criteria andTitlesIn(List<String> values) {
241
+            addCriterion("titles in", values, "titles");
242
+            return (Criteria) this;
243
+        }
244
+
245
+        public Criteria andTitlesNotIn(List<String> values) {
246
+            addCriterion("titles not in", values, "titles");
247
+            return (Criteria) this;
248
+        }
249
+
250
+        public Criteria andTitlesBetween(String value1, String value2) {
251
+            addCriterion("titles between", value1, value2, "titles");
252
+            return (Criteria) this;
253
+        }
254
+
255
+        public Criteria andTitlesNotBetween(String value1, String value2) {
256
+            addCriterion("titles not between", value1, value2, "titles");
257
+            return (Criteria) this;
258
+        }
259
+
260
+        public Criteria andJssjIsNull() {
261
+            addCriterion("jssj is null");
262
+            return (Criteria) this;
263
+        }
264
+
265
+        public Criteria andJssjIsNotNull() {
266
+            addCriterion("jssj is not null");
267
+            return (Criteria) this;
268
+        }
269
+
270
+        public Criteria andJssjEqualTo(String value) {
271
+            addCriterion("jssj =", value, "jssj");
272
+            return (Criteria) this;
273
+        }
274
+
275
+        public Criteria andJssjNotEqualTo(String value) {
276
+            addCriterion("jssj <>", value, "jssj");
277
+            return (Criteria) this;
278
+        }
279
+
280
+        public Criteria andJssjGreaterThan(String value) {
281
+            addCriterion("jssj >", value, "jssj");
282
+            return (Criteria) this;
283
+        }
284
+
285
+        public Criteria andJssjGreaterThanOrEqualTo(String value) {
286
+            addCriterion("jssj >=", value, "jssj");
287
+            return (Criteria) this;
288
+        }
289
+
290
+        public Criteria andJssjLessThan(String value) {
291
+            addCriterion("jssj <", value, "jssj");
292
+            return (Criteria) this;
293
+        }
294
+
295
+        public Criteria andJssjLessThanOrEqualTo(String value) {
296
+            addCriterion("jssj <=", value, "jssj");
297
+            return (Criteria) this;
298
+        }
299
+
300
+        public Criteria andJssjLike(String value) {
301
+            addCriterion("jssj like", value, "jssj");
302
+            return (Criteria) this;
303
+        }
304
+
305
+        public Criteria andJssjNotLike(String value) {
306
+            addCriterion("jssj not like", value, "jssj");
307
+            return (Criteria) this;
308
+        }
309
+
310
+        public Criteria andJssjIn(List<String> values) {
311
+            addCriterion("jssj in", values, "jssj");
312
+            return (Criteria) this;
313
+        }
314
+
315
+        public Criteria andJssjNotIn(List<String> values) {
316
+            addCriterion("jssj not in", values, "jssj");
317
+            return (Criteria) this;
318
+        }
319
+
320
+        public Criteria andJssjBetween(String value1, String value2) {
321
+            addCriterion("jssj between", value1, value2, "jssj");
322
+            return (Criteria) this;
323
+        }
324
+
325
+        public Criteria andJssjNotBetween(String value1, String value2) {
326
+            addCriterion("jssj not between", value1, value2, "jssj");
327
+            return (Criteria) this;
328
+        }
329
+
330
+        public Criteria andFhsjIsNull() {
331
+            addCriterion("fhsj is null");
332
+            return (Criteria) this;
333
+        }
334
+
335
+        public Criteria andFhsjIsNotNull() {
336
+            addCriterion("fhsj is not null");
337
+            return (Criteria) this;
338
+        }
339
+
340
+        public Criteria andFhsjEqualTo(String value) {
341
+            addCriterion("fhsj =", value, "fhsj");
342
+            return (Criteria) this;
343
+        }
344
+
345
+        public Criteria andFhsjNotEqualTo(String value) {
346
+            addCriterion("fhsj <>", value, "fhsj");
347
+            return (Criteria) this;
348
+        }
349
+
350
+        public Criteria andFhsjGreaterThan(String value) {
351
+            addCriterion("fhsj >", value, "fhsj");
352
+            return (Criteria) this;
353
+        }
354
+
355
+        public Criteria andFhsjGreaterThanOrEqualTo(String value) {
356
+            addCriterion("fhsj >=", value, "fhsj");
357
+            return (Criteria) this;
358
+        }
359
+
360
+        public Criteria andFhsjLessThan(String value) {
361
+            addCriterion("fhsj <", value, "fhsj");
362
+            return (Criteria) this;
363
+        }
364
+
365
+        public Criteria andFhsjLessThanOrEqualTo(String value) {
366
+            addCriterion("fhsj <=", value, "fhsj");
367
+            return (Criteria) this;
368
+        }
369
+
370
+        public Criteria andFhsjLike(String value) {
371
+            addCriterion("fhsj like", value, "fhsj");
372
+            return (Criteria) this;
373
+        }
374
+
375
+        public Criteria andFhsjNotLike(String value) {
376
+            addCriterion("fhsj not like", value, "fhsj");
377
+            return (Criteria) this;
378
+        }
379
+
380
+        public Criteria andFhsjIn(List<String> values) {
381
+            addCriterion("fhsj in", values, "fhsj");
382
+            return (Criteria) this;
383
+        }
384
+
385
+        public Criteria andFhsjNotIn(List<String> values) {
386
+            addCriterion("fhsj not in", values, "fhsj");
387
+            return (Criteria) this;
388
+        }
389
+
390
+        public Criteria andFhsjBetween(String value1, String value2) {
391
+            addCriterion("fhsj between", value1, value2, "fhsj");
392
+            return (Criteria) this;
393
+        }
394
+
395
+        public Criteria andFhsjNotBetween(String value1, String value2) {
396
+            addCriterion("fhsj not between", value1, value2, "fhsj");
397
+            return (Criteria) this;
398
+        }
399
+
400
+        public Criteria andInputTimeIsNull() {
401
+            addCriterion("input_time is null");
402
+            return (Criteria) this;
403
+        }
404
+
405
+        public Criteria andInputTimeIsNotNull() {
406
+            addCriterion("input_time is not null");
407
+            return (Criteria) this;
408
+        }
409
+
410
+        public Criteria andInputTimeEqualTo(Date value) {
411
+            addCriterion("input_time =", value, "inputTime");
412
+            return (Criteria) this;
413
+        }
414
+
415
+        public Criteria andInputTimeNotEqualTo(Date value) {
416
+            addCriterion("input_time <>", value, "inputTime");
417
+            return (Criteria) this;
418
+        }
419
+
420
+        public Criteria andInputTimeGreaterThan(Date value) {
421
+            addCriterion("input_time >", value, "inputTime");
422
+            return (Criteria) this;
423
+        }
424
+
425
+        public Criteria andInputTimeGreaterThanOrEqualTo(Date value) {
426
+            addCriterion("input_time >=", value, "inputTime");
427
+            return (Criteria) this;
428
+        }
429
+
430
+        public Criteria andInputTimeLessThan(Date value) {
431
+            addCriterion("input_time <", value, "inputTime");
432
+            return (Criteria) this;
433
+        }
434
+
435
+        public Criteria andInputTimeLessThanOrEqualTo(Date value) {
436
+            addCriterion("input_time <=", value, "inputTime");
437
+            return (Criteria) this;
438
+        }
439
+
440
+        public Criteria andInputTimeIn(List<Date> values) {
441
+            addCriterion("input_time in", values, "inputTime");
442
+            return (Criteria) this;
443
+        }
444
+
445
+        public Criteria andInputTimeNotIn(List<Date> values) {
446
+            addCriterion("input_time not in", values, "inputTime");
447
+            return (Criteria) this;
448
+        }
449
+
450
+        public Criteria andInputTimeBetween(Date value1, Date value2) {
451
+            addCriterion("input_time between", value1, value2, "inputTime");
452
+            return (Criteria) this;
453
+        }
454
+
455
+        public Criteria andInputTimeNotBetween(Date value1, Date value2) {
456
+            addCriterion("input_time not between", value1, value2, "inputTime");
457
+            return (Criteria) this;
458
+        }
459
+    }
460
+
461
+    /**
462
+     * system_outside_data
463
+     */
464
+    public static class Criteria extends GeneratedCriteria {
465
+
466
+        protected Criteria() {
467
+            super();
468
+        }
469
+    }
470
+
471
+    /**
472
+     * system_outside_data 2023-10-08
473
+     */
474
+    public static class Criterion {
475
+        private String condition;
476
+
477
+        private Object value;
478
+
479
+        private Object secondValue;
480
+
481
+        private boolean noValue;
482
+
483
+        private boolean singleValue;
484
+
485
+        private boolean betweenValue;
486
+
487
+        private boolean listValue;
488
+
489
+        private String typeHandler;
490
+
491
+        public String getCondition() {
492
+            return condition;
493
+        }
494
+
495
+        public Object getValue() {
496
+            return value;
497
+        }
498
+
499
+        public Object getSecondValue() {
500
+            return secondValue;
501
+        }
502
+
503
+        public boolean isNoValue() {
504
+            return noValue;
505
+        }
506
+
507
+        public boolean isSingleValue() {
508
+            return singleValue;
509
+        }
510
+
511
+        public boolean isBetweenValue() {
512
+            return betweenValue;
513
+        }
514
+
515
+        public boolean isListValue() {
516
+            return listValue;
517
+        }
518
+
519
+        public String getTypeHandler() {
520
+            return typeHandler;
521
+        }
522
+
523
+        protected Criterion(String condition) {
524
+            super();
525
+            this.condition = condition;
526
+            this.typeHandler = null;
527
+            this.noValue = true;
528
+        }
529
+
530
+        protected Criterion(String condition, Object value, String typeHandler) {
531
+            super();
532
+            this.condition = condition;
533
+            this.value = value;
534
+            this.typeHandler = typeHandler;
535
+            if (value instanceof List<?>) {
536
+                this.listValue = true;
537
+            } else {
538
+                this.singleValue = true;
539
+            }
540
+        }
541
+
542
+        protected Criterion(String condition, Object value) {
543
+            this(condition, value, null);
544
+        }
545
+
546
+        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
547
+            super();
548
+            this.condition = condition;
549
+            this.value = value;
550
+            this.secondValue = secondValue;
551
+            this.typeHandler = typeHandler;
552
+            this.betweenValue = true;
553
+        }
554
+
555
+        protected Criterion(String condition, Object value, Object secondValue) {
556
+            this(condition, value, secondValue, null);
557
+        }
558
+    }
559
+}

+ 14 - 0
src/main/java/com/chinaitop/depot/basic/service/SystemOutsideDataService.java

@@ -0,0 +1,14 @@
1
+package com.chinaitop.depot.basic.service;
2
+
3
+
4
+public interface SystemOutsideDataService {
5
+
6
+	/**
7
+	 * 数据新增
8
+	 * @param titles
9
+	 * @param jssj
10
+	 * @param fhsj
11
+	 */
12
+	void addlogger(String titles, String jssj, String fhsj);
13
+
14
+}

+ 30 - 0
src/main/java/com/chinaitop/depot/basic/service/impl/SystemOutsideDataServiceImpl.java

@@ -0,0 +1,30 @@
1
+package com.chinaitop.depot.basic.service.impl;
2
+
3
+import java.util.Date;
4
+import java.util.UUID;
5
+
6
+import javax.annotation.Resource;
7
+
8
+import org.springframework.stereotype.Service;
9
+
10
+import com.chinaitop.depot.basic.mapper.SystemOutsideDataMapper;
11
+import com.chinaitop.depot.basic.model.SystemOutsideData;
12
+import com.chinaitop.depot.basic.service.SystemOutsideDataService;
13
+@Service
14
+public class SystemOutsideDataServiceImpl implements SystemOutsideDataService {
15
+
16
+	@Resource
17
+	private SystemOutsideDataMapper systemOutsideDataMapper;
18
+
19
+	@Override
20
+	public void addlogger(String titles, String jssj, String fhsj) {
21
+		SystemOutsideData data = new SystemOutsideData();
22
+		data.setId(UUID.randomUUID().toString().replace("-", ""));
23
+		data.setTitles(titles);
24
+		data.setJssj(jssj);
25
+		data.setFhsj(fhsj);
26
+		data.setInputTime(new Date());
27
+		systemOutsideDataMapper.insert(data);
28
+	}
29
+
30
+}