提交 36aa5fea 编写于 作者: ibizdev's avatar ibizdev

ibizdev提交

上级 8f77418f
...@@ -33,47 +33,65 @@ export default class EntityService { ...@@ -33,47 +33,65 @@ export default class EntityService {
/** /**
* 零时储存,localStorage指向 * 零时储存,localStorage指向
* *
* @protected * @public
* @type {(string)} * @type {(string)}
* @memberof EntityService * @memberof EntityService
*/ */
protected tempStorage:any; public tempStorage:any;
/** /**
* 当前DE标识 * 当前DE标识
* *
* @protected * @public
* @type {(string)} * @type {(string)}
* @memberof EntityService * @memberof EntityService
*/ */
protected APPDEKEY:string= ''; public APPDEKEY:string= '';
/** /**
* 当前APPDE标识 * 当前APPDE标识
* *
* @protected * @public
* @type {(string)} * @type {(string)}
* @memberof EntityService * @memberof EntityService
*/ */
protected APPLYDEKEY:string= ''; public APPLYDEKEY:string= '';
/** /**
* 当前NAME * 当前NAME
* *
* @protected * @public
* @type {(string)} * @type {(string)}
* @memberof EntityService * @memberof EntityService
*/ */
protected APPDENAME:string= ''; public APPDENAME:string= '';
/** /**
* 当前主信息名 * 当前主信息名
* *
* @protected * @public
* @type {(string)} * @type {(string)}
* @memberof EntityService * @memberof EntityService
*/ */
protected APPDETEXT:string= ''; public APPDETEXT:string= '';
/**
* 当前系统名
*
* @public
* @type {(string)}
* @memberof EntityService
*/
public SYSTEMNAME:string= '';
/**
* 当前应用名
*
* @public
* @type {(string)}
* @memberof EntityService
*/
public APPNAME:string= '';
/** /**
* Creates an instance of EntityService. * Creates an instance of EntityService.
...@@ -610,13 +628,18 @@ export default class EntityService { ...@@ -610,13 +628,18 @@ export default class EntityService {
* @param {*} [context={}] * @param {*} [context={}]
* @param {*} [data={}] * @param {*} [data={}]
* @param {boolean} [isloading] * @param {boolean} [isloading]
* @param {boolean} [isEmbeddedApp]
* @returns {Promise<any>} * @returns {Promise<any>}
* @memberof EntityService * @memberof EntityService
*/ */
public async WFStart(context: any = {},data: any = {}, isloading?: boolean): Promise<any> { public async WFStart(context: any = {},data: any = {}, isloading?: boolean,isEmbeddedApp?:boolean): Promise<any> {
const requestData:any = {}; if(isEmbeddedApp){
Object.assign(requestData,{wfdata:data}); return Http.getInstance().post(`/wfcore/${this.SYSTEMNAME}-app-${this.APPNAME}/${this.APPDENAME}/${data[this.APPDEKEY]}/process-instances`,data,isloading);
return Http.getInstance().post(`/${this.APPDENAME}/${data[this.APPDEKEY]}/wfstart`,requestData,isloading); }else{
const requestData:any = {};
Object.assign(requestData,{wfdata:data});
return Http.getInstance().post(`/${this.APPDENAME}/${data[this.APPDEKEY]}/wfstart`,requestData,isloading);
}
} }
...@@ -699,27 +722,72 @@ export default class EntityService { ...@@ -699,27 +722,72 @@ export default class EntityService {
return Http.getInstance().post(`/${this.APPDENAME}/${data[this.APPDEKEY]}/wfreassign`,data,isloading); return Http.getInstance().post(`/${this.APPDENAME}/${data[this.APPDEKEY]}/wfreassign`,data,isloading);
} }
/**
* WFGetWorkFlow接口方法(获取工作流定义)
*
* @param {*} [context={}]
* @param {*} [data={}]
* @param {boolean} [isloading]
* @returns {Promise<any>}
* @memberof EntityService
*/
public async WFGetWorkFlow(context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
return Http.getInstance().get(`/wfcore/${this.SYSTEMNAME}-app-${this.APPNAME}/${this.APPDENAME}/process-definitions`);
}
/**
* WFGetWFStep接口方法(根据系统实体查找当前适配的工作流模型步骤)
*
* @param {*} [context={}]
* @param {*} [data={}]
* @param {boolean} [isloading]
* @returns {Promise<any>}
* @memberof EntityService
*/
public async WFGetWFStep(context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
return Http.getInstance().get(`/wfcore/${this.SYSTEMNAME}-app-${this.APPNAME}/${this.APPDENAME}/process-definitions-nodes`);
}
/**
* GetWFLink接口方法(根据业务主键和当前步骤获取操作路径)
*
* @param {*} [context={}]
* @param {*} [data={}]
* @param {boolean} [isloading]
* @returns {Promise<any>}
* @memberof EntityService
*/
public async GetWFLink(context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
return Http.getInstance().get(`/wfcore/${this.SYSTEMNAME}-app-${this.APPNAME}/${this.APPDENAME}/${data[this.APPDEKEY]}/usertasks/${data['taskDefinitionKey']}/ways`);
}
/** /**
* WFSubmit接口方法 * WFSubmit接口方法
* *
* @param {*} [context={}] * @param {*} [context={}]
* @param {*} [data={}] * @param {*} [data={}]
* @param {boolean} [isloading] * @param {boolean} [isloading]
* @param {boolean} [isEmbeddedApp]
* @returns {Promise<any>} * @returns {Promise<any>}
* @memberof EntityService * @memberof EntityService
*/ */
public async WFSubmit(context: any = {},data: any = {}, isloading?: boolean): Promise<any> { public async WFSubmit(context: any = {},data: any = {}, isloading?: boolean,isEmbeddedApp?:boolean): Promise<any> {
const requestData:any = {}; if(isEmbeddedApp){
if(data.srfwfmemo){ return Http.getInstance().post(`/wfcore/${this.SYSTEMNAME}-app-${this.APPNAME}/${this.APPDENAME}/${data[this.APPDEKEY]}/tasks/${data['taskId']}`);
requestData.srfwfmemo = JSON.parse(JSON.stringify(data)).srfwfmemo; }else{
delete data.srfwfmemo; const requestData:any = {};
} if(data.srfwfmemo){
if(data.viewparams){ requestData.srfwfmemo = JSON.parse(JSON.stringify(data)).srfwfmemo;
delete data.viewparams; delete data.srfwfmemo;
}
if(data.viewparams){
delete data.viewparams;
}
Object.assign(requestData,{wfdata:data});
Object.assign(requestData,{opdata:{srfwfiatag:context.srfwfiatag,srfwfstep:context.srfwfstep}});
return Http.getInstance().post(`/${this.APPDENAME}/${data[this.APPDEKEY]}/wfsubmit`,requestData,isloading);
} }
Object.assign(requestData,{wfdata:data});
Object.assign(requestData,{opdata:{srfwfiatag:context.srfwfiatag,srfwfstep:context.srfwfstep}});
return Http.getInstance().post(`/${this.APPDENAME}/${data[this.APPDEKEY]}/wfsubmit`,requestData,isloading);
} }
/** /**
......
...@@ -32,6 +32,8 @@ export default class IBZDepartmentServiceBase extends EntityService { ...@@ -32,6 +32,8 @@ export default class IBZDepartmentServiceBase extends EntityService {
this.APPDEKEY = 'deptid'; this.APPDEKEY = 'deptid';
this.APPDENAME = 'ibzdepartments'; this.APPDENAME = 'ibzdepartments';
this.APPDETEXT = 'deptname'; this.APPDETEXT = 'deptname';
this.APPNAME = 'web';
this.SYSTEMNAME = 'ibzou';
} }
// 实体接口 // 实体接口
......
...@@ -32,6 +32,8 @@ export default class IBZEmployeeServiceBase extends EntityService { ...@@ -32,6 +32,8 @@ export default class IBZEmployeeServiceBase extends EntityService {
this.APPDEKEY = 'userid'; this.APPDEKEY = 'userid';
this.APPDENAME = 'ibzemployees'; this.APPDENAME = 'ibzemployees';
this.APPDETEXT = 'personname'; this.APPDETEXT = 'personname';
this.APPNAME = 'web';
this.SYSTEMNAME = 'ibzou';
} }
// 实体接口 // 实体接口
......
...@@ -32,6 +32,8 @@ export default class IBZOrganizationServiceBase extends EntityService { ...@@ -32,6 +32,8 @@ export default class IBZOrganizationServiceBase extends EntityService {
this.APPDEKEY = 'orgid'; this.APPDEKEY = 'orgid';
this.APPDENAME = 'ibzorganizations'; this.APPDENAME = 'ibzorganizations';
this.APPDETEXT = 'orgname'; this.APPDETEXT = 'orgname';
this.APPNAME = 'web';
this.SYSTEMNAME = 'ibzou';
} }
// 实体接口 // 实体接口
......
...@@ -38,11 +38,11 @@ ...@@ -38,11 +38,11 @@
git clone -b master $para2 ibzou/ git clone -b master $para2 ibzou/
export NODE_OPTIONS=--max-old-space-size=4096 export NODE_OPTIONS=--max-old-space-size=4096
cd ibzou/ cd ibzou/
mvn clean package -Papi mvn clean package -Pweb
cd ibzou-provider/ibzou-provider-api cd ibzou-app/ibzou-app-web
mvn -Papi docker:build mvn -Pweb docker:build
mvn -Papi docker:push mvn -Pweb docker:push
docker -H $para1 stack deploy --compose-file=src/main/docker/ibzou-provider-api.yaml dev --with-registry-auth docker -H $para1 stack deploy --compose-file=src/main/docker/ibzou-app-web.yaml dev --with-registry-auth
</command> </command>
</hudson.tasks.Shell> </hudson.tasks.Shell>
</builders> </builders>
......
...@@ -9,6 +9,6 @@ CMD echo "The application will start in ${IBZ_SLEEP}s..." && \ ...@@ -9,6 +9,6 @@ CMD echo "The application will start in ${IBZ_SLEEP}s..." && \
sleep ${IBZ_SLEEP} && \ sleep ${IBZ_SLEEP} && \
java ${JAVA_OPTS} -Djava.security.egd=file:/dev/./urandom -jar /ibzou-app-web.jar java ${JAVA_OPTS} -Djava.security.egd=file:/dev/./urandom -jar /ibzou-app-web.jar
EXPOSE 8080 EXPOSE 30001
ADD ibzou-app-web.jar /ibzou-app-web.jar ADD ibzou-app-web.jar /ibzou-app-web.jar
...@@ -3,9 +3,11 @@ services: ...@@ -3,9 +3,11 @@ services:
ibzou-app-web: ibzou-app-web:
image: registry.cn-shanghai.aliyuncs.com/ibizsys/ibzou-app-web:latest image: registry.cn-shanghai.aliyuncs.com/ibizsys/ibzou-app-web:latest
ports: ports:
- "8080:8080" - "30001:30001"
networks: networks:
- agent_network - agent_network
environment:
SPRING_CLOUD_NACOS_DISCOVERY_IP: 172.16.180.237
deploy: deploy:
mode: replicated mode: replicated
replicas: 1 replicas: 1
......
server: server:
port: 8080 port: 30001
\ No newline at end of file \ No newline at end of file
server: server:
port: 8080 port: 30001
#zuul网关路由设置 #zuul网关路由设置
zuul: zuul:
......
...@@ -9,6 +9,6 @@ CMD echo "The application will start in ${IBZ_SLEEP}s..." && \ ...@@ -9,6 +9,6 @@ CMD echo "The application will start in ${IBZ_SLEEP}s..." && \
sleep ${IBZ_SLEEP} && \ sleep ${IBZ_SLEEP} && \
java ${JAVA_OPTS} -Djava.security.egd=file:/dev/./urandom -jar /ibzou-provider-api.jar java ${JAVA_OPTS} -Djava.security.egd=file:/dev/./urandom -jar /ibzou-provider-api.jar
EXPOSE 40001 EXPOSE 8081
ADD ibzou-provider-api.jar /ibzou-provider-api.jar ADD ibzou-provider-api.jar /ibzou-provider-api.jar
...@@ -3,11 +3,9 @@ services: ...@@ -3,11 +3,9 @@ services:
ibzou-provider-api: ibzou-provider-api:
image: registry.cn-shanghai.aliyuncs.com/ibizsys/ibzou-provider-api:latest image: registry.cn-shanghai.aliyuncs.com/ibizsys/ibzou-provider-api:latest
ports: ports:
- "40001:40001" - "8081:8081"
networks: networks:
- agent_network - agent_network
environment:
SPRING_CLOUD_NACOS_DISCOVERY_IP: 172.16.180.237
deploy: deploy:
mode: replicated mode: replicated
replicas: 1 replicas: 1
......
server: server:
port: 40001 port: 8081
\ No newline at end of file \ No newline at end of file
...@@ -32,7 +32,7 @@ public class PermissionSyncJob implements ApplicationRunner { ...@@ -32,7 +32,7 @@ public class PermissionSyncJob implements ApplicationRunner {
@Value("${ibiz.enablePermissionValid:false}") @Value("${ibiz.enablePermissionValid:false}")
boolean enablePermissionValid; //是否开启权限校验 boolean enablePermissionValid; //是否开启权限校验
@Value("${ibiz.systemid:2C40DFCD-0DF5-47BF-91A5-C45F810B0001}") @Value("${ibiz.systemid:110B1A3E-4944-47C8-B4C4-EC15FB8982F3}")
private String systemId; private String systemId;
@Override @Override
......
...@@ -22,7 +22,7 @@ public class SimpleUserService implements AuthenticationUserService{ ...@@ -22,7 +22,7 @@ public class SimpleUserService implements AuthenticationUserService{
@Value("${ibiz.enablePermissionValid:false}") @Value("${ibiz.enablePermissionValid:false}")
boolean enablePermissionValid; //是否开启权限校验 boolean enablePermissionValid; //是否开启权限校验
@Value("${ibiz.systemid:2C40DFCD-0DF5-47BF-91A5-C45F810B0001}") @Value("${ibiz.systemid:110B1A3E-4944-47C8-B4C4-EC15FB8982F3}")
private String systemid; private String systemid;
@Autowired @Autowired
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册