浏览代码

更新终端菜单配置

zhou.xiaoning 4 年之前
父节点
当前提交
b99ac5ff68
共有 3 个文件被更改,包括 48 次插入7 次删除
  1. 2 2
      config/mobile_menu.json
  2. 40 1
      config/pc_menu.json
  3. 6 4
      models/ermcpGoods.go

+ 2 - 2
config/mobile_menu.json

@@ -1982,12 +1982,12 @@
     },
     {
         "code": "client_qhjsphg",
-        "title": "饰品回",
+        "title": "饰品回",
         "sort": 22,
         "type": 1,
         "rulekey": "client_qhjsphg",
         "isshow": true,
-        "remark": "饰品回",
+        "remark": "饰品回",
         "children": []  
     },
     {

+ 40 - 1
config/pc_menu.json

@@ -1591,7 +1591,7 @@
                     "sort": 2,
                     "type": 2,
                     "rulekey": "client_pc_web_qhj_khzl_noraml_modify",
-                    "isshow": true,
+                    "isshow": false,
                     "children": []
                   },
                   {
@@ -2145,6 +2145,45 @@
             ]
           }
         ]
+      },
+      {
+        "code": "platinum_agreement",
+        "title": "协议管理",
+        "sort": 2,
+        "type": 1,
+        "rulekey": "client_pc_web_qhj_xygl",
+        "isshow": true,
+        "children": [
+          {
+            "code": "platinum_agreement_tab",
+            "title": "协议管理",
+            "sort": 2,
+            "type": 1,
+            "rulekey": "client_pc_web_qhj_xygl_tab",
+            "isshow": true,
+            "children": [
+              {
+                "code": "platinum_agreement_add",
+                "title": "新增",
+                "sort": 1,
+                "type": 2,
+                "rulekey": "client_pc_web_qhj_xygl_add",
+                "isshow": true,
+                "children": [
+                  {
+                    "code": "platinum_agreement_modify",
+                    "title": "修改",
+                    "sort": 1,
+                    "type": 2,
+                    "rulekey": "client_pc_web_qhj_xygl_modify",
+                    "isshow": true,
+                    "children": []
+                  }
+                ]
+              }
+            ]
+          }
+        ]
       }
     ]
   }

+ 6 - 4
models/ermcpGoods.go

@@ -85,10 +85,12 @@ func GetErmcpGoodses(lastUpdateTime string) ([]ErmcpGoods, error) {
 	engine := db.GetEngine()
 
 	// 对比数据库与终端的更新时间戳
-	ermcpGoods := make([]ErmcpGoods, 0)
-	engine.Table("GOODS G").Where(fmt.Sprintf("G.MODIFYTIME > to_date('%s','yyyy-MM-dd hh24:mi:ss')", lastUpdateTime)).Find(&ermcpGoods)
-	if len(ermcpGoods) == 0 {
-		return make([]ErmcpGoods, 0), nil
+	if len(lastUpdateTime) > 0 {
+		ermcpGoods := make([]ErmcpGoods, 0)
+		engine.Table("GOODS G").Where(fmt.Sprintf("G.MODIFYTIME > to_date('%s','yyyy-MM-dd hh24:mi:ss')", lastUpdateTime)).Find(&ermcpGoods)
+		if len(ermcpGoods) == 0 {
+			return make([]ErmcpGoods, 0), nil
+		}
 	}
 
 	goodses := make([]ErmcpGoods, 0)