Просмотр исходного кода

账号修改后,自动清除缓存中的头像信息及调整缓存中的姓名调整
门户中热门商品可以通过商户id查询其下的商品信息

沈静伟 4 лет назад
Родитель
Сommit
07ccb6c878

+ 0 - 1
src/dsb/com/cnd3b/restcontroller/customer/usercenter/usermsg/usermsg.java

@@ -77,7 +77,6 @@ public class usermsg extends Controller {
             Row row = parameter.userIdList.get(userid);
             row.put("fname", fname);
             parameter.userIdList.put(userid, row);
-            headPicMap.remove(userid);//Çå³ýÍ·Ïñ»º´æ
 
             dbConnect.runSqlUpdate("update tagents set faddress='" + faddress + "' where siteid='" + siteid + "' and tagentsid=" + tagentsid + " and ftype='¸öÈË'");
         } else {

+ 1 - 2
src/dsb/com/cnd3b/restcontroller/publicmethod/homepage/SQL/优质商品.sql

@@ -1,3 +1,2 @@
 select t1.tagents_productid,t1.tagentsid,t1.fintroduction,t1.fprodname,t1.fprodclassname from tagents_product t1
-where --t1.fprodclassname=$saleprodclass$ and
-t1.siteid=$siteid$
+where t1.siteid=$siteid$ and (t1.tagentsid=$tagentsid$ or $tagentsid$=0)

+ 5 - 2
src/dsb/com/cnd3b/restcontroller/publicmethod/homepage/homepage.java

@@ -145,8 +145,10 @@ public class homepage extends Controller {
      * @return
      */
     public String prodList() {
-        SQLFactory prodlistSql = new SQLFactory(this, "优质商品",pageSize,pageNumber,"t1.tagents_productid");
+        long tagentsid = content.getLongValue("tagentsid");
+        SQLFactory prodlistSql = new SQLFactory(this, "优质商品", pageSize, pageNumber, "t1.tagents_productid");
         prodlistSql.addParameter("siteid", siteid);
+        prodlistSql.addParameter("tagentsid", tagentsid);
         //prodlistSql.addParameter("saleprodclass", content.getString("saleprodclass"));
         Rows rows = prodlistSql.runSqlQuery();
         RowsMap map = getAttachmentUrl("tagents_product", rows.toArrayList("tagents_productid"));
@@ -158,9 +160,10 @@ public class homepage extends Controller {
 
     /**
      * 展会活动信息
+     *
      * @return
      */
-    public String activityMsg(){
+    public String activityMsg() {
         SQLFactory sql = new SQLFactory(this, "活动信息展示");
         Rows rows = sql.runSqlQuery();
         return getSucReturnObject().setData(rows).toString();

+ 6 - 0
src/dsb/com/cnd3b/restcontroller/system/system/docManage.java

@@ -353,6 +353,9 @@ public class docManage extends Controller {
                 resultObject.put("data", queryDocRow(obsfilename));
             }
             bucketFile.close();
+            if (ftype.equalsIgnoreCase("headportrait")) {
+                headPicMap.remove(userid);//헌뇜庫獗뻠닸
+            }
         } catch (Exception exception) {
             resultObject.put("code", 0);
             resultObject.put("msg", exception.getMessage());
@@ -473,6 +476,9 @@ public class docManage extends Controller {
             } catch (Exception exception) {
                 exception.printStackTrace();
             }
+            if (ftype.equalsIgnoreCase("headportrait")) {
+                headPicMap.remove(userid);//헌뇜庫獗뻠닸
+            }
         }
         String fstatus = dbConnect.runSqlUpdate(SQLlist);
         if (fstatus.equals("true")) {

+ 2 - 1
src/dsb/com/cnd3b/utility/polyv/Polyv.java

@@ -239,7 +239,8 @@ public class Polyv extends BaseClass {
                 e.printStackTrace();
             }
         }
-        return getChannelSplash(channelId, livestatus);
+        //return getChannelSplash(channelId, livestatus);
+        return "https://bwj.obs.cn-east-2.myhuaweicloud.com/resources/defaultChannelSplash.jpg";
     }
 
     /**