Showing
4 changed files
with
13 additions
and
1 deletions
| ... | ... | @@ -101,7 +101,7 @@ public class ShipmentDetailStatisticsController extends DefaultBaseController { |
| 101 | 101 | @ApiOperation("发货明细导出") |
| 102 | 102 | @HasPermission({"statistics:shipmentDetail:export"}) |
| 103 | 103 | @GetMapping("/export") |
| 104 | - public InvokeResult<Void> export(@Valid ReceiptLedgerReportVo vo) { | |
| 104 | + public InvokeResult<Void> export(@Valid QueryShipmentDetailStatisticsVo vo) { | |
| 105 | 105 | vo.setExportType(ExportType.SHIPMENT_DETAIL_REPORT.getCode()); |
| 106 | 106 | ExportTaskUtil.exportTask("发货明细报表", ShipmentDetailReportExportTaskWorker.class, vo); |
| 107 | 107 | return InvokeResultBuilder.success(); | ... | ... |
| 1 | 1 | package com.lframework.xingyun.sc.excel.statistics; |
| 2 | 2 | |
| 3 | 3 | import com.alibaba.excel.annotation.ExcelProperty; |
| 4 | +import com.fasterxml.jackson.annotation.JsonFormat; | |
| 5 | +import com.lframework.starter.common.constants.StringPool; | |
| 4 | 6 | import com.lframework.starter.web.core.components.excel.ExcelModel; |
| 5 | 7 | import lombok.Data; |
| 6 | 8 | |
| ... | ... | @@ -182,6 +184,7 @@ public class ShipmentDetailStatisticsModel implements ExcelModel { |
| 182 | 184 | * 订货日期 |
| 183 | 185 | */ |
| 184 | 186 | @ExcelProperty("订货日期") |
| 187 | + @JsonFormat(pattern = StringPool.DATE_PATTERN) | |
| 185 | 188 | private LocalDate orderDate; |
| 186 | 189 | |
| 187 | 190 | /** |
| ... | ... | @@ -242,6 +245,7 @@ public class ShipmentDetailStatisticsModel implements ExcelModel { |
| 242 | 245 | * 发货日期 |
| 243 | 246 | */ |
| 244 | 247 | @ExcelProperty("发货日期") |
| 248 | + @JsonFormat(pattern = StringPool.DATE_PATTERN) | |
| 245 | 249 | private LocalDate shipmentDate; |
| 246 | 250 | |
| 247 | 251 | /** | ... | ... |
| ... | ... | @@ -47,4 +47,10 @@ public class QueryShipmentDetailStatisticsVo extends PageVo implements BaseVo, S |
| 47 | 47 | */ |
| 48 | 48 | @ApiModelProperty("发货单编号") |
| 49 | 49 | private String shipmentOrderNo; |
| 50 | + | |
| 51 | + /** | |
| 52 | + * 导出类型 | |
| 53 | + */ | |
| 54 | + @ApiModelProperty("导出类型") | |
| 55 | + private String exportType; | |
| 50 | 56 | } | ... | ... |
| ... | ... | @@ -148,6 +148,7 @@ |
| 148 | 148 | o.settlement_terms, |
| 149 | 149 | o.supply_unit as supplier, |
| 150 | 150 | o.workshop_id, |
| 151 | + o.delivery_method, | |
| 151 | 152 | so.code as shipment_order_no, |
| 152 | 153 | so.create_time as shipment_date, |
| 153 | 154 | sc.id as contract_id, |
| ... | ... | @@ -162,6 +163,7 @@ |
| 162 | 163 | left join tbl_contract_distributor_standard sc on o.contract_id = sc.id |
| 163 | 164 | left join tbl_contract_std_processing_line cl on sc.id = cl.contract_id |
| 164 | 165 | <where> |
| 166 | + and sd.del_flag = false | |
| 165 | 167 | <if test="vo.ids != null and vo.ids.size() > 0"> |
| 166 | 168 | and sd.id in |
| 167 | 169 | <foreach collection="vo.ids" open="(" separator="," close=")" item="item"> | ... | ... |