|
@@ -32,9 +32,6 @@ public class TypeInfoCtrl { |
|
@@ -32,9 +32,6 @@ public class TypeInfoCtrl { |
32
|
|
32
|
|
33
|
@RequestMapping(value = "/query", method = RequestMethod.GET)
|
33
|
@RequestMapping(value = "/query", method = RequestMethod.GET)
|
34
|
public BaseResponse queryTypeInfo() {
|
34
|
public BaseResponse queryTypeInfo() {
|
35
|
-
|
|
|
36
|
- DEBUG.debug("Query all typeInfo...");
|
|
|
37
|
-
|
|
|
38
|
List<TypeInfo> allTypeInfo = null;
|
35
|
List<TypeInfo> allTypeInfo = null;
|
39
|
|
36
|
|
40
|
BaseResponse response = new BaseResponse();
|
37
|
BaseResponse response = new BaseResponse();
|
|
@@ -43,15 +40,11 @@ public class TypeInfoCtrl { |
|
@@ -43,15 +40,11 @@ public class TypeInfoCtrl { |
43
|
allTypeInfo = typeInfoService.queryAllTypesInfo();
|
40
|
allTypeInfo = typeInfoService.queryAllTypesInfo();
|
44
|
|
41
|
|
45
|
if (null != allTypeInfo) {
|
42
|
if (null != allTypeInfo) {
|
46
|
-
|
|
|
47
|
response.setData(allTypeInfo);
|
43
|
response.setData(allTypeInfo);
|
48
|
}
|
44
|
}
|
49
|
} catch (Exception e) {
|
45
|
} catch (Exception e) {
|
50
|
-
|
|
|
51
|
DEBUG.error("Failed to query all typeInfo, error: {}", e);
|
46
|
DEBUG.error("Failed to query all typeInfo, error: {}", e);
|
52
|
-
|
|
|
53
|
response.setCode(400);
|
47
|
response.setCode(400);
|
54
|
-
|
|
|
55
|
response.setMessage(e.getMessage());
|
48
|
response.setMessage(e.getMessage());
|
56
|
}
|
49
|
}
|
57
|
|
50
|
|
|
@@ -160,9 +153,6 @@ public class TypeInfoCtrl { |
|
@@ -160,9 +153,6 @@ public class TypeInfoCtrl { |
160
|
|
153
|
|
161
|
@RequestMapping(value = "/add", method = RequestMethod.POST)
|
154
|
@RequestMapping(value = "/add", method = RequestMethod.POST)
|
162
|
public BaseResponse addTypeInfo(@RequestBody TypeInfo request) {
|
155
|
public BaseResponse addTypeInfo(@RequestBody TypeInfo request) {
|
163
|
-
|
|
|
164
|
- DEBUG.debug("Add typeInfo: {}", request);
|
|
|
165
|
-
|
|
|
166
|
BaseResponse response = new BaseResponse();
|
156
|
BaseResponse response = new BaseResponse();
|
167
|
|
157
|
|
168
|
try {
|
158
|
try {
|