| | |
| | | package com.ruoyi.procurementrecord.controller; |
| | | |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import com.baomidou.mybatisplus.core.toolkit.CollectionUtils; |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.ruoyi.common.utils.poi.ExcelUtil; |
| | | import com.ruoyi.framework.aspectj.lang.annotation.Log; |
| | |
| | | return procurementRecordService.updateCustom(customStorage); |
| | | } |
| | | |
| | | @Delete("/delteCustom") |
| | | @DeleteMapping("/deleteCustom") |
| | | @Log(title = "自定义入库-入库管理-删除入库", businessType = BusinessType.DELETE) |
| | | @Transactional |
| | | public AjaxResult deleteCustom(@RequestBody List<Long> ids) { |
| | |
| | | public AjaxResult updateManagementByCustom(@RequestBody ProcurementManagementUpdateDto procurementDto) { |
| | | return AjaxResult.success(procurementRecordService.updateManagementByCustom(procurementDto)); |
| | | } |
| | | |
| | | @GetMapping("/detailManagementByCustom") |
| | | @ApiOperation(value = "自定义入库-详情") |
| | | public AjaxResult detailManagementByCustom(ProcurementManagementUpdateDto procurementDto) { |
| | | return AjaxResult.success(procurementRecordService.detailManagementByCustom(procurementDto)); |
| | | } |
| | | |
| | | @ApiOperation(value = "采购入库-详情") |
| | | @GetMapping("/detail") |
| | | public AjaxResult detail(ProcurementUpdateDto procurementDto) { |
| | | return AjaxResult.success(procurementRecordService.detail(procurementDto)); |
| | | } |
| | | |
| | | |
| | | |
| | | |
| | | @PostMapping("/del") |
| | | @Log(title = "采购入库-入库管理-删除入库", businessType = BusinessType.DELETE) |
| | |
| | | * @param response |
| | | */ |
| | | @PostMapping("/exportTwo") |
| | | public void exportTwo(HttpServletResponse response) { |
| | | List<CustomStorage> customStorages = customStorageMapper.selectList(null); |
| | | public void exportTwo(HttpServletResponse response,@RequestBody List<CustomStorage> customStorage) { |
| | | if(CollectionUtils.isEmpty(customStorage)){ |
| | | customStorage = customStorageMapper.selectList(null); |
| | | } |
| | | for (CustomStorage storage : customStorage) { |
| | | // nginx 前端访问图片 |
| | | storage.setUrl("http://114.132.189.42:9044"+storage.getUrl()); |
| | | } |
| | | ExcelUtil<CustomStorage> util = new ExcelUtil<CustomStorage>(CustomStorage.class); |
| | | util.exportExcel(response, customStorages, "入库台账"); |
| | | util.exportExcel(response, customStorage, "入库台账"); |
| | | } |
| | | |
| | | |