|
|
@@ -97,6 +97,12 @@ public class EquipmentResourceLibrary extends Controller {
|
|
|
Rows rows = sqlFactory.query();
|
|
|
|
|
|
|
|
|
+ QuerySQL dataauth = SQLFactory.createQuerySQL(this, "sys_dataauth").setTableAlias("t1");
|
|
|
+ dataauth.setWhere("siteid", siteid);
|
|
|
+ dataauth.setWhere("ownertable", "sat_sharematerial");
|
|
|
+ dataauth.setWhere("ownerid", sat_sharematerialid);
|
|
|
+ Rows dataauthRows = dataauth.query();
|
|
|
+
|
|
|
QuerySQL querySQL = SQLFactory.createQuerySQL(this, "sys_dataauths",
|
|
|
"roleid");
|
|
|
querySQL.addJoinTable(JOINTYPE.inner, "sys_role", "t2", "t1.roleid=t2.roleid and t1.siteid=t2.siteid",
|
|
|
@@ -123,6 +129,7 @@ public class EquipmentResourceLibrary extends Controller {
|
|
|
detailRow.put("typestr", "图文");
|
|
|
}
|
|
|
detailRow.put("role", roleRows.toArrayList("roleid", new ArrayList<Long>()));
|
|
|
+ detailRow.put("dataauth", dataauthRows);
|
|
|
}
|
|
|
|
|
|
|