master
kira 6 years ago
parent 3064b64ecb
commit 5ad8390bc9

@ -113,12 +113,12 @@ public class PermissionPartnerManagerImpl implements PermissionPartnerManager {
@Override
public void permissionClientModuleSave(int clientId, String clientMoniker) {
List<JSONObject> moduleId = permissionPartnerModuleMapper.listInit();
List<JSONObject> 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);
}

@ -28,10 +28,6 @@ public interface PermissionPartnerModuleMapper {
@AutoSql(type = SqlType.SELECT)
List<JSONObject> list();
@AutoSql(type = SqlType.SELECT)
@AdvanceSelect(addonWhereClause = "initialize=1")
List<JSONObject> listInit();
@AutoSql(type = SqlType.SELECT)
JSONObject find(@Param("module_name") String moduleName);

@ -10,10 +10,10 @@
<p class="form-control-static" ng-bind="module.module_name" ng-if="!nameEditable"></p>
</div>
<div class="form-group">
<label class="control-label" for="jsModule">Js Module</label>
<input class="form-control" id="jsModule" ng-model="module.js_module">
<label class="control-label" for="remark">Remark</label>
<input class="form-control" id="remark" ng-model="module.remark">
</div>
<div class="form-group" ng-if="nameEditable">
<div class="form-group">
<label class="control-label">是否开放</label>
<input class="control-in" type="checkbox" ng-model="module.initialize" bs-switch
switch-change="init()">

Loading…
Cancel
Save