|
@@ -87,7 +87,7 @@ public class Renderings extends Controller {
|
|
|
siteid = sharematerialrows.get(0).getString("siteid");
|
|
siteid = sharematerialrows.get(0).getString("siteid");
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- dbConnect.runSqlUpdate("UPDATE sat_sharematerial SET readcount=readcount+1 WHERE sat_sharematerialid=" + sat_sharematerialid );
|
|
|
|
|
|
|
+ dbConnect.runSqlUpdate("UPDATE sat_sharematerial SET readcount=readcount+1 WHERE sat_sharematerialid=" + sat_sharematerialid);
|
|
|
|
|
|
|
|
|
|
|
|
|
QuerySQL querySQ = SQLFactory.createQuerySQL(this, "sat_sharematerial")
|
|
QuerySQL querySQ = SQLFactory.createQuerySQL(this, "sat_sharematerial")
|
|
@@ -100,7 +100,7 @@ public class Renderings extends Controller {
|
|
|
Row detailRow = rows.isNotEmpty() ? rows.get(0) : new Row();
|
|
Row detailRow = rows.isNotEmpty() ? rows.get(0) : new Row();
|
|
|
|
|
|
|
|
Rows attRows = getAttachmentUrl("sat_sharematerial", sat_sharematerialid);
|
|
Rows attRows = getAttachmentUrl("sat_sharematerial", sat_sharematerialid);
|
|
|
- attRows.sortby("sequence","linksid");
|
|
|
|
|
|
|
+ attRows.sortby("sequence", "linksid");
|
|
|
detailRow.put("attinfos", attRows);
|
|
detailRow.put("attinfos", attRows);
|
|
|
detailRow.putIfAbsent("checkdate", "");
|
|
detailRow.putIfAbsent("checkdate", "");
|
|
|
detailRow.put("appleturl", Parameter.get("CaseImgsUrl") + sat_sharematerialid);
|
|
detailRow.put("appleturl", Parameter.get("CaseImgsUrl") + sat_sharematerialid);
|
|
@@ -217,12 +217,22 @@ public class Renderings extends Controller {
|
|
|
|
|
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+ if (whereObject.containsKey("iscollect") && !"".equals(whereObject.getString("iscollect"))) {
|
|
|
|
|
+ if (whereObject.getString("iscollect").equals("1")) {
|
|
|
|
|
+ where.append(" and (");
|
|
|
|
|
+ where.append(" t1.sat_sharematerialid in (SELECT ownerid from sys_datacollect WHERE ownertable='sat_sharematerial' and type=1 and siteid='" + siteid + "' and userid=" + userid + ")");
|
|
|
|
|
+ where.append(")");
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
QuerySQL sqlFactory = SQLFactory.createQuerySQL(this, sat_sharematerial,
|
|
QuerySQL sqlFactory = SQLFactory.createQuerySQL(this, sat_sharematerial,
|
|
|
- "sat_sharematerialid", "title", "status", "renderingstype", "readcount", "readcount_start", "sequence", "createdate", "checkdate", "renderingsclass","panoramaurl")
|
|
|
|
|
|
|
+ "sat_sharematerialid", "title", "status", "renderingstype", "readcount", "readcount_start", "sequence", "createdate", "checkdate", "renderingsclass", "panoramaurl")
|
|
|
.setTableAlias("t1");
|
|
.setTableAlias("t1");
|
|
|
sqlFactory.setSiteid(siteid);
|
|
sqlFactory.setSiteid(siteid);
|
|
|
sqlFactory.setWhere("classid", 4);
|
|
sqlFactory.setWhere("classid", 4);
|