Quellcode durchsuchen

封仓时间数量

mengy vor 5 Jahren
Ursprung
Commit
271666ec0c

+ 87 - 0
src/main/java/com/chinaitop/depot/storage/controller/StorageQualitycheckCheckcodeController.java

@@ -0,0 +1,87 @@
1
+package com.chinaitop.depot.storage.controller;
2
+
3
+
4
+import com.chinaitop.depot.storage.model.StorageQualitycheck;
5
+import com.chinaitop.depot.storage.model.StorageQualitycheckCheckcode;
6
+import com.chinaitop.depot.storage.model.StorageQualitycheckCheckcodeExample;
7
+import com.chinaitop.depot.storage.model.StorageQualitycheckExample;
8
+import com.chinaitop.depot.storage.service.StorageQualitycheckCheckcodeService;
9
+import com.chinaitop.depot.storage.service.StorageQualitycheckService;
10
+import com.chinaitop.depot.storage.service.StorageQualitycheckSonService;
11
+import com.github.pagehelper.PageHelper;
12
+import com.github.pagehelper.PageInfo;
13
+import io.swagger.annotations.Api;
14
+import io.swagger.annotations.ApiImplicitParam;
15
+import io.swagger.annotations.ApiImplicitParams;
16
+import io.swagger.annotations.ApiOperation;
17
+import org.springframework.http.MediaType;
18
+import org.springframework.web.bind.annotation.RequestMapping;
19
+import org.springframework.web.bind.annotation.RequestMethod;
20
+import org.springframework.web.bind.annotation.RestController;
21
+
22
+import javax.annotation.Resource;
23
+import java.util.*;
24
+import java.util.concurrent.ConcurrentHashMap;
25
+
26
+import static com.sun.org.apache.xalan.internal.xsltc.compiler.util.Type.Int;
27
+
28
+/**
29
+ * Created by product on 2017/10/11.
30
+ */
31
+@RestController
32
+@RequestMapping(value = {"/qualitycheckcheckcode"})
33
+@Api(value= "StorageQualitycheckController", description = "质量管理控制类")
34
+public class StorageQualitycheckCheckcodeController {
35
+    @Resource
36
+    private StorageQualitycheckService storageQualitycheckService;
37
+
38
+    @Resource
39
+    private StorageQualitycheckCheckcodeService storageQualitycheckcodeService;
40
+
41
+
42
+//http://localhost:9025//depot-qualitycheck/qualitycheckcheckcode/getStoreQualityListAndCode
43
+    @RequestMapping(value = "/getStoreQualityListAndCode",produces = MediaType.APPLICATION_JSON_VALUE, method = RequestMethod.GET )
44
+    @ApiOperation(value="查询质量管理列表(带编码)", notes = "查询质量管理列表(带编码)")
45
+    public List<Map<String,Object>> getStoreQualityListAndCode(){
46
+        Map<String, Object> map = new HashMap<String, Object>();
47
+
48
+        List<Map<String,Object>> listQualityUs=storageQualitycheckService.getQualityListUs();
49
+        List<Map<String,Object>> listQualityCode=storageQualitycheckcodeService.getCodeList();
50
+
51
+        /*for(int j = 0; j < listQualityUs.size(); j++) {
52
+            Map<String, Object> m = listQualityUs.get(j);
53
+            Iterator<Map.Entry<String, Object>> it = m.entrySet().iterator();
54
+            while(it.hasNext()){
55
+                Map.Entry<String, Object> entry = it.next();
56
+                if(entry.getKey().equals("impurity")){
57
+                    it.remove();//使用迭代器的remove()方法删除元素
58
+                }
59
+            }
60
+        }
61
+        */
62
+        for(int j = 0; j < listQualityUs.size(); j++){
63
+            Map<String, Object> m=listQualityUs.get(j);
64
+            Iterator<Map.Entry<String, Object>> k = m.entrySet().iterator();
65
+            while(k.hasNext()){
66
+                Map.Entry<String, Object> entry = k.next();
67
+                System.out.println(k);
68
+                String kname =entry.getKey();
69
+                for(int i = 0; i < listQualityCode.size(); i++){
70
+                    String name =(String)listQualityCode.get(i).get("sto_name");
71
+                    if (kname == name || kname.equals(name) || name.equals(kname)){
72
+                        m.put(kname+listQualityCode.get(i).get("code"),entry.getValue());
73
+                        k.remove();
74
+                        //return listQualityUs;
75
+                    }
76
+                }
77
+                //break;
78
+            }
79
+            //break;
80
+        }
81
+        return listQualityUs;
82
+    }
83
+
84
+
85
+
86
+
87
+}

+ 35 - 0
src/main/java/com/chinaitop/depot/storage/mapper/StorageQualitycheckCheckcodeMapper.java

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

+ 204 - 0
src/main/java/com/chinaitop/depot/storage/mapper/StorageQualitycheckCheckcodeMapper.xml

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

+ 75 - 0
src/main/java/com/chinaitop/depot/storage/model/StorageQualitycheckCheckcode.java

@@ -0,0 +1,75 @@
1
+package com.chinaitop.depot.storage.model;
2
+
3
+public class StorageQualitycheckCheckcode {
4
+    private Integer id;
5
+
6
+    private String title;
7
+
8
+    private String code;
9
+
10
+    private String stoName;
11
+
12
+    /**
13
+     * id
14
+     * @return id id
15
+     */
16
+    public Integer getId() {
17
+        return id;
18
+    }
19
+
20
+    /**
21
+     * id
22
+     * @param id id
23
+     */
24
+    public void setId(Integer id) {
25
+        this.id = id;
26
+    }
27
+
28
+    /**
29
+     * 检验名称
30
+     * @return title 检验名称
31
+     */
32
+    public String getTitle() {
33
+        return title;
34
+    }
35
+
36
+    /**
37
+     * 检验名称
38
+     * @param title 检验名称
39
+     */
40
+    public void setTitle(String title) {
41
+        this.title = title == null ? null : title.trim();
42
+    }
43
+
44
+    /**
45
+     * 检验名称的编码
46
+     * @return code 检验名称的编码
47
+     */
48
+    public String getCode() {
49
+        return code;
50
+    }
51
+
52
+    /**
53
+     * 检验名称的编码
54
+     * @param code 检验名称的编码
55
+     */
56
+    public void setCode(String code) {
57
+        this.code = code == null ? null : code.trim();
58
+    }
59
+
60
+    /**
61
+     * 检验名称字段
62
+     * @return sto_name 检验名称字段
63
+     */
64
+    public String getStoName() {
65
+        return stoName;
66
+    }
67
+
68
+    /**
69
+     * 检验名称字段
70
+     * @param stoName 检验名称字段
71
+     */
72
+    public void setStoName(String stoName) {
73
+        this.stoName = stoName == null ? null : stoName.trim();
74
+    }
75
+}

+ 488 - 0
src/main/java/com/chinaitop/depot/storage/model/StorageQualitycheckCheckcodeExample.java

@@ -0,0 +1,488 @@
1
+package com.chinaitop.depot.storage.model;
2
+
3
+import java.util.ArrayList;
4
+import java.util.List;
5
+
6
+public class StorageQualitycheckCheckcodeExample {
7
+    /**
8
+     * storage_qualitycheck_checkcode
9
+     */
10
+    protected String orderByClause;
11
+
12
+    /**
13
+     * storage_qualitycheck_checkcode
14
+     */
15
+    protected boolean distinct;
16
+
17
+    /**
18
+     * storage_qualitycheck_checkcode
19
+     */
20
+    protected List<Criteria> oredCriteria;
21
+
22
+    public StorageQualitycheckCheckcodeExample() {
23
+        oredCriteria = new ArrayList<Criteria>();
24
+    }
25
+
26
+    public void setOrderByClause(String orderByClause) {
27
+        this.orderByClause = orderByClause;
28
+    }
29
+
30
+    public String getOrderByClause() {
31
+        return orderByClause;
32
+    }
33
+
34
+    public void setDistinct(boolean distinct) {
35
+        this.distinct = distinct;
36
+    }
37
+
38
+    public boolean isDistinct() {
39
+        return distinct;
40
+    }
41
+
42
+    public List<Criteria> getOredCriteria() {
43
+        return oredCriteria;
44
+    }
45
+
46
+    public void or(Criteria criteria) {
47
+        oredCriteria.add(criteria);
48
+    }
49
+
50
+    public Criteria or() {
51
+        Criteria criteria = createCriteriaInternal();
52
+        oredCriteria.add(criteria);
53
+        return criteria;
54
+    }
55
+
56
+    public Criteria createCriteria() {
57
+        Criteria criteria = createCriteriaInternal();
58
+        if (oredCriteria.size() == 0) {
59
+            oredCriteria.add(criteria);
60
+        }
61
+        return criteria;
62
+    }
63
+
64
+    protected Criteria createCriteriaInternal() {
65
+        Criteria criteria = new Criteria();
66
+        return criteria;
67
+    }
68
+
69
+    public void clear() {
70
+        oredCriteria.clear();
71
+        orderByClause = null;
72
+        distinct = false;
73
+    }
74
+
75
+    /**
76
+     * storage_qualitycheck_checkcode 2020-11-05
77
+     */
78
+    protected abstract static class GeneratedCriteria {
79
+        protected List<Criterion> criteria;
80
+
81
+        protected GeneratedCriteria() {
82
+            super();
83
+            criteria = new ArrayList<Criterion>();
84
+        }
85
+
86
+        public boolean isValid() {
87
+            return criteria.size() > 0;
88
+        }
89
+
90
+        public List<Criterion> getAllCriteria() {
91
+            return criteria;
92
+        }
93
+
94
+        public List<Criterion> getCriteria() {
95
+            return criteria;
96
+        }
97
+
98
+        protected void addCriterion(String condition) {
99
+            if (condition == null) {
100
+                throw new RuntimeException("Value for condition cannot be null");
101
+            }
102
+            criteria.add(new Criterion(condition));
103
+        }
104
+
105
+        protected void addCriterion(String condition, Object value, String property) {
106
+            if (value == null) {
107
+                throw new RuntimeException("Value for " + property + " cannot be null");
108
+            }
109
+            criteria.add(new Criterion(condition, value));
110
+        }
111
+
112
+        protected void addCriterion(String condition, Object value1, Object value2, String property) {
113
+            if (value1 == null || value2 == null) {
114
+                throw new RuntimeException("Between values for " + property + " cannot be null");
115
+            }
116
+            criteria.add(new Criterion(condition, value1, value2));
117
+        }
118
+
119
+        public Criteria andIdIsNull() {
120
+            addCriterion("id is null");
121
+            return (Criteria) this;
122
+        }
123
+
124
+        public Criteria andIdIsNotNull() {
125
+            addCriterion("id is not null");
126
+            return (Criteria) this;
127
+        }
128
+
129
+        public Criteria andIdEqualTo(Integer value) {
130
+            addCriterion("id =", value, "id");
131
+            return (Criteria) this;
132
+        }
133
+
134
+        public Criteria andIdNotEqualTo(Integer value) {
135
+            addCriterion("id <>", value, "id");
136
+            return (Criteria) this;
137
+        }
138
+
139
+        public Criteria andIdGreaterThan(Integer value) {
140
+            addCriterion("id >", value, "id");
141
+            return (Criteria) this;
142
+        }
143
+
144
+        public Criteria andIdGreaterThanOrEqualTo(Integer value) {
145
+            addCriterion("id >=", value, "id");
146
+            return (Criteria) this;
147
+        }
148
+
149
+        public Criteria andIdLessThan(Integer value) {
150
+            addCriterion("id <", value, "id");
151
+            return (Criteria) this;
152
+        }
153
+
154
+        public Criteria andIdLessThanOrEqualTo(Integer value) {
155
+            addCriterion("id <=", value, "id");
156
+            return (Criteria) this;
157
+        }
158
+
159
+        public Criteria andIdIn(List<Integer> values) {
160
+            addCriterion("id in", values, "id");
161
+            return (Criteria) this;
162
+        }
163
+
164
+        public Criteria andIdNotIn(List<Integer> values) {
165
+            addCriterion("id not in", values, "id");
166
+            return (Criteria) this;
167
+        }
168
+
169
+        public Criteria andIdBetween(Integer value1, Integer value2) {
170
+            addCriterion("id between", value1, value2, "id");
171
+            return (Criteria) this;
172
+        }
173
+
174
+        public Criteria andIdNotBetween(Integer value1, Integer value2) {
175
+            addCriterion("id not between", value1, value2, "id");
176
+            return (Criteria) this;
177
+        }
178
+
179
+        public Criteria andTitleIsNull() {
180
+            addCriterion("title is null");
181
+            return (Criteria) this;
182
+        }
183
+
184
+        public Criteria andTitleIsNotNull() {
185
+            addCriterion("title is not null");
186
+            return (Criteria) this;
187
+        }
188
+
189
+        public Criteria andTitleEqualTo(String value) {
190
+            addCriterion("title =", value, "title");
191
+            return (Criteria) this;
192
+        }
193
+
194
+        public Criteria andTitleNotEqualTo(String value) {
195
+            addCriterion("title <>", value, "title");
196
+            return (Criteria) this;
197
+        }
198
+
199
+        public Criteria andTitleGreaterThan(String value) {
200
+            addCriterion("title >", value, "title");
201
+            return (Criteria) this;
202
+        }
203
+
204
+        public Criteria andTitleGreaterThanOrEqualTo(String value) {
205
+            addCriterion("title >=", value, "title");
206
+            return (Criteria) this;
207
+        }
208
+
209
+        public Criteria andTitleLessThan(String value) {
210
+            addCriterion("title <", value, "title");
211
+            return (Criteria) this;
212
+        }
213
+
214
+        public Criteria andTitleLessThanOrEqualTo(String value) {
215
+            addCriterion("title <=", value, "title");
216
+            return (Criteria) this;
217
+        }
218
+
219
+        public Criteria andTitleLike(String value) {
220
+            addCriterion("title like", value, "title");
221
+            return (Criteria) this;
222
+        }
223
+
224
+        public Criteria andTitleNotLike(String value) {
225
+            addCriterion("title not like", value, "title");
226
+            return (Criteria) this;
227
+        }
228
+
229
+        public Criteria andTitleIn(List<String> values) {
230
+            addCriterion("title in", values, "title");
231
+            return (Criteria) this;
232
+        }
233
+
234
+        public Criteria andTitleNotIn(List<String> values) {
235
+            addCriterion("title not in", values, "title");
236
+            return (Criteria) this;
237
+        }
238
+
239
+        public Criteria andTitleBetween(String value1, String value2) {
240
+            addCriterion("title between", value1, value2, "title");
241
+            return (Criteria) this;
242
+        }
243
+
244
+        public Criteria andTitleNotBetween(String value1, String value2) {
245
+            addCriterion("title not between", value1, value2, "title");
246
+            return (Criteria) this;
247
+        }
248
+
249
+        public Criteria andCodeIsNull() {
250
+            addCriterion("code is null");
251
+            return (Criteria) this;
252
+        }
253
+
254
+        public Criteria andCodeIsNotNull() {
255
+            addCriterion("code is not null");
256
+            return (Criteria) this;
257
+        }
258
+
259
+        public Criteria andCodeEqualTo(String value) {
260
+            addCriterion("code =", value, "code");
261
+            return (Criteria) this;
262
+        }
263
+
264
+        public Criteria andCodeNotEqualTo(String value) {
265
+            addCriterion("code <>", value, "code");
266
+            return (Criteria) this;
267
+        }
268
+
269
+        public Criteria andCodeGreaterThan(String value) {
270
+            addCriterion("code >", value, "code");
271
+            return (Criteria) this;
272
+        }
273
+
274
+        public Criteria andCodeGreaterThanOrEqualTo(String value) {
275
+            addCriterion("code >=", value, "code");
276
+            return (Criteria) this;
277
+        }
278
+
279
+        public Criteria andCodeLessThan(String value) {
280
+            addCriterion("code <", value, "code");
281
+            return (Criteria) this;
282
+        }
283
+
284
+        public Criteria andCodeLessThanOrEqualTo(String value) {
285
+            addCriterion("code <=", value, "code");
286
+            return (Criteria) this;
287
+        }
288
+
289
+        public Criteria andCodeLike(String value) {
290
+            addCriterion("code like", value, "code");
291
+            return (Criteria) this;
292
+        }
293
+
294
+        public Criteria andCodeNotLike(String value) {
295
+            addCriterion("code not like", value, "code");
296
+            return (Criteria) this;
297
+        }
298
+
299
+        public Criteria andCodeIn(List<String> values) {
300
+            addCriterion("code in", values, "code");
301
+            return (Criteria) this;
302
+        }
303
+
304
+        public Criteria andCodeNotIn(List<String> values) {
305
+            addCriterion("code not in", values, "code");
306
+            return (Criteria) this;
307
+        }
308
+
309
+        public Criteria andCodeBetween(String value1, String value2) {
310
+            addCriterion("code between", value1, value2, "code");
311
+            return (Criteria) this;
312
+        }
313
+
314
+        public Criteria andCodeNotBetween(String value1, String value2) {
315
+            addCriterion("code not between", value1, value2, "code");
316
+            return (Criteria) this;
317
+        }
318
+
319
+        public Criteria andStoNameIsNull() {
320
+            addCriterion("sto_name is null");
321
+            return (Criteria) this;
322
+        }
323
+
324
+        public Criteria andStoNameIsNotNull() {
325
+            addCriterion("sto_name is not null");
326
+            return (Criteria) this;
327
+        }
328
+
329
+        public Criteria andStoNameEqualTo(String value) {
330
+            addCriterion("sto_name =", value, "stoName");
331
+            return (Criteria) this;
332
+        }
333
+
334
+        public Criteria andStoNameNotEqualTo(String value) {
335
+            addCriterion("sto_name <>", value, "stoName");
336
+            return (Criteria) this;
337
+        }
338
+
339
+        public Criteria andStoNameGreaterThan(String value) {
340
+            addCriterion("sto_name >", value, "stoName");
341
+            return (Criteria) this;
342
+        }
343
+
344
+        public Criteria andStoNameGreaterThanOrEqualTo(String value) {
345
+            addCriterion("sto_name >=", value, "stoName");
346
+            return (Criteria) this;
347
+        }
348
+
349
+        public Criteria andStoNameLessThan(String value) {
350
+            addCriterion("sto_name <", value, "stoName");
351
+            return (Criteria) this;
352
+        }
353
+
354
+        public Criteria andStoNameLessThanOrEqualTo(String value) {
355
+            addCriterion("sto_name <=", value, "stoName");
356
+            return (Criteria) this;
357
+        }
358
+
359
+        public Criteria andStoNameLike(String value) {
360
+            addCriterion("sto_name like", value, "stoName");
361
+            return (Criteria) this;
362
+        }
363
+
364
+        public Criteria andStoNameNotLike(String value) {
365
+            addCriterion("sto_name not like", value, "stoName");
366
+            return (Criteria) this;
367
+        }
368
+
369
+        public Criteria andStoNameIn(List<String> values) {
370
+            addCriterion("sto_name in", values, "stoName");
371
+            return (Criteria) this;
372
+        }
373
+
374
+        public Criteria andStoNameNotIn(List<String> values) {
375
+            addCriterion("sto_name not in", values, "stoName");
376
+            return (Criteria) this;
377
+        }
378
+
379
+        public Criteria andStoNameBetween(String value1, String value2) {
380
+            addCriterion("sto_name between", value1, value2, "stoName");
381
+            return (Criteria) this;
382
+        }
383
+
384
+        public Criteria andStoNameNotBetween(String value1, String value2) {
385
+            addCriterion("sto_name not between", value1, value2, "stoName");
386
+            return (Criteria) this;
387
+        }
388
+    }
389
+
390
+    /**
391
+     * storage_qualitycheck_checkcode
392
+     */
393
+    public static class Criteria extends GeneratedCriteria {
394
+
395
+        protected Criteria() {
396
+            super();
397
+        }
398
+    }
399
+
400
+    /**
401
+     * storage_qualitycheck_checkcode 2020-11-05
402
+     */
403
+    public static class Criterion {
404
+        private String condition;
405
+
406
+        private Object value;
407
+
408
+        private Object secondValue;
409
+
410
+        private boolean noValue;
411
+
412
+        private boolean singleValue;
413
+
414
+        private boolean betweenValue;
415
+
416
+        private boolean listValue;
417
+
418
+        private String typeHandler;
419
+
420
+        public String getCondition() {
421
+            return condition;
422
+        }
423
+
424
+        public Object getValue() {
425
+            return value;
426
+        }
427
+
428
+        public Object getSecondValue() {
429
+            return secondValue;
430
+        }
431
+
432
+        public boolean isNoValue() {
433
+            return noValue;
434
+        }
435
+
436
+        public boolean isSingleValue() {
437
+            return singleValue;
438
+        }
439
+
440
+        public boolean isBetweenValue() {
441
+            return betweenValue;
442
+        }
443
+
444
+        public boolean isListValue() {
445
+            return listValue;
446
+        }
447
+
448
+        public String getTypeHandler() {
449
+            return typeHandler;
450
+        }
451
+
452
+        protected Criterion(String condition) {
453
+            super();
454
+            this.condition = condition;
455
+            this.typeHandler = null;
456
+            this.noValue = true;
457
+        }
458
+
459
+        protected Criterion(String condition, Object value, String typeHandler) {
460
+            super();
461
+            this.condition = condition;
462
+            this.value = value;
463
+            this.typeHandler = typeHandler;
464
+            if (value instanceof List<?>) {
465
+                this.listValue = true;
466
+            } else {
467
+                this.singleValue = true;
468
+            }
469
+        }
470
+
471
+        protected Criterion(String condition, Object value) {
472
+            this(condition, value, null);
473
+        }
474
+
475
+        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
476
+            super();
477
+            this.condition = condition;
478
+            this.value = value;
479
+            this.secondValue = secondValue;
480
+            this.typeHandler = typeHandler;
481
+            this.betweenValue = true;
482
+        }
483
+
484
+        protected Criterion(String condition, Object value, Object secondValue) {
485
+            this(condition, value, secondValue, null);
486
+        }
487
+    }
488
+}

+ 16 - 0
src/main/java/com/chinaitop/depot/storage/service/StorageQualitycheckCheckcodeService.java

@@ -0,0 +1,16 @@
1
+package com.chinaitop.depot.storage.service;
2
+
3
+
4
+
5
+import com.chinaitop.depot.storage.model.StorageQualitycheckCheckcode;
6
+import com.chinaitop.depot.storage.model.StorageQualitycheckCheckcodeExample;
7
+
8
+import java.util.List;
9
+import java.util.Map;
10
+
11
+public interface StorageQualitycheckCheckcodeService {
12
+
13
+    List<StorageQualitycheckCheckcode> findByCondition(StorageQualitycheckCheckcodeExample example);
14
+
15
+    List<Map<String, Object>> getCodeList();
16
+}

+ 44 - 0
src/main/java/com/chinaitop/depot/storage/service/impl/StorageQualitycheckCheckcodeServiceImpl.java

@@ -0,0 +1,44 @@
1
+package com.chinaitop.depot.storage.service.impl;
2
+
3
+import com.chinaitop.depot.storage.mapper.StorageQualitycheckCheckcodeMapper;
4
+import com.chinaitop.depot.storage.mapper.StorageQualitycheckMapper;
5
+import com.chinaitop.depot.storage.mapper.StorageQualitycheckSonMapper;
6
+import com.chinaitop.depot.storage.model.*;
7
+import com.chinaitop.depot.storage.service.StorageQualitycheckCheckcodeService;
8
+import com.chinaitop.depot.storage.service.StorageQualitycheckService;
9
+import com.chinaitop.depot.storage.service.StorageQualitycheckSonService;
10
+import org.apache.commons.lang3.StringUtils;
11
+import org.springframework.stereotype.Service;
12
+import org.springframework.transaction.annotation.Transactional;
13
+
14
+import javax.annotation.Resource;
15
+import java.util.List;
16
+import java.util.Map;
17
+
18
+@Service
19
+public class StorageQualitycheckCheckcodeServiceImpl implements StorageQualitycheckCheckcodeService {
20
+
21
+	@Resource
22
+	private StorageQualitycheckMapper qualitycheckMapper;
23
+	@Resource
24
+	private StorageQualitycheckCheckcodeMapper qualitycheckCheckcodeMapper;
25
+	@Resource
26
+	private StorageQualitycheckSonMapper storageQualitycheckSonMapper;
27
+    @Resource
28
+    private StorageQualitycheckSonService qualitycheckSonService;
29
+    @Resource
30
+    private StorageQualitycheckCheckcodeService qualitycheckCheckcodeService;
31
+
32
+
33
+
34
+
35
+    @Override
36
+	public List<StorageQualitycheckCheckcode> findByCondition(StorageQualitycheckCheckcodeExample example) {
37
+		return qualitycheckCheckcodeMapper.selectByExample(example);
38
+	}
39
+
40
+	@Override
41
+	public List<Map<String, Object>> getCodeList() {
42
+		return qualitycheckCheckcodeMapper.getCodeList();
43
+	}
44
+}