Forráskód Böngészése

客诉 word 导出: 新增 客户联系电话字段

turujie 2 éve
szülő
commit
cbf1e30d54

+ 1 - 0
business-common/src/main/java/com/rongwei/bscommon/sys/service/impl/ExportServiceImpl.java

@@ -197,6 +197,7 @@ public class ExportServiceImpl implements ExportService {
         wordMap.put("PRODUCTENGINEERNAME", comExportMasterDto.getProductEngineerName());
         wordMap.put("CREATEUSERNAME", comExportMasterDto.getCreateUserName());
         wordMap.put("DATENOW", DateUtil.formatDate(comExportMasterDto.getDateNow()));
+        wordMap.put("CUSTOMERPHONE",comExportMasterDto.getCustomerPhone());
         return wordMap;
     }
 }

+ 1 - 1
business-common/src/main/java/com/rongwei/bscommon/sys/utils/CodeGeneration.java

@@ -65,7 +65,7 @@ public class CodeGeneration {
         // 4、策略配置
         StrategyConfig strategy = new StrategyConfig();
         // 设置要映射的表名(重要,需要修改的地方)
-        strategy.setInclude("com_customer");
+        strategy.setInclude("com_metal_config");
         strategy.setNaming(NamingStrategy.underline_to_camel); // 自动转换表名的驼峰命名法
         strategy.setColumnNaming(NamingStrategy.no_change); // 自动转换列名的驼峰命名法
         strategy.setEntityLombokModel(true); // 是否使用lombox

+ 5 - 0
business-entity/src/main/java/com/bsentity/dto/ComExportMasterDto.java

@@ -48,4 +48,9 @@ public class ComExportMasterDto implements Serializable {
      * 日期
      */
     private Date dateNow;
+
+    /**
+     * 收件人电话
+     */
+    private String customerPhone;
 }

+ 1 - 1
business-entity/src/main/resources/mybatis/ComCustomerDao.xml

@@ -79,7 +79,7 @@
     <!-- 通过主表ids 查询 客户、客诉单信息 -->
     <select id="getCustomerByIds" resultType="com.bsentity.dto.ComExportMasterDto">
         SELECT
-            m.PRINTNO,GROUP_CONCAT(m.COMNO SEPARATOR '、') as comNo,m.CUSTOMERNAME,m.CREATEUSERNAME,m.PRODUCTENGINEERNAME,c.CUSTOMERUSERNAME ,DATE_FORMAT(NOW(),'%Y-%m-%d') AS DATENOW
+            m.PRINTNO,GROUP_CONCAT(m.COMNO SEPARATOR '、') as comNo,m.CUSTOMERNAME,m.CREATEUSERNAME,m.PRODUCTENGINEERNAME,c.CUSTOMERUSERNAME , c.CUSTOMERPHONE ,DATE_FORMAT(NOW(),'%Y-%m-%d') AS DATENOW
         FROM
             com_customer m
                 LEFT JOIN com_customer_config c ON m.CUSTOMERID = c.ID

BIN
business-server/src/main/resources/template/comProductlistTemp.docx