|
@@ -1,6 +1,23 @@
|
1
|
1
|
package com.chinaitop.depot.business.controller;
|
2
|
2
|
|
3
|
3
|
|
|
4
|
+import java.io.IOException;
|
|
5
|
+import java.util.ArrayList;
|
|
6
|
+import java.util.HashMap;
|
|
7
|
+import java.util.List;
|
|
8
|
+import java.util.Map;
|
|
9
|
+
|
|
10
|
+import javax.annotation.Resource;
|
|
11
|
+import javax.servlet.http.HttpServletRequest;
|
|
12
|
+
|
|
13
|
+import org.apache.commons.lang3.StringUtils;
|
|
14
|
+import org.slf4j.Logger;
|
|
15
|
+import org.slf4j.LoggerFactory;
|
|
16
|
+import org.springframework.http.MediaType;
|
|
17
|
+import org.springframework.web.bind.annotation.RequestMapping;
|
|
18
|
+import org.springframework.web.bind.annotation.RequestMethod;
|
|
19
|
+import org.springframework.web.bind.annotation.RestController;
|
|
20
|
+
|
4
|
21
|
import com.chinaitop.depot.business.model.BusinessDeliveryStorageNotice;
|
5
|
22
|
import com.chinaitop.depot.business.model.BusinessStoreWareDetail;
|
6
|
23
|
import com.chinaitop.depot.business.model.enums.AuditType;
|
|
@@ -8,28 +25,17 @@ import com.chinaitop.depot.business.model.enums.StoreWareType;
|
8
|
25
|
import com.chinaitop.depot.business.model.vo.BusinessDeliveryStorageNoticeAuditVO;
|
9
|
26
|
import com.chinaitop.depot.business.service.BusinessStoreWareDetailService;
|
10
|
27
|
import com.chinaitop.depot.business.service.GrainNoticeService;
|
|
28
|
+import com.chinaitop.depot.business.service.SystemOutsideDataService;
|
11
|
29
|
import com.fasterxml.jackson.core.JsonParseException;
|
12
|
30
|
import com.fasterxml.jackson.core.type.TypeReference;
|
13
|
31
|
import com.fasterxml.jackson.databind.JsonMappingException;
|
14
|
32
|
import com.fasterxml.jackson.databind.ObjectMapper;
|
15
|
33
|
import com.github.pagehelper.PageInfo;
|
|
34
|
+
|
16
|
35
|
import io.swagger.annotations.Api;
|
17
|
36
|
import io.swagger.annotations.ApiImplicitParam;
|
18
|
37
|
import io.swagger.annotations.ApiImplicitParams;
|
19
|
38
|
import io.swagger.annotations.ApiOperation;
|
20
|
|
-import org.apache.commons.lang3.StringUtils;
|
21
|
|
-import org.springframework.http.MediaType;
|
22
|
|
-import org.springframework.web.bind.annotation.RequestMapping;
|
23
|
|
-import org.springframework.web.bind.annotation.RequestMethod;
|
24
|
|
-import org.springframework.web.bind.annotation.RestController;
|
25
|
|
-
|
26
|
|
-import javax.annotation.Resource;
|
27
|
|
-import javax.servlet.http.HttpServletRequest;
|
28
|
|
-import java.io.IOException;
|
29
|
|
-import java.util.ArrayList;
|
30
|
|
-import java.util.HashMap;
|
31
|
|
-import java.util.List;
|
32
|
|
-import java.util.Map;
|
33
|
39
|
|
34
|
40
|
/**
|
35
|
41
|
* 储备粮管理-通知单
|
|
@@ -41,11 +47,13 @@ import java.util.Map;
|
41
|
47
|
@Api(value= "GrainNoticeController", description = "储备粮管理-出入库通知单管理")
|
42
|
48
|
|
43
|
49
|
public class GrainNoticeController {
|
44
|
|
-
|
|
50
|
+ public static final Logger logger = LoggerFactory.getLogger(GrainNoticeController.class);
|
45
|
51
|
@Resource
|
46
|
52
|
private GrainNoticeService deliveryStorageNoticeService;
|
47
|
53
|
@Resource
|
48
|
54
|
private BusinessStoreWareDetailService businessStoreWareDetailService;
|
|
55
|
+ @Resource
|
|
56
|
+ private SystemOutsideDataService systemOutsideDataService;
|
49
|
57
|
|
50
|
58
|
/**
|
51
|
59
|
* 申请列表.
|
|
@@ -617,4 +625,20 @@ public class GrainNoticeController {
|
617
|
625
|
}
|
618
|
626
|
return modelMap;
|
619
|
627
|
}
|
|
628
|
+
|
|
629
|
+ @RequestMapping(value="/pushCktzdts",produces = MediaType.APPLICATION_JSON_VALUE, method=RequestMethod.GET)
|
|
630
|
+ @ApiOperation(value="给市平台推送出库通知单提示消息", notes = "")
|
|
631
|
+ @ApiImplicitParams({
|
|
632
|
+ @ApiImplicitParam(name = "fsr", value = "发送人", paramType = "query"),
|
|
633
|
+ @ApiImplicitParam(name = "fsdw", value = "发送单位", paramType = "query")
|
|
634
|
+ })
|
|
635
|
+ public void pushCktzdts(String fsr, String fsdw) {
|
|
636
|
+ try {
|
|
637
|
+ String resultStr = deliveryStorageNoticeService.pushCktzdts(fsr, fsdw);
|
|
638
|
+ systemOutsideDataService.addlogger("cktzdts", fsr+"_"+fsdw, resultStr);
|
|
639
|
+ } catch (Exception e) {
|
|
640
|
+ logger.error(e.getMessage(), e);
|
|
641
|
+ systemOutsideDataService.addlogger("cktzdts", fsr+"_"+fsdw, e.getMessage());
|
|
642
|
+ }
|
|
643
|
+ }
|
620
|
644
|
}
|