|
@@ -111,10 +111,11 @@ public class role extends Controller {
|
|
|
String rolename = content.getString("rolename", "sys_role");
|
|
|
String remarks = content.getString("remarks", "sys_role");
|
|
|
String usertype = content.getString("usertype", "sys_role");
|
|
|
- JSONArray fielddatatypelimit = content.getJSONArray("fielddatatypelimit");
|
|
|
- if (fielddatatypelimit == null) {
|
|
|
- fielddatatypelimit = new JSONArray();
|
|
|
+ JSONArray fielddatatypelimit = new JSONArray();
|
|
|
+ if (content.containsKey("fielddatatypelimit")) {
|
|
|
+ fielddatatypelimit = content.getJSONArray("fielddatatypelimit");
|
|
|
}
|
|
|
+
|
|
|
SQLFactory sqlFactory = null;
|
|
|
if (roleid <= 0 || dbConnect.runSqlQuery("select roleid from sys_role where roleid=" + roleid).isEmpty()) {
|
|
|
roleid = createTableID("sys_role");
|