From 0d67d49575f7e5c98437de3e1b5d0f8dad9536f5 Mon Sep 17 00:00:00 2001
From: java110 <928255095@qq.com>
Date: 星期二, 02 六月 2020 12:00:49 +0800
Subject: [PATCH] 优化定时任务

---
 java110-code-generator/src/main/resources/template/UpdateInfoListener.txt |   10 ++++------
 1 files changed, 4 insertions(+), 6 deletions(-)

diff --git a/java110-code-generator/src/main/resources/template/UpdateInfoListener.txt b/java110-code-generator/src/main/resources/template/UpdateInfoListener.txt
index 6e7ff56..ecdc80a 100644
--- a/java110-code-generator/src/main/resources/template/UpdateInfoListener.txt
+++ b/java110-code-generator/src/main/resources/template/UpdateInfoListener.txt
@@ -61,11 +61,10 @@
 
         Assert.notEmpty(data,"娌℃湁datas 鑺傜偣锛屾垨娌℃湁瀛愯妭鐐归渶瑕佸鐞�");
 
-        //澶勭悊 businessStore 鑺傜偣
-        if(data.containsKey("businessStore")){
+
             //澶勭悊 businessStore 鑺傜偣
-            if(data.containsKey("businessStore")){
-                Object _obj = data.get("businessStore");
+            if(data.containsKey(StorePo.class.getSimpleName())){
+                Object _obj = data.get(StorePo.class.getSimpleName());
                 JSONArray businessStores = null;
                 if(_obj instanceof JSONObject){
                     businessStores = new JSONArray();
@@ -73,7 +72,7 @@
                 }else {
                     businessStores = (JSONArray)_obj;
                 }
-                //JSONObject businessStore = data.getJSONObject("businessStore");
+                //JSONObject businessStore = data.getJSONObject(StorePo.class.getSimpleName());
                 for (int _storeIndex = 0; _storeIndex < businessStores.size();_storeIndex++) {
                     JSONObject businessStore = businessStores.getJSONObject(_storeIndex);
                     doBusinessStore(business, businessStore);
@@ -82,7 +81,6 @@
                     }
                 }
             }
-        }
     }
 
 

--
Gitblit v1.8.0