Merge remote-tracking branch 'origin/dev_pro_河南鹤壁' into dev_pro_河南鹤壁
| | |
| | | return R.ok(stockInventoryService.stockInventoryPage(stockInventoryDto,page)); |
| | | } |
| | | |
| | | @PostMapping("/exportStockInventoryPage") |
| | | @Operation(summary = "库存报表导出") |
| | | public void exportStockInventoryPage(HttpServletResponse response, StockInventoryDto stockInventoryDto) { |
| | | stockInventoryService.exportStockInventoryPage(response,stockInventoryDto); |
| | | } |
| | | |
| | | @GetMapping("/stockInAndOutRecord") |
| | | @Operation(summary = "统计各个产品的入库和出库记录") |
| | | public R stockInAndOutRecord(StockInventoryDto stockInventoryDto,Page page) { |
| | |
| | | package com.ruoyi.stock.dto; |
| | | |
| | | import com.alibaba.excel.annotation.ExcelIgnoreUnannotated; |
| | | import com.ruoyi.framework.aspectj.lang.annotation.Excel; |
| | | import com.ruoyi.stock.pojo.StockInRecord; |
| | | import io.swagger.v3.oas.annotations.media.Schema; |
| | | import lombok.Data; |
| | |
| | | |
| | | |
| | | @Data |
| | | @ExcelIgnoreUnannotated |
| | | public class StockInRecordDto extends StockInRecord { |
| | | /** |
| | | * 产品名称 |
| | | */ |
| | | @Excel(name = "产品名称") |
| | | private String productName; |
| | | /** |
| | | * 产品规格 |
| | | */ |
| | | @Excel(name = "产品规格") |
| | | private String model; |
| | | /** |
| | | * 批次号 |
| | | */ |
| | | @Excel(name = "批次号") |
| | | private String batchNo; |
| | | |
| | | /** |
| | | * 产品单位 |
| | | */ |
| | | @Excel(name = "产品单位") |
| | | private String unit; |
| | | |
| | | private String timeStr; |
| | | |
| | | @Excel(name = "入库人") |
| | | private String createBy; |
| | | |
| | | //现存量 |
| | | @Excel(name = "现存量") |
| | | private String currentStock; |
| | | |
| | | @Schema(description = "顶部父产品id") |
| | |
| | | private List<Long> ids; |
| | | |
| | | @Schema(description = "源单号") |
| | | @Excel(name = "源单号") |
| | | private String sourceOrderNo; |
| | | |
| | | } |
| | |
| | | import com.baomidou.mybatisplus.annotation.*; |
| | | import com.fasterxml.jackson.annotation.JsonFormat; |
| | | import com.ruoyi.common.enums.ReviewStatusEnum; |
| | | import com.ruoyi.framework.aspectj.lang.annotation.Excel; |
| | | import io.swagger.v3.oas.annotations.media.Schema; |
| | | import lombok.Data; |
| | | import org.springframework.format.annotation.DateTimeFormat; |
| | |
| | | private Long id; |
| | | |
| | | @Schema(description = "入库批次") |
| | | @Excel(name = "入库批次") |
| | | private String inboundBatches; |
| | | |
| | | @Schema(description = "入库数量") |
| | | @Excel(name = "入库数量") |
| | | private BigDecimal stockInNum; |
| | | |
| | | @Schema(description = "批号") |
| | |
| | | @TableField(fill = FieldFill.INSERT) |
| | | @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
| | | @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
| | | @Excel(name = "入库时间") |
| | | private LocalDateTime createTime; |
| | | |
| | | @Schema(description = "创建用户") |
| | |
| | | void exportStockInventory(HttpServletResponse response, StockInventoryDto stockInventoryDto); |
| | | |
| | | IPage<StockInRecordDto> stockInventoryPage(StockInventoryDto stockInventoryDto,Page page); |
| | | void exportStockInventoryPage(HttpServletResponse response, StockInventoryDto stockInventoryDto); |
| | | |
| | | IPage<StockInventoryDto> stockInAndOutRecord(StockInventoryDto stockInventoryDto,Page page); |
| | | |
| | |
| | | |
| | | @Override |
| | | public void exportStockInventory(HttpServletResponse response, StockInventoryDto stockInventoryDto) { |
| | | |
| | | List<StockInventoryExportData> list = stockInventoryMapper.listStockInventoryExportData(stockInventoryDto); |
| | | ExcelUtil<StockInventoryExportData> util = new ExcelUtil<>(StockInventoryExportData.class); |
| | | util.exportExcel(response, list, "库存信息"); |
| | |
| | | } |
| | | |
| | | @Override |
| | | public void exportStockInventoryPage(HttpServletResponse response, StockInventoryDto stockInventoryDto) { |
| | | List<StockInRecordDto> list = stockInventoryMapper.stockInventoryPage(stockInventoryDto,new Page(-1,-1)).getRecords(); |
| | | ExcelUtil<StockInRecordDto> util = new ExcelUtil<>(StockInRecordDto.class); |
| | | util.exportExcel(response, list, "库存报表导出"); |
| | | } |
| | | |
| | | @Override |
| | | public IPage<StockInventoryDto> stockInAndOutRecord(StockInventoryDto stockInventoryDto, Page page) { |
| | | return stockInventoryMapper.stockInAndOutRecord(stockInventoryDto, page); |
| | | } |