fanxw 2 gadi atpakaļ
vecāks
revīzija
7ec80646c7

+ 16 - 6
src/main/java/com/chinaitop/depot/pushs/service/PushsService.java

@@ -1,12 +1,22 @@
1 1
 package com.chinaitop.depot.pushs.service;
2 2
 
3
-
4
-
5 3
 public interface PushsService {
6
-	
7
-	
8
-	//出入库取库级平台倒仓通知单数据
4
+
5
+	/**
6
+	 * 出入库取库级平台倒仓通知单数据
7
+	 * @param orgId 
8
+	 * @param ids 倒仓申请单号集合字符串
9
+	 * @return
10
+	 */
9 11
 	String getChangeDatas(String orgId, String ids);
10
-	//出入库将倒仓通知单记录传回库级平台进行展示
12
+
13
+	/**
14
+	 * 倒仓进度数据接收(出入库调用ws接口给推送)
15
+	 * @param orgId 组织机构ID
16
+	 * @param applyNo 倒仓申请单号
17
+	 * @param foodStatus 完成状态
18
+	 * @param goalNumber 完成数量(公斤)
19
+	 * @return
20
+	 */
11 21
 	String updateChangeStorageHouse(String orgId, String applyNo, String foodStatus, String goalNumber);
12 22
 }

+ 30 - 25
src/main/java/com/chinaitop/depot/pushs/service/impl/PushServiceImpl.java

@@ -2,7 +2,6 @@ package com.chinaitop.depot.pushs.service.impl;
2 2
 
3 3
 
4 4
 
5
-import java.math.BigDecimal;
6 5
 import java.util.Arrays;
7 6
 import java.util.HashMap;
8 7
 import java.util.List;
@@ -22,23 +21,23 @@ import com.chinaitop.depot.storage.mapper.StorageChangeStoragehouseRopMapper;
22 21
 import com.chinaitop.depot.storage.model.StorageChangeStoragehouseDefault;
23 22
 import com.chinaitop.depot.storage.model.StorageChangeStoragehouseDefaultExample;
24 23
 import com.chinaitop.depot.storage.model.StorageChangeStoragehouseDefaultExample.Criteria;
24
+import com.chinaitop.depot.storage.service.SystemOutsideDataService;
25 25
 import com.chinaitop.depot.storage.model.StorageChangeStoragehouseRop;
26 26
 import com.chinaitop.depot.storage.model.StorageChangeStoragehouseRopExample;
27
-import com.chinaitop.depot.storage.service.StorageChangeStoragehouseRopService;
28 27
 import com.chinaitop.depot.storage.utils.ParameterUtil;
29 28
 import com.chinaitop.depot.unissoft.model.ResponseEntity;
30
-import com.fasterxml.jackson.databind.ObjectMapper;
31 29
 
32 30
 @Service
33 31
 public class PushServiceImpl implements PushsService{
34
-	
35
-    final static Logger logger  =  LoggerFactory.getLogger(PushServiceImpl.class );
36 32
 
33
+    final static Logger logger  =  LoggerFactory.getLogger(PushServiceImpl.class );
37 34
 
38 35
 	@Resource
39 36
 	private StorageChangeStoragehouseDefaultMapper storageChangeStoragehouseDefaultMapper;
40 37
 	@Resource
41 38
 	private StorageChangeStoragehouseRopMapper storageChangeStoragehouseRopMapper;
39
+	@Resource 
40
+	private SystemOutsideDataService systemOutsideDataService;
42 41
 
43 42
 	@Transactional(rollbackFor = Exception.class)
44 43
 	@Override
@@ -59,29 +58,29 @@ public class PushServiceImpl implements PushsService{
59 58
 		mapData.put("mainData", mainList);
60 59
 		return JSON.toJSONString(ResponseEntity.ok(mapData));
61 60
 	}
62
-	
63
-	
61
+
64 62
 	@Transactional(rollbackFor = Exception.class)
65 63
 	@Override
66 64
 	public String updateChangeStorageHouse(String orgId, String applyNo, String foodStatus, String goalNumber) {
67 65
 		String retS = "Success";
68
-			ObjectMapper mapper = new ObjectMapper();
66
+		StringBuffer sbf = new StringBuffer(50);
67
+		sbf.append("orgId="+orgId).append("&applyNo="+applyNo).append("&foodStatus="+foodStatus).append("&goalNumber="+goalNumber);
68
+
69
+		try {
69 70
 			StorageChangeStoragehouseDefaultExample StorageChangeStoragehouseDefaultExample = new StorageChangeStoragehouseDefaultExample();
70 71
 			Criteria Criteria = StorageChangeStoragehouseDefaultExample.createCriteria();
71
-			StorageChangeStoragehouseRopExample StorageChangeStoragehouseRopExample = new StorageChangeStoragehouseRopExample();
72
-			StorageChangeStoragehouseRopExample.Criteria criteria = StorageChangeStoragehouseRopExample.createCriteria();
73
-			StorageChangeStoragehouseRop StorageChangeStoragehouseRop = new StorageChangeStoragehouseRop();
74
-
75 72
 			Criteria.andOrgIdEqualTo(Integer.parseInt(orgId));
76 73
 			Criteria.andApplyNoEqualTo(applyNo);
77
-			criteria.andOrgIdEqualTo(Integer.parseInt(orgId));
78
-			criteria.andApplyNoEqualTo(applyNo);
79 74
 			List<StorageChangeStoragehouseDefault> list = storageChangeStoragehouseDefaultMapper.selectByExample(StorageChangeStoragehouseDefaultExample);
80 75
 			if(list == null || list.size() ==0 ) {
81
-				return retS = "该数据不存在!";
76
+				retS = "该数据不存在!";
77
+				systemOutsideDataService.addlogger("dcjdsjjs", sbf.toString(), retS);
78
+				return retS;
82 79
 			}else {
83
-			try {
84
-			for(StorageChangeStoragehouseDefault o : list){
80
+				StorageChangeStoragehouseDefault o = list.get(0);
81
+				
82
+				StorageChangeStoragehouseRop StorageChangeStoragehouseRop = new StorageChangeStoragehouseRop();
83
+				StorageChangeStoragehouseRop = new StorageChangeStoragehouseRop();
85 84
 				StorageChangeStoragehouseRop.setApplyFirm(o.getApplyFirm());   //申请倒仓企业
86 85
 				StorageChangeStoragehouseRop.setChangehouseNo(o.getChangehouseNo());  //倒仓通知单编号
87 86
 				StorageChangeStoragehouseRop.setApplyTime(o.getApplyTime());   //申请日期
@@ -105,18 +104,24 @@ public class PushServiceImpl implements PushsService{
105 104
 				StorageChangeStoragehouseRop.setOutAfter(o.getOutAfter());  //倒出后保管方式
106 105
 				StorageChangeStoragehouseRop.setOrgId(Integer.parseInt(orgId));   //单位ID
107 106
 				StorageChangeStoragehouseRop.setApplyNo(applyNo);  //申请单号
108
-			}
109
-			List<StorageChangeStoragehouseRop> ropList = storageChangeStoragehouseRopMapper.selectByExample(StorageChangeStoragehouseRopExample);
110
-			if(ropList == null || ropList.size() ==0 ){
111
-				storageChangeStoragehouseRopMapper.insertSelective(StorageChangeStoragehouseRop);
112
-			}else{
113
-				storageChangeStoragehouseRopMapper.updateByPrimaryKeySelective(StorageChangeStoragehouseRop);
107
+
108
+				StorageChangeStoragehouseRopExample StorageChangeStoragehouseRopExample = new StorageChangeStoragehouseRopExample();
109
+				StorageChangeStoragehouseRopExample.Criteria criteria = StorageChangeStoragehouseRopExample.createCriteria();
110
+				criteria.andOrgIdEqualTo(Integer.parseInt(orgId));
111
+				criteria.andApplyNoEqualTo(applyNo);
112
+				List<StorageChangeStoragehouseRop> ropList = storageChangeStoragehouseRopMapper.selectByExample(StorageChangeStoragehouseRopExample);
113
+				if(ropList == null || ropList.size() ==0 ){
114
+					storageChangeStoragehouseRopMapper.insertSelective(StorageChangeStoragehouseRop);
115
+				}else{
116
+					storageChangeStoragehouseRopMapper.updateByPrimaryKeySelective(StorageChangeStoragehouseRop);
114 117
 				}
118
+			}
119
+			systemOutsideDataService.addlogger("dcjdsjjs", sbf.toString(), retS);
115 120
 		} catch (Exception e) {
116
-			return retS = "error";
121
+			retS = "系统异常,请联系管理员";
122
+			systemOutsideDataService.addlogger("dcjdsjjs", sbf.toString(), retS);
117 123
 		}
118 124
 		return retS;
119
-			}
120 125
 	}
121 126
 
122 127
 }

+ 22 - 15
src/main/java/com/chinaitop/depot/storage/controller/StorageChangeStoragehouseRopController.java

@@ -22,6 +22,7 @@ import com.chinaitop.depot.storage.model.StorageChangeStoragehouseDefaultExample
22 22
 import com.chinaitop.depot.storage.model.StorageChangeStoragehouseRop;
23 23
 import com.chinaitop.depot.storage.model.StorageChangeStoragehouseRopExample;
24 24
 import com.chinaitop.depot.storage.service.StorageChangeStoragehouseRopService;
25
+import com.chinaitop.depot.storage.service.SystemOutsideDataService;
25 26
 import com.chinaitop.depot.storage.utils.ParameterUtil;
26 27
 import com.github.pagehelper.PageHelper;
27 28
 import com.github.pagehelper.PageInfo;
@@ -35,12 +36,14 @@ import io.swagger.annotations.ApiOperation;
35 36
 @RequestMapping(value = "/StorageChangeStoragehouseRopController")
36 37
 @Api(value = "StorageChangeStoragehouseRopController", description = "倒仓作业类")
37 38
 public class StorageChangeStoragehouseRopController {
38
-	
39
+
39 40
 	@Resource 
40 41
 	private StorageChangeStoragehouseRopService storageChangeStoragehouseRopService;
41
-	
42
+	@Resource 
43
+	private SystemOutsideDataService systemOutsideDataService;
44
+
42 45
 	final static Logger logger = LoggerFactory.getLogger(StorageChangeStoragehouseRop.class);
43
-	
46
+
44 47
 	@RequestMapping(value = "/getList", produces = MediaType.APPLICATION_JSON_VALUE, method = RequestMethod.GET)
45 48
 	@ApiOperation(value = "查询倒仓列表", notes = "查询倒仓信息列表,支持分页")
46 49
 	@ApiImplicitParams({ @ApiImplicitParam(name = "pageNum", value = "页码", paramType = "query"),
@@ -88,8 +91,7 @@ public class StorageChangeStoragehouseRopController {
88 91
 		PageInfo<StorageChangeStoragehouseDefault> pageInfo = new PageInfo<StorageChangeStoragehouseDefault>(list);
89 92
 		return pageInfo;
90 93
 	}
91
-	
92
-	@SuppressWarnings("unlikely-arg-type")
94
+
93 95
 	@RequestMapping(value = "/findRopData", produces = MediaType.APPLICATION_JSON_VALUE, method = RequestMethod.GET)
94 96
 	@ApiOperation(value = "查询倒仓通知单", notes = "查询倒仓通知单")
95 97
 	@ApiImplicitParams({ @ApiImplicitParam(name = "changehouseNo", value = "倒仓通知单号", paramType = "query"),
@@ -112,8 +114,7 @@ public class StorageChangeStoragehouseRopController {
112 114
 		modelMap.put("ChangeStoragehouseRop", list);
113 115
 		return modelMap;
114 116
 	}
115
-	
116
-	@SuppressWarnings("unlikely-arg-type")
117
+
117 118
 	@RequestMapping(value = "/getListRop", produces = MediaType.APPLICATION_JSON_VALUE, method = RequestMethod.GET)
118 119
 	@ApiOperation(value = "倒仓进度列表查询", notes = "倒仓进度列表查询,支持分页")
119 120
 	@ApiImplicitParams({ @ApiImplicitParam(name = "pageNum", value = "页码", paramType = "query"),
@@ -150,8 +151,7 @@ public class StorageChangeStoragehouseRopController {
150 151
 		PageInfo<StorageChangeStoragehouseRop> pageInfo = new PageInfo<StorageChangeStoragehouseRop>(list);
151 152
 		return pageInfo;
152 153
 	}
153
-	
154
-	@SuppressWarnings("unlikely-arg-type")
154
+
155 155
 	@RequestMapping(value = "/showDataR", produces = MediaType.APPLICATION_JSON_VALUE, method = RequestMethod.GET)
156 156
 	@ApiOperation(value = "倒仓进度明细查询", notes = "倒仓进度明细查询")
157 157
 	@ApiImplicitParams({ @ApiImplicitParam(name = "changehouseNo", value = "通知单号", paramType = "query"),
@@ -174,17 +174,24 @@ public class StorageChangeStoragehouseRopController {
174 174
 		modelMap.put("ChangeStoragehouseRopList", list);
175 175
 		return modelMap;
176 176
 	}
177
-	
178
-	
177
+
179 178
 	@RequestMapping(value="/save", produces = MediaType.APPLICATION_JSON_VALUE, method=RequestMethod.POST)
180 179
 	@ApiOperation(value="保存数据", notes = "保存")
181
-	  @ApiImplicitParams({
182
-	  @ApiImplicitParam(name = "save", value = "新增数据", paramType = "query") 
183
-	  })
180
+	@ApiImplicitParams({
181
+	    @ApiImplicitParam(name = "save", value = "新增数据", paramType = "query") 
182
+	})
184 183
     public Map<String, Object> save(String change){
185 184
 		Map<String, Object> modelMap = new HashMap<String, Object>();
186 185
 		logger.info("接收的到仓通知单数据如下:\r\n\t"+change);
187
-		modelMap = storageChangeStoragehouseRopService.add(change);  
186
+		try {
187
+			modelMap = storageChangeStoragehouseRopService.add(change);
188
+			systemOutsideDataService.addlogger("dctzdjs", change, modelMap.toString());
189
+		} catch (Exception e) {
190
+			modelMap.put("status", "error");
191
+        	modelMap.put("msg", "接口异常,请联系管理员!");
192
+        	logger.error(e.getMessage(), e);
193
+        	systemOutsideDataService.addlogger("dctzdjs", change, modelMap.toString());
194
+		}  
188 195
         return modelMap;
189 196
     }
190 197
 }

+ 15 - 4
src/main/java/com/chinaitop/depot/storage/mapper/StorageChangeStoragehouseDefaultMapper.xml

@@ -25,6 +25,7 @@
25 25
     <result column="food_number" property="foodNumber" jdbcType="VARCHAR" />
26 26
     <result column="out_after" property="outAfter" jdbcType="VARCHAR" />
27 27
     <result column="oper_staff" property="operStaff" jdbcType="VARCHAR" />
28
+    <result column="jhwjbh" property="jhwjbh" jdbcType="VARCHAR" />
28 29
   </resultMap>
29 30
   <sql id="Example_Where_Clause" >
30 31
     <where >
@@ -88,7 +89,7 @@
88 89
     changehouse_no, org_id, apply_no, apply_time, out_storehouse, out_storehouse_name, 
89 90
     out_warehouse, out_warehouse_name, food_war, food_nature, bit_weigh, out_before, 
90 91
     apply_firm, create_time, over_time, into_storehouse, into_storehouse_name, into_warehouse, 
91
-    into_warehouse_name, detail_war, food_number, out_after, oper_staff
92
+    into_warehouse_name, detail_war, food_number, out_after, oper_staff, jhwjbh
92 93
   </sql>
93 94
   <select id="selectByExample" resultMap="BaseResultMap" parameterType="com.chinaitop.depot.storage.model.StorageChangeStoragehouseDefaultExample" >
94 95
     select
@@ -118,7 +119,7 @@
118 119
       apply_firm, create_time, over_time, 
119 120
       into_storehouse, into_storehouse_name, into_warehouse, 
120 121
       into_warehouse_name, detail_war, food_number, 
121
-      out_after, oper_staff)
122
+      out_after, oper_staff, jhwjbh)
122 123
     values (#{changehouseNo,jdbcType=VARCHAR}, #{orgId,jdbcType=INTEGER}, #{applyNo,jdbcType=VARCHAR}, 
123 124
       #{applyTime,jdbcType=TIMESTAMP}, #{outStorehouse,jdbcType=INTEGER}, #{outStorehouseName,jdbcType=VARCHAR}, 
124 125
       #{outWarehouse,jdbcType=INTEGER}, #{outWarehouseName,jdbcType=VARCHAR}, #{foodWar,jdbcType=INTEGER}, 
@@ -126,7 +127,7 @@
126 127
       #{applyFirm,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP}, #{overTime,jdbcType=TIMESTAMP}, 
127 128
       #{intoStorehouse,jdbcType=INTEGER}, #{intoStorehouseName,jdbcType=VARCHAR}, #{intoWarehouse,jdbcType=INTEGER}, 
128 129
       #{intoWarehouseName,jdbcType=VARCHAR}, #{detailWar,jdbcType=INTEGER}, #{foodNumber,jdbcType=VARCHAR}, 
129
-      #{outAfter,jdbcType=VARCHAR}, #{operStaff,jdbcType=VARCHAR})
130
+      #{outAfter,jdbcType=VARCHAR}, #{operStaff,jdbcType=VARCHAR}, #{jhwjbh,jdbcType=VARCHAR})
130 131
   </insert>
131 132
   <insert id="insertSelective" parameterType="com.chinaitop.depot.storage.model.StorageChangeStoragehouseDefault" >
132 133
     insert into storage_change_storagehouse_default
@@ -200,6 +201,9 @@
200 201
       <if test="operStaff != null" >
201 202
         oper_staff,
202 203
       </if>
204
+      <if test="jhwjbh != null">
205
+        jhwjbh,
206
+      </if>
203 207
     </trim>
204 208
     <trim prefix="values (" suffix=")" suffixOverrides="," >
205 209
       <if test="changehouseNo != null" >
@@ -271,6 +275,9 @@
271 275
       <if test="operStaff != null" >
272 276
         #{operStaff,jdbcType=VARCHAR},
273 277
       </if>
278
+      <if test="jhwjbh != null">
279
+        #{jhwjbh,jdbcType=VARCHAR},
280
+      </if>
274 281
     </trim>
275 282
   </insert>
276 283
   <select id="countByExample" parameterType="com.chinaitop.depot.storage.model.StorageChangeStoragehouseDefaultExample" resultType="java.lang.Integer" >
@@ -351,6 +358,9 @@
351 358
       <if test="record.operStaff != null" >
352 359
         oper_staff = #{record.operStaff,jdbcType=VARCHAR},
353 360
       </if>
361
+      <if test="record.jhwjbh != null">
362
+        jhwjbh = #{record.jhwjbh,jdbcType=VARCHAR},
363
+      </if>
354 364
     </set>
355 365
     <if test="_parameter != null" >
356 366
       <include refid="Update_By_Example_Where_Clause" />
@@ -380,7 +390,8 @@
380 390
       detail_war = #{record.detailWar,jdbcType=INTEGER},
381 391
       food_number = #{record.foodNumber,jdbcType=VARCHAR},
382 392
       out_after = #{record.outAfter,jdbcType=VARCHAR},
383
-      oper_staff = #{record.operStaff,jdbcType=VARCHAR}
393
+      oper_staff = #{record.operStaff,jdbcType=VARCHAR},
394
+      jhwjbh = #{record.jhwjbh,jdbcType=VARCHAR}
384 395
     <if test="_parameter != null" >
385 396
       <include refid="Update_By_Example_Where_Clause" />
386 397
     </if>

+ 32 - 0
src/main/java/com/chinaitop/depot/storage/mapper/SystemOutsideDataMapper.java

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

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

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

+ 19 - 0
src/main/java/com/chinaitop/depot/storage/model/StorageChangeStoragehouseDefault.java

@@ -51,6 +51,8 @@ public class StorageChangeStoragehouseDefault {
51 51
 
52 52
     private String operStaff;
53 53
 
54
+    private String jhwjbh;
55
+
54 56
     /**
55 57
      * 倒仓通知单编号
56 58
      * @return changehouse_no 倒仓通知单编号
@@ -418,4 +420,21 @@ public class StorageChangeStoragehouseDefault {
418 420
     public void setOperStaff(String operStaff) {
419 421
         this.operStaff = operStaff == null ? null : operStaff.trim();
420 422
     }
423
+
424
+    /**
425
+     * 计划文件编号(国家局需要,市平台下发)
426
+     * @return
427
+     */
428
+	public String getJhwjbh() {
429
+		return jhwjbh;
430
+	}
431
+
432
+	/**
433
+	 * 计划文件编号(国家局需要,市平台下发)
434
+	 * @param jhwjbh
435
+	 */
436
+	public void setJhwjbh(String jhwjbh) {
437
+		this.jhwjbh = jhwjbh;
438
+	}
439
+
421 440
 }

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

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

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

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

+ 7 - 1
src/main/java/com/chinaitop/depot/storage/service/StorageChangeStoragehouseRopService.java

@@ -18,6 +18,12 @@ public interface StorageChangeStoragehouseRopService {
18 18
 
19 19
 	void insertChangeStorageHouse(StorageChangeStoragehouseRop storageChangeStoragehouseRop);
20 20
 
21
-	Map<String, Object> add(String change);
21
+	/**
22
+	 * 接收市平台下发的倒仓通知单
23
+	 * @param change
24
+	 * @return
25
+	 * @throws Exception
26
+	 */
27
+	Map<String, Object> add(String change) throws Exception;
22 28
 
23 29
 }

+ 24 - 0
src/main/java/com/chinaitop/depot/storage/service/SystemOutsideDataService.java

@@ -0,0 +1,24 @@
1
+package com.chinaitop.depot.storage.service;
2
+
3
+import java.util.List;
4
+
5
+import com.chinaitop.depot.storage.model.SystemOutsideData;
6
+
7
+public interface SystemOutsideDataService {
8
+
9
+	/**
10
+	 * 数据新增
11
+	 * @param titles
12
+	 * @param jssj
13
+	 * @param fhsj
14
+	 */
15
+	void addlogger(String titles, String jssj, String fhsj);
16
+
17
+	/**
18
+	 * 查询列表
19
+	 * @param titles
20
+	 * @param inputTime
21
+	 * @return
22
+	 */
23
+	List<SystemOutsideData> findByCondition(String titles, String inputTime);
24
+}

+ 88 - 74
src/main/java/com/chinaitop/depot/storage/service/impl/StorageChangeStoragehouseRopServiceImpl.java

@@ -6,6 +6,7 @@ import java.util.Map;
6 6
 
7 7
 import javax.annotation.Resource;
8 8
 
9
+import org.apache.commons.lang3.StringUtils;
9 10
 import org.springframework.stereotype.Service;
10 11
 
11 12
 import com.alibaba.fastjson.JSONObject;
@@ -20,7 +21,7 @@ import com.chinaitop.depot.storage.service.FeignBasicService;
20 21
 import com.chinaitop.depot.storage.service.StorageChangeStoragehouseRopService;
21 22
 @Service
22 23
 public class StorageChangeStoragehouseRopServiceImpl implements StorageChangeStoragehouseRopService {
23
-	
24
+
24 25
 	@Resource
25 26
 	private StorageChangeStoragehouseRopMapper storageChangeStoragehouseRopMapper;
26 27
 	@Resource
@@ -29,9 +30,6 @@ public class StorageChangeStoragehouseRopServiceImpl implements StorageChangeSto
29 30
 	private FeignBasicService feignBasicService;
30 31
 	@Resource
31 32
 	private FeignAgileService feignAgileService;
32
-	/*
33
-	 * 倒仓列表查询
34
-	 */
35 33
 
36 34
 	@Override
37 35
 	public List<StorageChangeStoragehouseDefault> selectByExample(
@@ -48,80 +46,96 @@ public class StorageChangeStoragehouseRopServiceImpl implements StorageChangeSto
48 46
 	@Override
49 47
 	public void insertChangeStorageHouse(StorageChangeStoragehouseRop storageChangeStoragehouseRop) {
50 48
 		storageChangeStoragehouseRopMapper.insertSelective(storageChangeStoragehouseRop);
51
-		
52 49
 	}
53 50
 
54 51
 	@Override
55
-	public Map<String, Object> add(String change) {
52
+	public Map<String, Object> add(String change) throws Exception {
56 53
 		Map<String, Object> modelMap = new HashMap<String, Object>();
57
-        try {
58
-            
59
-            // JSON字符串转对象
60
-            JSONObject jsonObject = JSONObject.parseObject(change);
61
-            StorageChangeStoragehouseDefault storageChangeStoragehouseDefault = new StorageChangeStoragehouseDefault();
62
-            storageChangeStoragehouseDefault.setChangehouseNo(jsonObject.getString("changehouseNo")); //接收虚拟倒仓通知单编号
63
-        	storageChangeStoragehouseDefault.setApplyNo(jsonObject.getString("applyNo"));   //申请单号
64
-            String applyFirmName = storageChangeStoragehouseDefaultMapper.selectOrgName(jsonObject.getString("applyFirm"));
65
-        	storageChangeStoragehouseDefault.setApplyFirm(applyFirmName); //申请倒仓企业
66
-        	storageChangeStoragehouseDefault.setApplyTime(jsonObject.getDate("apply_time")); //申请倒仓时间
67
-        	storageChangeStoragehouseDefault.setBitWeigh("需要称重"); //  是否称重
68
-        	storageChangeStoragehouseDefault.setCreateTime(jsonObject.getDate("createTime")); //接收时间
69
-            storageChangeStoragehouseDefault.setOverTime(jsonObject.getDate("over_time"));  //结束时间
70
-        	storageChangeStoragehouseDefault.setFoodNumber(jsonObject.getString("foodNumber")); //粮食数量
71
-            storageChangeStoragehouseDefault.setOperStaff(jsonObject.getString("operStaff")); //操作人员
72
-        	storageChangeStoragehouseDefault.setOutAfter(jsonObject.getString("out_after")); //倒出后保管方式
73
-        	storageChangeStoragehouseDefault.setOutBefore(jsonObject.getString("out_before")); //倒出前保管方式
74
-        	
75
-            //根据倒入仓房编码查询倒入仓房、货位、组织机构数据
76
-        	 String hwbmin = jsonObject.getString("cfbmin");
77
-             Map<String, Object> inWareDataMap = feignBasicService.getWareDataByHwbm(hwbmin);
78
-             Integer houseId = (Integer) inWareDataMap.get("houseId");
79
-             Map<String, Object> inhouseDataMap = feignBasicService.getStoreDataByHouseId(houseId);
80
-             String inStorehouseName = (String) inhouseDataMap.get("StorehouseName");
81
-             //货位
82
-             Integer wareHouseId = (Integer) inWareDataMap.get("wareHouseId");
83
-             String wareHouseName = (String) inWareDataMap.get("warehouseName");
84
-             Integer orgId = (Integer) inWareDataMap.get("orgId");
85
-             storageChangeStoragehouseDefault.setIntoStorehouse(houseId); //倒入仓房
86
-             storageChangeStoragehouseDefault.setIntoStorehouseName(inStorehouseName); //倒入仓房名称
87
-             //货位
88
-             storageChangeStoragehouseDefault.setIntoWarehouse(wareHouseId); //倒入货位
89
-             storageChangeStoragehouseDefault.setIntoWarehouseName(wareHouseName); //倒入货位名称
90
-             storageChangeStoragehouseDefault.setOrgId(orgId);  //组织id
91
-             //根据倒出仓房编码查询倒出仓房、货位、组织机构数据 
92
-             String hwbmout = jsonObject.getString("cfbmout");
93
-             Map<String, Object> outwareDataMap = feignBasicService.getWareDataByHwbm(hwbmout);
94
-             Integer houseOutId = (Integer) outwareDataMap.get("houseId");
95
-             Map<String, Object> outhouseDataMap = feignBasicService.getStoreDataByHouseId(houseOutId);
96
-             String storehouseName = (String) outhouseDataMap.get("StorehouseName");
97
-             //货位
98
-             Integer wareOutHouseId = (Integer) outwareDataMap.get("wareHouseId");
99
-             String wareOutHouseName = (String) outwareDataMap.get("warehouseName");
100
-             storageChangeStoragehouseDefault.setOutStorehouse(houseOutId); //倒出仓房
101
-             storageChangeStoragehouseDefault.setOutStorehouseName(storehouseName); //倒出仓房名称
102
-             
103
-             storageChangeStoragehouseDefault.setOutWarehouse(wareOutHouseId); //倒出货位
104
-             storageChangeStoragehouseDefault.setOutWarehouseName(wareOutHouseName); //倒出货位名称
105
-             //根据仓房、货位、orgId获取粮食品种等信息
106
-             Map<String, Object> map = feignAgileService.getDateByChHwh(orgId, houseOutId, wareOutHouseId);
107
-             Integer  a = (Integer ) map.get("hwxz"); //粮油性质
108
-			 String grainAttribute = a.toString();
109
-             Integer grainKind = (Integer) map.get("pz"); //品种
110
-             Integer grainDetailKind = (Integer) map.get("mxpz"); //明细品种
111
-             
112
-             storageChangeStoragehouseDefault.setFoodWar(grainKind); //品种
113
-             storageChangeStoragehouseDefault.setDetailWar(grainDetailKind); //明细品种
114
-             storageChangeStoragehouseDefault.setFoodNature(grainAttribute); //粮油性质
115
-             
116
-             storageChangeStoragehouseDefaultMapper.insert(storageChangeStoragehouseDefault);
117
-        	
118
-            modelMap.put("status", "success");
119
-        } catch (Exception e) {
120
-            e.printStackTrace();
121
-            modelMap.put("status", "error");
122
-            modelMap.put("msg", "保存失败!");
123
-        } 
124
-		
54
+		StringBuffer sbf = new StringBuffer(50);
55
+
56
+        // JSON字符串转对象
57
+        JSONObject jsonObject = JSONObject.parseObject(change);
58
+        StorageChangeStoragehouseDefault storageChangeStoragehouseDefault = new StorageChangeStoragehouseDefault();
59
+        if (StringUtils.isNotBlank(jsonObject.getString("changehouseNo"))) {
60
+        	storageChangeStoragehouseDefault.setChangehouseNo(jsonObject.getString("changehouseNo")); //接收虚拟倒仓通知单编号
61
+        } else {
62
+        	sbf.append("倒仓通知单编号changehouseNo不能为空,");
63
+        }
64
+    	storageChangeStoragehouseDefault.setApplyNo(jsonObject.getString("applyNo"));   //申请单号
65
+        String applyFirmName = storageChangeStoragehouseDefaultMapper.selectOrgName(jsonObject.getString("applyFirm"));
66
+    	storageChangeStoragehouseDefault.setApplyFirm(applyFirmName); //申请倒仓企业
67
+    	storageChangeStoragehouseDefault.setApplyTime(jsonObject.getDate("apply_time")); //申请倒仓时间
68
+    	storageChangeStoragehouseDefault.setBitWeigh("需要称重"); //  是否称重
69
+    	storageChangeStoragehouseDefault.setCreateTime(jsonObject.getDate("createTime")); //接收时间
70
+        storageChangeStoragehouseDefault.setOverTime(jsonObject.getDate("over_time"));  //结束时间
71
+    	storageChangeStoragehouseDefault.setFoodNumber(jsonObject.getString("foodNumber")); //粮食数量
72
+        storageChangeStoragehouseDefault.setOperStaff(jsonObject.getString("operStaff")); //操作人员
73
+    	storageChangeStoragehouseDefault.setOutAfter(jsonObject.getString("out_after")); //倒出后保管方式
74
+    	storageChangeStoragehouseDefault.setOutBefore(jsonObject.getString("out_before")); //倒出前保管方式
75
+    	storageChangeStoragehouseDefault.setJhwjbh(jsonObject.getString("dcsqbh")); //倒仓协议编号
76
+
77
+        //根据倒入仓房编码查询倒入仓房、货位、组织机构数据
78
+    	Integer orgId = null;
79
+    	String hwbmin = jsonObject.getString("cfbmin");
80
+        Map<String, Object> inWareDataMap = feignBasicService.getWareDataByHwbm(hwbmin);
81
+        if ("0".equals(inWareDataMap.get("houseId").toString()) || "0".equals(inWareDataMap.get("wareHouseId").toString())) {
82
+        	sbf.append("根据cfbmin的值"+hwbmin+"未获取到对应仓房货位信息,");
83
+        } else {
84
+        	//倒入仓房
85
+        	Integer houseId = (Integer) inWareDataMap.get("houseId");
86
+        	storageChangeStoragehouseDefault.setIntoStorehouse(houseId); //倒入仓房
87
+        	String inStorehouseName = (String) inWareDataMap.get("storehouseName");
88
+        	storageChangeStoragehouseDefault.setIntoStorehouseName(inStorehouseName); //倒入仓房名称
89
+        	//倒入货位
90
+            Integer wareHouseId = (Integer) inWareDataMap.get("wareHouseId");
91
+            String wareHouseName = (String) inWareDataMap.get("warehouseName");
92
+            storageChangeStoragehouseDefault.setIntoWarehouse(wareHouseId); //倒入货位
93
+            storageChangeStoragehouseDefault.setIntoWarehouseName(wareHouseName); //倒入货位名称
94
+            //组织机构ID
95
+            orgId = (Integer) inWareDataMap.get("orgId");
96
+            storageChangeStoragehouseDefault.setOrgId(orgId);  //组织id
97
+        }
98
+
99
+        //根据倒出仓房编码查询倒出仓房、货位、组织机构数据 
100
+        String hwbmout = jsonObject.getString("cfbmout");
101
+        Map<String, Object> outwareDataMap = feignBasicService.getWareDataByHwbm(hwbmout);
102
+        if ("0".equals(outwareDataMap.get("houseId").toString()) || "0".equals(outwareDataMap.get("wareHouseId").toString())) {
103
+        	sbf.append("根据cfbmout的值"+hwbmout+"未获取到对应仓房货位信息,");
104
+        } else {
105
+        	//倒出仓房
106
+        	Integer houseOutId = (Integer) outwareDataMap.get("houseId");
107
+        	storageChangeStoragehouseDefault.setOutStorehouse(houseOutId); //倒出仓房
108
+        	String storehouseName = (String) outwareDataMap.get("StorehouseName");
109
+        	storageChangeStoragehouseDefault.setOutStorehouseName(storehouseName); //倒出仓房名称
110
+        	//倒出货位
111
+        	Integer wareOutHouseId = (Integer) outwareDataMap.get("wareHouseId");
112
+        	String wareOutHouseName = (String) outwareDataMap.get("warehouseName");
113
+        	storageChangeStoragehouseDefault.setOutWarehouse(wareOutHouseId); //倒出货位
114
+        	storageChangeStoragehouseDefault.setOutWarehouseName(wareOutHouseName); //倒出货位名称
115
+
116
+        	//根据仓房、货位、orgId获取粮食品种等信息
117
+        	Map<String, Object> map = feignAgileService.getDateByChHwh(orgId, houseOutId, wareOutHouseId);
118
+        	if ("0".equals(map.get("pz").toString())) {
119
+        		Integer grainKind = (Integer) map.get("pz"); //品种
120
+        		storageChangeStoragehouseDefault.setFoodWar(grainKind); //品种
121
+        		String grainAttribute = map.get("hwxz").toString();//粮油性质
122
+        		storageChangeStoragehouseDefault.setFoodNature(grainAttribute); //粮油性质
123
+        		Integer grainDetailKind = (Integer) map.get("mxpz"); //明细品种
124
+        		storageChangeStoragehouseDefault.setDetailWar(grainDetailKind); //明细品种
125
+        	} else {
126
+        		sbf.append("根据倒出货位的值"+wareOutHouseId+"未获取到对应的库存信息,");
127
+        	}
128
+        }
129
+
130
+        if (sbf.toString().length() > 0) {
131
+        	modelMap.put("status", "error");
132
+            modelMap.put("msg", sbf.toString());
133
+        } else {
134
+        	modelMap.put("status", "success");
135
+        	modelMap.put("msg", "保存成功");
136
+        	storageChangeStoragehouseDefaultMapper.insert(storageChangeStoragehouseDefault);
137
+        }
138
+
125 139
 		return modelMap;
126 140
 	}
127 141
 }

+ 53 - 0
src/main/java/com/chinaitop/depot/storage/service/impl/SystemOutsideDataServiceImpl.java

@@ -0,0 +1,53 @@
1
+package com.chinaitop.depot.storage.service.impl;
2
+
3
+import java.util.Date;
4
+import java.util.List;
5
+import java.util.UUID;
6
+
7
+import javax.annotation.Resource;
8
+
9
+import org.apache.commons.lang.StringUtils;
10
+import org.springframework.stereotype.Service;
11
+
12
+import com.chinaitop.depot.storage.mapper.SystemOutsideDataMapper;
13
+import com.chinaitop.depot.storage.model.SystemOutsideData;
14
+import com.chinaitop.depot.storage.model.SystemOutsideDataExample;
15
+import com.chinaitop.depot.storage.model.SystemOutsideDataExample.Criteria;
16
+import com.chinaitop.depot.storage.service.SystemOutsideDataService;
17
+import com.chinaitop.depot.storage.utils.ParameterUtil;
18
+
19
+@Service
20
+public class SystemOutsideDataServiceImpl implements SystemOutsideDataService {
21
+
22
+	@Resource
23
+	private SystemOutsideDataMapper systemOutsideDataMapper;
24
+
25
+	@Override
26
+	public void addlogger(String titles, String jssj, String fhsj) {
27
+		SystemOutsideData data = new SystemOutsideData();
28
+		data.setId(UUID.randomUUID().toString().replace("-", ""));
29
+		data.setTitles(titles);
30
+		data.setJssj(jssj);
31
+		data.setFhsj(fhsj);
32
+		data.setInputTime(new Date());
33
+		systemOutsideDataMapper.insert(data);
34
+	}
35
+
36
+	@Override
37
+	public List<SystemOutsideData> findByCondition(String titles, String inputTime) {
38
+		SystemOutsideDataExample example = new SystemOutsideDataExample();
39
+		Criteria criteria = example.createCriteria();
40
+		if (StringUtils.isNotBlank(titles)) {
41
+			criteria.andTitlesEqualTo(titles);
42
+		}
43
+		if (StringUtils.isNotBlank(inputTime)) {
44
+			String starttime = inputTime+" 00:00:00";
45
+			String endtime = inputTime+" 23:59:59";
46
+			criteria.andInputTimeBetween(ParameterUtil.string2datetime(starttime), ParameterUtil.string2datetime(endtime));
47
+		}
48
+		example.setOrderByClause("input_time desc");
49
+		List<SystemOutsideData> list = systemOutsideDataMapper.selectByExample(example);
50
+		return list;
51
+	}
52
+
53
+}

+ 0 - 1
src/main/java/com/chinaitop/depot/unissoft/webservice/ChangeHouseIdeIServicempl.java

@@ -19,7 +19,6 @@ public class ChangeHouseIdeIServicempl implements ChangeHouseIdeService {
19 19
 	@Override
20 20
 	public String uploadChangeData(String orgId, String applyNo, String foodStatus, String goalNumber) {
21 21
 
22
-
23 22
 		return PushsService.updateChangeStorageHouse(orgId, applyNo, foodStatus, goalNumber);
24 23
 	}
25 24