|
@@ -4,6 +4,8 @@ import com.steerinfo.dil.service.impl.TmsTruckEnFactoryResultService;
|
|
|
import com.steerinfo.dil.util.BaseRESTfulController;
|
|
|
import com.steerinfo.framework.controller.RESTfulResult;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
+import org.springframework.web.bind.annotation.PostMapping;
|
|
|
+import org.springframework.web.bind.annotation.RequestBody;
|
|
|
import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
import org.springframework.web.bind.annotation.RestController;
|
|
|
|
|
@@ -14,13 +16,15 @@ import java.util.Map;
|
|
|
* @create 2021-10-29 17:52
|
|
|
*/
|
|
|
@RestController
|
|
|
-@RequestMapping("/${api.version}/tmsTruckEnFactoryResultResult")
|
|
|
+@RequestMapping("/${api.version}/tmsTruck")
|
|
|
public class TmsTruckEnFactoryResultController extends BaseRESTfulController {
|
|
|
|
|
|
@Autowired
|
|
|
TmsTruckEnFactoryResultService tmsTruckEnFactoryResultService;
|
|
|
|
|
|
- public RESTfulResult addEnFactory(Map<String,Object> map){
|
|
|
+
|
|
|
+ @PostMapping("/enfactory")
|
|
|
+ public RESTfulResult addEnFactory(@RequestBody(required = false) Map<String,Object> map){
|
|
|
Integer integer=tmsTruckEnFactoryResultService.updateEnFactory(map);
|
|
|
if (integer!=1){
|
|
|
return failed();
|