| | |
| | | |
| | | import com.baomidou.mybatisplus.core.toolkit.ObjectUtils; |
| | | import com.moral.api.entity.ManageCoordinate; |
| | | import com.moral.api.mapper.ManageCoordinateMapper; |
| | | import com.moral.api.service.ManageCoordinateService; |
| | | import com.moral.constant.ResponseCodeEnum; |
| | | import com.moral.constant.ResultMessage; |
| | |
| | | @RestController |
| | | @Api(tags = {"添加路段模块"}) |
| | | @RequestMapping("coordinate") |
| | | @CrossOrigin(origins = "*", maxAge = 3600) |
| | | public class ManageCoordinateController { |
| | | |
| | | @Autowired |
| | | private ManageCoordinateService manageCoordinateService; |
| | | @Autowired |
| | | private ManageCoordinateMapper manageCoordinateMapper; |
| | | |
| | | |
| | | |
| | |
| | | return ResultMessage.fail(ResponseCodeEnum.PARAMETERS_IS_MISSING.getCode(), |
| | | ResponseCodeEnum.PARAMETERS_IS_MISSING.getMsg()); |
| | | } |
| | | Integer integer = manageCoordinateService.deleteCoordinate(id); |
| | | if (integer==1){ |
| | | return ResultMessage.ok("删除失败"); |
| | | } |
| | | manageCoordinateService.deleteCoordinate(id); |
| | | return ResultMessage.ok(); |
| | | } |
| | | |