修改删除卡记录接口
This commit is contained in:
parent
f1b42d1f4d
commit
f3b9e04be9
@ -3,6 +3,7 @@ package com.fastbee.data.controller.cardSwipeRecords;
|
|||||||
import java.util.List;
|
import java.util.List;
|
||||||
import javax.servlet.http.HttpServletResponse;
|
import javax.servlet.http.HttpServletResponse;
|
||||||
|
|
||||||
|
import com.fastbee.iot.mapper.NgCardSwipeRecordsMapper;
|
||||||
import io.swagger.annotations.Api;
|
import io.swagger.annotations.Api;
|
||||||
import io.swagger.annotations.ApiOperation;
|
import io.swagger.annotations.ApiOperation;
|
||||||
import org.springframework.security.access.prepost.PreAuthorize;
|
import org.springframework.security.access.prepost.PreAuthorize;
|
||||||
@ -38,6 +39,9 @@ public class NgCardSwipeRecordsController extends BaseController
|
|||||||
@Autowired
|
@Autowired
|
||||||
private INgCardSwipeRecordsService ngCardSwipeRecordsService;
|
private INgCardSwipeRecordsService ngCardSwipeRecordsService;
|
||||||
|
|
||||||
|
@Autowired
|
||||||
|
private NgCardSwipeRecordsMapper ngCardSwipeRecordsMapper;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 用户查询刷卡记录列表
|
* 用户查询刷卡记录列表
|
||||||
*/
|
*/
|
||||||
@ -109,10 +113,11 @@ public class NgCardSwipeRecordsController extends BaseController
|
|||||||
/**
|
/**
|
||||||
* 删除刷卡记录
|
* 删除刷卡记录
|
||||||
*/
|
*/
|
||||||
@DeleteMapping("/{ids}")
|
@DeleteMapping("/{id}")
|
||||||
@ApiOperation("删除刷卡记录")
|
@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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -1,6 +1,8 @@
|
|||||||
package com.fastbee.iot.mapper;
|
package com.fastbee.iot.mapper;
|
||||||
|
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
|
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||||
import com.fastbee.iot.domain.NgCardSwipeRecords;
|
import com.fastbee.iot.domain.NgCardSwipeRecords;
|
||||||
import org.springframework.stereotype.Repository;
|
import org.springframework.stereotype.Repository;
|
||||||
|
|
||||||
@ -11,7 +13,7 @@ import org.springframework.stereotype.Repository;
|
|||||||
* @date 2024-12-30
|
* @date 2024-12-30
|
||||||
*/
|
*/
|
||||||
@Repository
|
@Repository
|
||||||
public interface NgCardSwipeRecordsMapper
|
public interface NgCardSwipeRecordsMapper extends BaseMapper<NgCardSwipeRecords>
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* 查询刷卡记录
|
* 查询刷卡记录
|
||||||
|
Loading…
x
Reference in New Issue
Block a user