| | |
| | | import com.xiaopeng.common.core.domain.R; |
| | | import com.xiaopeng.common.core.utils.WebUtils; |
| | | 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.operation.exportExcle.XpPointSituationReportExportExcel; |
| | | import com.xiaopeng.operation.service.IXpPointSituationReportService; |
| | |
| | | */ |
| | | @ApiOperation(value = "删除现场情况上报", tags = {"管理后台-运维-现场情况上报"}) |
| | | @DeleteMapping("/api/v1/pointSituationReport/deleteById/{id}") |
| | | @AdminOperationLog( |
| | | businessType = AdminBusinessType.POINT_SITUATION_REPORT, |
| | | operationType = AdminOperationType.DELETE, |
| | | contentExpression = "'删除现场情况上报,id=' + #p0", |
| | | appendRequestData = false |
| | | ) |
| | | public R<?> deleteById(@PathVariable Long id) { |
| | | |
| | | try { |
| | |
| | | |
| | | @ApiOperation(value = "导出现场情况上报", tags = {"管理后台-运维-现场情况上报"}) |
| | | @PostMapping(value = "/api/v1/pointSituationReport/exportExcels") |
| | | @AdminOperationLog( |
| | | businessType = AdminBusinessType.POINT_SITUATION_REPORT, |
| | | operationType = AdminOperationType.EXPORT, |
| | | content = "导出现场情况上报", |
| | | appendRequestData = true |
| | | ) |
| | | public void exportExcels(@RequestBody XpPointSituationReportQuery query) { |
| | | if(query.getIds().isEmpty()){ |
| | | return; |