瀏覽代碼

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

eganwu 1 年之前
父節點
當前提交
bf79287e38
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/custom/restcontroller/webmanage/saletool/sharematerial/LongPicText.java

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

@@ -255,7 +255,7 @@ public class LongPicText extends Controller {
         attachmentQuery.setWhere("usetype", ownertable);
         if (detailRow.getString("title").equals("6C红人服务")) {
             Long sys_enterpriseid = content.getLongValue("sys_enterpriseid");
-            attachmentQuery.setWhere("t1.attachmentid in(SELECT attachmentid from sys_attachment_links WHERE isonsale=1 and siteid='" + siteid + "' and  ownerid='" + sys_enterpriseid + "' and ownertable ='sys_enterpriseid' and usetype='sys_enterprise')");
+            attachmentQuery.setWhere("t1.attachmentid in(SELECT attachmentid from sys_attachment_links WHERE isonsale=1 and siteid='" + siteid + "' and  ownerid='" + sys_enterpriseid + "' and ownertable ='sys_enterprise' and usetype='sys_enterprise')");
         }
         attachmentQuery.setOrderBy("t1.sequence");
         Rows attachmentRows = attachmentQuery.query();