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