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

Merge remote-tracking branch 'origin/develop-yellow' into develop2

eganwu 2 лет назад
Родитель
Сommit
c702be82e6
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      src/custom/restcontroller/webmanage/saletool/sharematerial/DesignPic.java

+ 1 - 1
src/custom/restcontroller/webmanage/saletool/sharematerial/DesignPic.java

@@ -130,7 +130,7 @@ public class DesignPic extends Controller {
         }
         }
 
 
         QuerySQL attachmentQuery = SQLFactory.createQuerySQL(this, "sys_attachment_links").setTableAlias("t1");
         QuerySQL attachmentQuery = SQLFactory.createQuerySQL(this, "sys_attachment_links").setTableAlias("t1");
-        attachmentQuery.setSiteid(detailRow.getString("siteid"));
+        attachmentQuery.setSiteid(siteid);
         attachmentQuery.setWhere("ownertable", ownertable);
         attachmentQuery.setWhere("ownertable", ownertable);
         attachmentQuery.setWhere("ownerid", sat_sharematerialid);
         attachmentQuery.setWhere("ownerid", sat_sharematerialid);
         attachmentQuery.setWhere("usetype", ownertable);
         attachmentQuery.setWhere("usetype", ownertable);