| | |
| | | |
| | | 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; |
| | |
| | | |
| | | @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(); |
| | | } |
| | | |