CreateftlxController.java
2.1 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
package com.sunyo.wlpt.message.builder.controller;
import com.sunyo.wlpt.message.builder.service.*;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import java.util.Map;
@RestController
@RequestMapping("/mtcreate")
public class CreateftlxController {
@Autowired
MT520XService mt520XService;
@Autowired
MT1201Service mt1201Service;
@Autowired
MT3201Service mt3201Service;
@Autowired
MT4201Service mt4201Service;
@Autowired
MT8205Service mt8205Service;
/**
* 进出港理货
* @param map
* @return
*/
@RequestMapping("/520xcreate")
public Boolean create(@RequestBody Map<String, Object> map){
try {
return mt520XService.create(map);
}catch (Exception e){
e.printStackTrace();
return false;
}
}
/**
* 原始 FFm
* @param map
* @return
*/
@RequestMapping("/1201create")
public Boolean ffmcreate(@RequestBody Map<String, Object> map){
try {
return true;
}catch (Exception e){
e.printStackTrace();
return false;
}
}
@RequestMapping("/3201create")
public Boolean fohcreate(@RequestBody Map<String, Object> map){
try {
return mt3201Service.fohcreate(map);
}catch (Exception e){
e.printStackTrace();
return false;
}
}
@RequestMapping("/4201create")
public Boolean pffmcreate(@RequestBody Map<String, Object> map){
try {
return mt4201Service.pffmcreate(map);
}catch (Exception e){
e.printStackTrace();
return false;
}
}
@RequestMapping("/8205create")
public Boolean create8205(@RequestBody Map<String, Object> map){
try {
return mt8205Service.create8205(map);
}catch (Exception e){
e.printStackTrace();
return false;
}
}
}