main
黄海 1 year ago
parent 0218327ceb
commit f413f402e7

@ -6,7 +6,7 @@ import com.jfinal.plugin.activerecord.Record;
import java.util.List;
public class PgUtil {
/**
/**
*
*
* @param user_name
@ -63,6 +63,7 @@ public class PgUtil {
/**
*
*
* @param role_name
*/
public static void delRole(String role_name) {
@ -70,7 +71,7 @@ public class PgUtil {
Db.update(sql);
}
public static void grantRole(String role_name, String user_name) {
String sql="GRANT SELECT ON ds_13 TO role_base_readonly";
public static void grantRoleTableSelect(String role_name, String table_name) {
String sql = "GRANT SELECT ON " + table_name + " TO " + role_name;
}
}

@ -189,7 +189,7 @@
#sql("listDaKa")
select t1.*,t2.org_name as bureau_name,t3.area_name from t_base_daka as t1
inner join t_base_organization as t2 on t1.bureau_id=t2.org_id
inner join t_dm_area as t3 on t2.area_id=t2.id
inner join t_dm_area as t3 on t2.area_id=t3.id
where t1.term_id=#para(term_id) and t1.b_use=1
#if(city_id)
and t2.city_id=#para(city_id)

Loading…
Cancel
Save