Commit 78eb9f1d69962efb8a9743da6bb59c5e238f3f54

Authored by chenhang4442024
1 parent 30ec44cd

feat:更新邮件编辑配置

src/main/java/com/order/erp/service/order/impl/OrderBaseInfoServiceImpl.java
@@ -27,6 +27,7 @@ import com.order.erp.domain.dto.SystemSettingDO; @@ -27,6 +27,7 @@ import com.order.erp.domain.dto.SystemSettingDO;
27 import com.order.erp.domain.dto.admin.AdminUserDO; 27 import com.order.erp.domain.dto.admin.AdminUserDO;
28 import com.order.erp.domain.dto.order.*; 28 import com.order.erp.domain.dto.order.*;
29 import com.order.erp.domain.vo.order.*; 29 import com.order.erp.domain.vo.order.*;
  30 +import com.order.erp.job.OrderOverTimeEventJob;
30 import com.order.erp.mapper.order.OrderBaseInfoMapper; 31 import com.order.erp.mapper.order.OrderBaseInfoMapper;
31 import com.order.erp.service.SystemSettingService; 32 import com.order.erp.service.SystemSettingService;
32 import com.order.erp.service.admin.AdminUserService; 33 import com.order.erp.service.admin.AdminUserService;
@@ -53,6 +54,8 @@ import java.util.*; @@ -53,6 +54,8 @@ import java.util.*;
53 import java.util.function.Function; 54 import java.util.function.Function;
54 import java.util.stream.Collectors; 55 import java.util.stream.Collectors;
55 56
  57 +import static com.order.erp.common.utils.DateUtils.DATE;
  58 +
56 /** 59 /**
57 * 订单基础信息表(OrderBaseInfo)表服务实现类 60 * 订单基础信息表(OrderBaseInfo)表服务实现类
58 * 61 *
@@ -364,7 +367,7 @@ public class OrderBaseInfoServiceImpl extends ServiceImpl<OrderBaseInfoMapper, O @@ -364,7 +367,7 @@ public class OrderBaseInfoServiceImpl extends ServiceImpl<OrderBaseInfoMapper, O
364 try { 367 try {
365 map.put("生产科拖货时间", StringUtils.isBlank(orderInfoResultVO.getProductionDepartmentConsignTime()) ? 368 map.put("生产科拖货时间", StringUtils.isBlank(orderInfoResultVO.getProductionDepartmentConsignTime()) ?
366 orderInfoResultVO.getProductionDepartmentConsignTime() : 369 orderInfoResultVO.getProductionDepartmentConsignTime() :
367 - DateUtils.format(DateUtils.parseDate(orderInfoResultVO.getProductionDepartmentConsignTime(), DateUtils.DATE_TIME), DateUtils.DATE)); 370 + DateUtils.format(DateUtils.parseDate(orderInfoResultVO.getProductionDepartmentConsignTime(), DateUtils.DATE_TIME), DATE));
368 } catch (Exception e) { 371 } catch (Exception e) {
369 map.put("生产科拖货时间", orderInfoResultVO.getProductionDepartmentConsignTime()); 372 map.put("生产科拖货时间", orderInfoResultVO.getProductionDepartmentConsignTime());
370 } 373 }
@@ -374,7 +377,7 @@ public class OrderBaseInfoServiceImpl extends ServiceImpl<OrderBaseInfoMapper, O @@ -374,7 +377,7 @@ public class OrderBaseInfoServiceImpl extends ServiceImpl<OrderBaseInfoMapper, O
374 try { 377 try {
375 map.put("订单上HOD时间", StringUtils.isBlank(orderInfoResultVO.getOrderHodTime()) ? 378 map.put("订单上HOD时间", StringUtils.isBlank(orderInfoResultVO.getOrderHodTime()) ?
376 orderInfoResultVO.getOrderHodTime() : 379 orderInfoResultVO.getOrderHodTime() :
377 - DateUtils.format(DateUtils.parseDate(orderInfoResultVO.getOrderHodTime(), DateUtils.DATE_TIME), DateUtils.DATE)); 380 + DateUtils.format(DateUtils.parseDate(orderInfoResultVO.getOrderHodTime(), DateUtils.DATE_TIME), DATE));
378 } catch (Exception e) { 381 } catch (Exception e) {
379 map.put("订单上HOD时间", orderInfoResultVO.getOrderHodTime()); 382 map.put("订单上HOD时间", orderInfoResultVO.getOrderHodTime());
380 } 383 }
@@ -469,7 +472,7 @@ public class OrderBaseInfoServiceImpl extends ServiceImpl<OrderBaseInfoMapper, O @@ -469,7 +472,7 @@ public class OrderBaseInfoServiceImpl extends ServiceImpl<OrderBaseInfoMapper, O
469 try { 472 try {
470 map.put("pp date", StringUtils.isBlank(trackStageInfo.getPpTime()) ? 473 map.put("pp date", StringUtils.isBlank(trackStageInfo.getPpTime()) ?
471 trackStageInfo.getPpTime() : 474 trackStageInfo.getPpTime() :
472 - DateUtils.format(DateUtils.parseDate(trackStageInfo.getPpTime(), DateUtils.DATE_TIME), DateUtils.DATE)); 475 + DateUtils.format(DateUtils.parseDate(trackStageInfo.getPpTime(), DateUtils.DATE_TIME), DATE));
473 } catch (Exception e) { 476 } catch (Exception e) {
474 map.put("pp date", trackStageInfo.getPpTime()); 477 map.put("pp date", trackStageInfo.getPpTime());
475 } 478 }
@@ -483,7 +486,7 @@ public class OrderBaseInfoServiceImpl extends ServiceImpl<OrderBaseInfoMapper, O @@ -483,7 +486,7 @@ public class OrderBaseInfoServiceImpl extends ServiceImpl<OrderBaseInfoMapper, O
483 try { 486 try {
484 map.put("EXTRA,SHOWROOM,ONLINE sample发送时间", StringUtils.isBlank(trackStageInfo.getEsoSampleSendTime()) ? 487 map.put("EXTRA,SHOWROOM,ONLINE sample发送时间", StringUtils.isBlank(trackStageInfo.getEsoSampleSendTime()) ?
485 trackStageInfo.getEsoSampleSendTime() : 488 trackStageInfo.getEsoSampleSendTime() :
486 - DateUtils.format(DateUtils.parseDate(trackStageInfo.getEsoSampleSendTime(), DateUtils.DATE_TIME), DateUtils.DATE)); 489 + DateUtils.format(DateUtils.parseDate(trackStageInfo.getEsoSampleSendTime(), DateUtils.DATE_TIME), DATE));
487 } catch (Exception e) { 490 } catch (Exception e) {
488 map.put("EXTRA,SHOWROOM,ONLINE sample发送时间", trackStageInfo.getEsoSampleSendTime()); 491 map.put("EXTRA,SHOWROOM,ONLINE sample发送时间", trackStageInfo.getEsoSampleSendTime());
489 } 492 }
@@ -493,7 +496,7 @@ public class OrderBaseInfoServiceImpl extends ServiceImpl<OrderBaseInfoMapper, O @@ -493,7 +496,7 @@ public class OrderBaseInfoServiceImpl extends ServiceImpl<OrderBaseInfoMapper, O
493 try { 496 try {
494 map.put("shippment sample 发送时间", StringUtils.isBlank(trackStageInfo.getShippmentSampleSendTime()) ? 497 map.put("shippment sample 发送时间", StringUtils.isBlank(trackStageInfo.getShippmentSampleSendTime()) ?
495 trackStageInfo.getShippmentSampleSendTime() : 498 trackStageInfo.getShippmentSampleSendTime() :
496 - DateUtils.format(DateUtils.parseDate(trackStageInfo.getShippmentSampleSendTime(), DateUtils.DATE_TIME), DateUtils.DATE)); 499 + DateUtils.format(DateUtils.parseDate(trackStageInfo.getShippmentSampleSendTime(), DateUtils.DATE_TIME), DATE));
497 500
498 } catch (Exception e) { 501 } catch (Exception e) {
499 map.put("shippment sample 发送时间", trackStageInfo.getShippmentSampleSendTime()); 502 map.put("shippment sample 发送时间", trackStageInfo.getShippmentSampleSendTime());
@@ -509,7 +512,7 @@ public class OrderBaseInfoServiceImpl extends ServiceImpl<OrderBaseInfoMapper, O @@ -509,7 +512,7 @@ public class OrderBaseInfoServiceImpl extends ServiceImpl<OrderBaseInfoMapper, O
509 try { 512 try {
510 map.put("自测通过时间", StringUtils.isBlank(trackStageInfo.getSelfTestPassTime()) ? 513 map.put("自测通过时间", StringUtils.isBlank(trackStageInfo.getSelfTestPassTime()) ?
511 trackStageInfo.getSelfTestPassTime() : 514 trackStageInfo.getSelfTestPassTime() :
512 - DateUtils.format(DateUtils.parseDate(trackStageInfo.getSelfTestPassTime(), DateUtils.DATE_TIME), DateUtils.DATE)); 515 + DateUtils.format(DateUtils.parseDate(trackStageInfo.getSelfTestPassTime(), DateUtils.DATE_TIME), DATE));
513 } catch (Exception e) { 516 } catch (Exception e) {
514 map.put("自测通过时间", trackStageInfo.getSelfTestPassTime()); 517 map.put("自测通过时间", trackStageInfo.getSelfTestPassTime());
515 } 518 }
@@ -519,7 +522,7 @@ public class OrderBaseInfoServiceImpl extends ServiceImpl<OrderBaseInfoMapper, O @@ -519,7 +522,7 @@ public class OrderBaseInfoServiceImpl extends ServiceImpl<OrderBaseInfoMapper, O
519 try { 522 try {
520 map.put("Aitex测试发送时间", StringUtils.isBlank(trackStageInfo.getAitexTestSendTime()) ? 523 map.put("Aitex测试发送时间", StringUtils.isBlank(trackStageInfo.getAitexTestSendTime()) ?
521 trackStageInfo.getAitexTestSendTime() : 524 trackStageInfo.getAitexTestSendTime() :
522 - DateUtils.format(DateUtils.parseDate(trackStageInfo.getAitexTestSendTime(), DateUtils.DATE_TIME), DateUtils.DATE)); 525 + DateUtils.format(DateUtils.parseDate(trackStageInfo.getAitexTestSendTime(), DateUtils.DATE_TIME), DATE));
523 } catch (Exception e) { 526 } catch (Exception e) {
524 map.put("Aitex测试发送时间", trackStageInfo.getAitexTestSendTime()); 527 map.put("Aitex测试发送时间", trackStageInfo.getAitexTestSendTime());
525 } 528 }
@@ -533,7 +536,7 @@ public class OrderBaseInfoServiceImpl extends ServiceImpl<OrderBaseInfoMapper, O @@ -533,7 +536,7 @@ public class OrderBaseInfoServiceImpl extends ServiceImpl<OrderBaseInfoMapper, O
533 try { 536 try {
534 map.put("SGS测试发送时间", StringUtils.isBlank(trackStageInfo.getSgsTestSendTime()) ? 537 map.put("SGS测试发送时间", StringUtils.isBlank(trackStageInfo.getSgsTestSendTime()) ?
535 trackStageInfo.getSgsTestSendTime() : 538 trackStageInfo.getSgsTestSendTime() :
536 - DateUtils.format(DateUtils.parseDate(trackStageInfo.getSgsTestSendTime(), DateUtils.DATE_TIME), DateUtils.DATE)); 539 + DateUtils.format(DateUtils.parseDate(trackStageInfo.getSgsTestSendTime(), DateUtils.DATE_TIME), DATE));
537 } catch (Exception e) { 540 } catch (Exception e) {
538 map.put("SGS测试发送时间", trackStageInfo.getSgsTestSendTime()); 541 map.put("SGS测试发送时间", trackStageInfo.getSgsTestSendTime());
539 } 542 }
@@ -547,7 +550,7 @@ public class OrderBaseInfoServiceImpl extends ServiceImpl<OrderBaseInfoMapper, O @@ -547,7 +550,7 @@ public class OrderBaseInfoServiceImpl extends ServiceImpl<OrderBaseInfoMapper, O
547 try { 550 try {
548 map.put("Barcode sticker arrival time", StringUtils.isBlank(trackStageInfo.getBarcodeStickerArrivalTime()) ? 551 map.put("Barcode sticker arrival time", StringUtils.isBlank(trackStageInfo.getBarcodeStickerArrivalTime()) ?
549 trackStageInfo.getBarcodeStickerArrivalTime() : 552 trackStageInfo.getBarcodeStickerArrivalTime() :
550 - DateUtils.format(DateUtils.parseDate(trackStageInfo.getBarcodeStickerArrivalTime(), DateUtils.DATE_TIME), DateUtils.DATE)); 553 + DateUtils.format(DateUtils.parseDate(trackStageInfo.getBarcodeStickerArrivalTime(), DateUtils.DATE_TIME), DATE));
551 } catch (Exception e) { 554 } catch (Exception e) {
552 map.put("Barcode sticker arrival time", trackStageInfo.getBarcodeStickerArrivalTime()); 555 map.put("Barcode sticker arrival time", trackStageInfo.getBarcodeStickerArrivalTime());
553 } 556 }
@@ -557,7 +560,7 @@ public class OrderBaseInfoServiceImpl extends ServiceImpl<OrderBaseInfoMapper, O @@ -557,7 +560,7 @@ public class OrderBaseInfoServiceImpl extends ServiceImpl<OrderBaseInfoMapper, O
557 try { 560 try {
558 map.put("最晚包材到货时间", StringUtils.isBlank(trackStageInfo.getLatestArrivalTime()) ? 561 map.put("最晚包材到货时间", StringUtils.isBlank(trackStageInfo.getLatestArrivalTime()) ?
559 trackStageInfo.getLatestArrivalTime() : 562 trackStageInfo.getLatestArrivalTime() :
560 - DateUtils.format(DateUtils.parseDate(trackStageInfo.getLatestArrivalTime(), DateUtils.DATE_TIME), DateUtils.DATE)); 563 + DateUtils.format(DateUtils.parseDate(trackStageInfo.getLatestArrivalTime(), DateUtils.DATE_TIME), DATE));
561 } catch (Exception e) { 564 } catch (Exception e) {
562 map.put("最晚包材到货时间", trackStageInfo.getLatestArrivalTime()); 565 map.put("最晚包材到货时间", trackStageInfo.getLatestArrivalTime());
563 } 566 }
@@ -567,7 +570,7 @@ public class OrderBaseInfoServiceImpl extends ServiceImpl<OrderBaseInfoMapper, O @@ -567,7 +570,7 @@ public class OrderBaseInfoServiceImpl extends ServiceImpl<OrderBaseInfoMapper, O
567 try { 570 try {
568 map.put("最晚订舱+报关资料时间", StringUtils.isBlank(trackStageInfo.getLatestBkTime()) ? 571 map.put("最晚订舱+报关资料时间", StringUtils.isBlank(trackStageInfo.getLatestBkTime()) ?
569 trackStageInfo.getLatestBkTime() : 572 trackStageInfo.getLatestBkTime() :
570 - DateUtils.format(DateUtils.parseDate(trackStageInfo.getLatestBkTime(), DateUtils.DATE_TIME), DateUtils.DATE)); 573 + DateUtils.format(DateUtils.parseDate(trackStageInfo.getLatestBkTime(), DateUtils.DATE_TIME), DATE));
571 } catch (Exception e) { 574 } catch (Exception e) {
572 map.put("最晚订舱+报关资料时间", trackStageInfo.getLatestBkTime()); 575 map.put("最晚订舱+报关资料时间", trackStageInfo.getLatestBkTime());
573 576
@@ -582,7 +585,7 @@ public class OrderBaseInfoServiceImpl extends ServiceImpl<OrderBaseInfoMapper, O @@ -582,7 +585,7 @@ public class OrderBaseInfoServiceImpl extends ServiceImpl<OrderBaseInfoMapper, O
582 try { 585 try {
583 map.put("中期验货申请时间", StringUtils.isBlank(inspectionStageInfo.getMidCheckApplyTime()) ? 586 map.put("中期验货申请时间", StringUtils.isBlank(inspectionStageInfo.getMidCheckApplyTime()) ?
584 inspectionStageInfo.getMidCheckApplyTime() : 587 inspectionStageInfo.getMidCheckApplyTime() :
585 - DateUtils.format(DateUtils.parseDate(inspectionStageInfo.getMidCheckApplyTime(), DateUtils.DATE_TIME), DateUtils.DATE)); 588 + DateUtils.format(DateUtils.parseDate(inspectionStageInfo.getMidCheckApplyTime(), DateUtils.DATE_TIME), DATE));
586 } catch (Exception e) { 589 } catch (Exception e) {
587 map.put("中期验货申请时间", inspectionStageInfo.getMidCheckApplyTime()); 590 map.put("中期验货申请时间", inspectionStageInfo.getMidCheckApplyTime());
588 } 591 }
@@ -600,7 +603,7 @@ public class OrderBaseInfoServiceImpl extends ServiceImpl<OrderBaseInfoMapper, O @@ -600,7 +603,7 @@ public class OrderBaseInfoServiceImpl extends ServiceImpl<OrderBaseInfoMapper, O
600 try { 603 try {
601 map.put("尾期验货申请时间", StringUtils.isBlank(inspectionStageInfo.getEndCheckApplyTime()) ? 604 map.put("尾期验货申请时间", StringUtils.isBlank(inspectionStageInfo.getEndCheckApplyTime()) ?
602 inspectionStageInfo.getEndCheckApplyTime() : 605 inspectionStageInfo.getEndCheckApplyTime() :
603 - DateUtils.format(DateUtils.parseDate(inspectionStageInfo.getEndCheckApplyTime(), DateUtils.DATE_TIME), DateUtils.DATE)); 606 + DateUtils.format(DateUtils.parseDate(inspectionStageInfo.getEndCheckApplyTime(), DateUtils.DATE_TIME), DATE));
604 } catch (Exception e) { 607 } catch (Exception e) {
605 map.put("尾期验货申请时间", inspectionStageInfo.getEndCheckApplyTime()); 608 map.put("尾期验货申请时间", inspectionStageInfo.getEndCheckApplyTime());
606 } 609 }
@@ -1666,7 +1669,7 @@ public class OrderBaseInfoServiceImpl extends ServiceImpl<OrderBaseInfoMapper, O @@ -1666,7 +1669,7 @@ public class OrderBaseInfoServiceImpl extends ServiceImpl<OrderBaseInfoMapper, O
1666 trackStageDO.setPpTime(trackStageInfo.getPpTime()); 1669 trackStageDO.setPpTime(trackStageInfo.getPpTime());
1667 } 1670 }
1668 if (StringUtils.isNotBlank(trackStageInfo.getPpConfirmResult())) { 1671 if (StringUtils.isNotBlank(trackStageInfo.getPpConfirmResult())) {
1669 - //由于跟单信息在创建时也是采用edit接口,所以要限制第一次创建时ppconfirmResult为空的情况,这种情况计算到跟单记录中去。 1672 + //由于跟单信息在创建时也是采用edit接口,所以要限制第一次创建时ppconfirmResult为空的情况,这种情况计算到跟单记录中去。
1670 if(!(trackStageInfo.getPpConfirmResult().equals(trackStageDO.getPpConfirmResult())) && 1673 if(!(trackStageInfo.getPpConfirmResult().equals(trackStageDO.getPpConfirmResult())) &&
1671 StringUtils.isNotBlank(trackStageInfo.getPpConfirmResult()) ){ 1674 StringUtils.isNotBlank(trackStageInfo.getPpConfirmResult()) ){
1672 //用于在跟单记录中展示。 1675 //用于在跟单记录中展示。
@@ -1807,9 +1810,21 @@ public class OrderBaseInfoServiceImpl extends ServiceImpl<OrderBaseInfoMapper, O @@ -1807,9 +1810,21 @@ public class OrderBaseInfoServiceImpl extends ServiceImpl<OrderBaseInfoMapper, O
1807 .collect(Collectors.toList()); 1810 .collect(Collectors.toList());
1808 //一旦修改完质检信息就自动发送邮件对应的生产科。多次编辑保存多次发送。 1811 //一旦修改完质检信息就自动发送邮件对应的生产科。多次编辑保存多次发送。
1809 if (StringUtils.isNotBlank(inspectionStageInfo.getEndCheckApplyTime())) { 1812 if (StringUtils.isNotBlank(inspectionStageInfo.getEndCheckApplyTime())) {
  1813 + String EndCheckApplyTime= inspectionStageInfo.getEndCheckApplyTime().substring(0, 10);
  1814 + String ProductionDepartmentConsignTime =orderBaseInfoDo.getProductionDepartmentConsignTime().substring(0, 10);
  1815 + String EndCheckApply = DateUtils.format(DateUtils.parseDate(EndCheckApplyTime, DATE), DATE);
  1816 + String ProductionDepartmentConsign = DateUtils.format(DateUtils.parseDate(ProductionDepartmentConsignTime,DATE), DATE);
  1817 + orderEventJobVO.getInspectionStageInfo().setEndCheckApplyTime(EndCheckApply);
  1818 + orderEventJobVO.getBaseInfo().setProductionDepartmentConsignTime(ProductionDepartmentConsign);
1810 //尾期验货报告。 1819 //尾期验货报告。
1811 emailSendUtils.sendEmail(EmailTemplateEnum.END_CHECK_REPORT_TEMPLATE, emails, orderEventJobVO); 1820 emailSendUtils.sendEmail(EmailTemplateEnum.END_CHECK_REPORT_TEMPLATE, emails, orderEventJobVO);
1812 }else if(StringUtils.isNotBlank(inspectionStageInfo.getMidCheckApplyTime())){ 1821 }else if(StringUtils.isNotBlank(inspectionStageInfo.getMidCheckApplyTime())){
  1822 + String MidCheckApplyTime= inspectionStageInfo.getMidCheckApplyTime().substring(0, 10);
  1823 + String ProductionDepartmentConsignTime =orderBaseInfoDo.getProductionDepartmentConsignTime().substring(0, 10);
  1824 + String MidCheckApply = DateUtils.format(DateUtils.parseDate(MidCheckApplyTime, DATE), DATE);
  1825 + String ProductionDepartmentConsign = DateUtils.format(DateUtils.parseDate(ProductionDepartmentConsignTime,DATE), DATE);
  1826 + orderEventJobVO.getInspectionStageInfo().setMidCheckApplyTime(MidCheckApply);
  1827 + orderEventJobVO.getBaseInfo().setProductionDepartmentConsignTime(ProductionDepartmentConsign);
1813 //中期验货报告。 1828 //中期验货报告。
1814 emailSendUtils.sendEmail(EmailTemplateEnum.MID_CHECK_REPORT_TEMPLATE, emails, orderEventJobVO); 1829 emailSendUtils.sendEmail(EmailTemplateEnum.MID_CHECK_REPORT_TEMPLATE, emails, orderEventJobVO);
1815 } 1830 }
src/main/java/com/order/erp/service/order/impl/ReceiveEmailMappingServiceImpl.java
1 package com.order.erp.service.order.impl; 1 package com.order.erp.service.order.impl;
2 2
3 import cn.hutool.core.bean.BeanUtil; 3 import cn.hutool.core.bean.BeanUtil;
4 -import cn.hutool.core.collection.CollUtil; 4 +import com.alibaba.fastjson.JSON;
5 import com.alibaba.fastjson.JSONObject; 5 import com.alibaba.fastjson.JSONObject;
6 -import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;  
7 -import com.baomidou.mybatisplus.core.conditions.update.LambdaUpdateWrapper;  
8 -import com.baomidou.mybatisplus.core.metadata.IPage;  
9 import com.baomidou.mybatisplus.core.toolkit.CollectionUtils; 6 import com.baomidou.mybatisplus.core.toolkit.CollectionUtils;
10 import com.baomidou.mybatisplus.core.toolkit.ObjectUtils; 7 import com.baomidou.mybatisplus.core.toolkit.ObjectUtils;
11 import com.baomidou.mybatisplus.extension.plugins.pagination.Page; 8 import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
12 import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; 9 import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
13 import com.order.erp.common.constant.Constant; 10 import com.order.erp.common.constant.Constant;
14 import com.order.erp.common.constant.ServerResult; 11 import com.order.erp.common.constant.ServerResult;
15 -import com.order.erp.domain.dto.BaseDO;  
16 import com.order.erp.domain.dto.order.ReceiveEmailMappingDO; 12 import com.order.erp.domain.dto.order.ReceiveEmailMappingDO;
17 import com.order.erp.domain.vo.order.ReceiveEmailMappingQueryVO; 13 import com.order.erp.domain.vo.order.ReceiveEmailMappingQueryVO;
18 import com.order.erp.domain.vo.order.ReceiveEmailMappingVO; 14 import com.order.erp.domain.vo.order.ReceiveEmailMappingVO;
@@ -100,10 +96,6 @@ public class ReceiveEmailMappingServiceImpl extends ServiceImpl<ReceiveEmailMapp @@ -100,10 +96,6 @@ public class ReceiveEmailMappingServiceImpl extends ServiceImpl<ReceiveEmailMapp
100 if (Objects.isNull(receiveEmailMappingVO.getId())) { 96 if (Objects.isNull(receiveEmailMappingVO.getId())) {
101 return ServerResult.fail("id 不能为空"); 97 return ServerResult.fail("id 不能为空");
102 } 98 }
103 - List<ReceiveEmailMappingDO> ReceiveEmailMappingDoList = baseMapper.byTypeValueReceiveEmailMappingDO(receiveEmailMappingVO.getTypeValue());  
104 - if(CollectionUtils.isNotEmpty(ReceiveEmailMappingDoList)){  
105 - return ServerResult.fail("已存在"+receiveEmailMappingVO.getTypeValue()+"客户");  
106 - }  
107 ReceiveEmailMappingDO receiveEmailMappingDo = BeanUtil.copyProperties(receiveEmailMappingVO, ReceiveEmailMappingDO.class); 99 ReceiveEmailMappingDO receiveEmailMappingDo = BeanUtil.copyProperties(receiveEmailMappingVO, ReceiveEmailMappingDO.class);
108 receiveEmailMappingDo.setConfigInfos(JSONObject.toJSONString(receiveEmailMappingVO.getConfigInfos())); 100 receiveEmailMappingDo.setConfigInfos(JSONObject.toJSONString(receiveEmailMappingVO.getConfigInfos()));
109 updateById(receiveEmailMappingDo); 101 updateById(receiveEmailMappingDo);
src/main/resources/templates/mail.ftl
@@ -103,7 +103,7 @@ @@ -103,7 +103,7 @@
103 <#if title=="中期验货报告" > 103 <#if title=="中期验货报告" >
104 <td>${data.baseInfo.projectNo! " "}</td> 104 <td>${data.baseInfo.projectNo! " "}</td>
105 <td>${data.baseInfo.productionDepartment! " "}</td> 105 <td>${data.baseInfo.productionDepartment! " "}</td>
106 - <td>${data.baseInfo.internalNo! " "}</td> 106 + <td>${data.baseInfo.innerNo! " "}</td>
107 <td>${data.baseInfo.customerPo! " "}</td> 107 <td>${data.baseInfo.customerPo! " "}</td>
108 <td>${data.baseInfo.customerStyle! " "}</td> 108 <td>${data.baseInfo.customerStyle! " "}</td>
109 <td>${data.baseInfo.poColor! " "}</td> 109 <td>${data.baseInfo.poColor! " "}</td>
@@ -118,7 +118,7 @@ @@ -118,7 +118,7 @@
118 <#elseif title=="尾期验货报告"> 118 <#elseif title=="尾期验货报告">
119 <td>${data.baseInfo.projectNo! " "}</td> 119 <td>${data.baseInfo.projectNo! " "}</td>
120 <td>${data.baseInfo.productionDepartment! " "}</td> 120 <td>${data.baseInfo.productionDepartment! " "}</td>
121 - <td>${data.baseInfo.internalNo! " "}</td> 121 + <td>${data.baseInfo.innerNo! " "}</td>
122 <td>${data.baseInfo.customerPo! " "}</td> 122 <td>${data.baseInfo.customerPo! " "}</td>
123 <td>${data.baseInfo.customerStyle! " "}</td> 123 <td>${data.baseInfo.customerStyle! " "}</td>
124 <td>${data.baseInfo.poColor! " "}</td> 124 <td>${data.baseInfo.poColor! " "}</td>