修改删除卡记录接口
This commit is contained in:
		| @@ -3,6 +3,7 @@ package com.fastbee.data.controller.cardSwipeRecords; | ||||
| import java.util.List; | ||||
| import javax.servlet.http.HttpServletResponse; | ||||
|  | ||||
| import com.fastbee.iot.mapper.NgCardSwipeRecordsMapper; | ||||
| import io.swagger.annotations.Api; | ||||
| import io.swagger.annotations.ApiOperation; | ||||
| import org.springframework.security.access.prepost.PreAuthorize; | ||||
| @@ -38,6 +39,9 @@ public class NgCardSwipeRecordsController extends BaseController | ||||
|     @Autowired | ||||
|     private INgCardSwipeRecordsService ngCardSwipeRecordsService; | ||||
|  | ||||
|     @Autowired | ||||
|     private NgCardSwipeRecordsMapper ngCardSwipeRecordsMapper; | ||||
|  | ||||
|     /** | ||||
|      * 用户查询刷卡记录列表 | ||||
|      */ | ||||
| @@ -109,10 +113,11 @@ public class NgCardSwipeRecordsController extends BaseController | ||||
|     /** | ||||
|      * 删除刷卡记录 | ||||
|      */ | ||||
|     @DeleteMapping("/{ids}") | ||||
|     @DeleteMapping("/{id}") | ||||
|     @ApiOperation("删除刷卡记录") | ||||
|     public AjaxResult remove(@PathVariable Long[] ids) | ||||
|     public AjaxResult remove(@PathVariable Long id) | ||||
|     { | ||||
|         return toAjax(ngCardSwipeRecordsService.deleteNgCardSwipeRecordsByIds(ids)); | ||||
|         int i = ngCardSwipeRecordsMapper.deleteById(id); | ||||
|         return toAjax(i); | ||||
|     } | ||||
| } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 蒾酒
					蒾酒