|
|
@@ -336,15 +336,14 @@ public class AMScontroller extends BaseRESTfulController {
|
|
|
@ApiOperation(value = "新增承运合同")
|
|
|
@ApiImplicitParam(name = "map", value = "JSON格式数据", required = true, dataType = "Map<String, Object>")
|
|
|
@LogAround(foreignKeys = {"priceId"}, foreignKeyTypes = {"承运合同"})
|
|
|
- @PostMapping("/")
|
|
|
+ @PostMapping("/addAmsTransPrice")
|
|
|
public Map<String, Object> insertTransPrice(@RequestBody(required = false) Map<String, Object> map) throws ParseException {
|
|
|
if (map.containsKey("priceDate")){
|
|
|
SimpleDateFormat simpleDateFormat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
|
|
|
Date priceDate = simpleDateFormat.parse(map.get("priceDate").toString());
|
|
|
map.put("priceDate", priceDate);
|
|
|
}
|
|
|
-
|
|
|
- return amsFeign.add(map);
|
|
|
+ return amsFeign.addAmsTransPrice(map);
|
|
|
}
|
|
|
|
|
|
@ApiOperation(value = "修改承运合同")
|