From 217258891f8d90a0586a1d785b9ce72f7e226666 Mon Sep 17 00:00:00 2001
From: fwq <582742538@qq.com>
Date: 星期一, 26 十二月 2022 17:38:34 +0800
Subject: [PATCH] 时间工具类

---
 src/main/java/com/hx/mybatis/aes/springbean/InitMysqlData.java |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/src/main/java/com/hx/mybatis/aes/springbean/InitMysqlData.java b/src/main/java/com/hx/mybatis/aes/springbean/InitMysqlData.java
index fa7f431..4975d2b 100644
--- a/src/main/java/com/hx/mybatis/aes/springbean/InitMysqlData.java
+++ b/src/main/java/com/hx/mybatis/aes/springbean/InitMysqlData.java
@@ -10,7 +10,6 @@
 import com.hx.util.StringUtils;
 import com.hx.util.mysql.aes.MysqlHexAesTool;
 
-import javax.annotation.PostConstruct;
 import java.lang.reflect.Field;
 import java.util.*;
 import java.util.concurrent.ExecutorService;
@@ -21,7 +20,7 @@
     /**
      * 椤圭洰鍚姩灏辨墽琛屽悗灏辨墽琛岃鏂规硶
      */
-    @PostConstruct
+    //@PostConstruct 2022-06-17灞忔帀锛屾殏鏃剁敤涓嶄笂
     public static void initData(String packPath, CommonService commonService){
 
         //椤圭洰鍚姩鐨勬椂鍊欏~鍏�
@@ -76,6 +75,8 @@
         for(String fieldName:fieldData.getEncrypFields()){
             selectField.append(","+fieldName);
         }
+        pageNum = pageNum*pageSize;
+
         sqlSentence.sqlSentence("SELECT "+selectField.toString()+" FROM "+fieldData.getTableName()+" LIMIT "+pageNum+","+pageSize,values);
         List<Map<String,Object>> list = commonService.selectListMap(CommonMapper.class,sqlSentence);
 

--
Gitblit v1.8.0