|
|
@@ -15,6 +15,7 @@ import io.swagger.annotations.ApiImplicitParams;
|
|
15
|
15
|
import io.swagger.annotations.ApiOperation;
|
|
16
|
16
|
import org.apache.commons.lang.StringUtils;
|
|
17
|
17
|
import org.springframework.http.MediaType;
|
|
|
18
|
+import org.springframework.web.bind.annotation.RequestBody;
|
|
18
|
19
|
import org.springframework.web.bind.annotation.RequestMapping;
|
|
19
|
20
|
import org.springframework.web.bind.annotation.RequestMethod;
|
|
20
|
21
|
import org.springframework.web.bind.annotation.RestController;
|
|
|
@@ -81,7 +82,7 @@ public class DFacilitiesController {
|
|
81
|
82
|
@ApiImplicitParams({
|
|
82
|
83
|
@ApiImplicitParam(name = "dFacilitiesBasicsJson", value = "设施基础信息数据", paramType = "form")
|
|
83
|
84
|
})
|
|
84
|
|
- public Map<String, Object> saveBasics(String dFacilitiesBasicsJson) {
|
|
|
85
|
+ public Map<String, Object> saveBasics(@RequestBody String dFacilitiesBasicsJson) {
|
|
85
|
86
|
Map<String, Object> modelMap = new HashMap<>();
|
|
86
|
87
|
// JSON字符串转对象
|
|
87
|
88
|
ObjectMapper mapper = new ObjectMapper();
|