master
kira 6 years ago
parent 1bc4c2d6d9
commit 3064b64ecb

@ -2,7 +2,6 @@ package au.com.royalpay.payment.manage.management.sysconfig.beans;
import com.alibaba.fastjson.JSONObject;
import com.alibaba.fastjson.annotation.JSONField;
import org.hibernate.validator.constraints.NotEmpty;
/**
* Created by yangluo on 2018/07/05.
@ -54,5 +53,6 @@ public class PartnerModuleInfo {
mod.put("js_module", getJsModule());
mod.put("js_path", getJsPath());
mod.put("remark", getRemark());
mod.put("initialize",getInitialize());
}
}

@ -113,7 +113,7 @@ public class PermissionPartnerManagerImpl implements PermissionPartnerManager {
@Override
public void permissionClientModuleSave(int clientId, String clientMoniker) {
List<JSONObject> moduleId = permissionPartnerModuleMapper.list();
List<JSONObject> moduleId = permissionPartnerModuleMapper.listInit();
for (JSONObject moduleClientAdd : moduleId) {
moduleClientAdd.put("client_id", clientId);
moduleClientAdd.put("client_moniker", clientMoniker);

@ -6,6 +6,7 @@ import org.apache.ibatis.annotations.Param;
import com.alibaba.fastjson.JSONObject;
import cn.yixblog.support.mybatis.autosql.annotations.AdvanceSelect;
import cn.yixblog.support.mybatis.autosql.annotations.AutoMapper;
import cn.yixblog.support.mybatis.autosql.annotations.AutoSql;
import cn.yixblog.support.mybatis.autosql.annotations.SqlType;
@ -27,6 +28,10 @@ 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);

@ -539,9 +539,6 @@ define(['angular', 'uiRouter'], function (angular) {
};
}]);
app.controller('partnerModuleNewCtrl', ['$scope', '$http', 'module','moduleall','commonDialog', function ($scope, $http, module,moduleall,commonDialog) {
$scope.module = angular.copy(module);
$scope.nameEditable = !module.module_name;
$scope.module.initialize = true;

Loading…
Cancel
Save