浏览代码

成品粮 实物库存

gaodd 1 年之前
父节点
当前提交
66ca18bf73

+ 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>

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

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

文件差异内容过多而无法显示
+ 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
+}