提交 6705cce6 编写于 作者: ibizdev's avatar ibizdev

zhouweidong@lab.ibiz5.com 发布系统代码

上级 93e412b2
...@@ -161,6 +161,7 @@ export default class Breadcrumb extends Vue { ...@@ -161,6 +161,7 @@ export default class Breadcrumb extends Vue {
if(item && item.meta && item.meta.viewType && Object.is(item.meta.viewType,"APPINDEX")){ if(item && item.meta && item.meta.viewType && Object.is(item.meta.viewType,"APPINDEX")){
let path: string | null = window.sessionStorage.getItem(Environment.AppName); let path: string | null = window.sessionStorage.getItem(Environment.AppName);
if (path) { if (path) {
this.$store.commit("removeAllPage");
this.$router.push({ path: path }); this.$router.push({ path: path });
} else { } else {
this.$router.push("/"); this.$router.push("/");
......
...@@ -826,6 +826,7 @@ export default class SYS_PERMISSIONMPickupViewBase extends Vue { ...@@ -826,6 +826,7 @@ export default class SYS_PERMISSIONMPickupViewBase extends Vue {
* @memberof SYS_PERMISSIONMPickupViewBase * @memberof SYS_PERMISSIONMPickupViewBase
*/ */
public onClickCancel(): void { public onClickCancel(): void {
this.$emit('viewdataschange', null);
this.$emit('close', null); this.$emit('close', null);
} }
......
...@@ -661,6 +661,7 @@ export default class SYS_PERMISSIONPickupViewBase extends Vue { ...@@ -661,6 +661,7 @@ export default class SYS_PERMISSIONPickupViewBase extends Vue {
* @memberof SYS_PERMISSIONPickupViewBase * @memberof SYS_PERMISSIONPickupViewBase
*/ */
public onClickCancel(): void { public onClickCancel(): void {
this.$emit('viewdataschange', null);
this.$emit('close', null); this.$emit('close', null);
} }
......
...@@ -826,6 +826,7 @@ export default class SysRolePermissionMPickupViewBase extends Vue { ...@@ -826,6 +826,7 @@ export default class SysRolePermissionMPickupViewBase extends Vue {
* @memberof SysRolePermissionMPickupViewBase * @memberof SysRolePermissionMPickupViewBase
*/ */
public onClickCancel(): void { public onClickCancel(): void {
this.$emit('viewdataschange', null);
this.$emit('close', null); this.$emit('close', null);
} }
......
...@@ -661,6 +661,7 @@ export default class SysRolePermissionPickupViewBase extends Vue { ...@@ -661,6 +661,7 @@ export default class SysRolePermissionPickupViewBase extends Vue {
* @memberof SysRolePermissionPickupViewBase * @memberof SysRolePermissionPickupViewBase
*/ */
public onClickCancel(): void { public onClickCancel(): void {
this.$emit('viewdataschange', null);
this.$emit('close', null); this.$emit('close', null);
} }
......
...@@ -826,6 +826,7 @@ export default class SYS_ROLEMPickupViewBase extends Vue { ...@@ -826,6 +826,7 @@ export default class SYS_ROLEMPickupViewBase extends Vue {
* @memberof SYS_ROLEMPickupViewBase * @memberof SYS_ROLEMPickupViewBase
*/ */
public onClickCancel(): void { public onClickCancel(): void {
this.$emit('viewdataschange', null);
this.$emit('close', null); this.$emit('close', null);
} }
......
...@@ -661,6 +661,7 @@ export default class SYS_ROLEPickupViewBase extends Vue { ...@@ -661,6 +661,7 @@ export default class SYS_ROLEPickupViewBase extends Vue {
* @memberof SYS_ROLEPickupViewBase * @memberof SYS_ROLEPickupViewBase
*/ */
public onClickCancel(): void { public onClickCancel(): void {
this.$emit('viewdataschange', null);
this.$emit('close', null); this.$emit('close', null);
} }
......
...@@ -826,6 +826,7 @@ export default class SYS_USER_ROLEMPickupViewBase extends Vue { ...@@ -826,6 +826,7 @@ export default class SYS_USER_ROLEMPickupViewBase extends Vue {
* @memberof SYS_USER_ROLEMPickupViewBase * @memberof SYS_USER_ROLEMPickupViewBase
*/ */
public onClickCancel(): void { public onClickCancel(): void {
this.$emit('viewdataschange', null);
this.$emit('close', null); this.$emit('close', null);
} }
......
...@@ -661,6 +661,7 @@ export default class SYS_USER_ROLEPickupViewBase extends Vue { ...@@ -661,6 +661,7 @@ export default class SYS_USER_ROLEPickupViewBase extends Vue {
* @memberof SYS_USER_ROLEPickupViewBase * @memberof SYS_USER_ROLEPickupViewBase
*/ */
public onClickCancel(): void { public onClickCancel(): void {
this.$emit('viewdataschange', null);
this.$emit('close', null); this.$emit('close', null);
} }
......
...@@ -826,6 +826,7 @@ export default class SYS_USERMPickupViewBase extends Vue { ...@@ -826,6 +826,7 @@ export default class SYS_USERMPickupViewBase extends Vue {
* @memberof SYS_USERMPickupViewBase * @memberof SYS_USERMPickupViewBase
*/ */
public onClickCancel(): void { public onClickCancel(): void {
this.$emit('viewdataschange', null);
this.$emit('close', null); this.$emit('close', null);
} }
......
...@@ -661,6 +661,7 @@ export default class SYS_USERPickupViewBase extends Vue { ...@@ -661,6 +661,7 @@ export default class SYS_USERPickupViewBase extends Vue {
* @memberof SYS_USERPickupViewBase * @memberof SYS_USERPickupViewBase
*/ */
public onClickCancel(): void { public onClickCancel(): void {
this.$emit('viewdataschange', null);
this.$emit('close', null); this.$emit('close', null);
} }
......
...@@ -48,8 +48,9 @@ export default class SysAppServiceBase extends EntityService { ...@@ -48,8 +48,9 @@ export default class SysAppServiceBase extends EntityService {
* @memberof SysAppServiceBase * @memberof SysAppServiceBase
*/ */
public async Select(context: any = {},data: any = {}, isloading?: boolean): Promise<any> { public async Select(context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
let res:any = Http.getInstance().get(`/sysapps/${context.sysapp}/select`,isloading);
return Http.getInstance().get(`/sysapps/${context.sysapp}/select`,isloading); return res;
} }
/** /**
...@@ -62,9 +63,6 @@ export default class SysAppServiceBase extends EntityService { ...@@ -62,9 +63,6 @@ export default class SysAppServiceBase extends EntityService {
* @memberof SysAppServiceBase * @memberof SysAppServiceBase
*/ */
public async Create(context: any = {},data: any = {}, isloading?: boolean): Promise<any> { public async Create(context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
// aaaaa
// bbbbb
let masterData:any = {}; let masterData:any = {};
Object.assign(data,masterData); Object.assign(data,masterData);
if(!data.srffrontuf || data.srffrontuf !== "1"){ if(!data.srffrontuf || data.srffrontuf !== "1"){
...@@ -75,6 +73,7 @@ export default class SysAppServiceBase extends EntityService { ...@@ -75,6 +73,7 @@ export default class SysAppServiceBase extends EntityService {
} }
let tempContext:any = JSON.parse(JSON.stringify(context)); let tempContext:any = JSON.parse(JSON.stringify(context));
let res:any = await Http.getInstance().post(`/sysapps`,data,isloading); let res:any = await Http.getInstance().post(`/sysapps`,data,isloading);
return res; return res;
} }
...@@ -88,12 +87,10 @@ export default class SysAppServiceBase extends EntityService { ...@@ -88,12 +87,10 @@ export default class SysAppServiceBase extends EntityService {
* @memberof SysAppServiceBase * @memberof SysAppServiceBase
*/ */
public async Update(context: any = {},data: any = {}, isloading?: boolean): Promise<any> { public async Update(context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
// aaaaa
// bbbbb
let masterData:any = {}; let masterData:any = {};
Object.assign(data,masterData); Object.assign(data,masterData);
let res:any = await Http.getInstance().put(`/sysapps/${context.sysapp}`,data,isloading); let res:any = await Http.getInstance().put(`/sysapps/${context.sysapp}`,data,isloading);
return res; return res;
} }
...@@ -107,10 +104,8 @@ export default class SysAppServiceBase extends EntityService { ...@@ -107,10 +104,8 @@ export default class SysAppServiceBase extends EntityService {
* @memberof SysAppServiceBase * @memberof SysAppServiceBase
*/ */
public async Remove(context: any = {},data: any = {}, isloading?: boolean): Promise<any> { public async Remove(context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
// aaaaa let res:any = Http.getInstance().delete(`/sysapps/${context.sysapp}`,isloading);
// bbbbb return res;
return Http.getInstance().delete(`/sysapps/${context.sysapp}`,isloading);
} }
/** /**
...@@ -123,10 +118,8 @@ export default class SysAppServiceBase extends EntityService { ...@@ -123,10 +118,8 @@ export default class SysAppServiceBase extends EntityService {
* @memberof SysAppServiceBase * @memberof SysAppServiceBase
*/ */
public async Get(context: any = {},data: any = {}, isloading?: boolean): Promise<any> { public async Get(context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
// aaaaa
// bbbbb
let res:any = await Http.getInstance().get(`/sysapps/${context.sysapp}`,isloading); let res:any = await Http.getInstance().get(`/sysapps/${context.sysapp}`,isloading);
return res; return res;
} }
...@@ -140,11 +133,9 @@ export default class SysAppServiceBase extends EntityService { ...@@ -140,11 +133,9 @@ export default class SysAppServiceBase extends EntityService {
* @memberof SysAppServiceBase * @memberof SysAppServiceBase
*/ */
public async GetDraft(context: any = {},data: any = {}, isloading?: boolean): Promise<any> { public async GetDraft(context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
// aaaaa
// bbbbb
let res:any = await Http.getInstance().get(`/sysapps/getdraft`,isloading); let res:any = await Http.getInstance().get(`/sysapps/getdraft`,isloading);
res.data.sysapp = data.sysapp; res.data.sysapp = data.sysapp;
return res; return res;
} }
...@@ -158,10 +149,8 @@ export default class SysAppServiceBase extends EntityService { ...@@ -158,10 +149,8 @@ export default class SysAppServiceBase extends EntityService {
* @memberof SysAppServiceBase * @memberof SysAppServiceBase
*/ */
public async CheckKey(context: any = {},data: any = {}, isloading?: boolean): Promise<any> { public async CheckKey(context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
// aaaaa let res:any = Http.getInstance().post(`/sysapps/${context.sysapp}/checkkey`,data,isloading);
// bbbbb return res;
return Http.getInstance().post(`/sysapps/${context.sysapp}/checkkey`,data,isloading);
} }
/** /**
...@@ -174,12 +163,10 @@ export default class SysAppServiceBase extends EntityService { ...@@ -174,12 +163,10 @@ export default class SysAppServiceBase extends EntityService {
* @memberof SysAppServiceBase * @memberof SysAppServiceBase
*/ */
public async Save(context: any = {},data: any = {}, isloading?: boolean): Promise<any> { public async Save(context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
// aaaaa
// bbbbb
let masterData:any = {}; let masterData:any = {};
Object.assign(data,masterData); Object.assign(data,masterData);
let res:any = await Http.getInstance().post(`/sysapps/${context.sysapp}/save`,data,isloading); let res:any = await Http.getInstance().post(`/sysapps/${context.sysapp}/save`,data,isloading);
return res; return res;
} }
...@@ -193,9 +180,9 @@ export default class SysAppServiceBase extends EntityService { ...@@ -193,9 +180,9 @@ export default class SysAppServiceBase extends EntityService {
* @memberof SysAppServiceBase * @memberof SysAppServiceBase
*/ */
public async FetchDefault(context: any = {},data: any = {}, isloading?: boolean): Promise<any> { public async FetchDefault(context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
let tempData:any = JSON.parse(JSON.stringify(data)); let tempData:any = JSON.parse(JSON.stringify(data));
return Http.getInstance().get(`/sysapps/fetchdefault`,tempData,isloading); let res:any = Http.getInstance().get(`/sysapps/fetchdefault`,tempData,isloading);
return res;
} }
/** /**
......
...@@ -48,8 +48,9 @@ export default class SysAuthLogServiceBase extends EntityService { ...@@ -48,8 +48,9 @@ export default class SysAuthLogServiceBase extends EntityService {
* @memberof SysAuthLogServiceBase * @memberof SysAuthLogServiceBase
*/ */
public async Select(context: any = {},data: any = {}, isloading?: boolean): Promise<any> { public async Select(context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
let res:any = Http.getInstance().get(`/sysauthlogs/${context.sysauthlog}/select`,isloading);
return Http.getInstance().get(`/sysauthlogs/${context.sysauthlog}/select`,isloading); return res;
} }
/** /**
...@@ -62,9 +63,6 @@ export default class SysAuthLogServiceBase extends EntityService { ...@@ -62,9 +63,6 @@ export default class SysAuthLogServiceBase extends EntityService {
* @memberof SysAuthLogServiceBase * @memberof SysAuthLogServiceBase
*/ */
public async Create(context: any = {},data: any = {}, isloading?: boolean): Promise<any> { public async Create(context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
// aaaaa
// bbbbb
let masterData:any = {}; let masterData:any = {};
Object.assign(data,masterData); Object.assign(data,masterData);
if(!data.srffrontuf || data.srffrontuf !== "1"){ if(!data.srffrontuf || data.srffrontuf !== "1"){
...@@ -75,6 +73,7 @@ export default class SysAuthLogServiceBase extends EntityService { ...@@ -75,6 +73,7 @@ export default class SysAuthLogServiceBase extends EntityService {
} }
let tempContext:any = JSON.parse(JSON.stringify(context)); let tempContext:any = JSON.parse(JSON.stringify(context));
let res:any = await Http.getInstance().post(`/sysauthlogs`,data,isloading); let res:any = await Http.getInstance().post(`/sysauthlogs`,data,isloading);
return res; return res;
} }
...@@ -88,12 +87,10 @@ export default class SysAuthLogServiceBase extends EntityService { ...@@ -88,12 +87,10 @@ export default class SysAuthLogServiceBase extends EntityService {
* @memberof SysAuthLogServiceBase * @memberof SysAuthLogServiceBase
*/ */
public async Update(context: any = {},data: any = {}, isloading?: boolean): Promise<any> { public async Update(context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
// aaaaa
// bbbbb
let masterData:any = {}; let masterData:any = {};
Object.assign(data,masterData); Object.assign(data,masterData);
let res:any = await Http.getInstance().put(`/sysauthlogs/${context.sysauthlog}`,data,isloading); let res:any = await Http.getInstance().put(`/sysauthlogs/${context.sysauthlog}`,data,isloading);
return res; return res;
} }
...@@ -107,10 +104,8 @@ export default class SysAuthLogServiceBase extends EntityService { ...@@ -107,10 +104,8 @@ export default class SysAuthLogServiceBase extends EntityService {
* @memberof SysAuthLogServiceBase * @memberof SysAuthLogServiceBase
*/ */
public async Remove(context: any = {},data: any = {}, isloading?: boolean): Promise<any> { public async Remove(context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
// aaaaa let res:any = Http.getInstance().delete(`/sysauthlogs/${context.sysauthlog}`,isloading);
// bbbbb return res;
return Http.getInstance().delete(`/sysauthlogs/${context.sysauthlog}`,isloading);
} }
/** /**
...@@ -123,10 +118,8 @@ export default class SysAuthLogServiceBase extends EntityService { ...@@ -123,10 +118,8 @@ export default class SysAuthLogServiceBase extends EntityService {
* @memberof SysAuthLogServiceBase * @memberof SysAuthLogServiceBase
*/ */
public async Get(context: any = {},data: any = {}, isloading?: boolean): Promise<any> { public async Get(context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
// aaaaa
// bbbbb
let res:any = await Http.getInstance().get(`/sysauthlogs/${context.sysauthlog}`,isloading); let res:any = await Http.getInstance().get(`/sysauthlogs/${context.sysauthlog}`,isloading);
return res; return res;
} }
...@@ -140,11 +133,9 @@ export default class SysAuthLogServiceBase extends EntityService { ...@@ -140,11 +133,9 @@ export default class SysAuthLogServiceBase extends EntityService {
* @memberof SysAuthLogServiceBase * @memberof SysAuthLogServiceBase
*/ */
public async GetDraft(context: any = {},data: any = {}, isloading?: boolean): Promise<any> { public async GetDraft(context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
// aaaaa
// bbbbb
let res:any = await Http.getInstance().get(`/sysauthlogs/getdraft`,isloading); let res:any = await Http.getInstance().get(`/sysauthlogs/getdraft`,isloading);
res.data.sysauthlog = data.sysauthlog; res.data.sysauthlog = data.sysauthlog;
return res; return res;
} }
...@@ -158,10 +149,8 @@ export default class SysAuthLogServiceBase extends EntityService { ...@@ -158,10 +149,8 @@ export default class SysAuthLogServiceBase extends EntityService {
* @memberof SysAuthLogServiceBase * @memberof SysAuthLogServiceBase
*/ */
public async CheckKey(context: any = {},data: any = {}, isloading?: boolean): Promise<any> { public async CheckKey(context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
// aaaaa let res:any = Http.getInstance().post(`/sysauthlogs/${context.sysauthlog}/checkkey`,data,isloading);
// bbbbb return res;
return Http.getInstance().post(`/sysauthlogs/${context.sysauthlog}/checkkey`,data,isloading);
} }
/** /**
...@@ -174,12 +163,10 @@ export default class SysAuthLogServiceBase extends EntityService { ...@@ -174,12 +163,10 @@ export default class SysAuthLogServiceBase extends EntityService {
* @memberof SysAuthLogServiceBase * @memberof SysAuthLogServiceBase
*/ */
public async Save(context: any = {},data: any = {}, isloading?: boolean): Promise<any> { public async Save(context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
// aaaaa
// bbbbb
let masterData:any = {}; let masterData:any = {};
Object.assign(data,masterData); Object.assign(data,masterData);
let res:any = await Http.getInstance().post(`/sysauthlogs/${context.sysauthlog}/save`,data,isloading); let res:any = await Http.getInstance().post(`/sysauthlogs/${context.sysauthlog}/save`,data,isloading);
return res; return res;
} }
...@@ -193,9 +180,9 @@ export default class SysAuthLogServiceBase extends EntityService { ...@@ -193,9 +180,9 @@ export default class SysAuthLogServiceBase extends EntityService {
* @memberof SysAuthLogServiceBase * @memberof SysAuthLogServiceBase
*/ */
public async FetchDefault(context: any = {},data: any = {}, isloading?: boolean): Promise<any> { public async FetchDefault(context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
let tempData:any = JSON.parse(JSON.stringify(data)); let tempData:any = JSON.parse(JSON.stringify(data));
return Http.getInstance().get(`/sysauthlogs/fetchdefault`,tempData,isloading); let res:any = Http.getInstance().get(`/sysauthlogs/fetchdefault`,tempData,isloading);
return res;
} }
/** /**
......
...@@ -48,8 +48,9 @@ export default class SysPermissionServiceBase extends EntityService { ...@@ -48,8 +48,9 @@ export default class SysPermissionServiceBase extends EntityService {
* @memberof SysPermissionServiceBase * @memberof SysPermissionServiceBase
*/ */
public async Select(context: any = {},data: any = {}, isloading?: boolean): Promise<any> { public async Select(context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
let res:any = Http.getInstance().get(`/syspermissions/${context.syspermission}/select`,isloading);
return Http.getInstance().get(`/syspermissions/${context.syspermission}/select`,isloading); return res;
} }
/** /**
...@@ -62,9 +63,6 @@ export default class SysPermissionServiceBase extends EntityService { ...@@ -62,9 +63,6 @@ export default class SysPermissionServiceBase extends EntityService {
* @memberof SysPermissionServiceBase * @memberof SysPermissionServiceBase
*/ */
public async Create(context: any = {},data: any = {}, isloading?: boolean): Promise<any> { public async Create(context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
// aaaaa
// bbbbb
let masterData:any = {}; let masterData:any = {};
Object.assign(data,masterData); Object.assign(data,masterData);
if(!data.srffrontuf || data.srffrontuf !== "1"){ if(!data.srffrontuf || data.srffrontuf !== "1"){
...@@ -76,6 +74,7 @@ export default class SysPermissionServiceBase extends EntityService { ...@@ -76,6 +74,7 @@ export default class SysPermissionServiceBase extends EntityService {
let tempContext:any = JSON.parse(JSON.stringify(context)); let tempContext:any = JSON.parse(JSON.stringify(context));
let res:any = await Http.getInstance().post(`/syspermissions`,data,isloading); let res:any = await Http.getInstance().post(`/syspermissions`,data,isloading);
this.tempStorage.setItem(tempContext.srfsessionkey+'_sysrolepermissions',JSON.stringify(res.data.sysrolepermissions)); this.tempStorage.setItem(tempContext.srfsessionkey+'_sysrolepermissions',JSON.stringify(res.data.sysrolepermissions));
return res; return res;
} }
...@@ -89,12 +88,10 @@ export default class SysPermissionServiceBase extends EntityService { ...@@ -89,12 +88,10 @@ export default class SysPermissionServiceBase extends EntityService {
* @memberof SysPermissionServiceBase * @memberof SysPermissionServiceBase
*/ */
public async Update(context: any = {},data: any = {}, isloading?: boolean): Promise<any> { public async Update(context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
// aaaaa
// bbbbb
let masterData:any = {}; let masterData:any = {};
Object.assign(data,masterData); Object.assign(data,masterData);
let res:any = await Http.getInstance().put(`/syspermissions/${context.syspermission}`,data,isloading); let res:any = await Http.getInstance().put(`/syspermissions/${context.syspermission}`,data,isloading);
return res; return res;
} }
...@@ -108,10 +105,8 @@ export default class SysPermissionServiceBase extends EntityService { ...@@ -108,10 +105,8 @@ export default class SysPermissionServiceBase extends EntityService {
* @memberof SysPermissionServiceBase * @memberof SysPermissionServiceBase
*/ */
public async Remove(context: any = {},data: any = {}, isloading?: boolean): Promise<any> { public async Remove(context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
// aaaaa let res:any = Http.getInstance().delete(`/syspermissions/${context.syspermission}`,isloading);
// bbbbb return res;
return Http.getInstance().delete(`/syspermissions/${context.syspermission}`,isloading);
} }
/** /**
...@@ -124,10 +119,8 @@ export default class SysPermissionServiceBase extends EntityService { ...@@ -124,10 +119,8 @@ export default class SysPermissionServiceBase extends EntityService {
* @memberof SysPermissionServiceBase * @memberof SysPermissionServiceBase
*/ */
public async Get(context: any = {},data: any = {}, isloading?: boolean): Promise<any> { public async Get(context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
// aaaaa
// bbbbb
let res:any = await Http.getInstance().get(`/syspermissions/${context.syspermission}`,isloading); let res:any = await Http.getInstance().get(`/syspermissions/${context.syspermission}`,isloading);
return res; return res;
} }
...@@ -141,11 +134,9 @@ export default class SysPermissionServiceBase extends EntityService { ...@@ -141,11 +134,9 @@ export default class SysPermissionServiceBase extends EntityService {
* @memberof SysPermissionServiceBase * @memberof SysPermissionServiceBase
*/ */
public async GetDraft(context: any = {},data: any = {}, isloading?: boolean): Promise<any> { public async GetDraft(context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
// aaaaa
// bbbbb
let res:any = await Http.getInstance().get(`/syspermissions/getdraft`,isloading); let res:any = await Http.getInstance().get(`/syspermissions/getdraft`,isloading);
res.data.syspermission = data.syspermission; res.data.syspermission = data.syspermission;
return res; return res;
} }
...@@ -159,10 +150,8 @@ export default class SysPermissionServiceBase extends EntityService { ...@@ -159,10 +150,8 @@ export default class SysPermissionServiceBase extends EntityService {
* @memberof SysPermissionServiceBase * @memberof SysPermissionServiceBase
*/ */
public async CheckKey(context: any = {},data: any = {}, isloading?: boolean): Promise<any> { public async CheckKey(context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
// aaaaa let res:any = Http.getInstance().post(`/syspermissions/${context.syspermission}/checkkey`,data,isloading);
// bbbbb return res;
return Http.getInstance().post(`/syspermissions/${context.syspermission}/checkkey`,data,isloading);
} }
/** /**
...@@ -175,12 +164,10 @@ export default class SysPermissionServiceBase extends EntityService { ...@@ -175,12 +164,10 @@ export default class SysPermissionServiceBase extends EntityService {
* @memberof SysPermissionServiceBase * @memberof SysPermissionServiceBase
*/ */
public async Save(context: any = {},data: any = {}, isloading?: boolean): Promise<any> { public async Save(context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
// aaaaa
// bbbbb
let masterData:any = {}; let masterData:any = {};
Object.assign(data,masterData); Object.assign(data,masterData);
let res:any = await Http.getInstance().post(`/syspermissions/${context.syspermission}/save`,data,isloading); let res:any = await Http.getInstance().post(`/syspermissions/${context.syspermission}/save`,data,isloading);
return res; return res;
} }
...@@ -194,9 +181,9 @@ export default class SysPermissionServiceBase extends EntityService { ...@@ -194,9 +181,9 @@ export default class SysPermissionServiceBase extends EntityService {
* @memberof SysPermissionServiceBase * @memberof SysPermissionServiceBase
*/ */
public async FetchDefault(context: any = {},data: any = {}, isloading?: boolean): Promise<any> { public async FetchDefault(context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
let tempData:any = JSON.parse(JSON.stringify(data)); let tempData:any = JSON.parse(JSON.stringify(data));
return Http.getInstance().get(`/syspermissions/fetchdefault`,tempData,isloading); let res:any = Http.getInstance().get(`/syspermissions/fetchdefault`,tempData,isloading);
return res;
} }
/** /**
......
...@@ -49,13 +49,18 @@ export default class SysRolePermissionServiceBase extends EntityService { ...@@ -49,13 +49,18 @@ export default class SysRolePermissionServiceBase extends EntityService {
*/ */
public async Select(context: any = {},data: any = {}, isloading?: boolean): Promise<any> { public async Select(context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
if(context.sysrole && context.sysrolepermission){ if(context.sysrole && context.sysrolepermission){
return Http.getInstance().get(`/sysroles/${context.sysrole}/sysrolepermissions/${context.sysrolepermission}/select`,isloading); let res:any = Http.getInstance().get(`/sysroles/${context.sysrole}/sysrolepermissions/${context.sysrolepermission}/select`,isloading);
return res;
} }
if(context.syspermission && context.sysrolepermission){ if(context.syspermission && context.sysrolepermission){
return Http.getInstance().get(`/syspermissions/${context.syspermission}/sysrolepermissions/${context.sysrolepermission}/select`,isloading); let res:any = Http.getInstance().get(`/syspermissions/${context.syspermission}/sysrolepermissions/${context.sysrolepermission}/select`,isloading);
return res;
} }
let res:any = Http.getInstance().get(`/sysrolepermissions/${context.sysrolepermission}/select`,isloading);
return Http.getInstance().get(`/sysrolepermissions/${context.sysrolepermission}/select`,isloading); return res;
} }
/** /**
...@@ -79,6 +84,7 @@ export default class SysRolePermissionServiceBase extends EntityService { ...@@ -79,6 +84,7 @@ export default class SysRolePermissionServiceBase extends EntityService {
} }
let tempContext:any = JSON.parse(JSON.stringify(context)); let tempContext:any = JSON.parse(JSON.stringify(context));
let res:any = await Http.getInstance().post(`/sysroles/${context.sysrole}/sysrolepermissions`,data,isloading); let res:any = await Http.getInstance().post(`/sysroles/${context.sysrole}/sysrolepermissions`,data,isloading);
return res; return res;
} }
if(context.syspermission && true){ if(context.syspermission && true){
...@@ -92,11 +98,9 @@ export default class SysRolePermissionServiceBase extends EntityService { ...@@ -92,11 +98,9 @@ export default class SysRolePermissionServiceBase extends EntityService {
} }
let tempContext:any = JSON.parse(JSON.stringify(context)); let tempContext:any = JSON.parse(JSON.stringify(context));
let res:any = await Http.getInstance().post(`/syspermissions/${context.syspermission}/sysrolepermissions`,data,isloading); let res:any = await Http.getInstance().post(`/syspermissions/${context.syspermission}/sysrolepermissions`,data,isloading);
return res; return res;
} }
// aaaaa
// bbbbb
let masterData:any = {}; let masterData:any = {};
Object.assign(data,masterData); Object.assign(data,masterData);
if(!data.srffrontuf || data.srffrontuf !== "1"){ if(!data.srffrontuf || data.srffrontuf !== "1"){
...@@ -107,6 +111,7 @@ export default class SysRolePermissionServiceBase extends EntityService { ...@@ -107,6 +111,7 @@ export default class SysRolePermissionServiceBase extends EntityService {
} }
let tempContext:any = JSON.parse(JSON.stringify(context)); let tempContext:any = JSON.parse(JSON.stringify(context));
let res:any = await Http.getInstance().post(`/sysrolepermissions`,data,isloading); let res:any = await Http.getInstance().post(`/sysrolepermissions`,data,isloading);
return res; return res;
} }
...@@ -124,20 +129,20 @@ export default class SysRolePermissionServiceBase extends EntityService { ...@@ -124,20 +129,20 @@ export default class SysRolePermissionServiceBase extends EntityService {
let masterData:any = {}; let masterData:any = {};
Object.assign(data,masterData); Object.assign(data,masterData);
let res:any = await Http.getInstance().put(`/sysroles/${context.sysrole}/sysrolepermissions/${context.sysrolepermission}`,data,isloading); let res:any = await Http.getInstance().put(`/sysroles/${context.sysrole}/sysrolepermissions/${context.sysrolepermission}`,data,isloading);
return res; return res;
} }
if(context.syspermission && context.sysrolepermission){ if(context.syspermission && context.sysrolepermission){
let masterData:any = {}; let masterData:any = {};
Object.assign(data,masterData); Object.assign(data,masterData);
let res:any = await Http.getInstance().put(`/syspermissions/${context.syspermission}/sysrolepermissions/${context.sysrolepermission}`,data,isloading); let res:any = await Http.getInstance().put(`/syspermissions/${context.syspermission}/sysrolepermissions/${context.sysrolepermission}`,data,isloading);
return res; return res;
} }
// aaaaa
// bbbbb
let masterData:any = {}; let masterData:any = {};
Object.assign(data,masterData); Object.assign(data,masterData);
let res:any = await Http.getInstance().put(`/sysrolepermissions/${context.sysrolepermission}`,data,isloading); let res:any = await Http.getInstance().put(`/sysrolepermissions/${context.sysrolepermission}`,data,isloading);
return res; return res;
} }
...@@ -152,15 +157,15 @@ export default class SysRolePermissionServiceBase extends EntityService { ...@@ -152,15 +157,15 @@ export default class SysRolePermissionServiceBase extends EntityService {
*/ */
public async Remove(context: any = {},data: any = {}, isloading?: boolean): Promise<any> { public async Remove(context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
if(context.sysrole && context.sysrolepermission){ if(context.sysrole && context.sysrolepermission){
return Http.getInstance().delete(`/sysroles/${context.sysrole}/sysrolepermissions/${context.sysrolepermission}`,isloading); let res:any = Http.getInstance().delete(`/sysroles/${context.sysrole}/sysrolepermissions/${context.sysrolepermission}`,isloading);
return res;
} }
if(context.syspermission && context.sysrolepermission){ if(context.syspermission && context.sysrolepermission){
return Http.getInstance().delete(`/syspermissions/${context.syspermission}/sysrolepermissions/${context.sysrolepermission}`,isloading); let res:any = Http.getInstance().delete(`/syspermissions/${context.syspermission}/sysrolepermissions/${context.sysrolepermission}`,isloading);
return res;
} }
// aaaaa let res:any = Http.getInstance().delete(`/sysrolepermissions/${context.sysrolepermission}`,isloading);
// bbbbb return res;
return Http.getInstance().delete(`/sysrolepermissions/${context.sysrolepermission}`,isloading);
} }
/** /**
...@@ -175,16 +180,16 @@ export default class SysRolePermissionServiceBase extends EntityService { ...@@ -175,16 +180,16 @@ export default class SysRolePermissionServiceBase extends EntityService {
public async Get(context: any = {},data: any = {}, isloading?: boolean): Promise<any> { public async Get(context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
if(context.sysrole && context.sysrolepermission){ if(context.sysrole && context.sysrolepermission){
let res:any = await Http.getInstance().get(`/sysroles/${context.sysrole}/sysrolepermissions/${context.sysrolepermission}`,isloading); let res:any = await Http.getInstance().get(`/sysroles/${context.sysrole}/sysrolepermissions/${context.sysrolepermission}`,isloading);
return res; return res;
} }
if(context.syspermission && context.sysrolepermission){ if(context.syspermission && context.sysrolepermission){
let res:any = await Http.getInstance().get(`/syspermissions/${context.syspermission}/sysrolepermissions/${context.sysrolepermission}`,isloading); let res:any = await Http.getInstance().get(`/syspermissions/${context.syspermission}/sysrolepermissions/${context.sysrolepermission}`,isloading);
return res; return res;
} }
// aaaaa
// bbbbb
let res:any = await Http.getInstance().get(`/sysrolepermissions/${context.sysrolepermission}`,isloading); let res:any = await Http.getInstance().get(`/sysrolepermissions/${context.sysrolepermission}`,isloading);
return res; return res;
} }
...@@ -201,18 +206,18 @@ export default class SysRolePermissionServiceBase extends EntityService { ...@@ -201,18 +206,18 @@ export default class SysRolePermissionServiceBase extends EntityService {
if(context.sysrole && true){ if(context.sysrole && true){
let res:any = await Http.getInstance().get(`/sysroles/${context.sysrole}/sysrolepermissions/getdraft`,isloading); let res:any = await Http.getInstance().get(`/sysroles/${context.sysrole}/sysrolepermissions/getdraft`,isloading);
res.data.sysrolepermission = data.sysrolepermission; res.data.sysrolepermission = data.sysrolepermission;
return res; return res;
} }
if(context.syspermission && true){ if(context.syspermission && true){
let res:any = await Http.getInstance().get(`/syspermissions/${context.syspermission}/sysrolepermissions/getdraft`,isloading); let res:any = await Http.getInstance().get(`/syspermissions/${context.syspermission}/sysrolepermissions/getdraft`,isloading);
res.data.sysrolepermission = data.sysrolepermission; res.data.sysrolepermission = data.sysrolepermission;
return res; return res;
} }
// aaaaa
// bbbbb
let res:any = await Http.getInstance().get(`/sysrolepermissions/getdraft`,isloading); let res:any = await Http.getInstance().get(`/sysrolepermissions/getdraft`,isloading);
res.data.sysrolepermission = data.sysrolepermission; res.data.sysrolepermission = data.sysrolepermission;
return res; return res;
} }
...@@ -230,18 +235,18 @@ export default class SysRolePermissionServiceBase extends EntityService { ...@@ -230,18 +235,18 @@ export default class SysRolePermissionServiceBase extends EntityService {
let masterData:any = {}; let masterData:any = {};
Object.assign(data,masterData); Object.assign(data,masterData);
let res:any = await Http.getInstance().post(`/sysroles/${context.sysrole}/sysrolepermissions/${context.sysrolepermission}/checkkey`,data,isloading); let res:any = await Http.getInstance().post(`/sysroles/${context.sysrole}/sysrolepermissions/${context.sysrolepermission}/checkkey`,data,isloading);
return res; return res;
} }
if(context.syspermission && context.sysrolepermission){ if(context.syspermission && context.sysrolepermission){
let masterData:any = {}; let masterData:any = {};
Object.assign(data,masterData); Object.assign(data,masterData);
let res:any = await Http.getInstance().post(`/syspermissions/${context.syspermission}/sysrolepermissions/${context.sysrolepermission}/checkkey`,data,isloading); let res:any = await Http.getInstance().post(`/syspermissions/${context.syspermission}/sysrolepermissions/${context.sysrolepermission}/checkkey`,data,isloading);
return res; return res;
} }
// aaaaa let res:any = Http.getInstance().post(`/sysrolepermissions/${context.sysrolepermission}/checkkey`,data,isloading);
// bbbbb return res;
return Http.getInstance().post(`/sysrolepermissions/${context.sysrolepermission}/checkkey`,data,isloading);
} }
/** /**
...@@ -258,20 +263,20 @@ export default class SysRolePermissionServiceBase extends EntityService { ...@@ -258,20 +263,20 @@ export default class SysRolePermissionServiceBase extends EntityService {
let masterData:any = {}; let masterData:any = {};
Object.assign(data,masterData); Object.assign(data,masterData);
let res:any = await Http.getInstance().post(`/sysroles/${context.sysrole}/sysrolepermissions/${context.sysrolepermission}/save`,data,isloading); let res:any = await Http.getInstance().post(`/sysroles/${context.sysrole}/sysrolepermissions/${context.sysrolepermission}/save`,data,isloading);
return res; return res;
} }
if(context.syspermission && context.sysrolepermission){ if(context.syspermission && context.sysrolepermission){
let masterData:any = {}; let masterData:any = {};
Object.assign(data,masterData); Object.assign(data,masterData);
let res:any = await Http.getInstance().post(`/syspermissions/${context.syspermission}/sysrolepermissions/${context.sysrolepermission}/save`,data,isloading); let res:any = await Http.getInstance().post(`/syspermissions/${context.syspermission}/sysrolepermissions/${context.sysrolepermission}/save`,data,isloading);
return res; return res;
} }
// aaaaa
// bbbbb
let masterData:any = {}; let masterData:any = {};
Object.assign(data,masterData); Object.assign(data,masterData);
let res:any = await Http.getInstance().post(`/sysrolepermissions/${context.sysrolepermission}/save`,data,isloading); let res:any = await Http.getInstance().post(`/sysrolepermissions/${context.sysrolepermission}/save`,data,isloading);
return res; return res;
} }
...@@ -287,15 +292,17 @@ export default class SysRolePermissionServiceBase extends EntityService { ...@@ -287,15 +292,17 @@ export default class SysRolePermissionServiceBase extends EntityService {
public async FetchDefault(context: any = {},data: any = {}, isloading?: boolean): Promise<any> { public async FetchDefault(context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
if(context.sysrole && true){ if(context.sysrole && true){
let tempData:any = JSON.parse(JSON.stringify(data)); let tempData:any = JSON.parse(JSON.stringify(data));
return Http.getInstance().get(`/sysroles/${context.sysrole}/sysrolepermissions/fetchdefault`,tempData,isloading); let res:any = Http.getInstance().get(`/sysroles/${context.sysrole}/sysrolepermissions/fetchdefault`,tempData,isloading);
return res;
} }
if(context.syspermission && true){ if(context.syspermission && true){
let tempData:any = JSON.parse(JSON.stringify(data)); let tempData:any = JSON.parse(JSON.stringify(data));
return Http.getInstance().get(`/syspermissions/${context.syspermission}/sysrolepermissions/fetchdefault`,tempData,isloading); let res:any = Http.getInstance().get(`/syspermissions/${context.syspermission}/sysrolepermissions/fetchdefault`,tempData,isloading);
return res;
} }
let tempData:any = JSON.parse(JSON.stringify(data)); let tempData:any = JSON.parse(JSON.stringify(data));
return Http.getInstance().get(`/sysrolepermissions/fetchdefault`,tempData,isloading); let res:any = Http.getInstance().get(`/sysrolepermissions/fetchdefault`,tempData,isloading);
return res;
} }
/** /**
......
...@@ -48,8 +48,9 @@ export default class SysRoleServiceBase extends EntityService { ...@@ -48,8 +48,9 @@ export default class SysRoleServiceBase extends EntityService {
* @memberof SysRoleServiceBase * @memberof SysRoleServiceBase
*/ */
public async Select(context: any = {},data: any = {}, isloading?: boolean): Promise<any> { public async Select(context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
let res:any = Http.getInstance().get(`/sysroles/${context.sysrole}/select`,isloading);
return Http.getInstance().get(`/sysroles/${context.sysrole}/select`,isloading); return res;
} }
/** /**
...@@ -62,9 +63,6 @@ export default class SysRoleServiceBase extends EntityService { ...@@ -62,9 +63,6 @@ export default class SysRoleServiceBase extends EntityService {
* @memberof SysRoleServiceBase * @memberof SysRoleServiceBase
*/ */
public async Create(context: any = {},data: any = {}, isloading?: boolean): Promise<any> { public async Create(context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
// aaaaa
// bbbbb
let masterData:any = {}; let masterData:any = {};
Object.assign(data,masterData); Object.assign(data,masterData);
if(!data.srffrontuf || data.srffrontuf !== "1"){ if(!data.srffrontuf || data.srffrontuf !== "1"){
...@@ -77,6 +75,7 @@ export default class SysRoleServiceBase extends EntityService { ...@@ -77,6 +75,7 @@ export default class SysRoleServiceBase extends EntityService {
let res:any = await Http.getInstance().post(`/sysroles`,data,isloading); let res:any = await Http.getInstance().post(`/sysroles`,data,isloading);
this.tempStorage.setItem(tempContext.srfsessionkey+'_sysrolepermissions',JSON.stringify(res.data.sysrolepermissions)); this.tempStorage.setItem(tempContext.srfsessionkey+'_sysrolepermissions',JSON.stringify(res.data.sysrolepermissions));
this.tempStorage.setItem(tempContext.srfsessionkey+'_sysuserroles',JSON.stringify(res.data.sysuserroles)); this.tempStorage.setItem(tempContext.srfsessionkey+'_sysuserroles',JSON.stringify(res.data.sysuserroles));
return res; return res;
} }
...@@ -90,12 +89,10 @@ export default class SysRoleServiceBase extends EntityService { ...@@ -90,12 +89,10 @@ export default class SysRoleServiceBase extends EntityService {
* @memberof SysRoleServiceBase * @memberof SysRoleServiceBase
*/ */
public async Update(context: any = {},data: any = {}, isloading?: boolean): Promise<any> { public async Update(context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
// aaaaa
// bbbbb
let masterData:any = {}; let masterData:any = {};
Object.assign(data,masterData); Object.assign(data,masterData);
let res:any = await Http.getInstance().put(`/sysroles/${context.sysrole}`,data,isloading); let res:any = await Http.getInstance().put(`/sysroles/${context.sysrole}`,data,isloading);
return res; return res;
} }
...@@ -109,10 +106,8 @@ export default class SysRoleServiceBase extends EntityService { ...@@ -109,10 +106,8 @@ export default class SysRoleServiceBase extends EntityService {
* @memberof SysRoleServiceBase * @memberof SysRoleServiceBase
*/ */
public async Remove(context: any = {},data: any = {}, isloading?: boolean): Promise<any> { public async Remove(context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
// aaaaa let res:any = Http.getInstance().delete(`/sysroles/${context.sysrole}`,isloading);
// bbbbb return res;
return Http.getInstance().delete(`/sysroles/${context.sysrole}`,isloading);
} }
/** /**
...@@ -125,10 +120,8 @@ export default class SysRoleServiceBase extends EntityService { ...@@ -125,10 +120,8 @@ export default class SysRoleServiceBase extends EntityService {
* @memberof SysRoleServiceBase * @memberof SysRoleServiceBase
*/ */
public async Get(context: any = {},data: any = {}, isloading?: boolean): Promise<any> { public async Get(context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
// aaaaa
// bbbbb
let res:any = await Http.getInstance().get(`/sysroles/${context.sysrole}`,isloading); let res:any = await Http.getInstance().get(`/sysroles/${context.sysrole}`,isloading);
return res; return res;
} }
...@@ -142,11 +135,9 @@ export default class SysRoleServiceBase extends EntityService { ...@@ -142,11 +135,9 @@ export default class SysRoleServiceBase extends EntityService {
* @memberof SysRoleServiceBase * @memberof SysRoleServiceBase
*/ */
public async GetDraft(context: any = {},data: any = {}, isloading?: boolean): Promise<any> { public async GetDraft(context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
// aaaaa
// bbbbb
let res:any = await Http.getInstance().get(`/sysroles/getdraft`,isloading); let res:any = await Http.getInstance().get(`/sysroles/getdraft`,isloading);
res.data.sysrole = data.sysrole; res.data.sysrole = data.sysrole;
return res; return res;
} }
...@@ -160,10 +151,8 @@ export default class SysRoleServiceBase extends EntityService { ...@@ -160,10 +151,8 @@ export default class SysRoleServiceBase extends EntityService {
* @memberof SysRoleServiceBase * @memberof SysRoleServiceBase
*/ */
public async CheckKey(context: any = {},data: any = {}, isloading?: boolean): Promise<any> { public async CheckKey(context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
// aaaaa let res:any = Http.getInstance().post(`/sysroles/${context.sysrole}/checkkey`,data,isloading);
// bbbbb return res;
return Http.getInstance().post(`/sysroles/${context.sysrole}/checkkey`,data,isloading);
} }
/** /**
...@@ -176,12 +165,10 @@ export default class SysRoleServiceBase extends EntityService { ...@@ -176,12 +165,10 @@ export default class SysRoleServiceBase extends EntityService {
* @memberof SysRoleServiceBase * @memberof SysRoleServiceBase
*/ */
public async Save(context: any = {},data: any = {}, isloading?: boolean): Promise<any> { public async Save(context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
// aaaaa
// bbbbb
let masterData:any = {}; let masterData:any = {};
Object.assign(data,masterData); Object.assign(data,masterData);
let res:any = await Http.getInstance().post(`/sysroles/${context.sysrole}/save`,data,isloading); let res:any = await Http.getInstance().post(`/sysroles/${context.sysrole}/save`,data,isloading);
return res; return res;
} }
...@@ -195,9 +182,9 @@ export default class SysRoleServiceBase extends EntityService { ...@@ -195,9 +182,9 @@ export default class SysRoleServiceBase extends EntityService {
* @memberof SysRoleServiceBase * @memberof SysRoleServiceBase
*/ */
public async FetchDefault(context: any = {},data: any = {}, isloading?: boolean): Promise<any> { public async FetchDefault(context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
let tempData:any = JSON.parse(JSON.stringify(data)); let tempData:any = JSON.parse(JSON.stringify(data));
return Http.getInstance().get(`/sysroles/fetchdefault`,tempData,isloading); let res:any = Http.getInstance().get(`/sysroles/fetchdefault`,tempData,isloading);
return res;
} }
/** /**
......
...@@ -49,13 +49,18 @@ export default class SysUserRoleServiceBase extends EntityService { ...@@ -49,13 +49,18 @@ export default class SysUserRoleServiceBase extends EntityService {
*/ */
public async Select(context: any = {},data: any = {}, isloading?: boolean): Promise<any> { public async Select(context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
if(context.sysuser && context.sysuserrole){ if(context.sysuser && context.sysuserrole){
return Http.getInstance().get(`/sysusers/${context.sysuser}/sysuserroles/${context.sysuserrole}/select`,isloading); let res:any = Http.getInstance().get(`/sysusers/${context.sysuser}/sysuserroles/${context.sysuserrole}/select`,isloading);
return res;
} }
if(context.sysrole && context.sysuserrole){ if(context.sysrole && context.sysuserrole){
return Http.getInstance().get(`/sysroles/${context.sysrole}/sysuserroles/${context.sysuserrole}/select`,isloading); let res:any = Http.getInstance().get(`/sysroles/${context.sysrole}/sysuserroles/${context.sysuserrole}/select`,isloading);
return res;
} }
let res:any = Http.getInstance().get(`/sysuserroles/${context.sysuserrole}/select`,isloading);
return Http.getInstance().get(`/sysuserroles/${context.sysuserrole}/select`,isloading); return res;
} }
/** /**
...@@ -79,6 +84,7 @@ export default class SysUserRoleServiceBase extends EntityService { ...@@ -79,6 +84,7 @@ export default class SysUserRoleServiceBase extends EntityService {
} }
let tempContext:any = JSON.parse(JSON.stringify(context)); let tempContext:any = JSON.parse(JSON.stringify(context));
let res:any = await Http.getInstance().post(`/sysusers/${context.sysuser}/sysuserroles`,data,isloading); let res:any = await Http.getInstance().post(`/sysusers/${context.sysuser}/sysuserroles`,data,isloading);
return res; return res;
} }
if(context.sysrole && true){ if(context.sysrole && true){
...@@ -92,11 +98,9 @@ export default class SysUserRoleServiceBase extends EntityService { ...@@ -92,11 +98,9 @@ export default class SysUserRoleServiceBase extends EntityService {
} }
let tempContext:any = JSON.parse(JSON.stringify(context)); let tempContext:any = JSON.parse(JSON.stringify(context));
let res:any = await Http.getInstance().post(`/sysroles/${context.sysrole}/sysuserroles`,data,isloading); let res:any = await Http.getInstance().post(`/sysroles/${context.sysrole}/sysuserroles`,data,isloading);
return res; return res;
} }
// aaaaa
// bbbbb
let masterData:any = {}; let masterData:any = {};
Object.assign(data,masterData); Object.assign(data,masterData);
if(!data.srffrontuf || data.srffrontuf !== "1"){ if(!data.srffrontuf || data.srffrontuf !== "1"){
...@@ -107,6 +111,7 @@ export default class SysUserRoleServiceBase extends EntityService { ...@@ -107,6 +111,7 @@ export default class SysUserRoleServiceBase extends EntityService {
} }
let tempContext:any = JSON.parse(JSON.stringify(context)); let tempContext:any = JSON.parse(JSON.stringify(context));
let res:any = await Http.getInstance().post(`/sysuserroles`,data,isloading); let res:any = await Http.getInstance().post(`/sysuserroles`,data,isloading);
return res; return res;
} }
...@@ -124,20 +129,20 @@ export default class SysUserRoleServiceBase extends EntityService { ...@@ -124,20 +129,20 @@ export default class SysUserRoleServiceBase extends EntityService {
let masterData:any = {}; let masterData:any = {};
Object.assign(data,masterData); Object.assign(data,masterData);
let res:any = await Http.getInstance().put(`/sysusers/${context.sysuser}/sysuserroles/${context.sysuserrole}`,data,isloading); let res:any = await Http.getInstance().put(`/sysusers/${context.sysuser}/sysuserroles/${context.sysuserrole}`,data,isloading);
return res; return res;
} }
if(context.sysrole && context.sysuserrole){ if(context.sysrole && context.sysuserrole){
let masterData:any = {}; let masterData:any = {};
Object.assign(data,masterData); Object.assign(data,masterData);
let res:any = await Http.getInstance().put(`/sysroles/${context.sysrole}/sysuserroles/${context.sysuserrole}`,data,isloading); let res:any = await Http.getInstance().put(`/sysroles/${context.sysrole}/sysuserroles/${context.sysuserrole}`,data,isloading);
return res; return res;
} }
// aaaaa
// bbbbb
let masterData:any = {}; let masterData:any = {};
Object.assign(data,masterData); Object.assign(data,masterData);
let res:any = await Http.getInstance().put(`/sysuserroles/${context.sysuserrole}`,data,isloading); let res:any = await Http.getInstance().put(`/sysuserroles/${context.sysuserrole}`,data,isloading);
return res; return res;
} }
...@@ -152,15 +157,15 @@ export default class SysUserRoleServiceBase extends EntityService { ...@@ -152,15 +157,15 @@ export default class SysUserRoleServiceBase extends EntityService {
*/ */
public async Remove(context: any = {},data: any = {}, isloading?: boolean): Promise<any> { public async Remove(context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
if(context.sysuser && context.sysuserrole){ if(context.sysuser && context.sysuserrole){
return Http.getInstance().delete(`/sysusers/${context.sysuser}/sysuserroles/${context.sysuserrole}`,isloading); let res:any = Http.getInstance().delete(`/sysusers/${context.sysuser}/sysuserroles/${context.sysuserrole}`,isloading);
return res;
} }
if(context.sysrole && context.sysuserrole){ if(context.sysrole && context.sysuserrole){
return Http.getInstance().delete(`/sysroles/${context.sysrole}/sysuserroles/${context.sysuserrole}`,isloading); let res:any = Http.getInstance().delete(`/sysroles/${context.sysrole}/sysuserroles/${context.sysuserrole}`,isloading);
return res;
} }
// aaaaa let res:any = Http.getInstance().delete(`/sysuserroles/${context.sysuserrole}`,isloading);
// bbbbb return res;
return Http.getInstance().delete(`/sysuserroles/${context.sysuserrole}`,isloading);
} }
/** /**
...@@ -175,16 +180,16 @@ export default class SysUserRoleServiceBase extends EntityService { ...@@ -175,16 +180,16 @@ export default class SysUserRoleServiceBase extends EntityService {
public async Get(context: any = {},data: any = {}, isloading?: boolean): Promise<any> { public async Get(context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
if(context.sysuser && context.sysuserrole){ if(context.sysuser && context.sysuserrole){
let res:any = await Http.getInstance().get(`/sysusers/${context.sysuser}/sysuserroles/${context.sysuserrole}`,isloading); let res:any = await Http.getInstance().get(`/sysusers/${context.sysuser}/sysuserroles/${context.sysuserrole}`,isloading);
return res; return res;
} }
if(context.sysrole && context.sysuserrole){ if(context.sysrole && context.sysuserrole){
let res:any = await Http.getInstance().get(`/sysroles/${context.sysrole}/sysuserroles/${context.sysuserrole}`,isloading); let res:any = await Http.getInstance().get(`/sysroles/${context.sysrole}/sysuserroles/${context.sysuserrole}`,isloading);
return res; return res;
} }
// aaaaa
// bbbbb
let res:any = await Http.getInstance().get(`/sysuserroles/${context.sysuserrole}`,isloading); let res:any = await Http.getInstance().get(`/sysuserroles/${context.sysuserrole}`,isloading);
return res; return res;
} }
...@@ -201,18 +206,18 @@ export default class SysUserRoleServiceBase extends EntityService { ...@@ -201,18 +206,18 @@ export default class SysUserRoleServiceBase extends EntityService {
if(context.sysuser && true){ if(context.sysuser && true){
let res:any = await Http.getInstance().get(`/sysusers/${context.sysuser}/sysuserroles/getdraft`,isloading); let res:any = await Http.getInstance().get(`/sysusers/${context.sysuser}/sysuserroles/getdraft`,isloading);
res.data.sysuserrole = data.sysuserrole; res.data.sysuserrole = data.sysuserrole;
return res; return res;
} }
if(context.sysrole && true){ if(context.sysrole && true){
let res:any = await Http.getInstance().get(`/sysroles/${context.sysrole}/sysuserroles/getdraft`,isloading); let res:any = await Http.getInstance().get(`/sysroles/${context.sysrole}/sysuserroles/getdraft`,isloading);
res.data.sysuserrole = data.sysuserrole; res.data.sysuserrole = data.sysuserrole;
return res; return res;
} }
// aaaaa
// bbbbb
let res:any = await Http.getInstance().get(`/sysuserroles/getdraft`,isloading); let res:any = await Http.getInstance().get(`/sysuserroles/getdraft`,isloading);
res.data.sysuserrole = data.sysuserrole; res.data.sysuserrole = data.sysuserrole;
return res; return res;
} }
...@@ -230,18 +235,18 @@ export default class SysUserRoleServiceBase extends EntityService { ...@@ -230,18 +235,18 @@ export default class SysUserRoleServiceBase extends EntityService {
let masterData:any = {}; let masterData:any = {};
Object.assign(data,masterData); Object.assign(data,masterData);
let res:any = await Http.getInstance().post(`/sysusers/${context.sysuser}/sysuserroles/${context.sysuserrole}/checkkey`,data,isloading); let res:any = await Http.getInstance().post(`/sysusers/${context.sysuser}/sysuserroles/${context.sysuserrole}/checkkey`,data,isloading);
return res; return res;
} }
if(context.sysrole && context.sysuserrole){ if(context.sysrole && context.sysuserrole){
let masterData:any = {}; let masterData:any = {};
Object.assign(data,masterData); Object.assign(data,masterData);
let res:any = await Http.getInstance().post(`/sysroles/${context.sysrole}/sysuserroles/${context.sysuserrole}/checkkey`,data,isloading); let res:any = await Http.getInstance().post(`/sysroles/${context.sysrole}/sysuserroles/${context.sysuserrole}/checkkey`,data,isloading);
return res; return res;
} }
// aaaaa let res:any = Http.getInstance().post(`/sysuserroles/${context.sysuserrole}/checkkey`,data,isloading);
// bbbbb return res;
return Http.getInstance().post(`/sysuserroles/${context.sysuserrole}/checkkey`,data,isloading);
} }
/** /**
...@@ -258,20 +263,20 @@ export default class SysUserRoleServiceBase extends EntityService { ...@@ -258,20 +263,20 @@ export default class SysUserRoleServiceBase extends EntityService {
let masterData:any = {}; let masterData:any = {};
Object.assign(data,masterData); Object.assign(data,masterData);
let res:any = await Http.getInstance().post(`/sysusers/${context.sysuser}/sysuserroles/${context.sysuserrole}/save`,data,isloading); let res:any = await Http.getInstance().post(`/sysusers/${context.sysuser}/sysuserroles/${context.sysuserrole}/save`,data,isloading);
return res; return res;
} }
if(context.sysrole && context.sysuserrole){ if(context.sysrole && context.sysuserrole){
let masterData:any = {}; let masterData:any = {};
Object.assign(data,masterData); Object.assign(data,masterData);
let res:any = await Http.getInstance().post(`/sysroles/${context.sysrole}/sysuserroles/${context.sysuserrole}/save`,data,isloading); let res:any = await Http.getInstance().post(`/sysroles/${context.sysrole}/sysuserroles/${context.sysuserrole}/save`,data,isloading);
return res; return res;
} }
// aaaaa
// bbbbb
let masterData:any = {}; let masterData:any = {};
Object.assign(data,masterData); Object.assign(data,masterData);
let res:any = await Http.getInstance().post(`/sysuserroles/${context.sysuserrole}/save`,data,isloading); let res:any = await Http.getInstance().post(`/sysuserroles/${context.sysuserrole}/save`,data,isloading);
return res; return res;
} }
...@@ -287,15 +292,17 @@ export default class SysUserRoleServiceBase extends EntityService { ...@@ -287,15 +292,17 @@ export default class SysUserRoleServiceBase extends EntityService {
public async FetchDefault(context: any = {},data: any = {}, isloading?: boolean): Promise<any> { public async FetchDefault(context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
if(context.sysuser && true){ if(context.sysuser && true){
let tempData:any = JSON.parse(JSON.stringify(data)); let tempData:any = JSON.parse(JSON.stringify(data));
return Http.getInstance().get(`/sysusers/${context.sysuser}/sysuserroles/fetchdefault`,tempData,isloading); let res:any = Http.getInstance().get(`/sysusers/${context.sysuser}/sysuserroles/fetchdefault`,tempData,isloading);
return res;
} }
if(context.sysrole && true){ if(context.sysrole && true){
let tempData:any = JSON.parse(JSON.stringify(data)); let tempData:any = JSON.parse(JSON.stringify(data));
return Http.getInstance().get(`/sysroles/${context.sysrole}/sysuserroles/fetchdefault`,tempData,isloading); let res:any = Http.getInstance().get(`/sysroles/${context.sysrole}/sysuserroles/fetchdefault`,tempData,isloading);
return res;
} }
let tempData:any = JSON.parse(JSON.stringify(data)); let tempData:any = JSON.parse(JSON.stringify(data));
return Http.getInstance().get(`/sysuserroles/fetchdefault`,tempData,isloading); let res:any = Http.getInstance().get(`/sysuserroles/fetchdefault`,tempData,isloading);
return res;
} }
/** /**
......
...@@ -48,8 +48,9 @@ export default class SysUserServiceBase extends EntityService { ...@@ -48,8 +48,9 @@ export default class SysUserServiceBase extends EntityService {
* @memberof SysUserServiceBase * @memberof SysUserServiceBase
*/ */
public async Select(context: any = {},data: any = {}, isloading?: boolean): Promise<any> { public async Select(context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
let res:any = Http.getInstance().get(`/sysusers/${context.sysuser}/select`,isloading);
return Http.getInstance().get(`/sysusers/${context.sysuser}/select`,isloading); return res;
} }
/** /**
...@@ -62,9 +63,6 @@ export default class SysUserServiceBase extends EntityService { ...@@ -62,9 +63,6 @@ export default class SysUserServiceBase extends EntityService {
* @memberof SysUserServiceBase * @memberof SysUserServiceBase
*/ */
public async Create(context: any = {},data: any = {}, isloading?: boolean): Promise<any> { public async Create(context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
// aaaaa
// bbbbb
let masterData:any = {}; let masterData:any = {};
Object.assign(data,masterData); Object.assign(data,masterData);
if(!data.srffrontuf || data.srffrontuf !== "1"){ if(!data.srffrontuf || data.srffrontuf !== "1"){
...@@ -76,6 +74,7 @@ export default class SysUserServiceBase extends EntityService { ...@@ -76,6 +74,7 @@ export default class SysUserServiceBase extends EntityService {
let tempContext:any = JSON.parse(JSON.stringify(context)); let tempContext:any = JSON.parse(JSON.stringify(context));
let res:any = await Http.getInstance().post(`/sysusers`,data,isloading); let res:any = await Http.getInstance().post(`/sysusers`,data,isloading);
this.tempStorage.setItem(tempContext.srfsessionkey+'_sysuserroles',JSON.stringify(res.data.sysuserroles)); this.tempStorage.setItem(tempContext.srfsessionkey+'_sysuserroles',JSON.stringify(res.data.sysuserroles));
return res; return res;
} }
...@@ -89,12 +88,10 @@ export default class SysUserServiceBase extends EntityService { ...@@ -89,12 +88,10 @@ export default class SysUserServiceBase extends EntityService {
* @memberof SysUserServiceBase * @memberof SysUserServiceBase
*/ */
public async Update(context: any = {},data: any = {}, isloading?: boolean): Promise<any> { public async Update(context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
// aaaaa
// bbbbb
let masterData:any = {}; let masterData:any = {};
Object.assign(data,masterData); Object.assign(data,masterData);
let res:any = await Http.getInstance().put(`/sysusers/${context.sysuser}`,data,isloading); let res:any = await Http.getInstance().put(`/sysusers/${context.sysuser}`,data,isloading);
return res; return res;
} }
...@@ -108,10 +105,8 @@ export default class SysUserServiceBase extends EntityService { ...@@ -108,10 +105,8 @@ export default class SysUserServiceBase extends EntityService {
* @memberof SysUserServiceBase * @memberof SysUserServiceBase
*/ */
public async Remove(context: any = {},data: any = {}, isloading?: boolean): Promise<any> { public async Remove(context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
// aaaaa let res:any = Http.getInstance().delete(`/sysusers/${context.sysuser}`,isloading);
// bbbbb return res;
return Http.getInstance().delete(`/sysusers/${context.sysuser}`,isloading);
} }
/** /**
...@@ -124,10 +119,8 @@ export default class SysUserServiceBase extends EntityService { ...@@ -124,10 +119,8 @@ export default class SysUserServiceBase extends EntityService {
* @memberof SysUserServiceBase * @memberof SysUserServiceBase
*/ */
public async Get(context: any = {},data: any = {}, isloading?: boolean): Promise<any> { public async Get(context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
// aaaaa
// bbbbb
let res:any = await Http.getInstance().get(`/sysusers/${context.sysuser}`,isloading); let res:any = await Http.getInstance().get(`/sysusers/${context.sysuser}`,isloading);
return res; return res;
} }
...@@ -141,11 +134,9 @@ export default class SysUserServiceBase extends EntityService { ...@@ -141,11 +134,9 @@ export default class SysUserServiceBase extends EntityService {
* @memberof SysUserServiceBase * @memberof SysUserServiceBase
*/ */
public async GetDraft(context: any = {},data: any = {}, isloading?: boolean): Promise<any> { public async GetDraft(context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
// aaaaa
// bbbbb
let res:any = await Http.getInstance().get(`/sysusers/getdraft`,isloading); let res:any = await Http.getInstance().get(`/sysusers/getdraft`,isloading);
res.data.sysuser = data.sysuser; res.data.sysuser = data.sysuser;
return res; return res;
} }
...@@ -159,10 +150,8 @@ export default class SysUserServiceBase extends EntityService { ...@@ -159,10 +150,8 @@ export default class SysUserServiceBase extends EntityService {
* @memberof SysUserServiceBase * @memberof SysUserServiceBase
*/ */
public async CheckKey(context: any = {},data: any = {}, isloading?: boolean): Promise<any> { public async CheckKey(context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
// aaaaa let res:any = Http.getInstance().post(`/sysusers/${context.sysuser}/checkkey`,data,isloading);
// bbbbb return res;
return Http.getInstance().post(`/sysusers/${context.sysuser}/checkkey`,data,isloading);
} }
/** /**
...@@ -175,12 +164,10 @@ export default class SysUserServiceBase extends EntityService { ...@@ -175,12 +164,10 @@ export default class SysUserServiceBase extends EntityService {
* @memberof SysUserServiceBase * @memberof SysUserServiceBase
*/ */
public async Save(context: any = {},data: any = {}, isloading?: boolean): Promise<any> { public async Save(context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
// aaaaa
// bbbbb
let masterData:any = {}; let masterData:any = {};
Object.assign(data,masterData); Object.assign(data,masterData);
let res:any = await Http.getInstance().post(`/sysusers/${context.sysuser}/save`,data,isloading); let res:any = await Http.getInstance().post(`/sysusers/${context.sysuser}/save`,data,isloading);
return res; return res;
} }
...@@ -194,9 +181,9 @@ export default class SysUserServiceBase extends EntityService { ...@@ -194,9 +181,9 @@ export default class SysUserServiceBase extends EntityService {
* @memberof SysUserServiceBase * @memberof SysUserServiceBase
*/ */
public async FetchDefault(context: any = {},data: any = {}, isloading?: boolean): Promise<any> { public async FetchDefault(context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
let tempData:any = JSON.parse(JSON.stringify(data)); let tempData:any = JSON.parse(JSON.stringify(data));
return Http.getInstance().get(`/sysusers/fetchdefault`,tempData,isloading); let res:any = Http.getInstance().get(`/sysusers/fetchdefault`,tempData,isloading);
return res;
} }
/** /**
......
...@@ -37,11 +37,6 @@ ...@@ -37,11 +37,6 @@
git clone -b master $para2 ibzuaa/ git clone -b master $para2 ibzuaa/
export NODE_OPTIONS=--max-old-space-size=4096 export NODE_OPTIONS=--max-old-space-size=4096
cd ibzuaa/ cd ibzuaa/
mvn clean package -Pweb
cd ibzuaa-app/ibzuaa-app-web
mvn -Pweb docker:build
mvn -Pweb docker:push
docker -H $para1 stack deploy --compose-file=src/main/docker/ibzuaa-app-web.yaml ibzlab-rt --with-registry-auth
</command> </command>
</hudson.tasks.Shell> </hudson.tasks.Shell>
</builders> </builders>
......
...@@ -9,6 +9,6 @@ CMD echo "The application will start in ${IBIZ_SLEEP}s..." && \ ...@@ -9,6 +9,6 @@ CMD echo "The application will start in ${IBIZ_SLEEP}s..." && \
sleep ${IBIZ_SLEEP} && \ sleep ${IBIZ_SLEEP} && \
java ${JAVA_OPTS} -Djava.security.egd=file:/dev/./urandom -jar /ibzuaa-app-web.jar java ${JAVA_OPTS} -Djava.security.egd=file:/dev/./urandom -jar /ibzuaa-app-web.jar
EXPOSE 30002 EXPOSE 8080
ADD ibzuaa-app-web.jar /ibzuaa-app-web.jar ADD ibzuaa-app-web.jar /ibzuaa-app-web.jar
...@@ -3,24 +3,9 @@ services: ...@@ -3,24 +3,9 @@ services:
ibzuaa-app-web: ibzuaa-app-web:
image: registry.cn-shanghai.aliyuncs.com/ibizsys/ibzuaa-app-web:latest image: registry.cn-shanghai.aliyuncs.com/ibizsys/ibzuaa-app-web:latest
ports: ports:
- "30002:30002" - "8080:8080"
networks: networks:
- agent_network - agent_network
environment:
- SPRING_CLOUD_NACOS_DISCOVERY_IP=172.16.180.237
- SERVER_PORT=30002
- SPRING_CLOUD_NACOS_DISCOVERY_SERVER-ADDR=172.16.102.211:8848
- SPRING_REDIS_HOST=172.16.100.243
- SPRING_REDIS_PORT=6379
- SPRING_REDIS_DATABASE=0
- SPRING_DATASOURCE_USERNAME=a_A_5d9d78509
- SPRING_DATASOURCE_PASSWORD=@6dEfb3@
- SPRING_DATASOURCE_URL=jdbc:mysql://172.16.180.232:3306/a_A_5d9d78509?autoReconnect=true&useUnicode=true&characterEncoding=UTF-8&useOldAliasMetadataBehavior=true
- SPRING_DATASOURCE_DRIVER-CLASS-NAME=com.mysql.jdbc.Driver
- SPRING_DATASOURCE_DEFAULTSCHEMA=a_A_5d9d78509
- ABC=1
- DEC=3
- NACOS=172.16.102.211:8848
deploy: deploy:
resources: resources:
limits: limits:
......
...@@ -28,6 +28,7 @@ import java.util.List; ...@@ -28,6 +28,7 @@ import java.util.List;
@SpringBootApplication(exclude = { @SpringBootApplication(exclude = {
org.springframework.boot.autoconfigure.security.servlet.SecurityAutoConfiguration.class, org.springframework.boot.autoconfigure.security.servlet.SecurityAutoConfiguration.class,
org.springframework.boot.autoconfigure.mongo.MongoAutoConfiguration.class, org.springframework.boot.autoconfigure.mongo.MongoAutoConfiguration.class,
com.alibaba.druid.spring.boot.autoconfigure.DruidDataSourceAutoConfigure.class
}) })
public class webApplication extends WebMvcConfigurerAdapter{ public class webApplication extends WebMvcConfigurerAdapter{
......
...@@ -9,31 +9,31 @@ zuul: ...@@ -9,31 +9,31 @@ zuul:
routes: routes:
sys_authlog: sys_authlog:
path: /sysauthlogs/** path: /sysauthlogs/**
serviceId: ibzuaa-api serviceId: ${ibiz.ref.service.ibzuaa-api:ibzuaa-api}
stripPrefix: false stripPrefix: false
sys_app: sys_app:
path: /sysapps/** path: /sysapps/**
serviceId: ibzuaa-api serviceId: ${ibiz.ref.service.ibzuaa-api:ibzuaa-api}
stripPrefix: false stripPrefix: false
sys_role_permission: sys_role_permission:
path: /sysrolepermissions/** path: /sysrolepermissions/**
serviceId: ibzuaa-api serviceId: ${ibiz.ref.service.ibzuaa-api:ibzuaa-api}
stripPrefix: false stripPrefix: false
sys_permission: sys_permission:
path: /syspermissions/** path: /syspermissions/**
serviceId: ibzuaa-api serviceId: ${ibiz.ref.service.ibzuaa-api:ibzuaa-api}
stripPrefix: false stripPrefix: false
sys_user_role: sys_user_role:
path: /sysuserroles/** path: /sysuserroles/**
serviceId: ibzuaa-api serviceId: ${ibiz.ref.service.ibzuaa-api:ibzuaa-api}
stripPrefix: false stripPrefix: false
sys_user: sys_user:
path: /sysusers/** path: /sysusers/**
serviceId: ibzuaa-api serviceId: ${ibiz.ref.service.ibzuaa-api:ibzuaa-api}
stripPrefix: false stripPrefix: false
sys_role: sys_role:
path: /sysroles/** path: /sysroles/**
serviceId: ibzuaa-api serviceId: ${ibiz.ref.service.ibzuaa-api:ibzuaa-api}
stripPrefix: false stripPrefix: false
sensitive-headers: sensitive-headers:
- Cookie,Set-Cookie,Authorization - Cookie,Set-Cookie,Authorization
...@@ -17,6 +17,7 @@ import java.io.Serializable; ...@@ -17,6 +17,7 @@ import java.io.Serializable;
import com.baomidou.mybatisplus.core.toolkit.Constants; import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.alibaba.fastjson.JSONObject; import com.alibaba.fastjson.JSONObject;
@com.baomidou.dynamic.datasource.annotation.DS("db2")
public interface SysUserMapper extends BaseMapper<SysUser>{ public interface SysUserMapper extends BaseMapper<SysUser>{
Page<SysUser> searchDefault(IPage page, @Param("srf") SysUserSearchContext context, @Param("ew") Wrapper<SysUser> wrapper) ; Page<SysUser> searchDefault(IPage page, @Param("srf") SysUserSearchContext context, @Param("ew") Wrapper<SysUser> wrapper) ;
......
<?xml version="1.1" encoding="UTF-8" standalone="no"?> !!!!模版产生代码错误:----
<databaseChangeLog xmlns="http://www.liquibase.org/xml/ns/dbchangelog" xmlns:ext="http://www.liquibase.org/xml/ns/dbchangelog-ext" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog-ext http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-ext.xsd http://www.liquibase.org/xml/ns/dbchangelog http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-3.6.xsd"> Tip: If the failing expression is known to be legally refer to something that's sometimes null or missing, either specify a default value like myOptionalVar!myDefault, or use <#if myOptionalVar??>when-present<#else>when-missing</#if>. (These only cover the last step of the expression; to cover the whole expression, use parenthesis: (myOptionalVar.foo)!myDefault, (myOptionalVar.foo)??
----
----
FTL stack trace ("~" means nesting-related):
- Failed at: ${dbinst.getUserName()} [in template "CODETEMPL_zh_CN" at line 28, column 24]
<!--输出实体[SYS_AUTHLOG]数据结构 --> ----
<changeSet author="a_A_5d9d78509" id="tab-sys_authlog-40-1"> \ No newline at end of file
<createTable tableName="IBZAUTHLOG">
<column name="LOGID" remarks="" type="VARCHAR(100)">
<constraints primaryKey="true" primaryKeyName="PK_SYS_AUTHLOG_LOGID"/>
</column>
<column name="USERNAME" remarks="" type="VARCHAR(100)">
</column>
<column name="PERSONNAME" remarks="" type="VARCHAR(100)">
</column>
<column name="DOMAIN" remarks="" type="VARCHAR(100)">
</column>
<column name="AUTHTIME" remarks="" type="DATETIME">
</column>
<column name="IPADDR" remarks="" type="VARCHAR(100)">
</column>
<column name="MACADDR" remarks="" type="VARCHAR(100)">
</column>
<column name="USERAGENT" remarks="" type="VARCHAR(100)">
</column>
<column name="AUTHCODE" remarks="" type="VARCHAR(15)">
</column>
</createTable>
</changeSet>
<!--输出实体[SYS_PSSYSTEM]数据结构 -->
<changeSet author="a_A_5d9d78509" id="tab-sys_pssystem-39-2">
<createTable tableName="IBZPSSYSTEM">
<column name="PSSYSTEMID" remarks="" type="VARCHAR(100)">
<constraints primaryKey="true" primaryKeyName="PK_SYS_PSSYSTEM_PSSYSTEMID"/>
</column>
<column name="PSSYSTEMNAME" remarks="" type="VARCHAR(100)">
</column>
<column name="SYSSTRUCTURE" remarks="" type="TEXT(1048576)">
</column>
<column name="APPS" remarks="" type="TEXT(1048576)">
</column>
<column name="MD5CHECK" remarks="" type="VARCHAR(100)">
</column>
<column name="SHOWORDER" remarks="" type="INT">
</column>
</createTable>
</changeSet>
<!--输出实体[SYS_PERMISSION]数据结构 -->
<changeSet author="a_A_5d9d78509" id="tab-sys_permission-219-3">
<createTable tableName="IBZPERMISSION">
<column name="SYS_PERMISSIONID" remarks="" type="VARCHAR(200)">
<constraints primaryKey="true" primaryKeyName="PK_SYS_PERMISSION_SYS_PERMISSI"/>
</column>
<column name="SYS_PERMISSIONNAME" remarks="" type="VARCHAR(200)">
</column>
<column name="PERMISSIONTYPE" remarks="" type="VARCHAR(60)">
</column>
<column name="PSSYSTEMID" remarks="" type="VARCHAR(100)">
</column>
<column name="ENABLE" remarks="" type="INT">
</column>
<column name="CREATEDATE" remarks="" type="DATETIME">
</column>
<column name="UPDATEDATE" remarks="" type="DATETIME">
</column>
</createTable>
</changeSet>
<!--输出实体[SYS_ROLE]数据结构 -->
<changeSet author="a_A_5d9d78509" id="tab-sys_role-94-4">
<createTable tableName="IBZROLE">
<column name="SYS_ROLEID" remarks="" type="VARCHAR(100)">
<constraints primaryKey="true" primaryKeyName="PK_SYS_ROLE_SYS_ROLEID"/>
</column>
<column name="SYS_ROLENAME" remarks="" type="VARCHAR(200)">
</column>
<column name="MEMO" remarks="" type="VARCHAR(100)">
</column>
<column name="CREATEDATE" remarks="" type="DATETIME">
</column>
<column name="UPDATEDATE" remarks="" type="DATETIME">
</column>
</createTable>
</changeSet>
<!--输出实体[SYS_ROLE_PERMISSION]数据结构 -->
<changeSet author="a_A_5d9d78509" id="tab-sys_role_permission-98-5">
<createTable tableName="IBZROLE_PERMISSION">
<column name="SYS_ROLE_PERMISSIONID" remarks="" type="VARCHAR(100)">
<constraints primaryKey="true" primaryKeyName="PK_SYS_ROLE_PERMISSION_SYS_ROL"/>
</column>
<column name="SYS_ROLEID" remarks="" type="VARCHAR(100)">
</column>
<column name="SYS_PERMISSIONID" remarks="" type="VARCHAR(200)">
</column>
<column name="CREATEDATE" remarks="" type="DATETIME">
</column>
<column name="UPDATEDATE" remarks="" type="DATETIME">
</column>
</createTable>
</changeSet>
<!--输出实体[SYS_USER_ROLE]数据结构 -->
<changeSet author="a_A_5d9d78509" id="tab-sys_user_role-72-6">
<createTable tableName="IBZUSER_ROLE">
<column name="SYS_USER_ROLEID" remarks="" type="VARCHAR(100)">
<constraints primaryKey="true" primaryKeyName="PK_SYS_USER_ROLE_SYS_USER_ROLE"/>
</column>
<column name="SYS_ROLEID" remarks="" type="VARCHAR(100)">
</column>
<column name="SYS_USERID" remarks="" type="VARCHAR(100)">
</column>
<column name="CREATEDATE" remarks="" type="DATETIME">
</column>
<column name="UPDATEDATE" remarks="" type="DATETIME">
</column>
</createTable>
</changeSet>
<!--输出实体[SYS_AUTHLOG]外键关系 -->
<!--输出实体[SYS_PSSYSTEM]外键关系 -->
<!--输出实体[SYS_PERMISSION]外键关系 -->
<!--输出实体[SYS_ROLE]外键关系 -->
<!--输出实体[SYS_ROLE_PERMISSION]外键关系 -->
<changeSet author="a_A_5d9d78509" id="fk-sys_role_permission-98-7">
<addForeignKeyConstraint baseColumnNames="SYS_PERMISSIONID" baseTableName="IBZROLE_PERMISSION" constraintName="DER1N_SYS_ROLE_PERMISSION_SYS_" deferrable="false" initiallyDeferred="false" onDelete="RESTRICT" onUpdate="RESTRICT" referencedColumnNames="SYS_PERMISSIONID" referencedTableName="IBZPERMISSION" validate="true"/>
</changeSet>
<!--输出实体[SYS_USER_ROLE]外键关系 -->
<changeSet author="a_A_5d9d78509" id="fk-sys_user_role-72-9">
<addForeignKeyConstraint baseColumnNames="SYS_ROLEID" baseTableName="IBZUSER_ROLE" constraintName="DER1N_SYS_USER_ROLE_SYS_ROLE_S" deferrable="false" initiallyDeferred="false" onDelete="RESTRICT" onUpdate="RESTRICT" referencedColumnNames="SYS_ROLEID" referencedTableName="IBZROLE" validate="true"/>
</changeSet>
</databaseChangeLog>
...@@ -77,6 +77,9 @@ ...@@ -77,6 +77,9 @@
<!--baomidou-jobs定时服务 --> <!--baomidou-jobs定时服务 -->
<baomidou-jobs.version>1.0.3</baomidou-jobs.version> <baomidou-jobs.version>1.0.3</baomidou-jobs.version>
<!-- eureka微服务注册中心 -->
<eureka-client.version>2.2.1.RELEASE</eureka-client.version>
<oracle.version>11.2.0.3</oracle.version> <oracle.version>11.2.0.3</oracle.version>
<postgresql.version>42.2.6</postgresql.version> <postgresql.version>42.2.6</postgresql.version>
...@@ -314,6 +317,13 @@ ...@@ -314,6 +317,13 @@
<artifactId>h2</artifactId> <artifactId>h2</artifactId>
</dependency> </dependency>
<!-- eureka服务注册中心 -->
<dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-starter-netflix-eureka-client</artifactId>
<version>${eureka-client.version}</version>
</dependency>
<!-- Oracle驱动包 --> <!-- Oracle驱动包 -->
<dependency> <dependency>
<groupId>com.oracle</groupId> <groupId>com.oracle</groupId>
...@@ -332,6 +342,12 @@ ...@@ -332,6 +342,12 @@
<artifactId>mysql-connector-java</artifactId> <artifactId>mysql-connector-java</artifactId>
</dependency> </dependency>
<!-- mp动态数据源 -->
<dependency>
<groupId>com.baomidou</groupId>
<artifactId>dynamic-datasource-spring-boot-starter</artifactId>
</dependency>
</dependencies> </dependencies>
</project> </project>
spring: spring:
profiles: profiles:
include: sys , api-prod include: sys ,nacos, api-prod
application: application:
name: ibzuaa-api name: ibzuaa-api
\ No newline at end of file
...@@ -7,7 +7,7 @@ import org.springframework.web.bind.annotation.PathVariable; ...@@ -7,7 +7,7 @@ import org.springframework.web.bind.annotation.PathVariable;
import java.util.Map; import java.util.Map;
import java.util.Set; import java.util.Set;
@FeignClient(value = "ibzou-api",fallback = IBZOUFallback.class) @FeignClient(value = "${ibiz.ref.service.ou:ibzou-api}",fallback = IBZOUFallback.class)
public interface IBZOUFeignClient public interface IBZOUFeignClient
{ {
/** /**
......
...@@ -7,7 +7,7 @@ import org.springframework.cloud.openfeign.FeignClient; ...@@ -7,7 +7,7 @@ import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*; import org.springframework.web.bind.annotation.*;
import com.alibaba.fastjson.JSONObject; import com.alibaba.fastjson.JSONObject;
@FeignClient(value = "ibzuaa-api",fallback = IBZUAAFallback.class) @FeignClient(value = "${ibiz.ref.service.uaa:ibzuaa-api}",fallback = IBZUAAFallback.class)
public interface IBZUAAFeignClient public interface IBZUAAFeignClient
{ {
/** /**
......
...@@ -4,7 +4,7 @@ import org.springframework.cloud.openfeign.FeignClient; ...@@ -4,7 +4,7 @@ import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*; import org.springframework.web.bind.annotation.*;
import java.util.*; import java.util.*;
@FeignClient(value = "ibzwf-api",fallback = IBZWFFallback.class) @FeignClient(value = "${ibiz.ref.service.wf:ibzwf-api}",fallback = IBZWFFallback.class)
public interface IBZWFFeignClient public interface IBZWFFeignClient
{ {
@RequestMapping(method = RequestMethod.GET, value = "/{system}-app-{appname}/{entity}/process-definitions/{processDefinitionKey}/usertasks/{taskDefinitionKey}/tasks") @RequestMapping(method = RequestMethod.GET, value = "/{system}-app-{appname}/{entity}/process-definitions/{processDefinitionKey}/usertasks/{taskDefinitionKey}/tasks")
......
...@@ -4,9 +4,9 @@ import lombok.Data; ...@@ -4,9 +4,9 @@ import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties; import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component; import org.springframework.stereotype.Component;
@Component
@ConfigurationProperties(prefix = "spring.datasource")
@Data @Data
@Component
@ConfigurationProperties(prefix = "spring.datasource.dynamic.datasource.master")
public class LiquibaseProp{ public class LiquibaseProp{
private String url; private String url;
......
#eureka配置中心
spring:
cloud:
nacos:
discovery:
enabled: false
eureka:
client:
enabled: true
serviceUrl:
defaultZone: http://127.0.0.1:40002/eureka/
#nacos配置中心
spring:
cloud:
nacos:
discovery:
server-addr: 172.16.102.211:8848
enabled: true
eureka:
client:
enabled: false
#nacos配置中心、数据源 #缓存、数据源
spring: spring:
cloud:
nacos:
discovery:
server-addr: 172.16.102.211:8848
cache: cache:
redis: redis:
time-to-live: 3600 time-to-live: 3600
...@@ -21,10 +17,8 @@ spring: ...@@ -21,10 +17,8 @@ spring:
max-idle: 16 max-idle: 16
min-idle: 8 min-idle: 8
datasource: datasource:
username: a_A_5d9d78509 dynamic:
password: '@6dEfb3@' druid: #以下是全局默认值,可以全局更改
url: jdbc:mysql://172.16.180.232:3306/a_A_5d9d78509?autoReconnect=true&useUnicode=true&characterEncoding=UTF-8&useOldAliasMetadataBehavior=true
driver-class-name: com.mysql.jdbc.Driver
filters: stat,wall,log4j2 filters: stat,wall,log4j2
#配置初始化大小/最小/最大 #配置初始化大小/最小/最大
initial-size: 1 initial-size: 1
...@@ -43,9 +37,23 @@ spring: ...@@ -43,9 +37,23 @@ spring:
#打开PSCache,并指定每个连接上PSCache的大小。oracle设为true,mysql设为false。分库分表较多推荐设置为false #打开PSCache,并指定每个连接上PSCache的大小。oracle设为true,mysql设为false。分库分表较多推荐设置为false
pool-prepared-statements: false pool-prepared-statements: false
max-pool-prepared-statement-per-connection-size: 20 max-pool-prepared-statement-per-connection-size: 20
datasource:
master:
username: a_A_5d9d78509
password: '@6dEfb3@'
url: jdbc:mysql://172.16.180.232:3306/a_A_5d9d78509?autoReconnect=true&useUnicode=true&characterEncoding=UTF-8&useOldAliasMetadataBehavior=true
driver-class-name: com.mysql.jdbc.Driver
conf: classpath:liquibase/master.xml
isSyncDBSchema: false isSyncDBSchema: false
defaultSchema: a_A_5d9d78509 defaultSchema: a_A_5d9d78509
db2:
username: a_A_5d9d78509
password: '@6dEfb3@'
url: jdbc:mysql://172.16.180.232:3306/a_A_5d9d78509?autoReconnect=true&useUnicode=true&characterEncoding=UTF-8&useOldAliasMetadataBehavior=true
driver-class-name: com.mysql.jdbc.Driver
conf: classpath:liquibase/master.xml conf: classpath:liquibase/master.xml
isSyncDBSchema: false
defaultSchema: a_A_5d9d78509
#Mybatis-plus配置 #Mybatis-plus配置
mybatis-plus: mybatis-plus:
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册