From cb38789006b411b29fba27a6a60493dc78946e17 Mon Sep 17 00:00:00 2001
From: cmg <527198563@qq.com>
Date: 星期六, 22 六月 2024 09:49:27 +0800
Subject: [PATCH] Merge branch 'master-stander' into master-jiayan

---
 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