Commit f098a3246944bef2ad960a0bac8dd6ad50b2a74c

Authored by yeqianyong
1 parent 431fcc9f

楚江ERP-发货明细列表数据调整

... ... @@ -337,19 +337,16 @@ public class ShipmentsOrderInfoController extends DefaultBaseController {
337 337 if (StringUtils.isNotBlank(latex)) {
338 338 LatexFormulaExcelExporterUtil.insertLatexImageToCell(workbook, sheet, latex, startRow, 4, 1, 7);
339 339 }
340   - // 处理订单类型
341   - String orderType = handleContractType(detail.getContractType());
342   -
343 340 ExcelUtil.setCellValue(sheet, startRow, 9, detail.getQuantity());
344 341 if ("TYPE_2".equals(type)) {
345 342 ExcelUtil.setCellValue(sheet, startRow, 10, detail.getActualShipmentQuantity());
346 343 ExcelUtil.setCellValue(sheet, startRow, 11, detail.getNum());
347 344 ExcelUtil.setCellValue(sheet, startRow, 12, detail.getSalesPrice());
348   - ExcelUtil.setCellValue(sheet, startRow, 13, orderType);
  345 + ExcelUtil.setCellValue(sheet, startRow, 13, detail.getOrderType());
349 346 ExcelUtil.setCellValue(sheet, startRow, 14, detail.getYieldBatchNo());
350 347 } else {
351 348 ExcelUtil.setCellValue(sheet, startRow, 13, detail.getPackagingFee());
352   - ExcelUtil.setCellValue(sheet, startRow, 15, orderType);
  349 + ExcelUtil.setCellValue(sheet, startRow, 15, detail.getOrderType());
353 350 }
354 351 startRow++;
355 352 }
... ...
... ... @@ -76,12 +76,6 @@ public class ShipmentsPlanDetail extends BaseEntity implements BaseDto {
76 76 private String packagingFee;
77 77
78 78 /**
79   - * 合同类型
80   - */
81   - @TableField(exist = false)
82   - private String contractType;
83   -
84   - /**
85 79 * 客户ID
86 80 */
87 81 @TableField(exist = false)
... ...
... ... @@ -44,8 +44,10 @@
44 44 ELSE '其它'
45 45 END AS order_type,
46 46 o.ordering_unit AS customer_id,
  47 + o.packaging_fee,
47 48 c.name AS customer_name,
48 49 tb.order_spec_id,
  50 + ol.brand,
49 51 ol.thickness,
50 52 ol.thickness_tol_pos,
51 53 ol.thickness_tol_neg,
... ... @@ -56,11 +58,15 @@
56 58 ol.length_tol_pos,
57 59 ol.length_tol_neg,
58 60 ol.quantity,
  61 + ol.sales_price,
  62 + ol.status,
59 63 tb.parent_id,
60   - tb.status,
61 64 tb.shipments_date,
62 65 tb.shipments_time,
63 66 tb.can_shipments,
  67 + tb.actual_shipment_quantity,
  68 + tb.num,
  69 + tb.yield_batch_no,
64 70 tb.del_flag,
65 71 ws.name AS workshop_name,
66 72 tb.create_by_id,
... ... @@ -196,7 +202,12 @@
196 202 o.delivery_method,
197 203 o.settlement_terms,
198 204 o.packaging_fee,
199   - sc.type as contract_type,
  205 + CASE
  206 + WHEN sc.type IN ('DISTRIB_STD', 'DIST_STOCK_CONTRACT', 'DRAFT_DIST_AGMT') THEN '经销'
  207 + WHEN sc.type IN ('INTL_STD_CONTRACT', 'INTL_INVENTORY_AGMT', 'INTL_OPEN_SPEC_AGMT') THEN '外贸'
  208 + WHEN sc.type = 'PROCESS_STD_AGMT' THEN '加工'
  209 + ELSE '其它'
  210 + END AS order_type,
200 211 c.name AS customer_name,
201 212 tb.order_spec_id,
202 213 ol.brand,
... ... @@ -211,8 +222,8 @@
211 222 ol.length_tol_neg,
212 223 ol.quantity,
213 224 ol.sales_price,
  225 + ol.status,
214 226 tb.parent_id,
215   - tb.status,
216 227 tb.shipments_date,
217 228 tb.shipments_time,
218 229 tb.can_shipments,
... ...