Преглед на файлове

Merge branch 'dev' of depot-qinghai/depot-storage-qinghai into master

gdd преди 1 година
родител
ревизия
bc93de64a4

+ 71 - 0
src/main/java/com/chinaitop/depot/product/controller/DataKcglCplkcswDefaultController.java

@@ -0,0 +1,71 @@
1
+package com.chinaitop.depot.product.controller;
2
+
3
+
4
+import java.util.List;
5
+
6
+import javax.annotation.Resource;
7
+
8
+import org.springframework.http.MediaType;
9
+import org.springframework.web.bind.annotation.RequestMapping;
10
+import org.springframework.web.bind.annotation.RequestMethod;
11
+import org.springframework.web.bind.annotation.RestController;
12
+
13
+import com.chinaitop.depot.product.model.DataKcglCplkcswDefault;
14
+import com.chinaitop.depot.product.service.DataKcglCplkcswDefaultService;
15
+import com.github.pagehelper.PageInfo;
16
+
17
+import io.swagger.annotations.Api;
18
+import io.swagger.annotations.ApiImplicitParam;
19
+import io.swagger.annotations.ApiImplicitParams;
20
+import io.swagger.annotations.ApiOperation;
21
+
22
+/**
23
+ * shine
24
+ * 成品粮 库存实物
25
+ */
26
+@RestController
27
+@RequestMapping(value = "/cplkc")
28
+@Api(value= "DataKcglCplkcswDefaultController", description = "成品粮油库存实物")
29
+public class DataKcglCplkcswDefaultController {
30
+
31
+    @Resource
32
+    private DataKcglCplkcswDefaultService dataKcglCplkcswDefaultService;
33
+
34
+   
35
+
36
+    @RequestMapping(value = "/getList", produces = MediaType.APPLICATION_JSON_VALUE, method = RequestMethod.GET)
37
+    @ApiOperation(value="查询成品粮油库存实物列表", notes = "查询成品粮油库存实物列表,支持分页")
38
+    @ApiImplicitParams({
39
+            @ApiImplicitParam(name = "pageNum", value = "页码", paramType = "query"),
40
+            @ApiImplicitParam(name = "pageSize", value = "每页条数", paramType = "query"),
41
+            @ApiImplicitParam(name = "houseName", value = "仓房名称", paramType = "query"),
42
+            @ApiImplicitParam(name = "wareName", value = "货位名称", paramType = "query"),
43
+            @ApiImplicitParam(name = "sjjlspmc", value = "商品名称", paramType = "query"),
44
+            @ApiImplicitParam(name = "orgId", value = "组织机构代码", paramType = "query")
45
+
46
+    })
47
+    public PageInfo<DataKcglCplkcswDefault> getList(Integer pageNum, Integer pageSize, 
48
+    		String houseName, String wareName, String sjjlspmc, Integer orgId){
49
+    	
50
+        List<DataKcglCplkcswDefault> list = dataKcglCplkcswDefaultService.getlist(pageNum,pageSize,houseName,wareName,sjjlspmc,orgId);
51
+        		 
52
+        PageInfo<DataKcglCplkcswDefault> pageInfo = new PageInfo<DataKcglCplkcswDefault>(list);
53
+        return pageInfo;
54
+    }
55
+
56
+
57
+    /**
58
+     * 获取成品粮油库存实物详情
59
+     * @return
60
+     */
61
+    @RequestMapping(value = "/getById" ,produces = MediaType.APPLICATION_JSON_VALUE, method = RequestMethod.GET)
62
+    @ApiOperation(value="获取成品粮油库存实物详情", notes = "获取成品粮油库存实物详情")
63
+    @ApiImplicitParams({
64
+            @ApiImplicitParam(name = "id", value = "id", paramType = "query")
65
+    })
66
+    public DataKcglCplkcswDefault getById(String id){
67
+        return dataKcglCplkcswDefaultService.getById(id);
68
+    }
69
+
70
+   
71
+}

+ 30 - 0
src/main/java/com/chinaitop/depot/product/mapper/DataKcglCplkcswDefaultMapper.java

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

+ 678 - 0
src/main/java/com/chinaitop/depot/product/mapper/DataKcglCplkcswDefaultMapper.xml

@@ -0,0 +1,678 @@
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.product.mapper.DataKcglCplkcswDefaultMapper" >
4
+  <resultMap id="BaseResultMap" type="com.chinaitop.depot.product.model.DataKcglCplkcswDefault" >
5
+    <id column="dataId" property="dataid" jdbcType="VARCHAR" />
6
+    <result column="unitid" property="unitid" jdbcType="VARCHAR" />
7
+    <result column="zdmc" property="zdmc" jdbcType="VARCHAR" />
8
+    <result column="zdbm" property="zdbm" jdbcType="VARCHAR" />
9
+    <result column="ch" property="ch" jdbcType="VARCHAR" />
10
+    <result column="hwh" property="hwh" jdbcType="VARCHAR" />
11
+    <result column="chmc" property="chmc" jdbcType="VARCHAR" />
12
+    <result column="hwmc" property="hwmc" jdbcType="VARCHAR" />
13
+    <result column="builder" property="builder" jdbcType="VARCHAR" />
14
+    <result column="cjsj" property="cjsj" jdbcType="TIMESTAMP" />
15
+    <result column="editor" property="editor" jdbcType="VARCHAR" />
16
+    <result column="modifyDate" property="modifydate" jdbcType="TIMESTAMP" />
17
+    <result column="updateTime" property="updatetime" jdbcType="TIMESTAMP" />
18
+    <result column="scrq" property="scrq" jdbcType="TIMESTAMP" />
19
+    <result column="bzq" property="bzq" jdbcType="VARCHAR" />
20
+    <result column="xz" property="xz" jdbcType="VARCHAR" />
21
+    <result column="deptId" property="deptid" jdbcType="VARCHAR" />
22
+    <result column="sjjlpzmc" property="sjjlpzmc" jdbcType="VARCHAR" />
23
+    <result column="sjjlpzbh" property="sjjlpzbh" jdbcType="VARCHAR" />
24
+    <result column="sjjlppmc" property="sjjlppmc" jdbcType="VARCHAR" />
25
+    <result column="sjjlppbh" property="sjjlppbh" jdbcType="VARCHAR" />
26
+    <result column="sjjldjbh" property="sjjldjbh" jdbcType="VARCHAR" />
27
+    <result column="sjjldjmc" property="sjjldjmc" jdbcType="VARCHAR" />
28
+    <result column="sjjlspmc" property="sjjlspmc" jdbcType="VARCHAR" />
29
+    <result column="sjjlspmcbh" property="sjjlspmcbh" jdbcType="VARCHAR" />
30
+    <result column="kcsl" property="kcsl" jdbcType="DOUBLE" />
31
+    <result column="scpc" property="scpc" jdbcType="VARCHAR" />
32
+    <result column="gg" property="gg" jdbcType="VARCHAR" />
33
+    <result column="jldw" property="jldw" jdbcType="VARCHAR" />
34
+    <result column="zje" property="zje" jdbcType="DOUBLE" />
35
+    <result column="js" property="js" jdbcType="DOUBLE" />
36
+    <result column="scnf" property="scnf" jdbcType="VARCHAR" />
37
+    <result column="cd" property="cd" jdbcType="VARCHAR" />
38
+    <result column="rcrq" property="rcrq" jdbcType="TIMESTAMP" />
39
+    
40
+    <result column="orgName" property="orgName" jdbcType="VARCHAR" />
41
+  </resultMap>
42
+  <sql id="Example_Where_Clause" >
43
+    <where >
44
+      <foreach collection="oredCriteria" item="criteria" separator="or" >
45
+        <if test="criteria.valid" >
46
+          <trim prefix="(" suffix=")" prefixOverrides="and" >
47
+            <foreach collection="criteria.criteria" item="criterion" >
48
+              <choose >
49
+                <when test="criterion.noValue" >
50
+                  and ${criterion.condition}
51
+                </when>
52
+                <when test="criterion.singleValue" >
53
+                  and ${criterion.condition} #{criterion.value}
54
+                </when>
55
+                <when test="criterion.betweenValue" >
56
+                  and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
57
+                </when>
58
+                <when test="criterion.listValue" >
59
+                  and ${criterion.condition}
60
+                  <foreach collection="criterion.value" item="listItem" open="(" close=")" separator="," >
61
+                    #{listItem}
62
+                  </foreach>
63
+                </when>
64
+              </choose>
65
+            </foreach>
66
+          </trim>
67
+        </if>
68
+      </foreach>
69
+    </where>
70
+  </sql>
71
+  <sql id="Update_By_Example_Where_Clause" >
72
+    <where >
73
+      <foreach collection="example.oredCriteria" item="criteria" separator="or" >
74
+        <if test="criteria.valid" >
75
+          <trim prefix="(" suffix=")" prefixOverrides="and" >
76
+            <foreach collection="criteria.criteria" item="criterion" >
77
+              <choose >
78
+                <when test="criterion.noValue" >
79
+                  and ${criterion.condition}
80
+                </when>
81
+                <when test="criterion.singleValue" >
82
+                  and ${criterion.condition} #{criterion.value}
83
+                </when>
84
+                <when test="criterion.betweenValue" >
85
+                  and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
86
+                </when>
87
+                <when test="criterion.listValue" >
88
+                  and ${criterion.condition}
89
+                  <foreach collection="criterion.value" item="listItem" open="(" close=")" separator="," >
90
+                    #{listItem}
91
+                  </foreach>
92
+                </when>
93
+              </choose>
94
+            </foreach>
95
+          </trim>
96
+        </if>
97
+      </foreach>
98
+    </where>
99
+  </sql>
100
+  <sql id="Base_Column_List" >
101
+    dataId, unitid, zdmc, zdbm, ch, hwh, chmc, hwmc, builder, cjsj, editor, modifyDate, 
102
+    updateTime, scrq, bzq, xz, deptId, sjjlpzmc, sjjlpzbh, sjjlppmc, sjjlppbh, sjjldjbh, 
103
+    sjjldjmc, sjjlspmc, sjjlspmcbh, kcsl, scpc, gg, jldw, zje, js, scnf, cd, rcrq
104
+  </sql>
105
+  
106
+  <sql id="Base_Column_List_Org" >
107
+    kc.dataId, kc.unitid, kc.zdmc, kc.zdbm, kc.ch, kc.hwh, kc.chmc, kc.hwmc, kc.builder, kc.cjsj, kc.editor, kc.modifyDate, 
108
+    kc.updateTime, kc.scrq, kc.bzq, kc.xz, kc.deptId, kc.sjjlpzmc, kc.sjjlpzbh, kc.sjjlppmc, kc.sjjlppbh, kc.sjjldjbh, 
109
+    kc.sjjldjmc, kc.sjjlspmc, kc.sjjlspmcbh, kc.kcsl, kc.scpc, kc.gg, kc.jldw, kc.zje, kc.js, kc.scnf, kc.cd, kc.rcrq
110
+  </sql>
111
+  
112
+  <select id="selectByExample" resultMap="BaseResultMap" parameterType="com.chinaitop.depot.product.model.DataKcglCplkcswDefaultExample" >
113
+    select
114
+    <if test="distinct" >
115
+      distinct
116
+    </if>
117
+    <include refid="Base_Column_List" />
118
+    from data_kcgl_cplkcsw_default
119
+    <if test="_parameter != null" >
120
+      <include refid="Example_Where_Clause" />
121
+    </if>
122
+    <if test="orderByClause != null" >
123
+      order by ${orderByClause}
124
+    </if>
125
+  </select>
126
+  <select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.String" >
127
+    select 
128
+    <include refid="Base_Column_List_Org" />,
129
+    o.org_name orgName
130
+    from data_kcgl_cplkcsw_default kc
131
+    left join org_info o on kc.unitid = o.org_id
132
+    where kc.dataId = #{dataid,jdbcType=VARCHAR}
133
+    
134
+  </select>
135
+  <delete id="deleteByPrimaryKey" parameterType="java.lang.String" >
136
+    delete from data_kcgl_cplkcsw_default
137
+    where dataId = #{dataid,jdbcType=VARCHAR}
138
+  </delete>
139
+  <delete id="deleteByExample" parameterType="com.chinaitop.depot.product.model.DataKcglCplkcswDefaultExample" >
140
+    delete from data_kcgl_cplkcsw_default
141
+    <if test="_parameter != null" >
142
+      <include refid="Example_Where_Clause" />
143
+    </if>
144
+  </delete>
145
+  <insert id="insert" parameterType="com.chinaitop.depot.product.model.DataKcglCplkcswDefault" >
146
+    insert into data_kcgl_cplkcsw_default (dataId, unitid, zdmc, 
147
+      zdbm, ch, hwh, chmc, 
148
+      hwmc, builder, cjsj, 
149
+      editor, modifyDate, updateTime, 
150
+      scrq, bzq, xz, deptId, 
151
+      sjjlpzmc, sjjlpzbh, sjjlppmc, 
152
+      sjjlppbh, sjjldjbh, sjjldjmc, 
153
+      sjjlspmc, sjjlspmcbh, kcsl, 
154
+      scpc, gg, jldw, zje, 
155
+      js, scnf, cd, rcrq
156
+      )
157
+    values (#{dataid,jdbcType=VARCHAR}, #{unitid,jdbcType=VARCHAR}, #{zdmc,jdbcType=VARCHAR}, 
158
+      #{zdbm,jdbcType=VARCHAR}, #{ch,jdbcType=VARCHAR}, #{hwh,jdbcType=VARCHAR}, #{chmc,jdbcType=VARCHAR}, 
159
+      #{hwmc,jdbcType=VARCHAR}, #{builder,jdbcType=VARCHAR}, #{cjsj,jdbcType=TIMESTAMP}, 
160
+      #{editor,jdbcType=VARCHAR}, #{modifydate,jdbcType=TIMESTAMP}, #{updatetime,jdbcType=TIMESTAMP}, 
161
+      #{scrq,jdbcType=TIMESTAMP}, #{bzq,jdbcType=VARCHAR}, #{xz,jdbcType=VARCHAR}, #{deptid,jdbcType=VARCHAR}, 
162
+      #{sjjlpzmc,jdbcType=VARCHAR}, #{sjjlpzbh,jdbcType=VARCHAR}, #{sjjlppmc,jdbcType=VARCHAR}, 
163
+      #{sjjlppbh,jdbcType=VARCHAR}, #{sjjldjbh,jdbcType=VARCHAR}, #{sjjldjmc,jdbcType=VARCHAR}, 
164
+      #{sjjlspmc,jdbcType=VARCHAR}, #{sjjlspmcbh,jdbcType=VARCHAR}, #{kcsl,jdbcType=DOUBLE}, 
165
+      #{scpc,jdbcType=VARCHAR}, #{gg,jdbcType=VARCHAR}, #{jldw,jdbcType=VARCHAR}, #{zje,jdbcType=DOUBLE}, 
166
+      #{js,jdbcType=DOUBLE}, #{scnf,jdbcType=VARCHAR}, #{cd,jdbcType=VARCHAR}, #{rcrq,jdbcType=TIMESTAMP}
167
+      )
168
+  </insert>
169
+  <insert id="insertSelective" parameterType="com.chinaitop.depot.product.model.DataKcglCplkcswDefault" >
170
+    insert into data_kcgl_cplkcsw_default
171
+    <trim prefix="(" suffix=")" suffixOverrides="," >
172
+      <if test="dataid != null" >
173
+        dataId,
174
+      </if>
175
+      <if test="unitid != null" >
176
+        unitid,
177
+      </if>
178
+      <if test="zdmc != null" >
179
+        zdmc,
180
+      </if>
181
+      <if test="zdbm != null" >
182
+        zdbm,
183
+      </if>
184
+      <if test="ch != null" >
185
+        ch,
186
+      </if>
187
+      <if test="hwh != null" >
188
+        hwh,
189
+      </if>
190
+      <if test="chmc != null" >
191
+        chmc,
192
+      </if>
193
+      <if test="hwmc != null" >
194
+        hwmc,
195
+      </if>
196
+      <if test="builder != null" >
197
+        builder,
198
+      </if>
199
+      <if test="cjsj != null" >
200
+        cjsj,
201
+      </if>
202
+      <if test="editor != null" >
203
+        editor,
204
+      </if>
205
+      <if test="modifydate != null" >
206
+        modifyDate,
207
+      </if>
208
+      <if test="updatetime != null" >
209
+        updateTime,
210
+      </if>
211
+      <if test="scrq != null" >
212
+        scrq,
213
+      </if>
214
+      <if test="bzq != null" >
215
+        bzq,
216
+      </if>
217
+      <if test="xz != null" >
218
+        xz,
219
+      </if>
220
+      <if test="deptid != null" >
221
+        deptId,
222
+      </if>
223
+      <if test="sjjlpzmc != null" >
224
+        sjjlpzmc,
225
+      </if>
226
+      <if test="sjjlpzbh != null" >
227
+        sjjlpzbh,
228
+      </if>
229
+      <if test="sjjlppmc != null" >
230
+        sjjlppmc,
231
+      </if>
232
+      <if test="sjjlppbh != null" >
233
+        sjjlppbh,
234
+      </if>
235
+      <if test="sjjldjbh != null" >
236
+        sjjldjbh,
237
+      </if>
238
+      <if test="sjjldjmc != null" >
239
+        sjjldjmc,
240
+      </if>
241
+      <if test="sjjlspmc != null" >
242
+        sjjlspmc,
243
+      </if>
244
+      <if test="sjjlspmcbh != null" >
245
+        sjjlspmcbh,
246
+      </if>
247
+      <if test="kcsl != null" >
248
+        kcsl,
249
+      </if>
250
+      <if test="scpc != null" >
251
+        scpc,
252
+      </if>
253
+      <if test="gg != null" >
254
+        gg,
255
+      </if>
256
+      <if test="jldw != null" >
257
+        jldw,
258
+      </if>
259
+      <if test="zje != null" >
260
+        zje,
261
+      </if>
262
+      <if test="js != null" >
263
+        js,
264
+      </if>
265
+      <if test="scnf != null" >
266
+        scnf,
267
+      </if>
268
+      <if test="cd != null" >
269
+        cd,
270
+      </if>
271
+      <if test="rcrq != null" >
272
+        rcrq,
273
+      </if>
274
+    </trim>
275
+    <trim prefix="values (" suffix=")" suffixOverrides="," >
276
+      <if test="dataid != null" >
277
+        #{dataid,jdbcType=VARCHAR},
278
+      </if>
279
+      <if test="unitid != null" >
280
+        #{unitid,jdbcType=VARCHAR},
281
+      </if>
282
+      <if test="zdmc != null" >
283
+        #{zdmc,jdbcType=VARCHAR},
284
+      </if>
285
+      <if test="zdbm != null" >
286
+        #{zdbm,jdbcType=VARCHAR},
287
+      </if>
288
+      <if test="ch != null" >
289
+        #{ch,jdbcType=VARCHAR},
290
+      </if>
291
+      <if test="hwh != null" >
292
+        #{hwh,jdbcType=VARCHAR},
293
+      </if>
294
+      <if test="chmc != null" >
295
+        #{chmc,jdbcType=VARCHAR},
296
+      </if>
297
+      <if test="hwmc != null" >
298
+        #{hwmc,jdbcType=VARCHAR},
299
+      </if>
300
+      <if test="builder != null" >
301
+        #{builder,jdbcType=VARCHAR},
302
+      </if>
303
+      <if test="cjsj != null" >
304
+        #{cjsj,jdbcType=TIMESTAMP},
305
+      </if>
306
+      <if test="editor != null" >
307
+        #{editor,jdbcType=VARCHAR},
308
+      </if>
309
+      <if test="modifydate != null" >
310
+        #{modifydate,jdbcType=TIMESTAMP},
311
+      </if>
312
+      <if test="updatetime != null" >
313
+        #{updatetime,jdbcType=TIMESTAMP},
314
+      </if>
315
+      <if test="scrq != null" >
316
+        #{scrq,jdbcType=TIMESTAMP},
317
+      </if>
318
+      <if test="bzq != null" >
319
+        #{bzq,jdbcType=VARCHAR},
320
+      </if>
321
+      <if test="xz != null" >
322
+        #{xz,jdbcType=VARCHAR},
323
+      </if>
324
+      <if test="deptid != null" >
325
+        #{deptid,jdbcType=VARCHAR},
326
+      </if>
327
+      <if test="sjjlpzmc != null" >
328
+        #{sjjlpzmc,jdbcType=VARCHAR},
329
+      </if>
330
+      <if test="sjjlpzbh != null" >
331
+        #{sjjlpzbh,jdbcType=VARCHAR},
332
+      </if>
333
+      <if test="sjjlppmc != null" >
334
+        #{sjjlppmc,jdbcType=VARCHAR},
335
+      </if>
336
+      <if test="sjjlppbh != null" >
337
+        #{sjjlppbh,jdbcType=VARCHAR},
338
+      </if>
339
+      <if test="sjjldjbh != null" >
340
+        #{sjjldjbh,jdbcType=VARCHAR},
341
+      </if>
342
+      <if test="sjjldjmc != null" >
343
+        #{sjjldjmc,jdbcType=VARCHAR},
344
+      </if>
345
+      <if test="sjjlspmc != null" >
346
+        #{sjjlspmc,jdbcType=VARCHAR},
347
+      </if>
348
+      <if test="sjjlspmcbh != null" >
349
+        #{sjjlspmcbh,jdbcType=VARCHAR},
350
+      </if>
351
+      <if test="kcsl != null" >
352
+        #{kcsl,jdbcType=DOUBLE},
353
+      </if>
354
+      <if test="scpc != null" >
355
+        #{scpc,jdbcType=VARCHAR},
356
+      </if>
357
+      <if test="gg != null" >
358
+        #{gg,jdbcType=VARCHAR},
359
+      </if>
360
+      <if test="jldw != null" >
361
+        #{jldw,jdbcType=VARCHAR},
362
+      </if>
363
+      <if test="zje != null" >
364
+        #{zje,jdbcType=DOUBLE},
365
+      </if>
366
+      <if test="js != null" >
367
+        #{js,jdbcType=DOUBLE},
368
+      </if>
369
+      <if test="scnf != null" >
370
+        #{scnf,jdbcType=VARCHAR},
371
+      </if>
372
+      <if test="cd != null" >
373
+        #{cd,jdbcType=VARCHAR},
374
+      </if>
375
+      <if test="rcrq != null" >
376
+        #{rcrq,jdbcType=TIMESTAMP},
377
+      </if>
378
+    </trim>
379
+  </insert>
380
+  <select id="countByExample" parameterType="com.chinaitop.depot.product.model.DataKcglCplkcswDefaultExample" resultType="java.lang.Integer" >
381
+    select count(*) from data_kcgl_cplkcsw_default
382
+    <if test="_parameter != null" >
383
+      <include refid="Example_Where_Clause" />
384
+    </if>
385
+  </select>
386
+  <update id="updateByExampleSelective" parameterType="map" >
387
+    update data_kcgl_cplkcsw_default
388
+    <set >
389
+      <if test="record.dataid != null" >
390
+        dataId = #{record.dataid,jdbcType=VARCHAR},
391
+      </if>
392
+      <if test="record.unitid != null" >
393
+        unitid = #{record.unitid,jdbcType=VARCHAR},
394
+      </if>
395
+      <if test="record.zdmc != null" >
396
+        zdmc = #{record.zdmc,jdbcType=VARCHAR},
397
+      </if>
398
+      <if test="record.zdbm != null" >
399
+        zdbm = #{record.zdbm,jdbcType=VARCHAR},
400
+      </if>
401
+      <if test="record.ch != null" >
402
+        ch = #{record.ch,jdbcType=VARCHAR},
403
+      </if>
404
+      <if test="record.hwh != null" >
405
+        hwh = #{record.hwh,jdbcType=VARCHAR},
406
+      </if>
407
+      <if test="record.chmc != null" >
408
+        chmc = #{record.chmc,jdbcType=VARCHAR},
409
+      </if>
410
+      <if test="record.hwmc != null" >
411
+        hwmc = #{record.hwmc,jdbcType=VARCHAR},
412
+      </if>
413
+      <if test="record.builder != null" >
414
+        builder = #{record.builder,jdbcType=VARCHAR},
415
+      </if>
416
+      <if test="record.cjsj != null" >
417
+        cjsj = #{record.cjsj,jdbcType=TIMESTAMP},
418
+      </if>
419
+      <if test="record.editor != null" >
420
+        editor = #{record.editor,jdbcType=VARCHAR},
421
+      </if>
422
+      <if test="record.modifydate != null" >
423
+        modifyDate = #{record.modifydate,jdbcType=TIMESTAMP},
424
+      </if>
425
+      <if test="record.updatetime != null" >
426
+        updateTime = #{record.updatetime,jdbcType=TIMESTAMP},
427
+      </if>
428
+      <if test="record.scrq != null" >
429
+        scrq = #{record.scrq,jdbcType=TIMESTAMP},
430
+      </if>
431
+      <if test="record.bzq != null" >
432
+        bzq = #{record.bzq,jdbcType=VARCHAR},
433
+      </if>
434
+      <if test="record.xz != null" >
435
+        xz = #{record.xz,jdbcType=VARCHAR},
436
+      </if>
437
+      <if test="record.deptid != null" >
438
+        deptId = #{record.deptid,jdbcType=VARCHAR},
439
+      </if>
440
+      <if test="record.sjjlpzmc != null" >
441
+        sjjlpzmc = #{record.sjjlpzmc,jdbcType=VARCHAR},
442
+      </if>
443
+      <if test="record.sjjlpzbh != null" >
444
+        sjjlpzbh = #{record.sjjlpzbh,jdbcType=VARCHAR},
445
+      </if>
446
+      <if test="record.sjjlppmc != null" >
447
+        sjjlppmc = #{record.sjjlppmc,jdbcType=VARCHAR},
448
+      </if>
449
+      <if test="record.sjjlppbh != null" >
450
+        sjjlppbh = #{record.sjjlppbh,jdbcType=VARCHAR},
451
+      </if>
452
+      <if test="record.sjjldjbh != null" >
453
+        sjjldjbh = #{record.sjjldjbh,jdbcType=VARCHAR},
454
+      </if>
455
+      <if test="record.sjjldjmc != null" >
456
+        sjjldjmc = #{record.sjjldjmc,jdbcType=VARCHAR},
457
+      </if>
458
+      <if test="record.sjjlspmc != null" >
459
+        sjjlspmc = #{record.sjjlspmc,jdbcType=VARCHAR},
460
+      </if>
461
+      <if test="record.sjjlspmcbh != null" >
462
+        sjjlspmcbh = #{record.sjjlspmcbh,jdbcType=VARCHAR},
463
+      </if>
464
+      <if test="record.kcsl != null" >
465
+        kcsl = #{record.kcsl,jdbcType=DOUBLE},
466
+      </if>
467
+      <if test="record.scpc != null" >
468
+        scpc = #{record.scpc,jdbcType=VARCHAR},
469
+      </if>
470
+      <if test="record.gg != null" >
471
+        gg = #{record.gg,jdbcType=VARCHAR},
472
+      </if>
473
+      <if test="record.jldw != null" >
474
+        jldw = #{record.jldw,jdbcType=VARCHAR},
475
+      </if>
476
+      <if test="record.zje != null" >
477
+        zje = #{record.zje,jdbcType=DOUBLE},
478
+      </if>
479
+      <if test="record.js != null" >
480
+        js = #{record.js,jdbcType=DOUBLE},
481
+      </if>
482
+      <if test="record.scnf != null" >
483
+        scnf = #{record.scnf,jdbcType=VARCHAR},
484
+      </if>
485
+      <if test="record.cd != null" >
486
+        cd = #{record.cd,jdbcType=VARCHAR},
487
+      </if>
488
+      <if test="record.rcrq != null" >
489
+        rcrq = #{record.rcrq,jdbcType=TIMESTAMP},
490
+      </if>
491
+    </set>
492
+    <if test="_parameter != null" >
493
+      <include refid="Update_By_Example_Where_Clause" />
494
+    </if>
495
+  </update>
496
+  <update id="updateByExample" parameterType="map" >
497
+    update data_kcgl_cplkcsw_default
498
+    set dataId = #{record.dataid,jdbcType=VARCHAR},
499
+      unitid = #{record.unitid,jdbcType=VARCHAR},
500
+      zdmc = #{record.zdmc,jdbcType=VARCHAR},
501
+      zdbm = #{record.zdbm,jdbcType=VARCHAR},
502
+      ch = #{record.ch,jdbcType=VARCHAR},
503
+      hwh = #{record.hwh,jdbcType=VARCHAR},
504
+      chmc = #{record.chmc,jdbcType=VARCHAR},
505
+      hwmc = #{record.hwmc,jdbcType=VARCHAR},
506
+      builder = #{record.builder,jdbcType=VARCHAR},
507
+      cjsj = #{record.cjsj,jdbcType=TIMESTAMP},
508
+      editor = #{record.editor,jdbcType=VARCHAR},
509
+      modifyDate = #{record.modifydate,jdbcType=TIMESTAMP},
510
+      updateTime = #{record.updatetime,jdbcType=TIMESTAMP},
511
+      scrq = #{record.scrq,jdbcType=TIMESTAMP},
512
+      bzq = #{record.bzq,jdbcType=VARCHAR},
513
+      xz = #{record.xz,jdbcType=VARCHAR},
514
+      deptId = #{record.deptid,jdbcType=VARCHAR},
515
+      sjjlpzmc = #{record.sjjlpzmc,jdbcType=VARCHAR},
516
+      sjjlpzbh = #{record.sjjlpzbh,jdbcType=VARCHAR},
517
+      sjjlppmc = #{record.sjjlppmc,jdbcType=VARCHAR},
518
+      sjjlppbh = #{record.sjjlppbh,jdbcType=VARCHAR},
519
+      sjjldjbh = #{record.sjjldjbh,jdbcType=VARCHAR},
520
+      sjjldjmc = #{record.sjjldjmc,jdbcType=VARCHAR},
521
+      sjjlspmc = #{record.sjjlspmc,jdbcType=VARCHAR},
522
+      sjjlspmcbh = #{record.sjjlspmcbh,jdbcType=VARCHAR},
523
+      kcsl = #{record.kcsl,jdbcType=DOUBLE},
524
+      scpc = #{record.scpc,jdbcType=VARCHAR},
525
+      gg = #{record.gg,jdbcType=VARCHAR},
526
+      jldw = #{record.jldw,jdbcType=VARCHAR},
527
+      zje = #{record.zje,jdbcType=DOUBLE},
528
+      js = #{record.js,jdbcType=DOUBLE},
529
+      scnf = #{record.scnf,jdbcType=VARCHAR},
530
+      cd = #{record.cd,jdbcType=VARCHAR},
531
+      rcrq = #{record.rcrq,jdbcType=TIMESTAMP}
532
+    <if test="_parameter != null" >
533
+      <include refid="Update_By_Example_Where_Clause" />
534
+    </if>
535
+  </update>
536
+  <update id="updateByPrimaryKeySelective" parameterType="com.chinaitop.depot.product.model.DataKcglCplkcswDefault" >
537
+    update data_kcgl_cplkcsw_default
538
+    <set >
539
+      <if test="unitid != null" >
540
+        unitid = #{unitid,jdbcType=VARCHAR},
541
+      </if>
542
+      <if test="zdmc != null" >
543
+        zdmc = #{zdmc,jdbcType=VARCHAR},
544
+      </if>
545
+      <if test="zdbm != null" >
546
+        zdbm = #{zdbm,jdbcType=VARCHAR},
547
+      </if>
548
+      <if test="ch != null" >
549
+        ch = #{ch,jdbcType=VARCHAR},
550
+      </if>
551
+      <if test="hwh != null" >
552
+        hwh = #{hwh,jdbcType=VARCHAR},
553
+      </if>
554
+      <if test="chmc != null" >
555
+        chmc = #{chmc,jdbcType=VARCHAR},
556
+      </if>
557
+      <if test="hwmc != null" >
558
+        hwmc = #{hwmc,jdbcType=VARCHAR},
559
+      </if>
560
+      <if test="builder != null" >
561
+        builder = #{builder,jdbcType=VARCHAR},
562
+      </if>
563
+      <if test="cjsj != null" >
564
+        cjsj = #{cjsj,jdbcType=TIMESTAMP},
565
+      </if>
566
+      <if test="editor != null" >
567
+        editor = #{editor,jdbcType=VARCHAR},
568
+      </if>
569
+      <if test="modifydate != null" >
570
+        modifyDate = #{modifydate,jdbcType=TIMESTAMP},
571
+      </if>
572
+      <if test="updatetime != null" >
573
+        updateTime = #{updatetime,jdbcType=TIMESTAMP},
574
+      </if>
575
+      <if test="scrq != null" >
576
+        scrq = #{scrq,jdbcType=TIMESTAMP},
577
+      </if>
578
+      <if test="bzq != null" >
579
+        bzq = #{bzq,jdbcType=VARCHAR},
580
+      </if>
581
+      <if test="xz != null" >
582
+        xz = #{xz,jdbcType=VARCHAR},
583
+      </if>
584
+      <if test="deptid != null" >
585
+        deptId = #{deptid,jdbcType=VARCHAR},
586
+      </if>
587
+      <if test="sjjlpzmc != null" >
588
+        sjjlpzmc = #{sjjlpzmc,jdbcType=VARCHAR},
589
+      </if>
590
+      <if test="sjjlpzbh != null" >
591
+        sjjlpzbh = #{sjjlpzbh,jdbcType=VARCHAR},
592
+      </if>
593
+      <if test="sjjlppmc != null" >
594
+        sjjlppmc = #{sjjlppmc,jdbcType=VARCHAR},
595
+      </if>
596
+      <if test="sjjlppbh != null" >
597
+        sjjlppbh = #{sjjlppbh,jdbcType=VARCHAR},
598
+      </if>
599
+      <if test="sjjldjbh != null" >
600
+        sjjldjbh = #{sjjldjbh,jdbcType=VARCHAR},
601
+      </if>
602
+      <if test="sjjldjmc != null" >
603
+        sjjldjmc = #{sjjldjmc,jdbcType=VARCHAR},
604
+      </if>
605
+      <if test="sjjlspmc != null" >
606
+        sjjlspmc = #{sjjlspmc,jdbcType=VARCHAR},
607
+      </if>
608
+      <if test="sjjlspmcbh != null" >
609
+        sjjlspmcbh = #{sjjlspmcbh,jdbcType=VARCHAR},
610
+      </if>
611
+      <if test="kcsl != null" >
612
+        kcsl = #{kcsl,jdbcType=DOUBLE},
613
+      </if>
614
+      <if test="scpc != null" >
615
+        scpc = #{scpc,jdbcType=VARCHAR},
616
+      </if>
617
+      <if test="gg != null" >
618
+        gg = #{gg,jdbcType=VARCHAR},
619
+      </if>
620
+      <if test="jldw != null" >
621
+        jldw = #{jldw,jdbcType=VARCHAR},
622
+      </if>
623
+      <if test="zje != null" >
624
+        zje = #{zje,jdbcType=DOUBLE},
625
+      </if>
626
+      <if test="js != null" >
627
+        js = #{js,jdbcType=DOUBLE},
628
+      </if>
629
+      <if test="scnf != null" >
630
+        scnf = #{scnf,jdbcType=VARCHAR},
631
+      </if>
632
+      <if test="cd != null" >
633
+        cd = #{cd,jdbcType=VARCHAR},
634
+      </if>
635
+      <if test="rcrq != null" >
636
+        rcrq = #{rcrq,jdbcType=TIMESTAMP},
637
+      </if>
638
+    </set>
639
+    where dataId = #{dataid,jdbcType=VARCHAR}
640
+  </update>
641
+  <update id="updateByPrimaryKey" parameterType="com.chinaitop.depot.product.model.DataKcglCplkcswDefault" >
642
+    update data_kcgl_cplkcsw_default
643
+    set unitid = #{unitid,jdbcType=VARCHAR},
644
+      zdmc = #{zdmc,jdbcType=VARCHAR},
645
+      zdbm = #{zdbm,jdbcType=VARCHAR},
646
+      ch = #{ch,jdbcType=VARCHAR},
647
+      hwh = #{hwh,jdbcType=VARCHAR},
648
+      chmc = #{chmc,jdbcType=VARCHAR},
649
+      hwmc = #{hwmc,jdbcType=VARCHAR},
650
+      builder = #{builder,jdbcType=VARCHAR},
651
+      cjsj = #{cjsj,jdbcType=TIMESTAMP},
652
+      editor = #{editor,jdbcType=VARCHAR},
653
+      modifyDate = #{modifydate,jdbcType=TIMESTAMP},
654
+      updateTime = #{updatetime,jdbcType=TIMESTAMP},
655
+      scrq = #{scrq,jdbcType=TIMESTAMP},
656
+      bzq = #{bzq,jdbcType=VARCHAR},
657
+      xz = #{xz,jdbcType=VARCHAR},
658
+      deptId = #{deptid,jdbcType=VARCHAR},
659
+      sjjlpzmc = #{sjjlpzmc,jdbcType=VARCHAR},
660
+      sjjlpzbh = #{sjjlpzbh,jdbcType=VARCHAR},
661
+      sjjlppmc = #{sjjlppmc,jdbcType=VARCHAR},
662
+      sjjlppbh = #{sjjlppbh,jdbcType=VARCHAR},
663
+      sjjldjbh = #{sjjldjbh,jdbcType=VARCHAR},
664
+      sjjldjmc = #{sjjldjmc,jdbcType=VARCHAR},
665
+      sjjlspmc = #{sjjlspmc,jdbcType=VARCHAR},
666
+      sjjlspmcbh = #{sjjlspmcbh,jdbcType=VARCHAR},
667
+      kcsl = #{kcsl,jdbcType=DOUBLE},
668
+      scpc = #{scpc,jdbcType=VARCHAR},
669
+      gg = #{gg,jdbcType=VARCHAR},
670
+      jldw = #{jldw,jdbcType=VARCHAR},
671
+      zje = #{zje,jdbcType=DOUBLE},
672
+      js = #{js,jdbcType=DOUBLE},
673
+      scnf = #{scnf,jdbcType=VARCHAR},
674
+      cd = #{cd,jdbcType=VARCHAR},
675
+      rcrq = #{rcrq,jdbcType=TIMESTAMP}
676
+    where dataId = #{dataid,jdbcType=VARCHAR}
677
+  </update>
678
+</mapper>

+ 637 - 0
src/main/java/com/chinaitop/depot/product/model/DataKcglCplkcswDefault.java

@@ -0,0 +1,637 @@
1
+package com.chinaitop.depot.product.model;
2
+
3
+import java.util.Date;
4
+
5
+import com.fasterxml.jackson.annotation.JsonFormat;
6
+
7
+public class DataKcglCplkcswDefault {
8
+    
9
+	//业务字段
10
+	private String orgName;
11
+	
12
+	
13
+	public String getOrgName() {
14
+		return orgName;
15
+	}
16
+
17
+	public void setOrgName(String orgName) {
18
+		this.orgName = orgName;
19
+	}
20
+
21
+	private String dataid;
22
+
23
+    private String unitid;
24
+
25
+    private String zdmc;
26
+
27
+    private String zdbm;
28
+
29
+    private String ch;
30
+
31
+    private String hwh;
32
+
33
+    private String chmc;
34
+
35
+    private String hwmc;
36
+
37
+    private String builder;
38
+
39
+    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
40
+    private Date cjsj;
41
+
42
+    private String editor;
43
+
44
+    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
45
+    private Date modifydate;
46
+
47
+    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
48
+    private Date updatetime;
49
+
50
+    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
51
+    private Date scrq;
52
+
53
+    private String bzq;
54
+
55
+    private String xz;
56
+
57
+    private String deptid;
58
+
59
+    private String sjjlpzmc;
60
+
61
+    private String sjjlpzbh;
62
+
63
+    private String sjjlppmc;
64
+
65
+    private String sjjlppbh;
66
+
67
+    private String sjjldjbh;
68
+
69
+    private String sjjldjmc;
70
+
71
+    private String sjjlspmc;
72
+
73
+    private String sjjlspmcbh;
74
+
75
+    private Double kcsl;
76
+
77
+    private String scpc;
78
+
79
+    private String gg;
80
+
81
+    private String jldw;
82
+
83
+    private Double zje;
84
+
85
+    private Double js;
86
+
87
+    private String scnf;
88
+
89
+    private String cd;
90
+
91
+    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
92
+    private Date rcrq;
93
+
94
+    /**
95
+     * ID
96
+     * @return dataId ID
97
+     */
98
+    public String getDataid() {
99
+        return dataid;
100
+    }
101
+
102
+    /**
103
+     * ID
104
+     * @param dataid ID
105
+     */
106
+    public void setDataid(String dataid) {
107
+        this.dataid = dataid == null ? null : dataid.trim();
108
+    }
109
+
110
+    /**
111
+     * 单位ID
112
+     * @return unitid 单位ID
113
+     */
114
+    public String getUnitid() {
115
+        return unitid;
116
+    }
117
+
118
+    /**
119
+     * 单位ID
120
+     * @param unitid 单位ID
121
+     */
122
+    public void setUnitid(String unitid) {
123
+        this.unitid = unitid == null ? null : unitid.trim();
124
+    }
125
+
126
+    /**
127
+     * 站点名称
128
+     * @return zdmc 站点名称
129
+     */
130
+    public String getZdmc() {
131
+        return zdmc;
132
+    }
133
+
134
+    /**
135
+     * 站点名称
136
+     * @param zdmc 站点名称
137
+     */
138
+    public void setZdmc(String zdmc) {
139
+        this.zdmc = zdmc == null ? null : zdmc.trim();
140
+    }
141
+
142
+    /**
143
+     * 站点编码
144
+     * @return zdbm 站点编码
145
+     */
146
+    public String getZdbm() {
147
+        return zdbm;
148
+    }
149
+
150
+    /**
151
+     * 站点编码
152
+     * @param zdbm 站点编码
153
+     */
154
+    public void setZdbm(String zdbm) {
155
+        this.zdbm = zdbm == null ? null : zdbm.trim();
156
+    }
157
+
158
+    /**
159
+     * 仓房id
160
+     * @return ch 仓房id
161
+     */
162
+    public String getCh() {
163
+        return ch;
164
+    }
165
+
166
+    /**
167
+     * 仓房id
168
+     * @param ch 仓房id
169
+     */
170
+    public void setCh(String ch) {
171
+        this.ch = ch == null ? null : ch.trim();
172
+    }
173
+
174
+    /**
175
+     * 货位id
176
+     * @return hwh 货位id
177
+     */
178
+    public String getHwh() {
179
+        return hwh;
180
+    }
181
+
182
+    /**
183
+     * 货位id
184
+     * @param hwh 货位id
185
+     */
186
+    public void setHwh(String hwh) {
187
+        this.hwh = hwh == null ? null : hwh.trim();
188
+    }
189
+
190
+    /**
191
+     * 仓房名称
192
+     * @return chmc 仓房名称
193
+     */
194
+    public String getChmc() {
195
+        return chmc;
196
+    }
197
+
198
+    /**
199
+     * 仓房名称
200
+     * @param chmc 仓房名称
201
+     */
202
+    public void setChmc(String chmc) {
203
+        this.chmc = chmc == null ? null : chmc.trim();
204
+    }
205
+
206
+    /**
207
+     * 货位名称
208
+     * @return hwmc 货位名称
209
+     */
210
+    public String getHwmc() {
211
+        return hwmc;
212
+    }
213
+
214
+    /**
215
+     * 货位名称
216
+     * @param hwmc 货位名称
217
+     */
218
+    public void setHwmc(String hwmc) {
219
+        this.hwmc = hwmc == null ? null : hwmc.trim();
220
+    }
221
+
222
+    /**
223
+     * 创建人
224
+     * @return builder 创建人
225
+     */
226
+    public String getBuilder() {
227
+        return builder;
228
+    }
229
+
230
+    /**
231
+     * 创建人
232
+     * @param builder 创建人
233
+     */
234
+    public void setBuilder(String builder) {
235
+        this.builder = builder == null ? null : builder.trim();
236
+    }
237
+
238
+    /**
239
+     * 创建时间
240
+     * @return cjsj 创建时间
241
+     */
242
+    public Date getCjsj() {
243
+        return cjsj;
244
+    }
245
+
246
+    /**
247
+     * 创建时间
248
+     * @param cjsj 创建时间
249
+     */
250
+    public void setCjsj(Date cjsj) {
251
+        this.cjsj = cjsj;
252
+    }
253
+
254
+    /**
255
+     * 编辑人
256
+     * @return editor 编辑人
257
+     */
258
+    public String getEditor() {
259
+        return editor;
260
+    }
261
+
262
+    /**
263
+     * 编辑人
264
+     * @param editor 编辑人
265
+     */
266
+    public void setEditor(String editor) {
267
+        this.editor = editor == null ? null : editor.trim();
268
+    }
269
+
270
+    /**
271
+     * 最后一次编辑时间
272
+     * @return modifyDate 最后一次编辑时间
273
+     */
274
+    public Date getModifydate() {
275
+        return modifydate;
276
+    }
277
+
278
+    /**
279
+     * 最后一次编辑时间
280
+     * @param modifydate 最后一次编辑时间
281
+     */
282
+    public void setModifydate(Date modifydate) {
283
+        this.modifydate = modifydate;
284
+    }
285
+
286
+    /**
287
+     * 上传数据时间
288
+     * @return updateTime 上传数据时间
289
+     */
290
+    public Date getUpdatetime() {
291
+        return updatetime;
292
+    }
293
+
294
+    /**
295
+     * 上传数据时间
296
+     * @param updatetime 上传数据时间
297
+     */
298
+    public void setUpdatetime(Date updatetime) {
299
+        this.updatetime = updatetime;
300
+    }
301
+
302
+    /**
303
+     * 生产日期
304
+     * @return scrq 生产日期
305
+     */
306
+    public Date getScrq() {
307
+        return scrq;
308
+    }
309
+
310
+    /**
311
+     * 生产日期
312
+     * @param scrq 生产日期
313
+     */
314
+    public void setScrq(Date scrq) {
315
+        this.scrq = scrq;
316
+    }
317
+
318
+    /**
319
+     * 保质期
320
+     * @return bzq 保质期
321
+     */
322
+    public String getBzq() {
323
+        return bzq;
324
+    }
325
+
326
+    /**
327
+     * 保质期
328
+     * @param bzq 保质期
329
+     */
330
+    public void setBzq(String bzq) {
331
+        this.bzq = bzq == null ? null : bzq.trim();
332
+    }
333
+
334
+    /**
335
+     * 性质
336
+     * @return xz 性质
337
+     */
338
+    public String getXz() {
339
+        return xz;
340
+    }
341
+
342
+    /**
343
+     * 性质
344
+     * @param xz 性质
345
+     */
346
+    public void setXz(String xz) {
347
+        this.xz = xz == null ? null : xz.trim();
348
+    }
349
+
350
+    /**
351
+     * 部门id
352
+     * @return deptId 部门id
353
+     */
354
+    public String getDeptid() {
355
+        return deptid;
356
+    }
357
+
358
+    /**
359
+     * 部门id
360
+     * @param deptid 部门id
361
+     */
362
+    public void setDeptid(String deptid) {
363
+        this.deptid = deptid == null ? null : deptid.trim();
364
+    }
365
+
366
+    /**
367
+     * 实际军粮品种名称
368
+     * @return sjjlpzmc 实际军粮品种名称
369
+     */
370
+    public String getSjjlpzmc() {
371
+        return sjjlpzmc;
372
+    }
373
+
374
+    /**
375
+     * 实际军粮品种名称
376
+     * @param sjjlpzmc 实际军粮品种名称
377
+     */
378
+    public void setSjjlpzmc(String sjjlpzmc) {
379
+        this.sjjlpzmc = sjjlpzmc == null ? null : sjjlpzmc.trim();
380
+    }
381
+
382
+    /**
383
+     * 实际军粮品种编号
384
+     * @return sjjlpzbh 实际军粮品种编号
385
+     */
386
+    public String getSjjlpzbh() {
387
+        return sjjlpzbh;
388
+    }
389
+
390
+    /**
391
+     * 实际军粮品种编号
392
+     * @param sjjlpzbh 实际军粮品种编号
393
+     */
394
+    public void setSjjlpzbh(String sjjlpzbh) {
395
+        this.sjjlpzbh = sjjlpzbh == null ? null : sjjlpzbh.trim();
396
+    }
397
+
398
+    /**
399
+     * 实际军粮品牌名称
400
+     * @return sjjlppmc 实际军粮品牌名称
401
+     */
402
+    public String getSjjlppmc() {
403
+        return sjjlppmc;
404
+    }
405
+
406
+    /**
407
+     * 实际军粮品牌名称
408
+     * @param sjjlppmc 实际军粮品牌名称
409
+     */
410
+    public void setSjjlppmc(String sjjlppmc) {
411
+        this.sjjlppmc = sjjlppmc == null ? null : sjjlppmc.trim();
412
+    }
413
+
414
+    /**
415
+     * 实际军粮品牌编号
416
+     * @return sjjlppbh 实际军粮品牌编号
417
+     */
418
+    public String getSjjlppbh() {
419
+        return sjjlppbh;
420
+    }
421
+
422
+    /**
423
+     * 实际军粮品牌编号
424
+     * @param sjjlppbh 实际军粮品牌编号
425
+     */
426
+    public void setSjjlppbh(String sjjlppbh) {
427
+        this.sjjlppbh = sjjlppbh == null ? null : sjjlppbh.trim();
428
+    }
429
+
430
+    /**
431
+     * 实际军粮等级编号
432
+     * @return sjjldjbh 实际军粮等级编号
433
+     */
434
+    public String getSjjldjbh() {
435
+        return sjjldjbh;
436
+    }
437
+
438
+    /**
439
+     * 实际军粮等级编号
440
+     * @param sjjldjbh 实际军粮等级编号
441
+     */
442
+    public void setSjjldjbh(String sjjldjbh) {
443
+        this.sjjldjbh = sjjldjbh == null ? null : sjjldjbh.trim();
444
+    }
445
+
446
+    /**
447
+     * 实际军粮等级名称
448
+     * @return sjjldjmc 实际军粮等级名称
449
+     */
450
+    public String getSjjldjmc() {
451
+        return sjjldjmc;
452
+    }
453
+
454
+    /**
455
+     * 实际军粮等级名称
456
+     * @param sjjldjmc 实际军粮等级名称
457
+     */
458
+    public void setSjjldjmc(String sjjldjmc) {
459
+        this.sjjldjmc = sjjldjmc == null ? null : sjjldjmc.trim();
460
+    }
461
+
462
+    /**
463
+     * 实际军粮商品名称
464
+     * @return sjjlspmc 实际军粮商品名称
465
+     */
466
+    public String getSjjlspmc() {
467
+        return sjjlspmc;
468
+    }
469
+
470
+    /**
471
+     * 实际军粮商品名称
472
+     * @param sjjlspmc 实际军粮商品名称
473
+     */
474
+    public void setSjjlspmc(String sjjlspmc) {
475
+        this.sjjlspmc = sjjlspmc == null ? null : sjjlspmc.trim();
476
+    }
477
+
478
+    /**
479
+     * 实际军粮商品名称编号
480
+     * @return sjjlspmcbh 实际军粮商品名称编号
481
+     */
482
+    public String getSjjlspmcbh() {
483
+        return sjjlspmcbh;
484
+    }
485
+
486
+    /**
487
+     * 实际军粮商品名称编号
488
+     * @param sjjlspmcbh 实际军粮商品名称编号
489
+     */
490
+    public void setSjjlspmcbh(String sjjlspmcbh) {
491
+        this.sjjlspmcbh = sjjlspmcbh == null ? null : sjjlspmcbh.trim();
492
+    }
493
+
494
+    /**
495
+     * 库存数量(件数*规格)
496
+     * @return kcsl 库存数量(件数*规格)
497
+     */
498
+    public Double getKcsl() {
499
+        return kcsl;
500
+    }
501
+
502
+    /**
503
+     * 库存数量(件数*规格)
504
+     * @param kcsl 库存数量(件数*规格)
505
+     */
506
+    public void setKcsl(Double kcsl) {
507
+        this.kcsl = kcsl;
508
+    }
509
+
510
+    /**
511
+     * 生产批次
512
+     * @return scpc 生产批次
513
+     */
514
+    public String getScpc() {
515
+        return scpc;
516
+    }
517
+
518
+    /**
519
+     * 生产批次
520
+     * @param scpc 生产批次
521
+     */
522
+    public void setScpc(String scpc) {
523
+        this.scpc = scpc == null ? null : scpc.trim();
524
+    }
525
+
526
+    /**
527
+     * 规格
528
+     * @return gg 规格
529
+     */
530
+    public String getGg() {
531
+        return gg;
532
+    }
533
+
534
+    /**
535
+     * 规格
536
+     * @param gg 规格
537
+     */
538
+    public void setGg(String gg) {
539
+        this.gg = gg == null ? null : gg.trim();
540
+    }
541
+
542
+    /**
543
+     * 计量单位
544
+     * @return jldw 计量单位
545
+     */
546
+    public String getJldw() {
547
+        return jldw;
548
+    }
549
+
550
+    /**
551
+     * 计量单位
552
+     * @param jldw 计量单位
553
+     */
554
+    public void setJldw(String jldw) {
555
+        this.jldw = jldw == null ? null : jldw.trim();
556
+    }
557
+
558
+    /**
559
+     * 总金额
560
+     * @return zje 总金额
561
+     */
562
+    public Double getZje() {
563
+        return zje;
564
+    }
565
+
566
+    /**
567
+     * 总金额
568
+     * @param zje 总金额
569
+     */
570
+    public void setZje(Double zje) {
571
+        this.zje = zje;
572
+    }
573
+
574
+    /**
575
+     * 件数
576
+     * @return js 件数
577
+     */
578
+    public Double getJs() {
579
+        return js;
580
+    }
581
+
582
+    /**
583
+     * 件数
584
+     * @param js 件数
585
+     */
586
+    public void setJs(Double js) {
587
+        this.js = js;
588
+    }
589
+
590
+    /**
591
+     * 生产年份
592
+     * @return scnf 生产年份
593
+     */
594
+    public String getScnf() {
595
+        return scnf;
596
+    }
597
+
598
+    /**
599
+     * 生产年份
600
+     * @param scnf 生产年份
601
+     */
602
+    public void setScnf(String scnf) {
603
+        this.scnf = scnf == null ? null : scnf.trim();
604
+    }
605
+
606
+    /**
607
+     * 产地
608
+     * @return cd 产地
609
+     */
610
+    public String getCd() {
611
+        return cd;
612
+    }
613
+
614
+    /**
615
+     * 产地
616
+     * @param cd 产地
617
+     */
618
+    public void setCd(String cd) {
619
+        this.cd = cd == null ? null : cd.trim();
620
+    }
621
+
622
+    /**
623
+     * 入仓日期
624
+     * @return rcrq 入仓日期
625
+     */
626
+    public Date getRcrq() {
627
+        return rcrq;
628
+    }
629
+
630
+    /**
631
+     * 入仓日期
632
+     * @param rcrq 入仓日期
633
+     */
634
+    public void setRcrq(Date rcrq) {
635
+        this.rcrq = rcrq;
636
+    }
637
+}

Файловите разлики са ограничени, защото са твърде много
+ 2519 - 0
src/main/java/com/chinaitop/depot/product/model/DataKcglCplkcswDefaultExample.java


+ 19 - 0
src/main/java/com/chinaitop/depot/product/service/DataKcglCplkcswDefaultService.java

@@ -0,0 +1,19 @@
1
+package com.chinaitop.depot.product.service;
2
+
3
+import java.util.List;
4
+
5
+import com.chinaitop.depot.product.model.DataKcglCplkcswDefault;
6
+
7
+/**
8
+ * 成品粮库存实物
9
+ *
10
+ */
11
+public interface DataKcglCplkcswDefaultService {
12
+
13
+	List<DataKcglCplkcswDefault> getlist(Integer pageNum, Integer pageSize, String houseName, String wareName,
14
+			String sjjlspmc, Integer orgId);
15
+
16
+	DataKcglCplkcswDefault getById(String id);
17
+
18
+	
19
+}

+ 59 - 0
src/main/java/com/chinaitop/depot/product/service/impl/DataKcglCplkcswDefaultServiceImpl.java

@@ -0,0 +1,59 @@
1
+package com.chinaitop.depot.product.service.impl;
2
+
3
+import java.util.List;
4
+
5
+import javax.annotation.Resource;
6
+
7
+import org.springframework.stereotype.Service;
8
+
9
+import com.chinaitop.depot.product.mapper.DataKcglCplkcswDefaultMapper;
10
+import com.chinaitop.depot.product.model.DataKcglCplkcswDefault;
11
+import com.chinaitop.depot.product.model.DataKcglCplkcswDefaultExample;
12
+import com.chinaitop.depot.product.service.DataKcglCplkcswDefaultService;
13
+import com.chinaitop.depot.utils.ParameterUtil;
14
+import com.github.pagehelper.PageHelper;
15
+
16
+@Service
17
+public class DataKcglCplkcswDefaultServiceImpl implements DataKcglCplkcswDefaultService {
18
+
19
+	@Resource
20
+	private DataKcglCplkcswDefaultMapper dataKcglCplkcswDefaultMapper;
21
+
22
+	@Override
23
+	public List<DataKcglCplkcswDefault> getlist(Integer pageNum, Integer pageSize, String houseName, String wareName,
24
+			String sjjlspmc, Integer orgId) {
25
+		
26
+		DataKcglCplkcswDefaultExample dataKcglCplkcswDefaultExample = new DataKcglCplkcswDefaultExample();
27
+    	DataKcglCplkcswDefaultExample.Criteria criteria = dataKcglCplkcswDefaultExample.createCriteria();
28
+        
29
+        if(ParameterUtil.isnotnull(houseName)){
30
+           criteria.andChmcLike(houseName);
31
+        }
32
+        if(ParameterUtil.isnotnull(wareName)){
33
+            criteria.andHwmcLike(wareName);
34
+         }
35
+        if(ParameterUtil.isnotnull(sjjlspmc)){
36
+            criteria.andSjjlspmcLike(sjjlspmc);
37
+        }
38
+        if(ParameterUtil.isnotnull(orgId)){
39
+            criteria.andUnitidEqualTo(orgId+"");
40
+        }
41
+        
42
+        if (pageNum!=null && pageSize!=null) {
43
+            PageHelper.startPage(pageNum, pageSize);
44
+        }
45
+
46
+        dataKcglCplkcswDefaultExample.setOrderByClause("ch asc");
47
+        
48
+        List<DataKcglCplkcswDefault> list = dataKcglCplkcswDefaultMapper.selectByExample(dataKcglCplkcswDefaultExample);
49
+        
50
+		return list;
51
+	}
52
+
53
+	@Override
54
+	public DataKcglCplkcswDefault getById(String id) {
55
+		// TODO Auto-generated method stub
56
+		return dataKcglCplkcswDefaultMapper.selectByPrimaryKey(id);
57
+	}
58
+
59
+}