diff --git a/src/main/java/au/com/royalpay/payment/manage/management/sysconfig/core/impls/PermissionPartnerManagerImpl.java b/src/main/java/au/com/royalpay/payment/manage/management/sysconfig/core/impls/PermissionPartnerManagerImpl.java index fe90ab6cb..6205aa9f2 100644 --- a/src/main/java/au/com/royalpay/payment/manage/management/sysconfig/core/impls/PermissionPartnerManagerImpl.java +++ b/src/main/java/au/com/royalpay/payment/manage/management/sysconfig/core/impls/PermissionPartnerManagerImpl.java @@ -113,12 +113,12 @@ public class PermissionPartnerManagerImpl implements PermissionPartnerManager { @Override public void permissionClientModuleSave(int clientId, String clientMoniker) { - List moduleId = permissionPartnerModuleMapper.listInit(); + List moduleId = permissionPartnerModuleMapper.list(); for (JSONObject moduleClientAdd : moduleId) { moduleClientAdd.put("client_id", clientId); moduleClientAdd.put("client_moniker", clientMoniker); moduleClientAdd.put("module_id", moduleClientAdd.getString("id")); - moduleClientAdd.put("is_valid", 1); + moduleClientAdd.put("is_valid", moduleClientAdd.getBooleanValue("initialize")); permissionClientModulesService.save(moduleClientAdd); } diff --git a/src/main/java/au/com/royalpay/payment/manage/mappers/system/PermissionPartnerModuleMapper.java b/src/main/java/au/com/royalpay/payment/manage/mappers/system/PermissionPartnerModuleMapper.java index baa73c604..364c524d7 100644 --- a/src/main/java/au/com/royalpay/payment/manage/mappers/system/PermissionPartnerModuleMapper.java +++ b/src/main/java/au/com/royalpay/payment/manage/mappers/system/PermissionPartnerModuleMapper.java @@ -28,10 +28,6 @@ public interface PermissionPartnerModuleMapper { @AutoSql(type = SqlType.SELECT) List list(); - @AutoSql(type = SqlType.SELECT) - @AdvanceSelect(addonWhereClause = "initialize=1") - List listInit(); - @AutoSql(type = SqlType.SELECT) JSONObject find(@Param("module_name") String moduleName); diff --git a/src/main/ui/static/config/sysconfigs/templates/permissionPartner_module_dialog.html b/src/main/ui/static/config/sysconfigs/templates/permissionPartner_module_dialog.html index 45439cdb5..c37279392 100644 --- a/src/main/ui/static/config/sysconfigs/templates/permissionPartner_module_dialog.html +++ b/src/main/ui/static/config/sysconfigs/templates/permissionPartner_module_dialog.html @@ -10,10 +10,10 @@

- - + +
-
+