master
wangning 7 years ago
parent 08b1230f4f
commit 82df945256

@ -32,4 +32,6 @@ public interface PermissionPartnerManager {
List<JSONObject> listUserFunctions(int role); List<JSONObject> listUserFunctions(int role);
JSONObject getPartnerFuncById(String funcId); JSONObject getPartnerFuncById(String funcId);
void permissionClientModuleSave(int clientId,String clientMoniker);
} }

@ -20,7 +20,6 @@ import org.springframework.cache.annotation.CacheEvict;
import org.springframework.stereotype.Service; import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional; import org.springframework.transaction.annotation.Transactional;
import java.math.BigInteger;
import java.util.ArrayList; import java.util.ArrayList;
import java.util.HashMap; import java.util.HashMap;
import java.util.List; import java.util.List;
@ -112,6 +111,7 @@ public class PermissionPartnerManagerImpl implements PermissionPartnerManager {
return report; return report;
} }
@Override
public void permissionClientModuleSave(int clientId,String clientMoniker) { public void permissionClientModuleSave(int clientId,String clientMoniker) {
List<JSONObject> moduleId = permissionPartnerModuleMapper.list(); List<JSONObject> moduleId = permissionPartnerModuleMapper.list();
for (JSONObject moduleClientAdd : moduleId) { for (JSONObject moduleClientAdd : moduleId) {
@ -119,7 +119,7 @@ public class PermissionPartnerManagerImpl implements PermissionPartnerManager {
moduleClientAdd.put("client_moniker", clientMoniker); moduleClientAdd.put("client_moniker", clientMoniker);
moduleClientAdd.put("module_id", moduleClientAdd.getString("id")); moduleClientAdd.put("module_id", moduleClientAdd.getString("id"));
moduleClientAdd.put("is_valid", 1); moduleClientAdd.put("is_valid", 1);
permissionClientModuleMapper.save(moduleClientAdd); permissionClientModulesService.save(moduleClientAdd);
} }

Loading…
Cancel
Save