| | |
| | | import com.xiaopeng.api.vo.account.LoginOperationUser; |
| | | import com.xiaopeng.common.core.domain.R; |
| | | import com.xiaopeng.common.core.web.page.PageInfo; |
| | | import com.xiaopeng.common.log.annotation.AdminOperationLog; |
| | | import com.xiaopeng.common.log.enums.AdminBusinessType; |
| | | import com.xiaopeng.common.log.enums.AdminOperationType; |
| | | import com.xiaopeng.common.security.service.TokenService; |
| | | import com.xiaopeng.maintenance.dto.XpCruiseCheckInRuleDto; |
| | | import com.xiaopeng.maintenance.dto.XpCruiseCheckInRuleListPageDto; |
| | |
| | | |
| | | @ApiOperation(value = "添加巡游打卡规则", tags = {"管理后台-巡游打卡规则管理"}) |
| | | @PostMapping("/maintenance-admin/api/v1/cruiseCheckInRecord/addXpCruiseCheckInRule") |
| | | @AdminOperationLog( |
| | | businessType = AdminBusinessType.CRUISE_CHECK_IN_RULE_MANAGEMENT, |
| | | operationType = AdminOperationType.ADD, |
| | | content = "添加巡游打卡规则", |
| | | appendRequestData = true |
| | | ) |
| | | public R<?> addXpCruiseCheckInRule(@RequestBody XpCruiseCheckInRuleDto dto){ |
| | | xpCruiseCheckInRuleService.addXpCruiseCheckInRule(dto); |
| | | return R.ok(); |
| | |
| | | |
| | | @ApiOperation(value = "删除巡游打卡规则", tags = {"管理后台-巡游打卡规则管理"}) |
| | | @PostMapping("/maintenance-admin/api/v1/cruiseCheckInRecord/delXpCruiseCheckInRule/{id}") |
| | | @AdminOperationLog( |
| | | businessType = AdminBusinessType.CRUISE_CHECK_IN_RULE_MANAGEMENT, |
| | | operationType = AdminOperationType.DELETE, |
| | | contentExpression = "'删除巡游打卡规则,id=' + #p0", |
| | | appendRequestData = false |
| | | ) |
| | | public R<?> delXpCruiseCheckInRule(@PathVariable("id") Integer id){ |
| | | xpCruiseCheckInRuleService.removeById(id); |
| | | return R.ok(); |
| | |
| | | |
| | | @ApiOperation(value = "查询巡游打卡记录列表导出", tags = {"管理后台-巡游打卡管理"}) |
| | | @PostMapping("/maintenance-admin/api/v1/cruiseCheckInRecord/export") |
| | | @AdminOperationLog( |
| | | businessType = AdminBusinessType.CRUISE_CHECK_IN_RULE_MANAGEMENT, |
| | | operationType = AdminOperationType.EXPORT, |
| | | content = "导出巡游打卡记录", |
| | | appendRequestData = true |
| | | ) |
| | | public R<PageInfo<XpCruiseCheckInRecordVO>> pageListExport(@RequestBody XpCruiseCheckInRecordQuery query, HttpServletResponse response) { |
| | | List<XpCruiseCheckInRecordVO> list = xpCruiseCheckInRecordService.all(query); |
| | | Workbook workbook = ExcelExportUtil.exportExcel(new ExportParams(), XpCruiseCheckInRecordVO.class, list); |