Bladeren bron

根据天津最新bug修改

lvzhikai 5 jaren geleden
bovenliggende
commit
78d8eb6f9c

+ 0 - 649
src/main/java/com/chinaitop/depot/agent/quality/controller/AgentQualityController.java

@@ -1,649 +0,0 @@
1
-package com.chinaitop.depot.agent.quality.controller;
2
-
3
-
4
-import com.chinaitop.depot.agent.basic.service.agentService;
5
-import com.chinaitop.depot.agent.quality.model.BusinessAgentQuality;
6
-import com.chinaitop.depot.agent.quality.model.BusinessAgentQualityExample;
7
-import com.chinaitop.depot.agent.quality.model.BusinessAgentQualitySon;
8
-import com.chinaitop.depot.agent.quality.model.BusinessAgentQualitySonExample;
9
-import com.chinaitop.depot.agent.quality.service.AgentQualityService;
10
-import com.chinaitop.depot.agent.quality.service.AgentQualitySonService;
11
-import com.chinaitop.depot.utils.ImportServiceImpl;
12
-import com.chinaitop.utils.ParameterUtil;
13
-import com.fasterxml.jackson.core.type.TypeReference;
14
-import com.fasterxml.jackson.databind.ObjectMapper;
15
-import com.github.pagehelper.PageHelper;
16
-import com.github.pagehelper.PageInfo;
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
-import org.apache.commons.lang3.StringUtils;
22
-import org.springframework.http.MediaType;
23
-import org.springframework.web.bind.annotation.RequestMapping;
24
-import org.springframework.web.bind.annotation.RequestMethod;
25
-import org.springframework.web.bind.annotation.RestController;
26
-import org.springframework.web.multipart.MultipartFile;
27
-
28
-import javax.annotation.Resource;
29
-import javax.servlet.http.HttpServletRequest;
30
-import java.io.IOException;
31
-import java.util.ArrayList;
32
-import java.util.HashMap;
33
-import java.util.List;
34
-import java.util.Map;
35
-
36
-/**
37
- * Created by product on 2017/10/11.
38
- */
39
-@RestController
40
-@RequestMapping(value = {"/agentQuality"})
41
-@Api(value= "AgentQualityController", description = "质量管理类")
42
-public class AgentQualityController {
43
-    @Resource
44
-    private AgentQualityService agentQualityService;
45
-
46
-    @Resource
47
-    private AgentQualitySonService agentQualitySonService;
48
-
49
-    @Resource
50
-    private ImportServiceImpl importService;
51
-
52
-    @Resource
53
-    private agentService agentService;
54
-
55
-    /**
56
-     * 封仓管理中查询出未封仓的质量管理信息,已经封仓的不要展示
57
-     * 分页获取
58
-     */
59
-    @RequestMapping(value = "/getList",produces = MediaType.APPLICATION_JSON_VALUE,method = RequestMethod.GET)
60
-    @ApiOperation(value="查询质量管理列表", notes = "查询质量管理信息列表,支持分页")
61
-    @ApiImplicitParams({
62
-            @ApiImplicitParam(name = "pageNum", value = "页码", paramType = "query"),
63
-            @ApiImplicitParam(name = "pageSize", value = "每页条数", paramType = "query"),
64
-            @ApiImplicitParam(name = "checktype", value = "检查的类型", paramType = "query"),
65
-            @ApiImplicitParam(name = "checkResult", value = "检查结果", paramType = "query"),
66
-            @ApiImplicitParam(name = "orgId", value = "粮库id", paramType = "query"),
67
-            @ApiImplicitParam(name = "agentId", value = "代储点名称", paramType = "query"),
68
-            @ApiImplicitParam(name = "agentDepotId", value = "粮库名称", paramType = "query"),
69
-            @ApiImplicitParam(name = "storehouseId", value = "仓房名称", paramType = "query"),
70
-            @ApiImplicitParam(name = "warehouseId", value = "货位名称", paramType = "query"),
71
-    })
72
-    public PageInfo<BusinessAgentQuality> listPage(Integer pageNum, Integer pageSize,String checktype, String checkResult, Integer orgId,
73
-    Integer agentId,Integer agentDepotId,Integer storehouseId,Integer warehouseId) {
74
-    	BusinessAgentQuality qualityCheck = new BusinessAgentQuality();
75
-        //根据后台传来的参数进行查找相应类型的类别0:初检 1:验收 2:质量普查 3:出库
76
-        if (StringUtils.isNotBlank(checktype)){
77
-            qualityCheck.setType(checktype);
78
-        }
79
-        // 粮库id.
80
-        if (ParameterUtil.isnotnull(orgId)) {
81
-            qualityCheck.setOrgId(orgId);
82
-        }
83
-        // 代储点名称.
84
-        if (ParameterUtil.isnotnull(agentId)) {
85
-            qualityCheck.setAgentId(agentId);
86
-        }
87
-        // 粮库名称.
88
-        if (ParameterUtil.isnotnull(agentDepotId)) {
89
-            qualityCheck.setAgentDepotId(agentDepotId);
90
-        }
91
-        // 仓房id.
92
-        if (ParameterUtil.isnotnull(storehouseId)) {
93
-            qualityCheck.setStorehouseId(storehouseId);
94
-
95
-        }
96
-        // 货位id.
97
-        if (ParameterUtil.isnotnull(warehouseId)) {
98
-            qualityCheck.setWarehouseId(warehouseId);
99
-        }
100
-
101
-        //检验结果(0:合格 , 1 :不合格)
102
-
103
-        if (StringUtils.isNotBlank(checkResult)) {
104
-            qualityCheck.setCheckResult(checkResult);
105
-        }
106
-        qualityCheck.setHistoryStatus(0);//0:最新数据  1:历史数据
107
-        //查询出未封仓的质量管理信息 封仓状态:0:未封仓,1:已封仓
108
-        qualityCheck.setSealStatus("0");
109
-        if (pageNum!=null && pageSize!=null) {
110
-            PageHelper.startPage(pageNum, pageSize);
111
-        }
112
-        List<BusinessAgentQuality> list = agentQualityService.queryByQualitycheck(qualityCheck);
113
-
114
-        PageInfo<BusinessAgentQuality> pageInfo = new PageInfo<BusinessAgentQuality>(list);
115
-        return pageInfo;
116
-    }
117
-    
118
-    /**
119
-     * 获取仓房或者货位(通过分组查询最新的满足条件的仓房或者货位).
120
-     * @param qualitycheck
121
-     * @return
122
-     */
123
-    @RequestMapping(value = "/getHouseOrWareList",produces = MediaType.APPLICATION_JSON_VALUE, method = RequestMethod.GET)
124
-    @ApiOperation(value="获取仓房或者货位(通过分组查询最新的满足条件的仓房或者货位)", notes = "获取仓房或者货位(通过分组查询最新的满足条件的仓房或者货位)")
125
-    @ApiImplicitParams({
126
-            @ApiImplicitParam(name = "qualitycheck", value = "质量管理对象", paramType = "query")
127
-    })
128
-    public List<BusinessAgentQuality> getHouseIdList(BusinessAgentQuality qualitycheck) {
129
-        List<BusinessAgentQuality> list = agentQualityService.getHouseOrWareList(qualitycheck);
130
-        return list;
131
-    }
132
-    
133
-    /**
134
-     * 获取第三方检验的质量标准字符串(手动拼写)
135
-     * @param id
136
-     * @return
137
-     */
138
-    @RequestMapping(value = "/getQualityStandardStr",produces = MediaType.APPLICATION_JSON_VALUE, method = RequestMethod.GET)
139
-    @ApiOperation(value="获取第三方检验的质量标准字符串(手动拼写)", notes = "获取第三方检验的质量标准字符串(手动拼写)")
140
-    @ApiImplicitParams({
141
-            @ApiImplicitParam(name = "id", value = "id", paramType = "form"),
142
-    })
143
-    public Map<String, Object> getQualityStandardStr(Integer id) {
144
-        Map<String, Object> modelMap = new HashMap<String, Object>();
145
-        if (id == null) {
146
-            modelMap.put("status", "error");
147
-            modelMap.put("msg", "id为空,查询质量标准失败!");
148
-        } else {
149
-            String qualityStandardStr = agentQualityService.getQualityStandardStr(id);
150
-            modelMap.put("status", "success");
151
-            modelMap.put("qualityStandard", qualityStandardStr);
152
-        }
153
-
154
-        return modelMap;
155
-    }
156
-    
157
-    
158
-
159
-    /**
160
-     * 新增和修改的数据进行保存
161
-     * @param qualitycheckJson
162
-     * @return
163
-     */
164
-    @RequestMapping(value="/save", produces = MediaType.APPLICATION_JSON_VALUE, method = RequestMethod.POST)
165
-    @ApiOperation(value="新增/修改数据", notes = "新增/修改数据")
166
-    @ApiImplicitParams({
167
-            @ApiImplicitParam(name = "qualitycheckJson", value = "质量基础信息JSON数据对象", paramType = "form"),
168
-            @ApiImplicitParam(name = "qualityOneJson", value = "质量检测信息JSON数据对象", paramType = "form")
169
-    })
170
-    public Map<String, Object> save(String qualitycheckJson,String qualityOneJson) {
171
-        Map<String, Object> modelMap = new HashMap<>();
172
-        // JSON字符串转对象
173
-        ObjectMapper mapper = new ObjectMapper();
174
-        BusinessAgentQuality qualitycheck = null;
175
-        List<BusinessAgentQualitySon> qualitycheckone = null;
176
-        try {
177
-            qualitycheck = (BusinessAgentQuality)mapper.readValue(qualitycheckJson, BusinessAgentQuality.class);
178
-            //默认0:未封仓   1:已封仓
179
-            qualitycheck.setSealStatus("0");
180
-            qualitycheck.setHistoryStatus(0);//0:最新数据   1:历史数据
181
-            Integer qualityCheckId = agentQualityService.save(qualitycheck);
182
-            //关联保存日常检查和第三方检测的检测信息 如果为空则是对初检 验收等操作
183
-            if(StringUtils.isNoneBlank(qualityOneJson)){
184
-                qualitycheckone = mapper.readValue(qualityOneJson,  new TypeReference<List<BusinessAgentQualitySon>>(){});
185
-                for (int i = 0; i < qualitycheckone.size(); i++) {
186
-                    qualitycheckone.get(i).setQualitycheckId(qualityCheckId);
187
-                    agentQualityService.saveOne(qualitycheckone.get(i));
188
-                }
189
-            }
190
-            modelMap.put("status", "success");
191
-        } catch (IOException e) {
192
-            modelMap.put("status", "error");
193
-            e.printStackTrace();
194
-        }
195
-        return modelMap;
196
-    }
197
-
198
-    /**
199
-     * 根据id加载对应数据
200
-     * @param id
201
-     * @return
202
-     */
203
-    @RequestMapping(value = "/loadDataById" ,produces = MediaType.APPLICATION_JSON_VALUE, method = RequestMethod.GET)
204
-    @ApiOperation(value="根据id加载质量检查数据", notes = "根据id加载质量检查数据")
205
-    @ApiImplicitParams({
206
-            @ApiImplicitParam(name = "id", value = "id", paramType = "query"),
207
-    })
208
-    public BusinessAgentQuality loadDataById(Integer id){
209
-        BusinessAgentQuality qualitycheck=agentQualityService.loadDataById(id);
210
-        return qualitycheck;
211
-    }
212
-
213
-    /**
214
-     * 根据主键id移除数据
215
-     * @param id
216
-     * @return
217
-     */
218
-    @RequestMapping(value="/remove", produces = MediaType.APPLICATION_JSON_VALUE, method = RequestMethod.POST)
219
-    @ApiOperation(value="按ID删除质量检查信息", notes = "按ID删除质量检查信息")
220
-    @ApiImplicitParams({
221
-            @ApiImplicitParam(name = "id", value = "数据ID", paramType = "form")
222
-    })
223
-    public Map<String, Object> remove(Integer id){
224
-        Map<String,Object> retMap = new HashMap<String,Object>();
225
-        agentQualityService.remove(id);
226
-
227
-        //删除管理的数据
228
-        BusinessAgentQualitySonExample qualitycheckSonExample = new BusinessAgentQualitySonExample();
229
-        BusinessAgentQualitySonExample.Criteria criteria = qualitycheckSonExample.createCriteria();
230
-        if(id != null){
231
-            criteria.andQualitycheckIdEqualTo(id);
232
-        }
233
-        agentQualitySonService.removeSon(qualitycheckSonExample);
234
-        retMap.put("msg","success");
235
-        return retMap;
236
-    }
237
-
238
-    /**
239
-     * 封仓管理中查询出所有仓已经封仓或者未封仓的质量管理信息
240
-     * @param houseId
241
-     * @param warehouseId
242
-     * @return
243
-     */
244
-    @RequestMapping(value="/getFoodsealList",produces = MediaType.APPLICATION_JSON_VALUE,method = RequestMethod.GET)
245
-    @ApiOperation(value="封仓管理列表中查询出封仓或未封仓的质量管理信息", notes = "封仓管理列表中查询出封仓或未封仓的质量管理信息")
246
-    @ApiImplicitParams({
247
-            @ApiImplicitParam(name = "pageNum", value = "页码", paramType = "query"),
248
-            @ApiImplicitParam(name = "pageSize", value = "每页条数", paramType = "query"),
249
-            @ApiImplicitParam(name = "houseId", value = "仓房ID", paramType = "query"),
250
-            @ApiImplicitParam(name = "warehouseId", value = "货位ID", paramType = "query")
251
-    })
252
-    public PageInfo<BusinessAgentQuality> listPage(Integer pageNum, Integer pageSize ,
253
-                                                  String houseId, String warehouseId) {
254
-    	BusinessAgentQuality qualityCheck = new BusinessAgentQuality();
255
-        if(StringUtils.isNoneBlank(houseId)){
256
-            qualityCheck.setStorehouseId(Integer.valueOf(houseId));
257
-
258
-        }
259
-        if(StringUtils.isNoneBlank(warehouseId)){
260
-            qualityCheck.setWarehouseId(Integer.valueOf(warehouseId));
261
-        }
262
-        qualityCheck.setType("1");///查找验收质量管理的信息
263
-
264
-        qualityCheck.setHistoryStatus(0);//0:最新数据  1:历史数据
265
-
266
-        if (pageNum!=null && pageSize!=null) {
267
-            PageHelper.startPage(pageNum, pageSize);
268
-        }
269
-
270
-        List<BusinessAgentQuality> list = agentQualityService.queryByQualitycheck(qualityCheck);
271
-
272
-        PageInfo<BusinessAgentQuality> pageInfo = new PageInfo<BusinessAgentQuality>(list);
273
-        return pageInfo;
274
-    }
275
-
276
-    /**
277
-     * 根据仓号,货位号以及类型查找对应质量检查信息
278
-     * @param houseId warehouseId
279
-     * @return
280
-     */
281
-    @RequestMapping(value = "/findByStoreWarehouse", produces = MediaType.APPLICATION_JSON_VALUE, method = RequestMethod.GET)
282
-    @ApiOperation(value="根据仓号,货位号以及类型查找对应质量检查信息", notes = "根据仓号,货位号以及类型查找对应质量检查信息")
283
-    @ApiImplicitParams({
284
-            @ApiImplicitParam(name = "houseId", value = "仓房ID", paramType = "query"),
285
-            @ApiImplicitParam(name = "warehouseId", value = "货位ID", paramType = "query"),
286
-            @ApiImplicitParam(name = "type", value = "检查类型", paramType = "query"),
287
-            @ApiImplicitParam(name = "sealStatus", value = "封仓类型", paramType = "query")
288
-    })
289
-    public BusinessAgentQuality findByStoreWarehouse(Integer houseId, Integer warehouseId, String type,String sealStatus) {
290
-    	BusinessAgentQuality qualityCheckExample = new BusinessAgentQuality();
291
-        BusinessAgentQuality qualitycheck = null;
292
-        try {
293
-            if (houseId != null && !"".equals(houseId)) {
294
-                qualityCheckExample.setStorehouseId(houseId);
295
-
296
-            }
297
-            if(warehouseId != null && !"".equals(warehouseId)){
298
-                qualityCheckExample.setWarehouseId(warehouseId);
299
-            }
300
-            if(StringUtils.isNotBlank(type)){
301
-                qualityCheckExample.setType(type);//传入查找的质量类型
302
-            }
303
-
304
-            if(StringUtils.isNotBlank(sealStatus)){
305
-                qualityCheckExample.setSealStatus(sealStatus);//传入查找的质量类型
306
-            }
307
-            //0:最新数据  1:历史数据
308
-            qualityCheckExample.setHistoryStatus(0);
309
-            List<BusinessAgentQuality> list = agentQualityService.queryByQualitycheck(qualityCheckExample);
310
-            if (null != list && list.size() > 0) {
311
-            	qualitycheck = list.get(0);
312
-            }
313
-
314
-        } catch (Exception e) {
315
-            e.printStackTrace();
316
-        }
317
-        return qualitycheck;
318
-    }
319
-
320
-
321
-    /**
322
-     * 查询第三方检查
323
-     * @param  foodbasicinfoId
324
-     * @return getThirdCheckList
325
-     */
326
-    @RequestMapping(value="/getThirdCheckList",produces = MediaType.APPLICATION_JSON_VALUE, method = RequestMethod.GET)
327
-    @ApiOperation(value="查询获得第三方检查列表", notes = "查询获得第三方检查列表,支持分页")
328
-    @ApiImplicitParams({
329
-            @ApiImplicitParam(name = "pageNum", value = "页码", paramType = "query"),
330
-            @ApiImplicitParam(name = "pageSize", value = "每页条数", paramType = "query"),
331
-            @ApiImplicitParam(name = "houseId", value = "仓房id", paramType = "query"),
332
-            @ApiImplicitParam(name = "warehouseId", value = "货位Id", paramType = "query"),
333
-            @ApiImplicitParam(name = "foodbasicinfoId", value = "对应粮情专卡Id", paramType = "query"),
334
-
335
-    })
336
-    public PageInfo<BusinessAgentQuality> getThirdCheckList(Integer pageNum, Integer pageSize , Integer houseId, Integer warehouseId,
337
-                                                           Integer foodbasicinfoId) {
338
-        BusinessAgentQuality qualityCheck = new BusinessAgentQuality();
339
-
340
-        if(foodbasicinfoId != null){
341
-            qualityCheck.setId(foodbasicinfoId);
342
-        }
343
-        if(houseId != null){
344
-            qualityCheck.setStorehouseId(houseId);
345
-        }
346
-        if(warehouseId != null){
347
-            qualityCheck.setWarehouseId(warehouseId);
348
-        }
349
-
350
-        if (pageNum!=null && pageSize!=null) {
351
-            PageHelper.startPage(pageNum, pageSize);
352
-        }
353
-
354
-        List<BusinessAgentQuality> list = agentQualityService.getThirdCheckList(qualityCheck);
355
-
356
-        PageInfo<BusinessAgentQuality> pageInfo = new PageInfo<BusinessAgentQuality>(list);
357
-        return pageInfo;
358
-    }
359
-
360
-
361
-    /**
362
-     * 获取第三方检查的不宜存的可用数据
363
-     * @return
364
-     */
365
-    @RequestMapping(value = "/getStoreQualityList",produces = MediaType.APPLICATION_JSON_VALUE, method = RequestMethod.GET )
366
-    @ApiOperation(value="获取第三方检查的不宜存的可用数据", notes = "获取第三方检查的不宜存的可用数据")
367
-    public List<Map<String,Object>> getStoreQualityList(){
368
-        List<Map<String,Object>> listQuality=agentQualityService.getStoreQualityList();
369
-        return listQuality;
370
-    }
371
-
372
-    /**
373
-     * 获取第三方检查的不宜存的可用数据
374
-     * @return
375
-     */
376
-    @RequestMapping(value = "/getTrdStoreQualityList",produces = MediaType.APPLICATION_JSON_VALUE, method = RequestMethod.GET )
377
-    @ApiOperation(value="获取第三方检查的不宜存的可用数据(集合格式)", notes = "获取第三方检查的不宜存的可用数据(集合格式)")
378
-    public List<BusinessAgentQuality> getTrdStoreQualityList(){
379
-        List<BusinessAgentQuality> listQuality=agentQualityService.getTrdStoreQualityList();
380
-        
381
-        return listQuality;
382
-    }
383
-    
384
-    @RequestMapping(value = "/setQualityCheckByHistoryStatus", produces = MediaType.APPLICATION_JSON_VALUE, method = RequestMethod.POST)
385
-    @ApiOperation(value = "根据仓房和货位名称更新当前质量管理为历史记录", notes = "根据仓房和货位名称更新当前质量管理为历史记录")
386
-    @ApiImplicitParams({
387
-            @ApiImplicitParam(name = "houseId", value = "仓房id", paramType = "query"),
388
-            @ApiImplicitParam(name = "warehouseId", value = "货位Id", paramType = "query"),
389
-    })
390
-    public Map<String, Object> setQualityCheckByHistoryStatus(Integer houseId, Integer warehouseId) {
391
-        Map<String, Object> modelMap = new HashMap<>();
392
-        if (ParameterUtil.isnotnull(houseId) &&ParameterUtil.isnotnull(warehouseId) ) {
393
-            agentQualityService.setQualityCheckByHistoryStatus(houseId,warehouseId);
394
-        }
395
-        modelMap.put("status", "success");
396
-        return modelMap;
397
-    }
398
-
399
-    /**
400
-     * 根据id查询质检信息
401
-     * @param ZZid
402
-     * @return
403
-     */
404
-    @RequestMapping(value="/getDataByZJId", produces = MediaType.APPLICATION_JSON_VALUE, method=RequestMethod.GET)
405
-    @ApiOperation(value = "根据id查询质检信息", notes = "根据id查询质检信息,计划验收模块用到。")
406
-    @ApiImplicitParams({
407
-            @ApiImplicitParam(name = "ZZid", value = "质检id", paramType = "query")
408
-    })
409
-    public Map<String,Object> getDataByZJId(Integer ZZid) {
410
-        Map<String,Object> map = new HashMap<String, Object>();
411
-        Map<String,Object> paramMap = new HashMap<String, Object>();
412
-        paramMap.put("id", ZZid);
413
-        List<BusinessAgentQuality> list = agentQualityService.getDataByZJId(paramMap);
414
-        map.put("qualitycheck", list);
415
-        return map;
416
-    }
417
-    
418
-    
419
-    
420
-    /**
421
-     * 根据仓房和货位获取第三方检查的数据
422
-     * 分页获取
423
-     */
424
-    @RequestMapping(value = "/getListByhouseId",produces = MediaType.APPLICATION_JSON_VALUE,method = RequestMethod.GET)
425
-    @ApiOperation(value="根据仓房和货位获取第三方检查的数据", notes = "支持分页")
426
-    @ApiImplicitParams({
427
-            @ApiImplicitParam(name = "pageNum", value = "页码", paramType = "query"),
428
-            @ApiImplicitParam(name = "pageSize", value = "每页条数", paramType = "query"),
429
-            @ApiImplicitParam(name = "houseIds", value = "仓房id(数组)", paramType = "query"),
430
-            @ApiImplicitParam(name = "warehouseIds", value = "货位id(数组)", paramType = "query")
431
-    })
432
-    public PageInfo<BusinessAgentQuality> getListByhouseId(Integer pageNum, Integer pageSize,
433
-            Integer[] houseIds, Integer[] warehouseIds , String checktype) {
434
-    	BusinessAgentQuality qualityCheck = new BusinessAgentQuality();
435
-    	List<List<BusinessAgentQuality>> list = new ArrayList<List<BusinessAgentQuality>>();
436
-        //根据后台传来的参数进行查找相应类型的类别0:初检 1:验收 2:质量普查 3:出库
437
-        if (StringUtils.isNotBlank(checktype)){
438
-            qualityCheck.setType(checktype);
439
-        }
440
-        
441
-        qualityCheck.setHistoryStatus(0);//0:最新数据  1:历史数据
442
-        //查询出未封仓的质量管理信息 封仓状态:0:未封仓,1:已封仓
443
-        qualityCheck.setSealStatus("0");
444
-        
445
-        List<BusinessAgentQuality> qualityCheckList =null;
446
-        for (int i = 0; i < houseIds.length; i++) {
447
-        	for (int j = 0; j < warehouseIds.length; j++) {
448
-            	if(i==j){
449
-            		Integer houseId = houseIds[i];
450
-            		Integer warehouseId = warehouseIds[j];
451
-            		 	//仓房id.
452
-            	        if (qualityCheck.getStorehouseId() == null) {
453
-            	            qualityCheck.setStorehouseId(houseId);
454
-
455
-            	        }
456
-            	        // 货位id.
457
-            	        if (qualityCheck.getWarehouseId() == null) {
458
-            	            qualityCheck.setWarehouseId(warehouseId);
459
-            	        }
460
-            	        if (pageNum!=null && pageSize!=null) {
461
-            	            PageHelper.startPage(pageNum, pageSize);
462
-            	        }
463
-            	        
464
-            	        qualityCheckList = agentQualityService.queryByQualitycheck(qualityCheck);
465
-            	}
466
-    		}
467
-		}
468
-        
469
-       
470
-       
471
-        PageInfo<BusinessAgentQuality> pageInfo = new PageInfo<BusinessAgentQuality>(qualityCheckList);
472
-        return pageInfo;
473
-    }
474
-
475
-    @RequestMapping(value = "/getNewList",produces = MediaType.APPLICATION_JSON_VALUE,method = RequestMethod.GET)
476
-    @ApiOperation(value="查询质量管理列表", notes = "查询质量管理信息列表,支持分页")
477
-    @ApiImplicitParams({
478
-            @ApiImplicitParam(name = "pageNum", value = "页码", paramType = "query"),
479
-            @ApiImplicitParam(name = "pageSize", value = "每页条数", paramType = "query"),
480
-            @ApiImplicitParam(name = "houseId", value = "仓房ID", paramType = "query"),
481
-            @ApiImplicitParam(name = "wareId", value = "货位ID", paramType = "query"),
482
-            @ApiImplicitParam(name = "checktype", value = "检查的类型", paramType = "query"),
483
-            @ApiImplicitParam(name = "checkResult", value = "检查结果", paramType = "query"),
484
-            @ApiImplicitParam(name = "historyStatus", value = "数据状态", paramType = "query"),
485
-            @ApiImplicitParam(name = "orgId", value = "单位ID", paramType = "query")
486
-    })
487
-    public PageInfo<BusinessAgentQuality> newListPage(Integer pageNum, Integer pageSize, Integer houseId, Integer wareId,
488
-                                                  String checkType, String checkResult, Integer historyStatus, Integer orgId) {
489
-    	BusinessAgentQualityExample example = new BusinessAgentQualityExample();
490
-    	BusinessAgentQualityExample.Criteria criteria = example.createCriteria();
491
-
492
-        //根据后台传来的参数进行查找相应类型的类别0:初检 1:验收 2:质量普查 3:出库
493
-        if (StringUtils.isNotBlank(checkType)){
494
-        	criteria.andTypeEqualTo(checkType);
495
-        }
496
-        // 仓房id.
497
-        if (houseId != null) {
498
-        	criteria.andStorehouseIdEqualTo(houseId);
499
-        }
500
-        // 货位id.
501
-        if (wareId != null) {
502
-        	criteria.andWarehouseIdEqualTo(wareId);
503
-        }
504
-        // 粮库id.
505
-        if (orgId != null) {
506
-        	criteria.andOrgIdEqualTo(orgId);
507
-        }
508
-
509
-        //检验结果(0:合格 , 1 :不合格)
510
-        if (StringUtils.isNotBlank(checkResult)) {
511
-        	criteria.andCheckResultEqualTo(checkResult);
512
-        }
513
-        //数据状态
514
-        if (null != historyStatus) {
515
-        	//0:最新数据  1:历史数据
516
-        	criteria.andHistoryStatusEqualTo(historyStatus);
517
-        }
518
-
519
-        if (pageNum!=null && pageSize!=null) {
520
-            PageHelper.startPage(pageNum, pageSize);
521
-        }
522
-        List<BusinessAgentQuality> list = agentQualityService.findByCondition(example);
523
-
524
-        PageInfo<BusinessAgentQuality> pageInfo = new PageInfo<BusinessAgentQuality>(list);
525
-        return pageInfo;
526
-    }
527
-
528
-    /**
529
-     * 导入excel
530
-     * @param file 文件
531
-     * @param fileType 类型:如xlsx
532
-     * @param orgId 组织机构id
533
-     * @return
534
-     */
535
-    @RequestMapping(value="/importFile", produces = MediaType.APPLICATION_JSON_VALUE, method = RequestMethod.POST)
536
-    @ApiOperation(value="导入excel", notes = "导入excel")
537
-    @ApiImplicitParams({
538
-            @ApiImplicitParam(name = "file", value = "文件数据", paramType = "query"),
539
-            @ApiImplicitParam(name = "fileType", value = "文件名", paramType = "query"),
540
-            @ApiImplicitParam(name = "rootPath", value = "路径", paramType = "query"),
541
-            @ApiImplicitParam(name = "orgId", value = "组织机构id", paramType = "query"),
542
-            @ApiImplicitParam(name = "checktype", value = "导入类型", paramType = "query")
543
-    })
544
-    public Map<String, Object> importFile(MultipartFile file, String fileType, HttpServletRequest request, Integer orgId,String checktype){
545
-        Map<String, Object> fileMap = new HashMap<>();
546
-        String errormsg = null;
547
-
548
-        //0:初检    4:日常检验    5:第三方检查    3:出库检验
549
-        if(ParameterUtil.isequal(checktype,"0") || ParameterUtil.isequal(checktype,"4") || ParameterUtil.isequal(checktype,"5") || ParameterUtil.isequal(checktype,"3")){
550
-            String[] titleArr = {"仓房名称","货位名称","粮油品种","明细品种","粮油性质","数量","入仓日期","收获年度","产地","保管员",
551
-                    "扦样日期","扦样人","检验日期","报告出具日期","检验结论","检验机构","储存品质","水分%","容量(g/L)","杂质%",
552
-                    "矿物质%","不完善颗粒%","生霉粒%","完整粒率%","损伤粒率%","热损伤粒%","出糙率%","整精米率%","黄粒米%","谷外糙米%",
553
-                    "互混率%","色泽气味","等级","是否虫粮","备注"};//第一行的title
554
-            boolean[] emptyArr = {false, false, false, false, false, false, false, false, false, false,
555
-                    false, false, false, false, false, false, false, false, false, false,
556
-                    false, false, false, false, false, false, false, false, false, false,
557
-                    false, false, false, false, false};//指定列可为空,不可为空值为false.
558
-
559
-            List<List<String>> list = new ArrayList<List<String>>();//该list为数据返回的list
560
-            try {
561
-                errormsg = importService.importFile(file, fileType, request, titleArr, emptyArr, list,1);
562
-
563
-                if (errormsg != null && !"".equals(errormsg)) {
564
-                    fileMap.put("errormsg",errormsg);
565
-                    return fileMap;
566
-                }
567
-
568
-                //查询代储点名称和代储库名称对应的id
569
-                Map<String, Object> agentMap = agentService.getNameId(importService.nameData(file, fileType, request));
570
-                if(ParameterUtil.isnull(agentMap)){
571
-                    fileMap.put("errormsg","代储点与代储库无关联,请查询后添加!");
572
-                    return fileMap;
573
-                }
574
-
575
-                if (list.size()>0) {
576
-                    errormsg = agentQualityService.importData(list, orgId, agentMap, checktype);
577
-                }
578
-            } catch (Exception e) {
579
-                e.printStackTrace();
580
-            }
581
-        }else if(ParameterUtil.isequal(checktype,"1")){//1:验收
582
-            String[] titleArr = {"仓房名称","货位名称","粮油品种","明细品种","粮油性质","数量","入仓日期","收获年度","产地","保管员",
583
-                    "申请验收日期","扦样日期","扦样人","检验日期","报告出具日期","检验结论","检验机构","储存品质","水分%","容量(g/L)",
584
-                    "杂质%","矿物质%","不完善颗粒%","生霉粒%","完整粒率%","损伤粒率%","热损伤粒%","出糙率%","整精米率%","黄粒米%",
585
-                    "谷外糙米%","互混率%","色泽气味","等级","是否虫粮","备注"};//第一行的title
586
-            boolean[] emptyArr = {false, false, false, false, false, false, false, false, false, false,
587
-                    false, false, false, false, false, false, false, false, false, false,
588
-                    false, false, false, false, false, false, false, false, false, false,
589
-                    false, false, false, false, false, false};//指定列可为空,不可为空值为false.
590
-
591
-            List<List<String>> list = new ArrayList<List<String>>();//该list为数据返回的list
592
-            try {
593
-                errormsg = importService.importFile(file, fileType, request, titleArr, emptyArr, list,1);
594
-
595
-                if (errormsg != null && !"".equals(errormsg)) {
596
-                    fileMap.put("errormsg",errormsg);
597
-                    return fileMap;
598
-                }
599
-
600
-                //查询代储点名称和代储库名称对应的id
601
-                Map<String, Object> agentMap = agentService.getNameId(importService.nameData(file, fileType, request));
602
-                if(ParameterUtil.isnull(agentMap)){
603
-                    fileMap.put("errormsg","代储点与代储库无关联,请查询后添加!");
604
-                    return fileMap;
605
-                }
606
-
607
-                if (list.size()>0) {
608
-                    errormsg = agentQualityService.importDataCQ(list, orgId, agentMap, checktype);
609
-                }
610
-            } catch (Exception e) {
611
-                e.printStackTrace();
612
-            }
613
-        }else if(ParameterUtil.isequal(checktype,"2")){//2:春秋普查
614
-            String[] titleArr = {"仓房名称","货位名称","粮油品种","明细品种","粮油性质","数量","入仓日期","收获年度","产地","保管员",
615
-                    "普查类型","扦样日期","扦样人","检验日期","报告出具日期","检验结论","检验机构","储存品质","水分%","容量(g/L)","杂质%",
616
-                    "矿物质%","不完善颗粒%","生霉粒%","完整粒率%","损伤粒率%","热损伤粒%","出糙率%","整精米率%","黄粒米%","谷外糙米%",
617
-                    "互混率%","色泽气味","等级","是否虫粮","备注"};//第一行的title
618
-            boolean[] emptyArr = {false, false, false, false, false, false, false, false, false, false,
619
-                    false, false, false, false, false, false, false, false, false, false,
620
-                    false, false, false, false, false, false, false, false, false, false,
621
-                    false, false, false, false, false, false};//指定列可为空,不可为空值为false.
622
-
623
-            List<List<String>> list = new ArrayList<List<String>>();//该list为数据返回的list
624
-            try {
625
-                errormsg = importService.importFile(file, fileType, request, titleArr, emptyArr, list,1);
626
-
627
-                if (errormsg != null && !"".equals(errormsg)) {
628
-                    fileMap.put("errormsg",errormsg);
629
-                    return fileMap;
630
-                }
631
-
632
-                //查询代储点名称和代储库名称对应的id
633
-                Map<String, Object> agentMap = agentService.getNameId(importService.nameData(file, fileType, request));
634
-                if(ParameterUtil.isnull(agentMap)){
635
-                    fileMap.put("errormsg","代储点与代储库无关联,请查询后添加!");
636
-                    return fileMap;
637
-                }
638
-
639
-                if (list.size()>0) {
640
-                    errormsg = agentQualityService.importDataCQ(list, orgId, agentMap, checktype);
641
-                }
642
-            } catch (Exception e) {
643
-                e.printStackTrace();
644
-            }
645
-        }
646
-        fileMap.put("errormsg",errormsg);
647
-        return fileMap;
648
-    }
649
-}

+ 0 - 80
src/main/java/com/chinaitop/depot/agent/quality/controller/AgentQualitySonController.java

@@ -1,80 +0,0 @@
1
-package com.chinaitop.depot.agent.quality.controller;
2
-
3
-import com.chinaitop.depot.agent.quality.model.BusinessAgentQualitySon;
4
-import com.chinaitop.depot.agent.quality.model.BusinessAgentQualitySonExample;
5
-import com.chinaitop.depot.agent.quality.service.AgentQualitySonService;
6
-import io.swagger.annotations.Api;
7
-import io.swagger.annotations.ApiImplicitParam;
8
-import io.swagger.annotations.ApiImplicitParams;
9
-import io.swagger.annotations.ApiOperation;
10
-import org.springframework.http.MediaType;
11
-import org.springframework.web.bind.annotation.RequestMapping;
12
-import org.springframework.web.bind.annotation.RequestMethod;
13
-import org.springframework.web.bind.annotation.RestController;
14
-
15
-import javax.annotation.Resource;
16
-import java.util.ArrayList;
17
-import java.util.HashMap;
18
-import java.util.List;
19
-import java.util.Map;
20
-
21
-/**
22
- * @author sunhongbing
23
- * @Date 2017/12/23
24
- */
25
-@RestController
26
-@RequestMapping(value = {"/agentQualitySon"})
27
-@Api(value= "AgentQualitySonController", description = "质量管理中检测信息控制类")
28
-public class AgentQualitySonController {
29
-    @Resource
30
-    private AgentQualitySonService agentQualitySonService;
31
-
32
-    /**
33
-     * 接收主表的id关联着子表的ktId
34
-     * @param qcSonId
35
-     * @return
36
-     */
37
-    @RequestMapping(value = "/findQualitycheckSonBySonId",produces = MediaType.APPLICATION_JSON_VALUE, method = RequestMethod.GET)
38
-    @ApiOperation(value="根据质量检查id查询出关联的子表信息(包含检测信息)", notes = "根据质量检查id查询出关联的子表信息(包含检测信息)")
39
-    @ApiImplicitParams({
40
-            @ApiImplicitParam(name = "qcSonId", value = "qcSonId", paramType = "query"),
41
-    })
42
-    public List<BusinessAgentQualitySon> findKtDetailsByKtId(Integer qcSonId){
43
-        BusinessAgentQualitySonExample storageQualitycheckSonExample = new BusinessAgentQualitySonExample();
44
-        BusinessAgentQualitySonExample.Criteria criteria = storageQualitycheckSonExample.createCriteria();
45
-        if(qcSonId != null){
46
-            criteria.andQualitycheckIdEqualTo(qcSonId);
47
-        }
48
-        return  agentQualitySonService.findQualitycheckSonExample(storageQualitycheckSonExample);
49
-    }
50
-
51
-    /**
52
-     * 删除一条检测信息
53
-     * @param sonId 数据ID
54
-     * @return
55
-     */
56
-    @RequestMapping(value = "/removeSon", produces = MediaType.APPLICATION_JSON_VALUE,method = RequestMethod.POST)
57
-    @ApiOperation(value="根据子表id质量检查的子表信息", notes = "根据子表id质量检查的子表信息")
58
-    @ApiImplicitParams({
59
-            @ApiImplicitParam(name = "sonId", value = "sonId", paramType = "form"),
60
-    })
61
-    public Map<String, Object> removeSon(Integer sonId) {
62
-        Map<String, Object> map = new HashMap<String, Object>();
63
-        //删除管理的数据
64
-        BusinessAgentQualitySonExample qualitycheckSonExample = new BusinessAgentQualitySonExample();
65
-        BusinessAgentQualitySonExample.Criteria criteria = qualitycheckSonExample.createCriteria();
66
-        if(sonId != null){
67
-            criteria.andIdEqualTo(sonId);
68
-        }
69
-        try {
70
-            agentQualitySonService.removeSon(qualitycheckSonExample);
71
-            map.put("status", "success");
72
-        } catch (Exception e) {
73
-            e.printStackTrace();
74
-            map.put("status", "error");
75
-            map.put("msg", "删除失败!");
76
-        }
77
-        return map;
78
-    }
79
-
80
-}

+ 0 - 57
src/main/java/com/chinaitop/depot/agent/quality/mapper/BusinessAgentQualityMapper.java

@@ -1,57 +0,0 @@
1
-package com.chinaitop.depot.agent.quality.mapper;
2
-
3
-import com.chinaitop.depot.agent.quality.model.BusinessAgentQuality;
4
-import com.chinaitop.depot.agent.quality.model.BusinessAgentQualityExample;
5
-import java.util.List;
6
-import java.util.Map;
7
-
8
-import org.apache.ibatis.annotations.Param;
9
-
10
-public interface BusinessAgentQualityMapper {
11
-    int countByExample(BusinessAgentQualityExample example);
12
-
13
-    int deleteByExample(BusinessAgentQualityExample example);
14
-
15
-    int deleteByPrimaryKey(Integer id);
16
-
17
-    int insert(BusinessAgentQuality record);
18
-
19
-    int insertSelective(BusinessAgentQuality record);
20
-
21
-    List<BusinessAgentQuality> selectByExample(BusinessAgentQualityExample example);
22
-
23
-    BusinessAgentQuality selectByPrimaryKey(Integer id);
24
-
25
-    int updateByExampleSelective(@Param("record") BusinessAgentQuality record, @Param("example") BusinessAgentQualityExample example);
26
-
27
-    int updateByExample(@Param("record") BusinessAgentQuality record, @Param("example") BusinessAgentQualityExample example);
28
-
29
-    int updateByPrimaryKeySelective(BusinessAgentQuality record);
30
-
31
-    int updateByPrimaryKey(BusinessAgentQuality record);
32
-
33
-    /**
34
-     * @param qualitycheck
35
-     * @return
36
-     */
37
-    List<BusinessAgentQuality> getHouseIdList(BusinessAgentQuality qualitycheck);
38
-
39
-    /**
40
-     * @param qualitycheck
41
-     * @return
42
-     */
43
-    List<BusinessAgentQuality> getWareHouseIdList(
44
-            BusinessAgentQuality qualitycheck);
45
-    List<BusinessAgentQuality> getThirdCheckList(BusinessAgentQuality qualitycheck);
46
-    List<BusinessAgentQuality> getQualitycheckListByFoodbasicinfoCheck(BusinessAgentQuality qualitycheck);
47
-    BusinessAgentQuality queryPrimaryKey(Integer id);
48
-    List<BusinessAgentQuality> queryByExample(BusinessAgentQuality example);
49
-    List<Map<String,Object>> getStoreQualityList();
50
-
51
-    List<BusinessAgentQuality> getTrdStoreQualityList();
52
-    List<BusinessAgentQuality> getDataByZJId(Map<String, Object> paramMap);
53
-
54
-    List<BusinessAgentQuality> queryByExampleData(BusinessAgentQuality example);
55
-
56
-    List<BusinessAgentQuality> queryByQualitycheckusiness(BusinessAgentQuality qualityCheckExample);
57
-}

File diff suppressed because it is too large
+ 0 - 1916
src/main/java/com/chinaitop/depot/agent/quality/mapper/BusinessAgentQualityMapper.xml


+ 0 - 32
src/main/java/com/chinaitop/depot/agent/quality/mapper/BusinessAgentQualitySonMapper.java

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

+ 0 - 225
src/main/java/com/chinaitop/depot/agent/quality/mapper/BusinessAgentQualitySonMapper.xml

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

File diff suppressed because it is too large
+ 0 - 1029
src/main/java/com/chinaitop/depot/agent/quality/model/BusinessAgentQuality.java


File diff suppressed because it is too large
+ 0 - 6061
src/main/java/com/chinaitop/depot/agent/quality/model/BusinessAgentQualityExample.java


+ 0 - 55
src/main/java/com/chinaitop/depot/agent/quality/model/BusinessAgentQualitySon.java

@@ -1,55 +0,0 @@
1
-package com.chinaitop.depot.agent.quality.model;
2
-
3
-import java.util.Date;
4
-
5
-public class BusinessAgentQualitySon {
6
-    private Integer id;
7
-
8
-    private Integer qualitycheckId;
9
-
10
-    private Integer numbering;
11
-
12
-    private String setValue;
13
-
14
-    private Date updatetime;
15
-
16
-    public Integer getId() {
17
-        return id;
18
-    }
19
-
20
-    public void setId(Integer id) {
21
-        this.id = id;
22
-    }
23
-
24
-    public Integer getQualitycheckId() {
25
-        return qualitycheckId;
26
-    }
27
-
28
-    public void setQualitycheckId(Integer qualitycheckId) {
29
-        this.qualitycheckId = qualitycheckId;
30
-    }
31
-
32
-    public Integer getNumbering() {
33
-        return numbering;
34
-    }
35
-
36
-    public void setNumbering(Integer numbering) {
37
-        this.numbering = numbering;
38
-    }
39
-
40
-    public String getSetValue() {
41
-        return setValue;
42
-    }
43
-
44
-    public void setSetValue(String setValue) {
45
-        this.setValue = setValue == null ? null : setValue.trim();
46
-    }
47
-
48
-    public Date getUpdatetime() {
49
-        return updatetime;
50
-    }
51
-
52
-    public void setUpdatetime(Date updatetime) {
53
-        this.updatetime = updatetime;
54
-    }
55
-}

+ 0 - 511
src/main/java/com/chinaitop/depot/agent/quality/model/BusinessAgentQualitySonExample.java

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

+ 0 - 121
src/main/java/com/chinaitop/depot/agent/quality/service/AgentQualityService.java

@@ -1,121 +0,0 @@
1
-package com.chinaitop.depot.agent.quality.service;
2
-
3
-import com.chinaitop.depot.agent.quality.model.BusinessAgentQuality;
4
-import com.chinaitop.depot.agent.quality.model.BusinessAgentQualityExample;
5
-import com.chinaitop.depot.agent.quality.model.BusinessAgentQualitySon;
6
-
7
-import java.util.List;
8
-import java.util.Map;
9
-
10
-public interface AgentQualityService {
11
-
12
-	/**
13
-	 * 按条件查询qualitycheck列表
14
-	 *
15
-	 * @param example
16
-	 * @return
17
-	 */
18
-	List<BusinessAgentQuality> findByCondition(BusinessAgentQualityExample example);
19
-
20
-	/**
21
-	 * 条件查询qualitycheck列表
22
-	 *
23
-	 * @param example
24
-	 * @return
25
-	 */
26
-	List<BusinessAgentQuality> queryByQualitycheck(BusinessAgentQuality example);
27
-
28
-	/**
29
-	 * 新增qualitycheck信息
30
-	 *
31
-	 * @param qualitycheck
32
-	 */
33
-	Integer save(BusinessAgentQuality qualitycheck);
34
-
35
-	/**
36
-	 * 新增qualitycheck字表信息
37
-	 *
38
-	 * @param qualitycheckone
39
-	 */
40
-	void saveOne(BusinessAgentQualitySon qualitycheckone);
41
-
42
-	/**
43
-	 * 根据id查询数据
44
-	 *
45
-	 * @param id
46
-	 * @return
47
-	 */
48
-	BusinessAgentQuality loadDataById(Integer id);
49
-
50
-	/**
51
-	 * 根据主键id删除数据
52
-	 *
53
-	 * @param id
54
-	 */
55
-	void remove(int id);
56
-
57
-    /**
58
-     * @param qualitycheck
59
-     * @return
60
-     */
61
-    List<BusinessAgentQuality> getHouseOrWareList(
62
-            BusinessAgentQuality qualitycheck);
63
-
64
-    /**
65
-     * @param id
66
-     * @return
67
-     */
68
-    String getQualityStandardStr(Integer id);
69
-
70
-	/**
71
-	 * 查询第三方检查列表
72
-	 * @param qualitycheck
73
-	 * @return
74
-	 */
75
-	List<BusinessAgentQuality> getThirdCheckList(BusinessAgentQuality qualitycheck);
76
-	/**
77
-	 * 查询粮情专卡中粮食质量检测记录
78
-	 * @param qualitycheck
79
-	 * @return
80
-	 */
81
-	List<BusinessAgentQuality> getQualitycheckListByFoodbasicinfoCheck(BusinessAgentQuality qualitycheck);
82
-
83
-	void setQualityCheckByHistoryStatus (Integer houseId, Integer warehouseId);
84
-	List<Map<String,Object>> getStoreQualityList();
85
-	List<BusinessAgentQuality> getTrdStoreQualityList();
86
-
87
-	List<BusinessAgentQuality> getDataByZJId(Map<String, Object> paramMap);
88
-
89
-
90
-	/**
91
-	 * 取出封仓需要的数据
92
-	 * @param qualityCheckExample
93
-	 * @return
94
-	 */
95
-	List<BusinessAgentQuality> queryByQualitycheckData(BusinessAgentQuality qualityCheckExample);
96
-
97
-	/**
98
-	 * 查看business_store_ware_detail中是否有数据
99
-	 * @param qualityCheckExample
100
-	 * @return
101
-	 */
102
-	List<BusinessAgentQuality> queryByQualitycheckusiness(BusinessAgentQuality qualityCheckExample);
103
-
104
-	/**
105
-	 * 导入
106
-	 *
107
-	 * @param list
108
-	 * @param orgId
109
-	 * @return
110
-	 */
111
-	String importData(List<List<String>> list, Integer orgId, Map<String, Object> agentMap, String checktype);
112
-
113
-	/**
114
-	 * 春秋导入
115
-	 *
116
-	 * @param list
117
-	 * @param orgId
118
-	 * @return
119
-	 */
120
-	String importDataCQ(List<List<String>> list, Integer orgId, Map<String, Object> agentMap, String checktype);
121
-}

+ 0 - 26
src/main/java/com/chinaitop/depot/agent/quality/service/AgentQualitySonService.java

@@ -1,26 +0,0 @@
1
-package com.chinaitop.depot.agent.quality.service;
2
-
3
-import com.chinaitop.depot.agent.quality.model.BusinessAgentQualitySon;
4
-import com.chinaitop.depot.agent.quality.model.BusinessAgentQualitySonExample;
5
-
6
-import java.util.List;
7
-
8
-/**
9
- * @author sunhongbing
10
- * @Date 2017/12/23
11
- */
12
-public interface AgentQualitySonService {
13
-    List<BusinessAgentQualitySon> findQualitycheckSonExample(BusinessAgentQualitySonExample storageQualitycheckSonExample);
14
-    /**
15
-     * 根据qualitycheckId删除数据
16
-     * @param
17
-     */
18
-    public void removeSon(BusinessAgentQualitySonExample storageQualitycheckSonExample);
19
-
20
-    /**
21
-     * 获取qualitycheck 对应的数据
22
-     * @param foodbasicinfoId
23
-     * @return
24
-     */
25
-    List<BusinessAgentQualitySon> getQualitycheckSonByFoodbasicinfoCheck(Integer foodbasicinfoId);
26
-}

File diff suppressed because it is too large
+ 0 - 1257
src/main/java/com/chinaitop/depot/agent/quality/service/impl/AgentQualityServiceImpl.java


+ 0 - 34
src/main/java/com/chinaitop/depot/agent/quality/service/impl/AgentQualitySonServiceImpl.java

@@ -1,34 +0,0 @@
1
-package com.chinaitop.depot.agent.quality.service.impl;
2
-
3
-import com.chinaitop.depot.agent.quality.mapper.BusinessAgentQualitySonMapper;
4
-import com.chinaitop.depot.agent.quality.model.BusinessAgentQualitySon;
5
-import com.chinaitop.depot.agent.quality.model.BusinessAgentQualitySonExample;
6
-import com.chinaitop.depot.agent.quality.service.AgentQualitySonService;
7
-import org.springframework.stereotype.Service;
8
-
9
-import javax.annotation.Resource;
10
-import java.util.List;
11
-
12
-/**
13
- * @author sunhongbing
14
- * @Date 2017/12/23
15
- */
16
-@Service
17
-public class AgentQualitySonServiceImpl implements AgentQualitySonService {
18
-    @Resource
19
-    private BusinessAgentQualitySonMapper QualitySonMapper;
20
-    @Override
21
-    public List<BusinessAgentQualitySon> findQualitycheckSonExample(BusinessAgentQualitySonExample storageQualitycheckSonExample) {
22
-        return QualitySonMapper.selectByExample(storageQualitycheckSonExample);
23
-    }
24
-
25
-    @Override
26
-    public void removeSon(BusinessAgentQualitySonExample storageQualitycheckSonExample) {
27
-        QualitySonMapper.deleteByExample(storageQualitycheckSonExample);
28
-    }
29
-
30
-    @Override
31
-    public List<BusinessAgentQualitySon> getQualitycheckSonByFoodbasicinfoCheck(Integer foodbasicinfoId) {
32
-        return QualitySonMapper.getQualitycheckSonByFoodbasicinfoCheck(foodbasicinfoId);
33
-    }
34
-}