fanxw 2 years ago
parent
commit
404461cab6

+ 4 - 3
src/main/java/com/chinaitop/depot/business/controller/BusinessContractReceiveController.java

@@ -45,10 +45,11 @@ public class BusinessContractReceiveController {
45
 		@ApiImplicitParam(name = "htbh", value = "合同编号", paramType = "query"),
45
 		@ApiImplicitParam(name = "htbh", value = "合同编号", paramType = "query"),
46
 		@ApiImplicitParam(name = "orgId", value = "组织机构ID", paramType = "query"),
46
 		@ApiImplicitParam(name = "orgId", value = "组织机构ID", paramType = "query"),
47
 		@ApiImplicitParam(name = "houseId", value = "仓房ID", paramType = "query"),
47
 		@ApiImplicitParam(name = "houseId", value = "仓房ID", paramType = "query"),
48
-		@ApiImplicitParam(name = "warehouseId", value = "货位ID", paramType = "query")
48
+		@ApiImplicitParam(name = "warehouseId", value = "货位ID", paramType = "query"),
49
+		@ApiImplicitParam(name = "htlx", value = "合同类型(0:采购,1:销售)", paramType = "query")
49
 	})
50
 	})
50
     public PageInfo<BusinessContractReceive> getList(Integer pageNum, Integer pageSize, 
51
     public PageInfo<BusinessContractReceive> getList(Integer pageNum, Integer pageSize, 
51
-    		String htbh ,Integer orgId, Integer houseId, Integer warehouseId) {
52
+    		String htbh ,Integer orgId, Integer houseId, Integer warehouseId, String htlx) {
52
        
53
        
53
 		PageInfo<BusinessContractReceive> pageInfo = null;
54
 		PageInfo<BusinessContractReceive> pageInfo = null;
54
 
55
 
@@ -57,7 +58,7 @@ public class BusinessContractReceiveController {
57
         	if (null != pageNum && null != pageSize) {
58
         	if (null != pageNum && null != pageSize) {
58
         		PageHelper.startPage(pageNum, pageSize);
59
         		PageHelper.startPage(pageNum, pageSize);
59
         	}
60
         	}
60
-			list = businessContractReceiveService.queryByExample(htbh, orgId, houseId, warehouseId);
61
+			list = businessContractReceiveService.queryByExample(htbh, orgId, houseId, warehouseId, htlx);
61
 			pageInfo = new PageInfo<BusinessContractReceive>(list);
62
 			pageInfo = new PageInfo<BusinessContractReceive>(list);
62
 		} catch (Exception e) {
63
 		} catch (Exception e) {
63
 			logger.error(e.getMessage(), e);
64
 			logger.error(e.getMessage(), e);

+ 27 - 4
src/main/java/com/chinaitop/depot/business/controller/ReceiveNoticeController.java

@@ -2,6 +2,7 @@ package com.chinaitop.depot.business.controller;
2
 
2
 
3
 import com.chinaitop.depot.business.model.BusinessNoticeReceive;
3
 import com.chinaitop.depot.business.model.BusinessNoticeReceive;
4
 import com.chinaitop.depot.business.service.ReceiveNoticeService;
4
 import com.chinaitop.depot.business.service.ReceiveNoticeService;
5
+import com.chinaitop.depot.business.service.SystemOutsideDataService;
5
 import com.github.pagehelper.PageInfo;
6
 import com.github.pagehelper.PageInfo;
6
 import io.swagger.annotations.Api;
7
 import io.swagger.annotations.Api;
7
 import io.swagger.annotations.ApiImplicitParam;
8
 import io.swagger.annotations.ApiImplicitParam;
@@ -39,6 +40,9 @@ public class ReceiveNoticeController {
39
 	@Resource
40
 	@Resource
40
 	private ReceiveNoticeService receiveNoticeService;
41
 	private ReceiveNoticeService receiveNoticeService;
41
 
42
 
43
+	@Resource
44
+	private SystemOutsideDataService systemOutsideDataService;
45
+
42
 
46
 
43
 	/**
47
 	/**
44
 	 * 接收通知单列表
48
 	 * 接收通知单列表
@@ -106,22 +110,41 @@ public class ReceiveNoticeController {
106
 	@RequestMapping(value="/save", produces = MediaType.APPLICATION_JSON_VALUE, method=RequestMethod.POST)
110
 	@RequestMapping(value="/save", produces = MediaType.APPLICATION_JSON_VALUE, method=RequestMethod.POST)
107
 	@ApiOperation(value="保存数据", notes = "保存")
111
 	@ApiOperation(value="保存数据", notes = "保存")
108
 	@ApiImplicitParams({
112
 	@ApiImplicitParams({
109
-		@ApiImplicitParam(name = "save", value = "新增数据", paramType = "query")
113
+		@ApiImplicitParam(name = "notice", value = "JSON对象数据", paramType = "form")
110
 	})
114
 	})
111
     public Map<String, Object> save(String notice){
115
     public Map<String, Object> save(String notice){
112
 
116
 
113
-		logger.info("市平台传推送过来的轮换通知单是:\n"+notice);
117
+		logger.info("市平台传推送过来的轮换通知单如下:");
118
+		logger.info(notice);
114
 		Map<String, Object> modelMap = new HashMap<String, Object>();
119
 		Map<String, Object> modelMap = new HashMap<String, Object>();
115
 		try {
120
 		try {
116
 			modelMap = receiveNoticeService.receiveNotice(notice);
121
 			modelMap = receiveNoticeService.receiveNotice(notice);
122
+			systemOutsideDataService.addlogger("tzdjs", notice, modelMap.toString());
117
 		} catch (Exception e) {
123
 		} catch (Exception e) {
118
-			//e.printStackTrace();
119
 			modelMap.put("status", "error");
124
 			modelMap.put("status", "error");
120
-			modelMap.put("msg", "保存失败!");
125
+			modelMap.put("msg", "接口异常,请联系管理员!");
121
 			logger.error(e.getMessage(), e);
126
 			logger.error(e.getMessage(), e);
127
+			systemOutsideDataService.addlogger("tzdjs", notice, modelMap.toString());
122
 		}
128
 		}
123
 		return modelMap;
129
 		return modelMap;
124
     }
130
     }
131
+
132
+	@RequestMapping(value="/update", produces = MediaType.APPLICATION_JSON_VALUE, method=RequestMethod.POST)
133
+	@ApiOperation(value="修改数据", notes = "")
134
+	@ApiImplicitParams({
135
+		@ApiImplicitParam(name = "notice", value = "JSON对象数据", paramType = "form")
136
+	})
137
+	public Map<String, Object> update(String notice) {
138
+		Map<String, Object> modelMap = new HashMap<String, Object>();
139
+		try {
140
+			modelMap = receiveNoticeService.updateReceiveNotice(notice);
141
+		} catch (Exception e) {
142
+			logger.error(e.getMessage(), e);
143
+			modelMap.put("status", 500);
144
+			modelMap.put("msg", "操作失败");
145
+		}
146
+		return modelMap;
147
+	}
125
 	
148
 	
126
 	
149
 	
127
 	/**
150
 	/**

+ 20 - 72
src/main/java/com/chinaitop/depot/business/mapper/BusinessNoticeReceiveMapper.xml

@@ -2,11 +2,6 @@
2
 <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd" >
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.business.mapper.BusinessNoticeReceiveMapper" >
3
 <mapper namespace="com.chinaitop.depot.business.mapper.BusinessNoticeReceiveMapper" >
4
   <resultMap id="BaseResultMap" type="com.chinaitop.depot.business.model.BusinessNoticeReceive" >
4
   <resultMap id="BaseResultMap" type="com.chinaitop.depot.business.model.BusinessNoticeReceive" >
5
-    <!--
6
-      WARNING - @mbggenerated
7
-      This element is automatically generated by MyBatis Generator, do not modify.
8
-      This element was generated on Wed Jul 08 09:57:43 CST 2020.
9
-    -->
10
     <id column="id" property="id" jdbcType="INTEGER" />
5
     <id column="id" property="id" jdbcType="INTEGER" />
11
     <result column="notice_number" property="noticeNumber" jdbcType="VARCHAR" />
6
     <result column="notice_number" property="noticeNumber" jdbcType="VARCHAR" />
12
     <result column="crktype" property="crktype" jdbcType="VARCHAR" />
7
     <result column="crktype" property="crktype" jdbcType="VARCHAR" />
@@ -27,6 +22,7 @@
27
     <result column="grain_detail_kind" property="grainDetailKind" jdbcType="INTEGER" />
22
     <result column="grain_detail_kind" property="grainDetailKind" jdbcType="INTEGER" />
28
     <result column="receive_time" property="receiveTime" jdbcType="TIMESTAMP" />
23
     <result column="receive_time" property="receiveTime" jdbcType="TIMESTAMP" />
29
     <result column="input_time" property="inputTime" jdbcType="TIMESTAMP" />
24
     <result column="input_time" property="inputTime" jdbcType="TIMESTAMP" />
25
+    <result column="htbh" property="htbh" jdbcType="VARCHAR" />
30
     <result column="grain_annual" property="grainAnnual" jdbcType="INTEGER" />
26
     <result column="grain_annual" property="grainAnnual" jdbcType="INTEGER" />
31
     <result column="productive_year" property="productiveYear" jdbcType="INTEGER" />
27
     <result column="productive_year" property="productiveYear" jdbcType="INTEGER" />
32
     <result column="grain_producing_area" property="grainProducingArea" jdbcType="INTEGER" />
28
     <result column="grain_producing_area" property="grainProducingArea" jdbcType="INTEGER" />
@@ -116,22 +112,12 @@
116
     </where>
112
     </where>
117
   </sql>
113
   </sql>
118
   <sql id="Base_Column_List" >
114
   <sql id="Base_Column_List" >
119
-    <!--
120
-      WARNING - @mbggenerated
121
-      This element is automatically generated by MyBatis Generator, do not modify.
122
-      This element was generated on Wed Jul 08 09:57:43 CST 2020.
123
-    -->
124
     id, notice_number, crktype, contract_number, ywtype, house_id, ware_house_id, grain_kind, 
115
     id, notice_number, crktype, contract_number, ywtype, house_id, ware_house_id, grain_kind, 
125
     grain_grade, count, outgoing_period, forwarding_unit, receive_unit, resion, in_application, 
116
     grain_grade, count, outgoing_period, forwarding_unit, receive_unit, resion, in_application, 
126
     org_id, grain_attribute, grain_detail_kind, receive_time,input_time,grain_annual,productive_year,grain_producing_area,
117
     org_id, grain_attribute, grain_detail_kind, receive_time,input_time,grain_annual,productive_year,grain_producing_area,
127
-    lsxzzbdh,lssl,hzqlsxzdm,hzrq,ccshr,zjshr,tjshr,kjshr,ldshr,bz,audit_state,is_notice,pzmc,is_sheet
118
+    lsxzzbdh,lssl,hzqlsxzdm,hzrq,ccshr,zjshr,tjshr,kjshr,ldshr,bz,audit_state,is_notice,pzmc,is_sheet,htbh
128
   </sql>
119
   </sql>
129
   <select id="selectByExample" resultMap="BaseResultMap" parameterType="com.chinaitop.depot.business.model.BusinessNoticeReceiveExample" >
120
   <select id="selectByExample" resultMap="BaseResultMap" parameterType="com.chinaitop.depot.business.model.BusinessNoticeReceiveExample" >
130
-    <!--
131
-      WARNING - @mbggenerated
132
-      This element is automatically generated by MyBatis Generator, do not modify.
133
-      This element was generated on Wed Jul 08 09:57:43 CST 2020.
134
-    -->
135
     select
121
     select
136
     <if test="distinct" >
122
     <if test="distinct" >
137
       distinct
123
       distinct
@@ -146,42 +132,22 @@
146
     </if>
132
     </if>
147
   </select>
133
   </select>
148
   <select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.Integer" >
134
   <select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.Integer" >
149
-    <!--
150
-      WARNING - @mbggenerated
151
-      This element is automatically generated by MyBatis Generator, do not modify.
152
-      This element was generated on Wed Jul 08 09:57:43 CST 2020.
153
-    -->
154
     select 
135
     select 
155
     <include refid="Base_Column_List" />
136
     <include refid="Base_Column_List" />
156
     from business_notice_receive
137
     from business_notice_receive
157
     where id = #{id,jdbcType=INTEGER}
138
     where id = #{id,jdbcType=INTEGER}
158
   </select>
139
   </select>
159
   <delete id="deleteByPrimaryKey" parameterType="java.lang.Integer" >
140
   <delete id="deleteByPrimaryKey" parameterType="java.lang.Integer" >
160
-    <!--
161
-      WARNING - @mbggenerated
162
-      This element is automatically generated by MyBatis Generator, do not modify.
163
-      This element was generated on Wed Jul 08 09:57:43 CST 2020.
164
-    -->
165
     delete from business_notice_receive
141
     delete from business_notice_receive
166
     where id = #{id,jdbcType=INTEGER}
142
     where id = #{id,jdbcType=INTEGER}
167
   </delete>
143
   </delete>
168
   <delete id="deleteByExample" parameterType="com.chinaitop.depot.business.model.BusinessNoticeReceiveExample" >
144
   <delete id="deleteByExample" parameterType="com.chinaitop.depot.business.model.BusinessNoticeReceiveExample" >
169
-    <!--
170
-      WARNING - @mbggenerated
171
-      This element is automatically generated by MyBatis Generator, do not modify.
172
-      This element was generated on Wed Jul 08 09:57:43 CST 2020.
173
-    -->
174
     delete from business_notice_receive
145
     delete from business_notice_receive
175
     <if test="_parameter != null" >
146
     <if test="_parameter != null" >
176
       <include refid="Example_Where_Clause" />
147
       <include refid="Example_Where_Clause" />
177
     </if>
148
     </if>
178
   </delete>
149
   </delete>
179
   <insert id="insert" parameterType="com.chinaitop.depot.business.model.BusinessNoticeReceive" >
150
   <insert id="insert" parameterType="com.chinaitop.depot.business.model.BusinessNoticeReceive" >
180
-    <!--
181
-      WARNING - @mbggenerated
182
-      This element is automatically generated by MyBatis Generator, do not modify.
183
-      This element was generated on Wed Jul 08 09:57:43 CST 2020.
184
-    -->
185
     insert into business_notice_receive (id, notice_number, crktype, 
151
     insert into business_notice_receive (id, notice_number, crktype, 
186
       contract_number, ywtype, house_id, 
152
       contract_number, ywtype, house_id, 
187
       ware_house_id, grain_kind, grain_grade, 
153
       ware_house_id, grain_kind, grain_grade, 
@@ -189,7 +155,7 @@
189
       receive_unit, resion, in_application, 
155
       receive_unit, resion, in_application, 
190
       org_id, grain_attribute, grain_detail_kind, 
156
       org_id, grain_attribute, grain_detail_kind, 
191
       receive_time,input_time,grain_annual,productive_year,grain_producing_area,
157
       receive_time,input_time,grain_annual,productive_year,grain_producing_area,
192
-      lsxzzbdh,lssl,hzqlsxzdm,hzrq,ccshr,zjshr,tjshr,kjshr,ldshr,bz,audit_state,is_notice,pzmc,is_sheet)
158
+      lsxzzbdh,lssl,hzqlsxzdm,hzrq,ccshr,zjshr,tjshr,kjshr,ldshr,bz,audit_state,is_notice,pzmc,is_sheet,htbh)
193
     values (#{id,jdbcType=INTEGER}, #{noticeNumber,jdbcType=VARCHAR}, #{crktype,jdbcType=VARCHAR}, 
159
     values (#{id,jdbcType=INTEGER}, #{noticeNumber,jdbcType=VARCHAR}, #{crktype,jdbcType=VARCHAR}, 
194
       #{contractNumber,jdbcType=VARCHAR}, #{ywtype,jdbcType=VARCHAR}, #{houseId,jdbcType=INTEGER}, 
160
       #{contractNumber,jdbcType=VARCHAR}, #{ywtype,jdbcType=VARCHAR}, #{houseId,jdbcType=INTEGER}, 
195
       #{wareHouseId,jdbcType=INTEGER}, #{grainKind,jdbcType=INTEGER}, #{grainGrade,jdbcType=INTEGER}, 
161
       #{wareHouseId,jdbcType=INTEGER}, #{grainKind,jdbcType=INTEGER}, #{grainGrade,jdbcType=INTEGER}, 
@@ -202,14 +168,9 @@
202
       #{hzrq,jdbcType=TIMESTAMP},#{ccshr,jdbcType=VARCHAR},#{zjshr,jdbcType=VARCHAR},
168
       #{hzrq,jdbcType=TIMESTAMP},#{ccshr,jdbcType=VARCHAR},#{zjshr,jdbcType=VARCHAR},
203
       #{tjshr,jdbcType=VARCHAR},#{kjshr,jdbcType=VARCHAR},#{ldshr,jdbcType=VARCHAR},
169
       #{tjshr,jdbcType=VARCHAR},#{kjshr,jdbcType=VARCHAR},#{ldshr,jdbcType=VARCHAR},
204
       #{bz,jdbcType=VARCHAR},#{auditState,jdbcType=INTEGER},#{isNotice,jdbcType=INTEGER},#{pzmc,jdbcType=VARCHAR}
170
       #{bz,jdbcType=VARCHAR},#{auditState,jdbcType=INTEGER},#{isNotice,jdbcType=INTEGER},#{pzmc,jdbcType=VARCHAR}
205
-      ,#{isSheet,jdbcType=INTEGER})
171
+      ,#{isSheet,jdbcType=INTEGER},#{htbh,jdbcType=VARCHAR})
206
   </insert>
172
   </insert>
207
   <insert id="insertSelective" parameterType="com.chinaitop.depot.business.model.BusinessNoticeReceive" >
173
   <insert id="insertSelective" parameterType="com.chinaitop.depot.business.model.BusinessNoticeReceive" >
208
-    <!--
209
-      WARNING - @mbggenerated
210
-      This element is automatically generated by MyBatis Generator, do not modify.
211
-      This element was generated on Wed Jul 08 09:57:43 CST 2020.
212
-    -->
213
     insert into business_notice_receive
174
     insert into business_notice_receive
214
     <trim prefix="(" suffix=")" suffixOverrides="," >
175
     <trim prefix="(" suffix=")" suffixOverrides="," >
215
       <if test="id != null" >
176
       <if test="id != null" >
@@ -323,6 +284,9 @@
323
       <if test="isSheet != null" >
284
       <if test="isSheet != null" >
324
         is_sheet,
285
         is_sheet,
325
       </if>
286
       </if>
287
+      <if test="htbh != null">
288
+        htbh,
289
+      </if>
326
       
290
       
327
     </trim>
291
     </trim>
328
     <trim prefix="values (" suffix=")" suffixOverrides="," >
292
     <trim prefix="values (" suffix=")" suffixOverrides="," >
@@ -437,25 +401,18 @@
437
       <if test="isSheet != null" >
401
       <if test="isSheet != null" >
438
          #{isSheet,jdbcType=INTEGER},
402
          #{isSheet,jdbcType=INTEGER},
439
       </if>
403
       </if>
404
+      <if test="htbh != null">
405
+        #{htbh,jdbcType=VARCHAR},
406
+      </if>
440
     </trim>
407
     </trim>
441
   </insert>
408
   </insert>
442
   <select id="countByExample" parameterType="com.chinaitop.depot.business.model.BusinessNoticeReceiveExample" resultType="java.lang.Integer" >
409
   <select id="countByExample" parameterType="com.chinaitop.depot.business.model.BusinessNoticeReceiveExample" resultType="java.lang.Integer" >
443
-    <!--
444
-      WARNING - @mbggenerated
445
-      This element is automatically generated by MyBatis Generator, do not modify.
446
-      This element was generated on Wed Jul 08 09:57:43 CST 2020.
447
-    -->
448
     select count(*) from business_notice_receive
410
     select count(*) from business_notice_receive
449
     <if test="_parameter != null" >
411
     <if test="_parameter != null" >
450
       <include refid="Example_Where_Clause" />
412
       <include refid="Example_Where_Clause" />
451
     </if>
413
     </if>
452
   </select>
414
   </select>
453
   <update id="updateByExampleSelective" parameterType="map" >
415
   <update id="updateByExampleSelective" parameterType="map" >
454
-    <!--
455
-      WARNING - @mbggenerated
456
-      This element is automatically generated by MyBatis Generator, do not modify.
457
-      This element was generated on Wed Jul 08 09:57:43 CST 2020.
458
-    -->
459
     update business_notice_receive
416
     update business_notice_receive
460
     <set >
417
     <set >
461
       <if test="record.id != null" >
418
       <if test="record.id != null" >
@@ -527,7 +484,6 @@
527
       <if test="record.grainProducingArea != null" >
484
       <if test="record.grainProducingArea != null" >
528
         grain_producing_area = #{record.grainProducingArea,jdbcType=INTEGER},
485
         grain_producing_area = #{record.grainProducingArea,jdbcType=INTEGER},
529
       </if>
486
       </if>
530
-      
531
       <if test="record.lsxzzbdh != null" >
487
       <if test="record.lsxzzbdh != null" >
532
         lsxzzbdh = #{record.lsxzzbdh,jdbcType=VARCHAR},
488
         lsxzzbdh = #{record.lsxzzbdh,jdbcType=VARCHAR},
533
       </if>
489
       </if>
@@ -570,17 +526,15 @@
570
       <if test="record.isSheet != null" >
526
       <if test="record.isSheet != null" >
571
         is_sheet = #{record.isSheet,jdbcType=INTEGER},
527
         is_sheet = #{record.isSheet,jdbcType=INTEGER},
572
       </if>
528
       </if>
529
+      <if test="record.htbh != null">
530
+        htbh = #{record.htbh,jdbcType=VARCHAR},
531
+      </if>
573
     </set>
532
     </set>
574
     <if test="_parameter != null" >
533
     <if test="_parameter != null" >
575
       <include refid="Update_By_Example_Where_Clause" />
534
       <include refid="Update_By_Example_Where_Clause" />
576
     </if>
535
     </if>
577
   </update>
536
   </update>
578
   <update id="updateByExample" parameterType="map" >
537
   <update id="updateByExample" parameterType="map" >
579
-    <!--
580
-      WARNING - @mbggenerated
581
-      This element is automatically generated by MyBatis Generator, do not modify.
582
-      This element was generated on Wed Jul 08 09:57:43 CST 2020.
583
-    -->
584
     update business_notice_receive
538
     update business_notice_receive
585
     set id = #{record.id,jdbcType=INTEGER},
539
     set id = #{record.id,jdbcType=INTEGER},
586
       notice_number = #{record.noticeNumber,jdbcType=VARCHAR},
540
       notice_number = #{record.noticeNumber,jdbcType=VARCHAR},
@@ -618,18 +572,14 @@
618
       audit_state = #{record.auditState,jdbcType=INTEGER},
572
       audit_state = #{record.auditState,jdbcType=INTEGER},
619
       is_notice = #{record.isNotice,jdbcType=INTEGER},
573
       is_notice = #{record.isNotice,jdbcType=INTEGER},
620
       pzmc = #{record.pzmc,jdbcType=VARCHAR},
574
       pzmc = #{record.pzmc,jdbcType=VARCHAR},
621
-      is_sheet = #{record.isSheet,jdbcType=INTEGER}
575
+      is_sheet = #{record.isSheet,jdbcType=INTEGER},
576
+      htbh = #{record.htbh,jdbcType=VARCHAR}
622
       
577
       
623
     <if test="_parameter != null" >
578
     <if test="_parameter != null" >
624
       <include refid="Update_By_Example_Where_Clause" />
579
       <include refid="Update_By_Example_Where_Clause" />
625
     </if>
580
     </if>
626
   </update>
581
   </update>
627
   <update id="updateByPrimaryKeySelective" parameterType="com.chinaitop.depot.business.model.BusinessNoticeReceive" >
582
   <update id="updateByPrimaryKeySelective" parameterType="com.chinaitop.depot.business.model.BusinessNoticeReceive" >
628
-    <!--
629
-      WARNING - @mbggenerated
630
-      This element is automatically generated by MyBatis Generator, do not modify.
631
-      This element was generated on Wed Jul 08 09:57:43 CST 2020.
632
-    -->
633
     update business_notice_receive
583
     update business_notice_receive
634
     <set >
584
     <set >
635
       <if test="noticeNumber != null" >
585
       <if test="noticeNumber != null" >
@@ -698,7 +648,6 @@
698
       <if test="grainProducingArea != null" >
648
       <if test="grainProducingArea != null" >
699
         grain_producing_area = #{grainProducingArea,jdbcType=INTEGER},
649
         grain_producing_area = #{grainProducingArea,jdbcType=INTEGER},
700
       </if>
650
       </if>
701
-      
702
        <if test="lsxzzbdh != null" >
651
        <if test="lsxzzbdh != null" >
703
         lsxzzbdh = #{lsxzzbdh,jdbcType=VARCHAR},
652
         lsxzzbdh = #{lsxzzbdh,jdbcType=VARCHAR},
704
       </if>
653
       </if>
@@ -741,15 +690,13 @@
741
       <if test="isSheet != null" >
690
       <if test="isSheet != null" >
742
         is_sheet = #{isSheet,jdbcType=INTEGER},
691
         is_sheet = #{isSheet,jdbcType=INTEGER},
743
       </if>
692
       </if>
693
+      <if test="htbh != null">
694
+        htbh = #{htbh,jdbcType=VARCHAR},
695
+      </if>
744
     </set>
696
     </set>
745
     where id = #{id,jdbcType=INTEGER}
697
     where id = #{id,jdbcType=INTEGER}
746
   </update>
698
   </update>
747
   <update id="updateByPrimaryKey" parameterType="com.chinaitop.depot.business.model.BusinessNoticeReceive" >
699
   <update id="updateByPrimaryKey" parameterType="com.chinaitop.depot.business.model.BusinessNoticeReceive" >
748
-    <!--
749
-      WARNING - @mbggenerated
750
-      This element is automatically generated by MyBatis Generator, do not modify.
751
-      This element was generated on Wed Jul 08 09:57:43 CST 2020.
752
-    -->
753
     update business_notice_receive
700
     update business_notice_receive
754
     set notice_number = #{noticeNumber,jdbcType=VARCHAR},
701
     set notice_number = #{noticeNumber,jdbcType=VARCHAR},
755
       crktype = #{crktype,jdbcType=VARCHAR},
702
       crktype = #{crktype,jdbcType=VARCHAR},
@@ -786,7 +733,8 @@
786
       audit_state = #{auditState,jdbcType=INTEGER},
733
       audit_state = #{auditState,jdbcType=INTEGER},
787
       is_notice = #{isNotice,jdbcType=INTEGER},
734
       is_notice = #{isNotice,jdbcType=INTEGER},
788
       pzmc = #{pzmc,jdbcType=VARCHAR},
735
       pzmc = #{pzmc,jdbcType=VARCHAR},
789
-      is_sheet = #{isSheet,jdbcType=INTEGER}
736
+      is_sheet = #{isSheet,jdbcType=INTEGER},
737
+      htbh = #{htbh,jdbcType=VARCHAR}
790
     where id = #{id,jdbcType=INTEGER}
738
     where id = #{id,jdbcType=INTEGER}
791
   </update>
739
   </update>
792
   
740
   

+ 256 - 279
src/main/java/com/chinaitop/depot/business/model/BusinessNoticeReceive.java

@@ -5,30 +5,37 @@ import java.util.Date;
5
 import com.fasterxml.jackson.annotation.JsonFormat;
5
 import com.fasterxml.jackson.annotation.JsonFormat;
6
 
6
 
7
 public class BusinessNoticeReceive {
7
 public class BusinessNoticeReceive {
8
-		
9
-		//表里新增字段
10
-	  private String lsxzzbdh;
11
-	  private String lssl;
12
-	  private Integer hzqlsxzdm;
13
-	  @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
14
-	  private Date hzrq;//划转日期
15
-	  private String ccshr;
16
-	  private String zjshr;
17
-	  private String tjshr;
18
-	  private String kjshr;
19
-	  private String ldshr;
20
-	  private String bz;
21
-	  private Integer auditState;
22
-	  private Integer isNotice;
23
-	  private String pzmc;
24
-	  private Integer isSheet;
25
-	  
26
-	
27
 	
8
 	
9
+	//表里新增字段
10
+    private String lsxzzbdh;
11
+    private String lssl;
12
+    private Integer hzqlsxzdm;
13
+    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
14
+    private Date hzrq;//划转日期
15
+    private String ccshr;
16
+    private String zjshr;
17
+    private String tjshr;
18
+    private String kjshr;
19
+    private String ldshr;
20
+    private String bz;
21
+    private Integer auditState;
22
+    private Integer isNotice;
23
+    private String pzmc;
24
+    private Integer isSheet;
25
+    private String htbh;
26
+
27
+    /**
28
+     * 0是性质转变单
29
+     * @return
30
+     */
28
 	public Integer getIsSheet() {
31
 	public Integer getIsSheet() {
29
 		return isSheet;
32
 		return isSheet;
30
 	}
33
 	}
31
 
34
 
35
+	/**
36
+	 * 0是性质转变单
37
+	 * @param isSheet
38
+	 */
32
 	public void setIsSheet(Integer isSheet) {
39
 	public void setIsSheet(Integer isSheet) {
33
 		this.isSheet = isSheet;
40
 		this.isSheet = isSheet;
34
 	}
41
 	}
@@ -41,42 +48,82 @@ public class BusinessNoticeReceive {
41
 		this.pzmc = pzmc;
48
 		this.pzmc = pzmc;
42
 	}
49
 	}
43
 
50
 
51
+	/**
52
+	 * 是否引用(0:否,1:是)
53
+	 * @return
54
+	 */
44
 	public Integer getIsNotice() {
55
 	public Integer getIsNotice() {
45
 		return isNotice;
56
 		return isNotice;
46
 	}
57
 	}
47
 
58
 
59
+	/**
60
+	 * 是否引用(0:否,1:是)
61
+	 * @param isNotice
62
+	 */
48
 	public void setIsNotice(Integer isNotice) {
63
 	public void setIsNotice(Integer isNotice) {
49
 		this.isNotice = isNotice;
64
 		this.isNotice = isNotice;
50
 	}
65
 	}
51
 
66
 
67
+	/**
68
+	 * 粮食性质转变单单号
69
+	 * @return
70
+	 */
52
 	public String getLsxzzbdh() {
71
 	public String getLsxzzbdh() {
53
 		return lsxzzbdh;
72
 		return lsxzzbdh;
54
 	}
73
 	}
55
 
74
 
75
+	/**
76
+	 * 粮食性质转变单单号
77
+	 * @param lsxzzbdh
78
+	 */
56
 	public void setLsxzzbdh(String lsxzzbdh) {
79
 	public void setLsxzzbdh(String lsxzzbdh) {
57
 		this.lsxzzbdh = lsxzzbdh;
80
 		this.lsxzzbdh = lsxzzbdh;
58
 	}
81
 	}
59
 
82
 
83
+	/**
84
+	 * 库存数量
85
+	 * @return
86
+	 */
60
 	public String getLssl() {
87
 	public String getLssl() {
61
 		return lssl;
88
 		return lssl;
62
 	}
89
 	}
63
 
90
 
91
+	/**
92
+	 * 库存数量
93
+	 * @param lssl
94
+	 */
64
 	public void setLssl(String lssl) {
95
 	public void setLssl(String lssl) {
65
 		this.lssl = lssl;
96
 		this.lssl = lssl;
66
 	}
97
 	}
67
 
98
 
99
+	/**
100
+	 * 划转后粮食性质
101
+	 * @return
102
+	 */
68
 	public Integer getHzqlsxzdm() {
103
 	public Integer getHzqlsxzdm() {
69
 		return hzqlsxzdm;
104
 		return hzqlsxzdm;
70
 	}
105
 	}
71
 
106
 
107
+	/**
108
+	 * 划转后粮食性质
109
+	 * @param hzqlsxzdm
110
+	 */
72
 	public void setHzqlsxzdm(Integer hzqlsxzdm) {
111
 	public void setHzqlsxzdm(Integer hzqlsxzdm) {
73
 		this.hzqlsxzdm = hzqlsxzdm;
112
 		this.hzqlsxzdm = hzqlsxzdm;
74
 	}
113
 	}
75
 
114
 
115
+	/**
116
+	 * 划转时间
117
+	 * @return
118
+	 */
76
 	public Date getHzrq() {
119
 	public Date getHzrq() {
77
 		return hzrq;
120
 		return hzrq;
78
 	}
121
 	}
79
 
122
 
123
+	/**
124
+	 * 划转时间
125
+	 * @param hzrq
126
+	 */
80
 	public void setHzrq(Date hzrq) {
127
 	public void setHzrq(Date hzrq) {
81
 		this.hzrq = hzrq;
128
 		this.hzrq = hzrq;
82
 	}
129
 	}
@@ -129,111 +176,148 @@ public class BusinessNoticeReceive {
129
 		this.bz = bz;
176
 		this.bz = bz;
130
 	}
177
 	}
131
 
178
 
179
+	/**
180
+	 * 审批状态(0:仓储部经理审批,1:质检部经理审批,2:统计经理审批,3:会计审批,4:库领导审批,5:审批结束)
181
+	 * @return
182
+	 */
132
 	public Integer getAuditState() {
183
 	public Integer getAuditState() {
133
 		return auditState;
184
 		return auditState;
134
 	}
185
 	}
135
 
186
 
187
+	/**
188
+	 * 审批状态(0:仓储部经理审批,1:质检部经理审批,2:统计经理审批,3:会计审批,4:库领导审批,5:审批结束)
189
+	 * @param auditState
190
+	 */
136
 	public void setAuditState(Integer auditState) {
191
 	public void setAuditState(Integer auditState) {
137
 		this.auditState = auditState;
192
 		this.auditState = auditState;
138
 	}
193
 	}
139
 
194
 
140
-		//业务字段
141
-		private String outCount;
142
-		private String outRemainingNumber;
143
-		private boolean checked;
144
-		private String inCount;
145
-		private String remainingNumber;
146
-		private boolean selected;
147
-		
148
-		
149
-		
150
-		
151
-		
152
-	    public boolean isSelected() {
153
-			return selected;
154
-		}
195
+	//业务字段
196
+	private String outCount;
197
+	private String outRemainingNumber;
198
+	private boolean checked;
199
+	private String inCount;
200
+	private String remainingNumber;
201
+	private boolean selected;
155
 
202
 
156
-		public void setSelected(boolean selected) {
157
-			this.selected = selected;
158
-		}
203
+    public boolean isSelected() {
204
+		return selected;
205
+	}
159
 
206
 
160
-		public String getInCount() {
161
-			return inCount;
162
-		}
207
+	public void setSelected(boolean selected) {
208
+		this.selected = selected;
209
+	}
163
 
210
 
164
-		public void setInCount(String inCount) {
165
-			this.inCount = inCount;
166
-		}
211
+	public String getInCount() {
212
+		return inCount;
213
+	}
167
 
214
 
168
-		public String getRemainingNumber() {
169
-			return remainingNumber;
170
-		}
215
+	public void setInCount(String inCount) {
216
+		this.inCount = inCount;
217
+	}
171
 
218
 
172
-		public void setRemainingNumber(String remainingNumber) {
173
-			this.remainingNumber = remainingNumber;
174
-		}
219
+	public String getRemainingNumber() {
220
+		return remainingNumber;
221
+	}
175
 
222
 
176
-		public boolean isChecked() {
177
-			return checked;
178
-		}
223
+	public void setRemainingNumber(String remainingNumber) {
224
+		this.remainingNumber = remainingNumber;
225
+	}
179
 
226
 
180
-		public void setChecked(boolean checked) {
181
-			this.checked = checked;
182
-		}
227
+	public boolean isChecked() {
228
+		return checked;
229
+	}
183
 
230
 
184
-		public String getOutCount() {
185
-			return outCount;
186
-		}
231
+	public void setChecked(boolean checked) {
232
+		this.checked = checked;
233
+	}
187
 
234
 
188
-		public void setOutCount(String outCount) {
189
-			this.outCount = outCount;
190
-		}
235
+	public String getOutCount() {
236
+		return outCount;
237
+	}
191
 
238
 
192
-		public String getOutRemainingNumber() {
193
-			return outRemainingNumber;
194
-		}
239
+	public void setOutCount(String outCount) {
240
+		this.outCount = outCount;
241
+	}
195
 
242
 
196
-		public void setOutRemainingNumber(String outRemainingNumber) {
197
-			this.outRemainingNumber = outRemainingNumber;
198
-		}
199
-		
200
-		//表里面新增的字段
201
-		private Integer grainAnnual;//收获年度
202
-		private Integer productiveYear;//生产年份
203
-		private Integer grainProducingArea;//粮油产地
204
-		@JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
205
-		private Date inputTime;//入库时间
206
-		
207
-		
208
-		 public Integer getGrainAnnual() {
209
-		        return grainAnnual;
210
-		 }
211
-
212
-		 public void setGrainAnnual(Integer grainAnnual) {
213
-		        this.grainAnnual = grainAnnual;
214
-		 }
215
-		 public Integer getProductiveYear() {
216
-		        return productiveYear;
217
-		 }
218
-
219
-		 public void setProductiveYear(Integer productiveYear) {
220
-		        this.productiveYear = productiveYear;
221
-		 }
222
-		 public Integer getGrainProducingArea() {
223
-		        return grainProducingArea;
224
-		 }
225
-
226
-		 public void setGrainProducingArea(Integer grainProducingArea) {
227
-		        this.grainProducingArea = grainProducingArea;
228
-		 }
229
-
230
-		 public Date getInputTime() {
231
-		        return inputTime;
232
-		 }
233
-
234
-		 public void setInputTime(Date inputTime) {
235
-		        this.inputTime = inputTime;
236
-		 }
243
+	public String getOutRemainingNumber() {
244
+		return outRemainingNumber;
245
+	}
246
+
247
+	public void setOutRemainingNumber(String outRemainingNumber) {
248
+		this.outRemainingNumber = outRemainingNumber;
249
+	}
250
+	
251
+	//表里面新增的字段
252
+	private Integer grainAnnual;//收获年度
253
+	private Integer productiveYear;//生产年份
254
+	private Integer grainProducingArea;//粮油产地
255
+	@JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
256
+	private Date inputTime;//入库时间
257
+	
258
+	/**
259
+	 * 收获年度
260
+	 * @return
261
+	 */
262
+	public Integer getGrainAnnual() {
263
+	    return grainAnnual;
264
+	}
265
+
266
+	/**
267
+	 * 收获年度
268
+	 * @param grainAnnual
269
+	 */
270
+	public void setGrainAnnual(Integer grainAnnual) {
271
+	    this.grainAnnual = grainAnnual;
272
+	}
273
+
274
+	/**
275
+	 * 生产年份
276
+	 * @return
277
+	 */
278
+	public Integer getProductiveYear() {
279
+	    return productiveYear;
280
+	}
281
+
282
+	 /**
283
+	  * 生产年份
284
+	  * @param productiveYear
285
+	  */
286
+	 public void setProductiveYear(Integer productiveYear) {
287
+	        this.productiveYear = productiveYear;
288
+	 }
289
+
290
+	 /**
291
+	  * 产地
292
+	  * @return
293
+	  */
294
+	 public Integer getGrainProducingArea() {
295
+	        return grainProducingArea;
296
+	 }
297
+
298
+	 /**
299
+	  * 产地
300
+	  * @param grainProducingArea
301
+	  */
302
+	 public void setGrainProducingArea(Integer grainProducingArea) {
303
+	        this.grainProducingArea = grainProducingArea;
304
+	 }
305
+
306
+	 /**
307
+	  * 入库时间
308
+	  * @return
309
+	  */
310
+	 public Date getInputTime() {
311
+	        return inputTime;
312
+	 }
313
+
314
+	 /**
315
+	  * 入库时间
316
+	  * @param inputTime
317
+	  */
318
+	 public void setInputTime(Date inputTime) {
319
+	        this.inputTime = inputTime;
320
+	 }
237
 		    
321
 		    
238
 		
322
 		
239
 		
323
 		
@@ -439,96 +523,60 @@ public class BusinessNoticeReceive {
439
     }
523
     }
440
 
524
 
441
     /**
525
     /**
442
-     * This method was generated by MyBatis Generator.
443
-     * This method returns the value of the database column business_notice_receive.crktype
444
-     *
445
-     * @return the value of business_notice_receive.crktype
446
-     *
447
-     * @mbggenerated Wed Jul 08 09:57:43 CST 2020
526
+     * 出入库类型(1:入库,3:出库,13:出入库)
448
      */
527
      */
449
     public String getCrktype() {
528
     public String getCrktype() {
450
         return crktype;
529
         return crktype;
451
     }
530
     }
452
 
531
 
453
     /**
532
     /**
454
-     * This method was generated by MyBatis Generator.
455
-     * This method sets the value of the database column business_notice_receive.crktype
456
-     *
457
-     * @param crktype the value for business_notice_receive.crktype
458
-     *
459
-     * @mbggenerated Wed Jul 08 09:57:43 CST 2020
533
+     * 出入库类型(1:入库,3:出库,13:出入库)
534
+     * @param crktype
460
      */
535
      */
461
     public void setCrktype(String crktype) {
536
     public void setCrktype(String crktype) {
462
         this.crktype = crktype == null ? null : crktype.trim();
537
         this.crktype = crktype == null ? null : crktype.trim();
463
     }
538
     }
464
 
539
 
465
     /**
540
     /**
466
-     * This method was generated by MyBatis Generator.
467
-     * This method returns the value of the database column business_notice_receive.contract_number
468
-     *
469
-     * @return the value of business_notice_receive.contract_number
470
-     *
471
-     * @mbggenerated Wed Jul 08 09:57:43 CST 2020
541
+     * 协议编号/合同编号
472
      */
542
      */
473
     public String getContractNumber() {
543
     public String getContractNumber() {
474
         return contractNumber;
544
         return contractNumber;
475
     }
545
     }
476
 
546
 
477
     /**
547
     /**
478
-     * This method was generated by MyBatis Generator.
479
-     * This method sets the value of the database column business_notice_receive.contract_number
480
-     *
481
-     * @param contractNumber the value for business_notice_receive.contract_number
482
-     *
483
-     * @mbggenerated Wed Jul 08 09:57:43 CST 2020
548
+     * 协议编号/合同编号
549
+     * @param contractNumber 协议编号/合同编号
484
      */
550
      */
485
     public void setContractNumber(String contractNumber) {
551
     public void setContractNumber(String contractNumber) {
486
         this.contractNumber = contractNumber == null ? null : contractNumber.trim();
552
         this.contractNumber = contractNumber == null ? null : contractNumber.trim();
487
     }
553
     }
488
 
554
 
489
     /**
555
     /**
490
-     * This method was generated by MyBatis Generator.
491
-     * This method returns the value of the database column business_notice_receive.ywtype
492
-     *
493
-     * @return the value of business_notice_receive.ywtype
494
-     *
495
-     * @mbggenerated Wed Jul 08 09:57:43 CST 2020
556
+     * 业务类型 (6:竞买=入库竞价;7:销售=出库竞价  4:轮换=出库包干)
496
      */
557
      */
497
     public String getYwtype() {
558
     public String getYwtype() {
498
         return ywtype;
559
         return ywtype;
499
     }
560
     }
500
 
561
 
501
     /**
562
     /**
502
-     * This method was generated by MyBatis Generator.
503
-     * This method sets the value of the database column business_notice_receive.ywtype
504
-     *
505
-     * @param ywtype the value for business_notice_receive.ywtype
506
-     *
507
-     * @mbggenerated Wed Jul 08 09:57:43 CST 2020
563
+     * 业务类型 (6:竞买=入库竞价;7:销售=出库竞价  4:轮换=出库包干)
564
+     * @param ywtype 
508
      */
565
      */
509
     public void setYwtype(String ywtype) {
566
     public void setYwtype(String ywtype) {
510
         this.ywtype = ywtype == null ? null : ywtype.trim();
567
         this.ywtype = ywtype == null ? null : ywtype.trim();
511
     }
568
     }
512
 
569
 
513
     /**
570
     /**
514
-     * This method was generated by MyBatis Generator.
515
-     * This method returns the value of the database column business_notice_receive.house_id
516
-     *
517
-     * @return the value of business_notice_receive.house_id
518
-     *
519
-     * @mbggenerated Wed Jul 08 09:57:43 CST 2020
571
+     * 仓房
520
      */
572
      */
521
     public Integer getHouseId() {
573
     public Integer getHouseId() {
522
         return houseId;
574
         return houseId;
523
     }
575
     }
524
 
576
 
525
     /**
577
     /**
526
-     * This method was generated by MyBatis Generator.
527
-     * This method sets the value of the database column business_notice_receive.house_id
528
-     *
529
-     * @param houseId the value for business_notice_receive.house_id
530
-     *
531
-     * @mbggenerated Wed Jul 08 09:57:43 CST 2020
578
+     * 仓房
579
+     * @param houseId 仓房
532
      */
580
      */
533
     public void setHouseId(Integer houseId) {
581
     public void setHouseId(Integer houseId) {
534
         this.houseId = houseId;
582
         this.houseId = houseId;
@@ -547,36 +595,24 @@ public class BusinessNoticeReceive {
547
     }
595
     }
548
 
596
 
549
     /**
597
     /**
550
-     * This method was generated by MyBatis Generator.
551
-     * This method sets the value of the database column business_notice_receive.ware_house_id
552
-     *
553
-     * @param wareHouseId the value for business_notice_receive.ware_house_id
554
-     *
555
-     * @mbggenerated Wed Jul 08 09:57:43 CST 2020
598
+     * 货位
599
+     * @param wareHouseId 货位
556
      */
600
      */
557
     public void setWareHouseId(Integer wareHouseId) {
601
     public void setWareHouseId(Integer wareHouseId) {
558
         this.wareHouseId = wareHouseId;
602
         this.wareHouseId = wareHouseId;
559
     }
603
     }
560
 
604
 
561
     /**
605
     /**
562
-     * This method was generated by MyBatis Generator.
563
-     * This method returns the value of the database column business_notice_receive.grain_kind
564
-     *
565
-     * @return the value of business_notice_receive.grain_kind
566
-     *
567
-     * @mbggenerated Wed Jul 08 09:57:43 CST 2020
606
+     * 粮食品种
607
+     * @return
568
      */
608
      */
569
     public Integer getGrainKind() {
609
     public Integer getGrainKind() {
570
         return grainKind;
610
         return grainKind;
571
     }
611
     }
572
 
612
 
573
     /**
613
     /**
574
-     * This method was generated by MyBatis Generator.
575
-     * This method sets the value of the database column business_notice_receive.grain_kind
576
-     *
577
-     * @param grainKind the value for business_notice_receive.grain_kind
578
-     *
579
-     * @mbggenerated Wed Jul 08 09:57:43 CST 2020
614
+     * 粮食品种
615
+     * @param grainKind 粮食品种
580
      */
616
      */
581
     public void setGrainKind(Integer grainKind) {
617
     public void setGrainKind(Integer grainKind) {
582
         this.grainKind = grainKind;
618
         this.grainKind = grainKind;
@@ -607,96 +643,62 @@ public class BusinessNoticeReceive {
607
     }
643
     }
608
 
644
 
609
     /**
645
     /**
610
-     * This method was generated by MyBatis Generator.
611
-     * This method returns the value of the database column business_notice_receive.count
612
-     *
613
-     * @return the value of business_notice_receive.count
614
-     *
615
-     * @mbggenerated Wed Jul 08 09:57:43 CST 2020
646
+     * 计划数量(吨)
647
+     * @return
616
      */
648
      */
617
     public String getCount() {
649
     public String getCount() {
618
         return count;
650
         return count;
619
     }
651
     }
620
 
652
 
621
     /**
653
     /**
622
-     * This method was generated by MyBatis Generator.
623
-     * This method sets the value of the database column business_notice_receive.count
624
-     *
625
-     * @param count the value for business_notice_receive.count
626
-     *
627
-     * @mbggenerated Wed Jul 08 09:57:43 CST 2020
654
+     * 计划数量(吨)
655
+     * @param count
628
      */
656
      */
629
     public void setCount(String count) {
657
     public void setCount(String count) {
630
         this.count = count == null ? null : count.trim();
658
         this.count = count == null ? null : count.trim();
631
     }
659
     }
632
 
660
 
633
     /**
661
     /**
634
-     * This method was generated by MyBatis Generator.
635
-     * This method returns the value of the database column business_notice_receive.outgoing_period
636
-     *
637
-     * @return the value of business_notice_receive.outgoing_period
638
-     *
639
-     * @mbggenerated Wed Jul 08 09:57:43 CST 2020
662
+     * 出库期限(日期格式)
663
+     * @return
640
      */
664
      */
641
     public String getOutgoingPeriod() {
665
     public String getOutgoingPeriod() {
642
         return outgoingPeriod;
666
         return outgoingPeriod;
643
     }
667
     }
644
 
668
 
645
     /**
669
     /**
646
-     * This method was generated by MyBatis Generator.
647
-     * This method sets the value of the database column business_notice_receive.outgoing_period
648
-     *
649
-     * @param outgoingPeriod the value for business_notice_receive.outgoing_period
650
-     *
651
-     * @mbggenerated Wed Jul 08 09:57:43 CST 2020
670
+     * 出库期限(日期格式)
671
+     * @param outgoingPeriod
652
      */
672
      */
653
     public void setOutgoingPeriod(String outgoingPeriod) {
673
     public void setOutgoingPeriod(String outgoingPeriod) {
654
         this.outgoingPeriod = outgoingPeriod == null ? null : outgoingPeriod.trim();
674
         this.outgoingPeriod = outgoingPeriod == null ? null : outgoingPeriod.trim();
655
     }
675
     }
656
 
676
 
657
     /**
677
     /**
658
-     * This method was generated by MyBatis Generator.
659
-     * This method returns the value of the database column business_notice_receive.forwarding_unit
660
-     *
661
-     * @return the value of business_notice_receive.forwarding_unit
662
-     *
663
-     * @mbggenerated Wed Jul 08 09:57:43 CST 2020
678
+     * 发货单位
664
      */
679
      */
665
     public String getForwardingUnit() {
680
     public String getForwardingUnit() {
666
         return forwardingUnit;
681
         return forwardingUnit;
667
     }
682
     }
668
 
683
 
669
     /**
684
     /**
670
-     * This method was generated by MyBatis Generator.
671
-     * This method sets the value of the database column business_notice_receive.forwarding_unit
672
-     *
673
-     * @param forwardingUnit the value for business_notice_receive.forwarding_unit
674
-     *
675
-     * @mbggenerated Wed Jul 08 09:57:43 CST 2020
685
+     * 发货单位
686
+     * @param forwardingUnit
676
      */
687
      */
677
     public void setForwardingUnit(String forwardingUnit) {
688
     public void setForwardingUnit(String forwardingUnit) {
678
         this.forwardingUnit = forwardingUnit == null ? null : forwardingUnit.trim();
689
         this.forwardingUnit = forwardingUnit == null ? null : forwardingUnit.trim();
679
     }
690
     }
680
 
691
 
681
     /**
692
     /**
682
-     * This method was generated by MyBatis Generator.
683
-     * This method returns the value of the database column business_notice_receive.receive_unit
684
-     *
685
-     * @return the value of business_notice_receive.receive_unit
686
-     *
687
-     * @mbggenerated Wed Jul 08 09:57:43 CST 2020
693
+     * 收货单位
688
      */
694
      */
689
     public String getReceiveUnit() {
695
     public String getReceiveUnit() {
690
         return receiveUnit;
696
         return receiveUnit;
691
     }
697
     }
692
 
698
 
693
     /**
699
     /**
694
-     * This method was generated by MyBatis Generator.
695
-     * This method sets the value of the database column business_notice_receive.receive_unit
696
-     *
697
-     * @param receiveUnit the value for business_notice_receive.receive_unit
698
-     *
699
-     * @mbggenerated Wed Jul 08 09:57:43 CST 2020
700
+     * 收货单位
701
+     * @param receiveUnit 收货单位
700
      */
702
      */
701
     public void setReceiveUnit(String receiveUnit) {
703
     public void setReceiveUnit(String receiveUnit) {
702
         this.receiveUnit = receiveUnit == null ? null : receiveUnit.trim();
704
         this.receiveUnit = receiveUnit == null ? null : receiveUnit.trim();
@@ -727,122 +729,97 @@ public class BusinessNoticeReceive {
727
     }
729
     }
728
 
730
 
729
     /**
731
     /**
730
-     * This method was generated by MyBatis Generator.
731
-     * This method returns the value of the database column business_notice_receive.in_application
732
-     *
733
-     * @return the value of business_notice_receive.in_application
734
-     *
735
-     * @mbggenerated Wed Jul 08 09:57:43 CST 2020
732
+     * 启用(默认1,其实不用)
733
+     * @return
736
      */
734
      */
737
     public Integer getInApplication() {
735
     public Integer getInApplication() {
738
         return inApplication;
736
         return inApplication;
739
     }
737
     }
740
 
738
 
741
     /**
739
     /**
742
-     * This method was generated by MyBatis Generator.
743
-     * This method sets the value of the database column business_notice_receive.in_application
744
-     *
745
-     * @param inApplication the value for business_notice_receive.in_application
746
-     *
747
-     * @mbggenerated Wed Jul 08 09:57:43 CST 2020
740
+     * 启用(默认1,其实不用)
741
+     * @param inApplication
748
      */
742
      */
749
     public void setInApplication(Integer inApplication) {
743
     public void setInApplication(Integer inApplication) {
750
         this.inApplication = inApplication;
744
         this.inApplication = inApplication;
751
     }
745
     }
752
 
746
 
753
     /**
747
     /**
754
-     * This method was generated by MyBatis Generator.
755
-     * This method returns the value of the database column business_notice_receive.org_id
756
-     *
757
-     * @return the value of business_notice_receive.org_id
758
-     *
759
-     * @mbggenerated Wed Jul 08 09:57:43 CST 2020
748
+     * 组织机构id
760
      */
749
      */
761
     public Integer getOrgId() {
750
     public Integer getOrgId() {
762
         return orgId;
751
         return orgId;
763
     }
752
     }
764
 
753
 
765
     /**
754
     /**
766
-     * This method was generated by MyBatis Generator.
767
-     * This method sets the value of the database column business_notice_receive.org_id
768
-     *
769
-     * @param orgId the value for business_notice_receive.org_id
770
-     *
771
-     * @mbggenerated Wed Jul 08 09:57:43 CST 2020
755
+     * 组织机构id
756
+     * @param orgId 组织机构id
772
      */
757
      */
773
     public void setOrgId(Integer orgId) {
758
     public void setOrgId(Integer orgId) {
774
         this.orgId = orgId;
759
         this.orgId = orgId;
775
     }
760
     }
776
 
761
 
777
     /**
762
     /**
778
-     * This method was generated by MyBatis Generator.
779
-     * This method returns the value of the database column business_notice_receive.grain_attribute
780
-     *
781
-     * @return the value of business_notice_receive.grain_attribute
782
-     *
783
-     * @mbggenerated Wed Jul 08 09:57:43 CST 2020
763
+     * 粮油性质
764
+     * @return
784
      */
765
      */
785
     public Integer getGrainAttribute() {
766
     public Integer getGrainAttribute() {
786
         return grainAttribute;
767
         return grainAttribute;
787
     }
768
     }
788
 
769
 
789
     /**
770
     /**
790
-     * This method was generated by MyBatis Generator.
791
-     * This method sets the value of the database column business_notice_receive.grain_attribute
792
-     *
793
-     * @param grainAttribute the value for business_notice_receive.grain_attribute
794
-     *
795
-     * @mbggenerated Wed Jul 08 09:57:43 CST 2020
771
+     * 粮油性质
772
+     * @param grainAttribute
796
      */
773
      */
797
     public void setGrainAttribute(Integer grainAttribute) {
774
     public void setGrainAttribute(Integer grainAttribute) {
798
         this.grainAttribute = grainAttribute;
775
         this.grainAttribute = grainAttribute;
799
     }
776
     }
800
 
777
 
801
     /**
778
     /**
802
-     * This method was generated by MyBatis Generator.
803
-     * This method returns the value of the database column business_notice_receive.grain_detail_kind
804
-     *
805
-     * @return the value of business_notice_receive.grain_detail_kind
806
-     *
807
-     * @mbggenerated Wed Jul 08 09:57:43 CST 2020
779
+     * 明细品种
780
+     * @return
808
      */
781
      */
809
     public Integer getGrainDetailKind() {
782
     public Integer getGrainDetailKind() {
810
         return grainDetailKind;
783
         return grainDetailKind;
811
     }
784
     }
812
 
785
 
813
     /**
786
     /**
814
-     * This method was generated by MyBatis Generator.
815
-     * This method sets the value of the database column business_notice_receive.grain_detail_kind
816
-     *
817
-     * @param grainDetailKind the value for business_notice_receive.grain_detail_kind
818
-     *
819
-     * @mbggenerated Wed Jul 08 09:57:43 CST 2020
787
+     * 明细品种
788
+     * @param grainDetailKind
820
      */
789
      */
821
     public void setGrainDetailKind(Integer grainDetailKind) {
790
     public void setGrainDetailKind(Integer grainDetailKind) {
822
         this.grainDetailKind = grainDetailKind;
791
         this.grainDetailKind = grainDetailKind;
823
     }
792
     }
824
 
793
 
825
     /**
794
     /**
826
-     * This method was generated by MyBatis Generator.
827
-     * This method returns the value of the database column business_notice_receive.receive_time
828
-     *
829
-     * @return the value of business_notice_receive.receive_time
830
-     *
831
-     * @mbggenerated Wed Jul 08 09:57:43 CST 2020
795
+     * 接收数据的时间
796
+     * @return
832
      */
797
      */
833
     public Date getReceiveTime() {
798
     public Date getReceiveTime() {
834
         return receiveTime;
799
         return receiveTime;
835
     }
800
     }
836
 
801
 
837
     /**
802
     /**
838
-     * This method was generated by MyBatis Generator.
839
-     * This method sets the value of the database column business_notice_receive.receive_time
840
-     *
841
-     * @param receiveTime the value for business_notice_receive.receive_time
842
-     *
843
-     * @mbggenerated Wed Jul 08 09:57:43 CST 2020
803
+     * 接收数据的时间
804
+     * @param receiveTime
844
      */
805
      */
845
     public void setReceiveTime(Date receiveTime) {
806
     public void setReceiveTime(Date receiveTime) {
846
         this.receiveTime = receiveTime;
807
         this.receiveTime = receiveTime;
847
     }
808
     }
809
+
810
+    /**
811
+     * 合同编号(包干类型使用)
812
+     * @return
813
+     */
814
+	public String getHtbh() {
815
+		return htbh;
816
+	}
817
+
818
+	/**
819
+	 * 合同编号(包干类型使用)
820
+	 * @param htbh
821
+	 */
822
+	public void setHtbh(String htbh) {
823
+		this.htbh = htbh;
824
+	}
848
 }
825
 }

+ 2 - 1
src/main/java/com/chinaitop/depot/business/service/BusinessContractReceiveService.java

@@ -21,9 +21,10 @@ public interface BusinessContractReceiveService {
21
 	 * @param orgId 组织机构ID
21
 	 * @param orgId 组织机构ID
22
 	 * @param houseId 仓房ID
22
 	 * @param houseId 仓房ID
23
 	 * @param warehouseId 货位ID
23
 	 * @param warehouseId 货位ID
24
+	 * @param htlx 合同类型(0:采购,1:销售)
24
 	 * @return
25
 	 * @return
25
 	 */
26
 	 */
26
-	List<BusinessContractReceive> queryByExample(String htbh, Integer orgId, Integer houseId, Integer warehouseId) throws Exception;
27
+	List<BusinessContractReceive> queryByExample(String htbh, Integer orgId, Integer houseId, Integer warehouseId, String htlx) throws Exception;
27
 
28
 
28
 	/**
29
 	/**
29
 	 * 主键查询一条数据
30
 	 * 主键查询一条数据

+ 7 - 0
src/main/java/com/chinaitop/depot/business/service/ReceiveNoticeService.java

@@ -30,5 +30,12 @@ public interface ReceiveNoticeService {
30
 
30
 
31
 	void saveDataRk(String orgId, Integer storehouseId, Integer warehouseId, String grainVarietyName, BigDecimal rksl,
31
 	void saveDataRk(String orgId, Integer storehouseId, Integer warehouseId, String grainVarietyName, BigDecimal rksl,
32
 			String lsxzzbdh,String xyh);
32
 			String lsxzzbdh,String xyh);
33
+
34
+	/**
35
+	 * 修改下发的通知单数据
36
+	 * @param notice
37
+	 * @return
38
+	 */
39
+	Map<String, Object> updateReceiveNotice(String notice) throws Exception;
33
 			
40
 			
34
 }
41
 }

+ 4 - 1
src/main/java/com/chinaitop/depot/business/service/impl/BusinessContractReceiveServiceImpl.java

@@ -220,7 +220,7 @@ public class BusinessContractReceiveServiceImpl implements BusinessContractRecei
220
 	}
220
 	}
221
 
221
 
222
 	@Override
222
 	@Override
223
-	public List<BusinessContractReceive> queryByExample(String htbh, Integer orgId, Integer houseId, Integer warehouseId)
223
+	public List<BusinessContractReceive> queryByExample(String htbh, Integer orgId, Integer houseId, Integer warehouseId, String htlx)
224
 			throws Exception {
224
 			throws Exception {
225
 		List<BusinessContractReceive> list = null;
225
 		List<BusinessContractReceive> list = null;
226
 		BusinessContractReceiveExample example = new BusinessContractReceiveExample();
226
 		BusinessContractReceiveExample example = new BusinessContractReceiveExample();
@@ -237,6 +237,9 @@ public class BusinessContractReceiveServiceImpl implements BusinessContractRecei
237
 		if (null != warehouseId) {
237
 		if (null != warehouseId) {
238
 			criteria.andWarehouseIdEqualTo(warehouseId);
238
 			criteria.andWarehouseIdEqualTo(warehouseId);
239
 		}
239
 		}
240
+		if (StringUtils.isNotBlank(htlx)) {
241
+			criteria.andHtlxEqualTo(htlx);
242
+		}
240
 		example.setOrderByClause("input_time desc");
243
 		example.setOrderByClause("input_time desc");
241
 		list = businessContractReceiveMapper.selectByExample(example);
244
 		list = businessContractReceiveMapper.selectByExample(example);
242
 		return list;
245
 		return list;

+ 38 - 49
src/main/java/com/chinaitop/depot/business/service/impl/ReceiveNoticeServiceImpl.java

@@ -11,6 +11,8 @@ import javax.annotation.Resource;
11
 
11
 
12
 import org.apache.commons.lang.ObjectUtils;
12
 import org.apache.commons.lang.ObjectUtils;
13
 import org.apache.commons.lang.StringUtils;
13
 import org.apache.commons.lang.StringUtils;
14
+import org.slf4j.Logger;
15
+import org.slf4j.LoggerFactory;
14
 import org.springframework.beans.factory.annotation.Value;
16
 import org.springframework.beans.factory.annotation.Value;
15
 import org.springframework.stereotype.Service;
17
 import org.springframework.stereotype.Service;
16
 
18
 
@@ -25,6 +27,7 @@ import com.chinaitop.depot.business.service.FeignAgileService;
25
 import com.chinaitop.depot.business.service.FeignBasicService;
27
 import com.chinaitop.depot.business.service.FeignBasicService;
26
 import com.chinaitop.depot.business.service.ReceiveNoticeService;
28
 import com.chinaitop.depot.business.service.ReceiveNoticeService;
27
 import com.chinaitop.depot.utils.ParameterUtil;
29
 import com.chinaitop.depot.utils.ParameterUtil;
30
+import com.fasterxml.jackson.databind.ObjectMapper;
28
 import com.github.pagehelper.PageHelper;
31
 import com.github.pagehelper.PageHelper;
29
 
32
 
30
 @Service
33
 @Service
@@ -38,6 +41,8 @@ public class ReceiveNoticeServiceImpl implements ReceiveNoticeService {
38
 	private FeignAgileService feignAgileService;
41
 	private FeignAgileService feignAgileService;
39
 	@Resource
42
 	@Resource
40
     private BusinessApprovalService businessApprovalService;
43
     private BusinessApprovalService businessApprovalService;
44
+
45
+	public static final Logger logger = LoggerFactory.getLogger(ReceiveNoticeServiceImpl.class);
41
     /*@Resource
46
     /*@Resource
42
     private BusinessApprovalMapper approvalMapper;*/
47
     private BusinessApprovalMapper approvalMapper;*/
43
 
48
 
@@ -195,8 +200,8 @@ public class ReceiveNoticeServiceImpl implements ReceiveNoticeService {
195
                         businessNoticeReceive.setForwardingUnit(jsonObject.getString("khssyqmc")); //发货单位
200
                         businessNoticeReceive.setForwardingUnit(jsonObject.getString("khssyqmc")); //发货单位
196
                     }
201
                     }
197
 
202
 
198
-                    if(ObjectUtils.toString(jsonObject.getString("ywlx")).equals("6")){  //业务类型 (6:竞买;7:销售  4:轮换)
199
-                        businessNoticeReceive.setYwtype("1"); //1收储 2 销售 3轮换
203
+                    if(ObjectUtils.toString(jsonObject.getString("ywlx")).equals("6")){  //业务类型 (6:竞买=入库竞价;7:销售=出库竞价  4:轮换=出库包干)
204
+                        businessNoticeReceive.setYwtype("1"); //1收储=竞买=竞价 2 销售=竞价 3轮换=包干
200
                     }else if (ObjectUtils.toString(jsonObject.getString("ywlx")).equals("4")){
205
                     }else if (ObjectUtils.toString(jsonObject.getString("ywlx")).equals("4")){
201
                         businessNoticeReceive.setYwtype("3");
206
                         businessNoticeReceive.setYwtype("3");
202
                     }else if (ObjectUtils.toString(jsonObject.getString("ywlx")).equals("7")){
207
                     }else if (ObjectUtils.toString(jsonObject.getString("ywlx")).equals("7")){
@@ -211,9 +216,16 @@ public class ReceiveNoticeServiceImpl implements ReceiveNoticeService {
211
                         Integer grainKind = 0;
216
                         Integer grainKind = 0;
212
                         //根据仓房编码查询仓房、货位、组织机构数据
217
                         //根据仓房编码查询仓房、货位、组织机构数据
213
                         Map<String, Object> wareDataMap = feignBasicService.getWareDataByHwbm(hwbm);
218
                         Map<String, Object> wareDataMap = feignBasicService.getWareDataByHwbm(hwbm);
214
-                        if (null == wareDataMap) {
215
-                            modelMap.put("msg", "未获取到对应仓房和货位信息");
219
+                        logger.info("根据值"+hwbm+"获取到的货位数据如下:");
220
+            			logger.info(wareDataMap+"");
221
+                        if (null == wareDataMap || 
222
+                        		"0".equals(wareDataMap.get("houseId").toString()) || 
223
+                        		"0".equals(wareDataMap.get("wareHouseId").toString()) || 
224
+                        		"0".equals(wareDataMap.get("orgId").toString())) {
225
+
226
+                            modelMap.put("msg", "根据值"+hwbm+"未获取到对应仓房货位信息,请核对数据");
216
                             modelMap.put("status", "error");
227
                             modelMap.put("status", "error");
228
+
217
                         } else {
229
                         } else {
218
                             Integer houseId = (Integer) wareDataMap.get("houseId");
230
                             Integer houseId = (Integer) wareDataMap.get("houseId");
219
                             Integer wareHouseId = (Integer) wareDataMap.get("wareHouseId");
231
                             Integer wareHouseId = (Integer) wareDataMap.get("wareHouseId");
@@ -221,12 +233,14 @@ public class ReceiveNoticeServiceImpl implements ReceiveNoticeService {
221
                             businessNoticeReceive.setHouseId(houseId); //仓房
233
                             businessNoticeReceive.setHouseId(houseId); //仓房
222
                             businessNoticeReceive.setWareHouseId(wareHouseId); //货位
234
                             businessNoticeReceive.setWareHouseId(wareHouseId); //货位
223
                             businessNoticeReceive.setOrgId(orgId);  //组织id
235
                             businessNoticeReceive.setOrgId(orgId);  //组织id
224
-                            if(ObjectUtils.toString(jsonObject.getString("ywlx")).equals("6")){//竞买的业务类型
236
+                            if(ObjectUtils.toString(jsonObject.getString("ywlx")).equals("6")){//入库竞价的业务类型
225
                                 if(jsonObject.getString("pz")!=null){
237
                                 if(jsonObject.getString("pz")!=null){
226
                                     String code = jsonObject.getString("pzbm");//品种编码
238
                                     String code = jsonObject.getString("pzbm");//品种编码
227
                                     if (StringUtils.isNotBlank(code)) {
239
                                     if (StringUtils.isNotBlank(code)) {
228
                                         code = code.substring(0,3);//获取前三位
240
                                         code = code.substring(0,3);//获取前三位
229
-                                        Map<String, Object> basicMap = feignBasicService.getIdByNameAndParentId(1061, null, code);//1004是生产年份的父ID
241
+                                        Map<String, Object> basicMap = feignBasicService.getIdByNameAndParentId(1061, null, code);//1061是粮食品种的父ID
242
+                                        logger.info("获取到的品种数据如下:");
243
+                            			logger.info(basicMap.toString());
230
                                         businessNoticeReceive.setGrainKind((Integer) basicMap.get("enumId")); //接收的品种大类
244
                                         businessNoticeReceive.setGrainKind((Integer) basicMap.get("enumId")); //接收的品种大类
231
                                     }
245
                                     }
232
                                 }
246
                                 }
@@ -265,10 +279,10 @@ public class ReceiveNoticeServiceImpl implements ReceiveNoticeService {
265
                                 
279
                                 
266
                                 businessNoticeReceive.setLssl(kcslKg.toString());//库存数量
280
                                 businessNoticeReceive.setLssl(kcslKg.toString());//库存数量
267
                                 
281
                                 
268
-                                businessNoticeReceive.setHzqlsxzdm(3052);//商品粮 转后
269
-                                businessNoticeReceive.setLsxzzbdh(jsonObject.getString("tzdid"));
282
+                                businessNoticeReceive.setHzqlsxzdm(3052);//商品粮 转后,划转后粮食性质
283
+                                businessNoticeReceive.setLsxzzbdh(jsonObject.getString("tzdid"));//粮食性质转变单单号
270
                                 //SimpleDateFormat dateFormat= new SimpleDateFormat("yyyy-MM-dd :hh:mm:ss");
284
                                 //SimpleDateFormat dateFormat= new SimpleDateFormat("yyyy-MM-dd :hh:mm:ss");
271
-                                businessNoticeReceive.setHzrq(new Date());
285
+                                businessNoticeReceive.setHzrq(new Date());//划转时间
272
 
286
 
273
                             }
287
                             }
274
                             String  lsyqsl = jsonObject.getString("lsyqsl");
288
                             String  lsyqsl = jsonObject.getString("lsyqsl");
@@ -289,46 +303,8 @@ public class ReceiveNoticeServiceImpl implements ReceiveNoticeService {
289
                            
303
                            
290
                         }
304
                         }
291
 
305
 
292
-
293
-                       /**
294
-                        * 修改粮食性质(轮换或者销售进行修改)
295
-                        *   parameters[0] = ;     //单位ID
296
-                            parameters[1] = ;     //粮食品种
297
-                            parameters[2] = null; //空就行
298
-                            parameters[3] = ;     //仓房ID
299
-                            parameters[4] = ;     //货位ID
300
-                            parameters[5] = ;     //需要改变成的粮食性质
301
-                            parameters[6] = ;     //原来的粮食性质
302
-                            parameters[7] = ;     //库存数量或者要改变的数量
303
-                            parameters[8]=;      //批准文号(山西用)
304
-                            parameters[9]=;      //性质变动原因
305
-                            parameters[10] = ;  //1:新增;2:修改;3:删除
306
-                        */
307
-                       /*if(!ObjectUtils.toString(jsonObject.getString("ywlx")).equals("6")){
308
-                           Object parameters[] = new Object[11];
309
-                           parameters[0] = orgId+"";//组织id
310
-                           parameters[1] = grainKind+"";//粮食品种
311
-                           parameters[2] = null;//
312
-                           parameters[3] = houseId+"";//仓房id
313
-                           parameters[4] = wareHouseId+"";//货位id
314
-                           parameters[5] = 6871+"";//需要改变成的粮食性质(其他商品粮)
315
-                           parameters[6] = grainAttribute+"";//原来的粮食性质
316
-                           parameters[7] = count+"";//原来的粮食性质
317
-                           parameters[8] = jsonObject.getString("tzdid")+"";//原来的粮食性质
318
-                           parameters[9] = "转储性质变动";
319
-                           parameters[10] = 2+"";
320
-                           String str = createKC.createKC("ChangeGrainAttribute", url, parameters);
321
-                            if ("true".equals(str)) {
322
-                                modelMap.put("status", "success");
323
-                            } else {
324
-                                modelMap.put("status", "error");
325
-                                modelMap.put("msg", "保存失败,库存同步异常,请联系管理员!");
326
-                                return modelMap;
327
-                            }
328
-                       }*/
329
-
330
                     }else{
306
                     }else{
331
-                        modelMap.put("msg", "仓房编码为空");
307
+                        modelMap.put("msg", "cfbm编码为空");
332
                         modelMap.put("status", "error");
308
                         modelMap.put("status", "error");
333
                     }
309
                     }
334
 
310
 
@@ -340,7 +316,7 @@ public class ReceiveNoticeServiceImpl implements ReceiveNoticeService {
340
             
316
             
341
 
317
 
342
         }else{
318
         }else{
343
-            modelMap.put("msg", "参数为空");
319
+            modelMap.put("msg", "所传数据不能为空");
344
             modelMap.put("status", "error");
320
             modelMap.put("status", "error");
345
         }
321
         }
346
 
322
 
@@ -528,4 +504,17 @@ public class ReceiveNoticeServiceImpl implements ReceiveNoticeService {
528
         
504
         
529
 	}
505
 	}
530
 
506
 
507
+	@Override
508
+	public Map<String, Object> updateReceiveNotice(String notice) throws Exception {
509
+		Map<String, Object> map = new HashMap<>();
510
+		
511
+		ObjectMapper objectMapper = new ObjectMapper();
512
+		BusinessNoticeReceive businessNoticeReceive = objectMapper.readValue(notice, BusinessNoticeReceive.class);
513
+		businessNoticeReceiveMapper.updateByPrimaryKey(businessNoticeReceive);
514
+		map.put("status", 200);
515
+		map.put("msg", "操作成功");
516
+		
517
+		return map;
518
+	}
519
+
531
 }
520
 }