Commit ee07af88ac9ed1d5ae62e52e499db64b8b4c367a

Authored by 房远帅
2 parents 7a93a694 fc73e923

Merge branch 'master_chujiang_0731' into master_quotation

@@ -277,6 +277,8 @@ public class BusinessDataExportHandler implements ExportHandler { @@ -277,6 +277,8 @@ public class BusinessDataExportHandler implements ExportHandler {
277 dataMap.put("officeClerk", reviewer.getOfficeClerk()); 277 dataMap.put("officeClerk", reviewer.getOfficeClerk());
278 // 办事处主管 278 // 办事处主管
279 dataMap.put("officeSupervisor", reviewer.getOfficeSupervisor()); 279 dataMap.put("officeSupervisor", reviewer.getOfficeSupervisor());
  280 + // 合同类型
  281 + dataMap.put("contractType", handleContractType(orderInfo.getContractType()));
280 ExcelUtil.processTemplate(workbook, dataMap); 282 ExcelUtil.processTemplate(workbook, dataMap);
281 283
282 String createTime = orderInfo.getCreateTime().format(dateTimeFormatter); 284 String createTime = orderInfo.getCreateTime().format(dateTimeFormatter);
@@ -326,6 +328,20 @@ public class BusinessDataExportHandler implements ExportHandler { @@ -326,6 +328,20 @@ public class BusinessDataExportHandler implements ExportHandler {
326 } 328 }
327 } 329 }
328 330
  331 + private String handleContractType(String contractType) {
  332 + String result = "";
  333 + if ("DISTRIB_STD".equals(contractType) || "DIST_STOCK_CONTRACT".equals(contractType)
  334 + || "DRAFT_DIST_AGMT".equals(contractType)) {
  335 + result = "经销";
  336 + } else if ("INTL_STD_CONTRACT".equals(contractType) || "INTL_INVENTORY_AGMT".equals(contractType)
  337 + || "INTL_OPEN_SPEC_AGMT".equals(contractType)) {
  338 + result = "外贸";
  339 + } else if ("PROCESS_STD_AGMT".equals(contractType)) {
  340 + result = "加工";
  341 + }
  342 + return result;
  343 + }
  344 +
329 private int setCellValue(Workbook workbook, Sheet sheet, int rowIndex, List<ReceiptLedgerReportDetail> detailList) { 345 private int setCellValue(Workbook workbook, Sheet sheet, int rowIndex, List<ReceiptLedgerReportDetail> detailList) {
330 if (CollectionUtils.isEmpty(detailList)) { 346 if (CollectionUtils.isEmpty(detailList)) {
331 return rowIndex; 347 return rowIndex;