| | |
| | | import com.doumee.api.BaseController; |
| | | import com.doumee.core.annotation.excel.ExcelExporter; |
| | | import com.doumee.core.annotation.pr.PreventRepeat; |
| | | import com.doumee.core.model.ApiResponse; |
| | | import com.doumee.core.model.PageWrap; |
| | | import com.doumee.core.model.PageData; |
| | | import com.doumee.service.business.third.model.ApiResponse; |
| | | import com.doumee.service.business.third.model.PageWrap; |
| | | import com.doumee.service.business.third.model.PageData; |
| | | import com.doumee.dao.business.model.CarDriver; |
| | | import com.doumee.service.business.CarDriverService; |
| | | import io.swagger.annotations.Api; |
| | |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.web.bind.annotation.*; |
| | | import javax.servlet.http.HttpServletResponse; |
| | | |
| | | import java.util.ArrayList; |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * @author 江蹄蹄 |
| | |
| | | @GetMapping("/delete/{id}") |
| | | @RequiresPermissions("business:cardriver:delete") |
| | | public ApiResponse deleteById(@PathVariable Integer id) { |
| | | carDriverService.deleteById(id); |
| | | carDriverService.deleteById(id,this.getLoginUser(null)); |
| | | return ApiResponse.success(null); |
| | | } |
| | | |
| | |
| | | @GetMapping("/delete/batch") |
| | | @RequiresPermissions("business:cardriver:delete") |
| | | public ApiResponse deleteByIdInBatch(@RequestParam String ids) { |
| | | carDriverService.deleteByIdInBatch(this.getIdList(ids)); |
| | | carDriverService.deleteByIdInBatch(this.getIdList(ids),this.getLoginUser(null)); |
| | | return ApiResponse.success(null); |
| | | } |
| | | |