| | |
| | | import com.sinata.system.domain.dto.MwProtectionEquipmentDTO; |
| | | import com.sinata.system.domain.dto.MwProtectionEquipmentRecordDTO; |
| | | import com.sinata.system.domain.query.MwProtectionEquipmentQuery; |
| | | import com.sinata.system.domain.query.MwProtectionEquipmentRecordQuery; |
| | | import com.sinata.system.domain.vo.MwProtectionEquipmentRecordVO; |
| | | import com.sinata.system.domain.vo.MwProtectionEquipmentVO; |
| | | import com.sinata.system.service.MwProtectionEquipmentService; |
| | | import io.swagger.annotations.Api; |
| | |
| | | } |
| | | |
| | | /** |
| | | * 删除 |
| | | * @param id |
| | | * @return |
| | | */ |
| | | @DeleteMapping("/{id}") |
| | | @ApiOperation("删除") |
| | | public R<?> delete(@ApiParam(name = "id", value = "防护器具id", required = true) @PathVariable("id") Long id) { |
| | | mwProtectionEquipmentService.removeById(id); |
| | | mwProtectionEquipmentService.delete(id); |
| | | return R.ok(); |
| | | } |
| | | |
| | |
| | | return R.ok(); |
| | | } |
| | | |
| | | /** |
| | | * 增减记录分页列表 |
| | | * |
| | | * @param query |
| | | * @return |
| | | */ |
| | | @PostMapping("/recordPage") |
| | | @ApiOperation("增减记录") |
| | | public R<PageDTO<MwProtectionEquipmentRecordVO>> recordPage(@Valid @RequestBody MwProtectionEquipmentRecordQuery query) { |
| | | return R.ok(mwProtectionEquipmentService.recordPage(query)); |
| | | } |
| | | |
| | | } |