提交 19c0ba08 编写于 作者: ibizdev's avatar ibizdev

zhouweidong 部署微服务应用 [ibiz-rt,ibizlab-runtime]

上级 5d7740a0
...@@ -20,6 +20,7 @@ function getLocaleResourceBase(){ ...@@ -20,6 +20,7 @@ function getLocaleResourceBase(){
parentdeptname: commonLogic.appcommonhandle("上级部门",null), parentdeptname: commonLogic.appcommonhandle("上级部门",null),
createdate: commonLogic.appcommonhandle("{0}[{1}] relational data [{2}] cannot be deleted!",null), createdate: commonLogic.appcommonhandle("{0}[{1}] relational data [{2}] cannot be deleted!",null),
updatedate: commonLogic.appcommonhandle("The [{0}] value is not a character type",null), updatedate: commonLogic.appcommonhandle("The [{0}] value is not a character type",null),
isvalid: commonLogic.appcommonhandle("启用标识",null),
}, },
views: { views: {
pickupgridview: { pickupgridview: {
...@@ -75,6 +76,7 @@ function getLocaleResourceBase(){ ...@@ -75,6 +76,7 @@ function getLocaleResourceBase(){
leaderid: commonLogic.appcommonhandle("分管领导标识",null), leaderid: commonLogic.appcommonhandle("分管领导标识",null),
leadername: commonLogic.appcommonhandle("分管领导",null), leadername: commonLogic.appcommonhandle("分管领导",null),
showorder: commonLogic.appcommonhandle("排序",null), showorder: commonLogic.appcommonhandle("排序",null),
isvalid: commonLogic.appcommonhandle("启用",null),
createdate: commonLogic.appcommonhandle("{0}[{1}] relational data [{2}] cannot be deleted!",null), createdate: commonLogic.appcommonhandle("{0}[{1}] relational data [{2}] cannot be deleted!",null),
updatedate: commonLogic.appcommonhandle("The [{0}] value is not a character type",null), updatedate: commonLogic.appcommonhandle("The [{0}] value is not a character type",null),
}, },
......
...@@ -20,6 +20,7 @@ function getLocaleResourceBase(){ ...@@ -20,6 +20,7 @@ function getLocaleResourceBase(){
parentdeptname: commonLogic.appcommonhandle("上级部门",null), parentdeptname: commonLogic.appcommonhandle("上级部门",null),
createdate: commonLogic.appcommonhandle("创建时间",null), createdate: commonLogic.appcommonhandle("创建时间",null),
updatedate: commonLogic.appcommonhandle("最后修改时间",null), updatedate: commonLogic.appcommonhandle("最后修改时间",null),
isvalid: commonLogic.appcommonhandle("启用标识",null),
}, },
views: { views: {
pickupgridview: { pickupgridview: {
...@@ -75,6 +76,7 @@ function getLocaleResourceBase(){ ...@@ -75,6 +76,7 @@ function getLocaleResourceBase(){
leaderid: commonLogic.appcommonhandle("分管领导标识",null), leaderid: commonLogic.appcommonhandle("分管领导标识",null),
leadername: commonLogic.appcommonhandle("分管领导",null), leadername: commonLogic.appcommonhandle("分管领导",null),
showorder: commonLogic.appcommonhandle("排序",null), showorder: commonLogic.appcommonhandle("排序",null),
isvalid: commonLogic.appcommonhandle("启用",null),
createdate: commonLogic.appcommonhandle("创建时间",null), createdate: commonLogic.appcommonhandle("创建时间",null),
updatedate: commonLogic.appcommonhandle("最后修改时间",null), updatedate: commonLogic.appcommonhandle("最后修改时间",null),
}, },
......
...@@ -15,6 +15,7 @@ function getLocaleResourceBase(){ ...@@ -15,6 +15,7 @@ function getLocaleResourceBase(){
enable: commonLogic.appcommonhandle("the workflow instance current processing step is invalid",null), enable: commonLogic.appcommonhandle("the workflow instance current processing step is invalid",null),
createdate: commonLogic.appcommonhandle("Print",null), createdate: commonLogic.appcommonhandle("Print",null),
updatedate: commonLogic.appcommonhandle("Actor",null), updatedate: commonLogic.appcommonhandle("Actor",null),
isvalid: commonLogic.appcommonhandle("启用标识",null),
}, },
views: { views: {
pickupgridview: { pickupgridview: {
...@@ -61,6 +62,7 @@ function getLocaleResourceBase(){ ...@@ -61,6 +62,7 @@ function getLocaleResourceBase(){
shortname: commonLogic.appcommonhandle("Cancel",null), shortname: commonLogic.appcommonhandle("Cancel",null),
showorder: commonLogic.appcommonhandle("排序",null), showorder: commonLogic.appcommonhandle("排序",null),
porgid: commonLogic.appcommonhandle("上级单位",null), porgid: commonLogic.appcommonhandle("上级单位",null),
isvalid: commonLogic.appcommonhandle("启用",null),
createdate: commonLogic.appcommonhandle("Print",null), createdate: commonLogic.appcommonhandle("Print",null),
updatedate: commonLogic.appcommonhandle("Actor",null), updatedate: commonLogic.appcommonhandle("Actor",null),
}, },
......
...@@ -15,6 +15,7 @@ function getLocaleResourceBase(){ ...@@ -15,6 +15,7 @@ function getLocaleResourceBase(){
enable: commonLogic.appcommonhandle("逻辑有效",null), enable: commonLogic.appcommonhandle("逻辑有效",null),
createdate: commonLogic.appcommonhandle("创建时间",null), createdate: commonLogic.appcommonhandle("创建时间",null),
updatedate: commonLogic.appcommonhandle("最后修改时间",null), updatedate: commonLogic.appcommonhandle("最后修改时间",null),
isvalid: commonLogic.appcommonhandle("启用标识",null),
}, },
views: { views: {
pickupgridview: { pickupgridview: {
...@@ -61,6 +62,7 @@ function getLocaleResourceBase(){ ...@@ -61,6 +62,7 @@ function getLocaleResourceBase(){
shortname: commonLogic.appcommonhandle("单位简称",null), shortname: commonLogic.appcommonhandle("单位简称",null),
showorder: commonLogic.appcommonhandle("排序",null), showorder: commonLogic.appcommonhandle("排序",null),
porgid: commonLogic.appcommonhandle("上级单位",null), porgid: commonLogic.appcommonhandle("上级单位",null),
isvalid: commonLogic.appcommonhandle("启用",null),
createdate: commonLogic.appcommonhandle("创建时间",null), createdate: commonLogic.appcommonhandle("创建时间",null),
updatedate: commonLogic.appcommonhandle("最后修改时间",null), updatedate: commonLogic.appcommonhandle("最后修改时间",null),
}, },
......
...@@ -66,6 +66,9 @@ export default class DeptTreeModel { ...@@ -66,6 +66,9 @@ export default class DeptTreeModel {
{ {
name: 'updatedate', name: 'updatedate',
}, },
{
name: 'isvalid',
},
] ]
} }
......
...@@ -119,6 +119,27 @@ ...@@ -119,6 +119,27 @@
</app-form-item> </app-form-item>
</i-col>
<i-col v-show="detailsModel.isvalid.visible" :style="{}" :lg="{ span: 24, offset: 0 }">
<app-form-item name='isvalid' :itemRules="this.rules().isvalid" class='' :caption="$t('entities.sysdepartment.main_form.details.isvalid')" uiStyle="DEFAULT" :labelWidth="130" :isShowCaption="true" :error="detailsModel.isvalid.error" :isEmptyCaption="false" labelPos="LEFT">
<dropdown-list
v-model="data.isvalid"
:data="data"
:context="context"
:viewparams="viewparams"
:localContext ='{ }'
:localParam ='{ }'
:disabled="detailsModel.isvalid.disabled"
valueType="number"
style="width:100px;width: 100px;"
tag='YesNo'
codelistType='STATIC'
placeholder='请选择...'>
</dropdown-list>
</app-form-item>
</i-col> </i-col>
<i-col v-show="detailsModel.createdate.visible" :style="{}" :lg="{ span: 24, offset: 0 }"> <i-col v-show="detailsModel.createdate.visible" :style="{}" :lg="{ span: 24, offset: 0 }">
<app-form-item name='createdate' :itemRules="this.rules().createdate" class='' :caption="$t('entities.sysdepartment.main_form.details.createdate')" uiStyle="DEFAULT" :labelWidth="130" :isShowCaption="true" :error="detailsModel.createdate.error" :isEmptyCaption="false" labelPos="LEFT"> <app-form-item name='createdate' :itemRules="this.rules().createdate" class='' :caption="$t('entities.sysdepartment.main_form.details.createdate')" uiStyle="DEFAULT" :labelWidth="130" :isShowCaption="true" :error="detailsModel.createdate.error" :isEmptyCaption="false" labelPos="LEFT">
...@@ -548,6 +569,7 @@ export default class MainBase extends Vue implements ControlInterface { ...@@ -548,6 +569,7 @@ export default class MainBase extends Vue implements ControlInterface {
leaderid: null, leaderid: null,
leadername: null, leadername: null,
showorder: null, showorder: null,
isvalid: null,
createdate: null, createdate: null,
updatedate: null, updatedate: null,
sysdepartment:null, sysdepartment:null,
...@@ -637,6 +659,10 @@ export default class MainBase extends Vue implements ControlInterface { ...@@ -637,6 +659,10 @@ export default class MainBase extends Vue implements ControlInterface {
{ required: this.detailsModel.showorder.required, type: 'number', message: '排序 值不能为空', trigger: 'change' }, { required: this.detailsModel.showorder.required, type: 'number', message: '排序 值不能为空', trigger: 'change' },
{ required: this.detailsModel.showorder.required, type: 'number', message: '排序 值不能为空', trigger: 'blur' }, { required: this.detailsModel.showorder.required, type: 'number', message: '排序 值不能为空', trigger: 'blur' },
], ],
isvalid: [
{ required: this.detailsModel.isvalid.required, type: 'number', message: '启用 值不能为空', trigger: 'change' },
{ required: this.detailsModel.isvalid.required, type: 'number', message: '启用 值不能为空', trigger: 'blur' },
],
createdate: [ createdate: [
{ required: this.detailsModel.createdate.required, type: 'string', message: '创建时间 值不能为空', trigger: 'change' }, { required: this.detailsModel.createdate.required, type: 'string', message: '创建时间 值不能为空', trigger: 'change' },
{ required: this.detailsModel.createdate.required, type: 'string', message: '创建时间 值不能为空', trigger: 'blur' }, { required: this.detailsModel.createdate.required, type: 'string', message: '创建时间 值不能为空', trigger: 'blur' },
...@@ -795,6 +821,8 @@ export default class MainBase extends Vue implements ControlInterface { ...@@ -795,6 +821,8 @@ export default class MainBase extends Vue implements ControlInterface {
leadername: new FormItemModel({ caption: '分管领导', detailType: 'FORMITEM', name: 'leadername', visible: true, isShowCaption: true, form: this, isControlledContent: false , required:false, disabled: false, enableCond: 3 }) leadername: new FormItemModel({ caption: '分管领导', detailType: 'FORMITEM', name: 'leadername', visible: true, isShowCaption: true, form: this, isControlledContent: false , required:false, disabled: false, enableCond: 3 })
, ,
showorder: new FormItemModel({ caption: '排序', detailType: 'FORMITEM', name: 'showorder', visible: true, isShowCaption: true, form: this, isControlledContent: false , required:false, disabled: false, enableCond: 3 }) showorder: new FormItemModel({ caption: '排序', detailType: 'FORMITEM', name: 'showorder', visible: true, isShowCaption: true, form: this, isControlledContent: false , required:false, disabled: false, enableCond: 3 })
,
isvalid: new FormItemModel({ caption: '启用', detailType: 'FORMITEM', name: 'isvalid', visible: true, isShowCaption: true, form: this, isControlledContent: false , required:false, disabled: false, enableCond: 3 })
, ,
createdate: new FormItemModel({ caption: '创建时间', detailType: 'FORMITEM', name: 'createdate', visible: true, isShowCaption: true, form: this, isControlledContent: false , required:false, disabled: false, enableCond: 3 }) createdate: new FormItemModel({ caption: '创建时间', detailType: 'FORMITEM', name: 'createdate', visible: true, isShowCaption: true, form: this, isControlledContent: false , required:false, disabled: false, enableCond: 3 })
, ,
...@@ -1054,6 +1082,18 @@ export default class MainBase extends Vue implements ControlInterface { ...@@ -1054,6 +1082,18 @@ export default class MainBase extends Vue implements ControlInterface {
this.formDataChange({ name: 'showorder', newVal: newVal, oldVal: oldVal }); this.formDataChange({ name: 'showorder', newVal: newVal, oldVal: oldVal });
} }
/**
* 监控表单属性 isvalid 值
*
* @param {*} newVal
* @param {*} oldVal
* @memberof MainBase
*/
@Watch('data.isvalid')
onIsvalidChange(newVal: any, oldVal: any) {
this.formDataChange({ name: 'isvalid', newVal: newVal, oldVal: oldVal });
}
/** /**
* 监控表单属性 createdate 值 * 监控表单属性 createdate 值
* *
...@@ -1162,6 +1202,7 @@ export default class MainBase extends Vue implements ControlInterface { ...@@ -1162,6 +1202,7 @@ export default class MainBase extends Vue implements ControlInterface {
} }
......
...@@ -120,6 +120,11 @@ export default class MainModel { ...@@ -120,6 +120,11 @@ export default class MainModel {
prop: 'showorder', prop: 'showorder',
dataType: 'INT', dataType: 'INT',
}, },
{
name: 'isvalid',
prop: 'isvalid',
dataType: 'YESNO',
},
{ {
name: 'createdate', name: 'createdate',
prop: 'createdate', prop: 'createdate',
......
...@@ -66,6 +66,9 @@ export default class MPickupViewpickupviewpanelModel { ...@@ -66,6 +66,9 @@ export default class MPickupViewpickupviewpanelModel {
{ {
name: 'updatedate', name: 'updatedate',
}, },
{
name: 'isvalid',
},
] ]
} }
......
...@@ -66,6 +66,9 @@ export default class PickupViewpickupviewpanelModel { ...@@ -66,6 +66,9 @@ export default class PickupViewpickupviewpanelModel {
{ {
name: 'updatedate', name: 'updatedate',
}, },
{
name: 'isvalid',
},
] ]
} }
......
...@@ -66,6 +66,9 @@ export default class TreeExpViewtreeexpbarModel { ...@@ -66,6 +66,9 @@ export default class TreeExpViewtreeexpbarModel {
{ {
name: 'updatedate', name: 'updatedate',
}, },
{
name: 'isvalid',
},
] ]
} }
......
...@@ -77,6 +77,27 @@ ...@@ -77,6 +77,27 @@
</app-form-item> </app-form-item>
</i-col>
<i-col v-show="detailsModel.isvalid.visible" :style="{}" :lg="{ span: 24, offset: 0 }">
<app-form-item name='isvalid' :itemRules="this.rules().isvalid" class='' :caption="$t('entities.sysorganization.main_form.details.isvalid')" uiStyle="DEFAULT" :labelWidth="130" :isShowCaption="true" :error="detailsModel.isvalid.error" :isEmptyCaption="false" labelPos="LEFT">
<dropdown-list
v-model="data.isvalid"
:data="data"
:context="context"
:viewparams="viewparams"
:localContext ='{ }'
:localParam ='{ }'
:disabled="detailsModel.isvalid.disabled"
valueType="number"
style="width:100px;width: 100px;"
tag='YesNo'
codelistType='STATIC'
placeholder='请选择...'>
</dropdown-list>
</app-form-item>
</i-col> </i-col>
<i-col v-show="detailsModel.createdate.visible" :style="{}" :lg="{ span: 24, offset: 0 }"> <i-col v-show="detailsModel.createdate.visible" :style="{}" :lg="{ span: 24, offset: 0 }">
<app-form-item name='createdate' :itemRules="this.rules().createdate" class='' :caption="$t('entities.sysorganization.main_form.details.createdate')" uiStyle="DEFAULT" :labelWidth="130" :isShowCaption="true" :error="detailsModel.createdate.error" :isEmptyCaption="false" labelPos="LEFT"> <app-form-item name='createdate' :itemRules="this.rules().createdate" class='' :caption="$t('entities.sysorganization.main_form.details.createdate')" uiStyle="DEFAULT" :labelWidth="130" :isShowCaption="true" :error="detailsModel.createdate.error" :isEmptyCaption="false" labelPos="LEFT">
...@@ -501,6 +522,7 @@ export default class MainBase extends Vue implements ControlInterface { ...@@ -501,6 +522,7 @@ export default class MainBase extends Vue implements ControlInterface {
shortname: null, shortname: null,
showorder: null, showorder: null,
porgid: null, porgid: null,
isvalid: null,
createdate: null, createdate: null,
updatedate: null, updatedate: null,
sysorganization:null, sysorganization:null,
...@@ -578,6 +600,10 @@ export default class MainBase extends Vue implements ControlInterface { ...@@ -578,6 +600,10 @@ export default class MainBase extends Vue implements ControlInterface {
{ required: this.detailsModel.showorder.required, type: 'number', message: '排序 值不能为空', trigger: 'change' }, { required: this.detailsModel.showorder.required, type: 'number', message: '排序 值不能为空', trigger: 'change' },
{ required: this.detailsModel.showorder.required, type: 'number', message: '排序 值不能为空', trigger: 'blur' }, { required: this.detailsModel.showorder.required, type: 'number', message: '排序 值不能为空', trigger: 'blur' },
], ],
isvalid: [
{ required: this.detailsModel.isvalid.required, type: 'number', message: '启用 值不能为空', trigger: 'change' },
{ required: this.detailsModel.isvalid.required, type: 'number', message: '启用 值不能为空', trigger: 'blur' },
],
createdate: [ createdate: [
{ required: this.detailsModel.createdate.required, type: 'string', message: '创建时间 值不能为空', trigger: 'change' }, { required: this.detailsModel.createdate.required, type: 'string', message: '创建时间 值不能为空', trigger: 'change' },
{ required: this.detailsModel.createdate.required, type: 'string', message: '创建时间 值不能为空', trigger: 'blur' }, { required: this.detailsModel.createdate.required, type: 'string', message: '创建时间 值不能为空', trigger: 'blur' },
...@@ -726,6 +752,8 @@ export default class MainBase extends Vue implements ControlInterface { ...@@ -726,6 +752,8 @@ export default class MainBase extends Vue implements ControlInterface {
showorder: new FormItemModel({ caption: '排序', detailType: 'FORMITEM', name: 'showorder', visible: true, isShowCaption: true, form: this, isControlledContent: false , required:false, disabled: false, enableCond: 3 }) showorder: new FormItemModel({ caption: '排序', detailType: 'FORMITEM', name: 'showorder', visible: true, isShowCaption: true, form: this, isControlledContent: false , required:false, disabled: false, enableCond: 3 })
, ,
porgid: new FormItemModel({ caption: '上级单位', detailType: 'FORMITEM', name: 'porgid', visible: true, isShowCaption: true, form: this, isControlledContent: false , required:false, disabled: false, enableCond: 3 }) porgid: new FormItemModel({ caption: '上级单位', detailType: 'FORMITEM', name: 'porgid', visible: true, isShowCaption: true, form: this, isControlledContent: false , required:false, disabled: false, enableCond: 3 })
,
isvalid: new FormItemModel({ caption: '启用', detailType: 'FORMITEM', name: 'isvalid', visible: true, isShowCaption: true, form: this, isControlledContent: false , required:false, disabled: false, enableCond: 3 })
, ,
createdate: new FormItemModel({ caption: '创建时间', detailType: 'FORMITEM', name: 'createdate', visible: true, isShowCaption: true, form: this, isControlledContent: false , required:false, disabled: false, enableCond: 3 }) createdate: new FormItemModel({ caption: '创建时间', detailType: 'FORMITEM', name: 'createdate', visible: true, isShowCaption: true, form: this, isControlledContent: false , required:false, disabled: false, enableCond: 3 })
, ,
...@@ -925,6 +953,18 @@ export default class MainBase extends Vue implements ControlInterface { ...@@ -925,6 +953,18 @@ export default class MainBase extends Vue implements ControlInterface {
this.formDataChange({ name: 'porgid', newVal: newVal, oldVal: oldVal }); this.formDataChange({ name: 'porgid', newVal: newVal, oldVal: oldVal });
} }
/**
* 监控表单属性 isvalid 值
*
* @param {*} newVal
* @param {*} oldVal
* @memberof MainBase
*/
@Watch('data.isvalid')
onIsvalidChange(newVal: any, oldVal: any) {
this.formDataChange({ name: 'isvalid', newVal: newVal, oldVal: oldVal });
}
/** /**
* 监控表单属性 createdate 值 * 监控表单属性 createdate 值
* *
...@@ -1021,6 +1061,7 @@ export default class MainBase extends Vue implements ControlInterface { ...@@ -1021,6 +1061,7 @@ export default class MainBase extends Vue implements ControlInterface {
} }
......
...@@ -95,6 +95,11 @@ export default class MainModel { ...@@ -95,6 +95,11 @@ export default class MainModel {
prop: 'parentorgid', prop: 'parentorgid',
dataType: 'PICKUP', dataType: 'PICKUP',
}, },
{
name: 'isvalid',
prop: 'isvalid',
dataType: 'YESNO',
},
{ {
name: 'createdate', name: 'createdate',
prop: 'createdate', prop: 'createdate',
......
...@@ -51,6 +51,9 @@ export default class OrgTreeModel { ...@@ -51,6 +51,9 @@ export default class OrgTreeModel {
{ {
name: 'updatedate', name: 'updatedate',
}, },
{
name: 'isvalid',
},
] ]
} }
......
...@@ -51,6 +51,9 @@ export default class PickupViewpickupviewpanelModel { ...@@ -51,6 +51,9 @@ export default class PickupViewpickupviewpanelModel {
{ {
name: 'updatedate', name: 'updatedate',
}, },
{
name: 'isvalid',
},
] ]
} }
......
...@@ -51,6 +51,9 @@ export default class TreeExpViewtreeexpbarModel { ...@@ -51,6 +51,9 @@ export default class TreeExpViewtreeexpbarModel {
{ {
name: 'updatedate', name: 'updatedate',
}, },
{
name: 'isvalid',
},
] ]
} }
......
...@@ -37,6 +37,11 @@ ...@@ -37,6 +37,11 @@
git clone -b master $para2 ibzrt/ git clone -b master $para2 ibzrt/
export NODE_OPTIONS=--max-old-space-size=4096 export NODE_OPTIONS=--max-old-space-size=4096
cd ibzrt/ cd ibzrt/
mvn clean package -Pweb
cd ibzrt-app/ibzrt-app-web
mvn -Pweb docker:build
mvn -Pweb docker:push
docker -H $para1 stack deploy --compose-file=src/main/docker/ibzrt-app-web.yaml ibzlab-rt --with-registry-auth
</command> </command>
</hudson.tasks.Shell> </hudson.tasks.Shell>
</builders> </builders>
......
...@@ -12,6 +12,6 @@ CMD echo "The application will start in ${IBIZ_SLEEP}s..." && \ ...@@ -12,6 +12,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 /ibzrt-app-web.jar java ${JAVA_OPTS} -Djava.security.egd=file:/dev/./urandom -jar /ibzrt-app-web.jar
EXPOSE 8080 EXPOSE 30000
ADD ibzrt-app-web.jar /ibzrt-app-web.jar ADD ibzrt-app-web.jar /ibzrt-app-web.jar
...@@ -3,9 +3,23 @@ services: ...@@ -3,9 +3,23 @@ services:
ibzrt-app-web: ibzrt-app-web:
image: registry.cn-shanghai.aliyuncs.com/ibizsys/ibzrt-app-web:latest image: registry.cn-shanghai.aliyuncs.com/ibizsys/ibzrt-app-web:latest
ports: ports:
- "8080:8080" - "30000:30000"
networks: networks:
- agent_network - agent_network
environment:
- SPRING_CLOUD_NACOS_DISCOVERY_IP=172.16.180.237
- SERVER_PORT=30000
- SPRING_CLOUD_NACOS_DISCOVERY_SERVER-ADDR=172.16.100.243: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&allowMultiQueries=true
- SPRING_DATASOURCE_DRIVER-CLASS-NAME=com.mysql.jdbc.Driver
- SPRING_DATASOURCE_DEFAULTSCHEMA=a_A_5d9d78509
- NACOS=172.16.100.243:8848
- SPRING_CLOUD_NACOS_DISCOVERY_GROUP=ibizdev
deploy: deploy:
resources: resources:
limits: limits:
...@@ -14,6 +28,10 @@ services: ...@@ -14,6 +28,10 @@ services:
memory: 400M memory: 400M
mode: replicated mode: replicated
replicas: 1 replicas: 1
restart_policy:
condition: on-failure
max_attempts: 3
window: 120s
volumes: volumes:
- "nfs:/app/file" - "nfs:/app/file"
......
...@@ -20,18 +20,17 @@ ...@@ -20,18 +20,17 @@
<appender name="file" class="ch.qos.logback.core.rolling.RollingFileAppender"> <appender name="file" class="ch.qos.logback.core.rolling.RollingFileAppender">
<rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy"> <rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">
<!--日志文件输出的文件名--> <!--日志文件输出的文件名-->
<FileNamePattern>${LOG_PATH}/ibzrt.%d{yyyy-MM-dd}.log</FileNamePattern> <FileNamePattern>${LOG_PATH}/ibzrt.%d{yyyy-MM-dd}.%i.log</FileNamePattern>
<!--日志文件最大的大小-->
<timeBasedFileNamingAndTriggeringPolicy class="ch.qos.logback.core.rolling.SizeAndTimeBasedFNATP">
<maxFileSize>100MB</maxFileSize>
</timeBasedFileNamingAndTriggeringPolicy>
<!--日志文件保留天数--> <!--日志文件保留天数-->
<MaxHistory>30</MaxHistory> <MaxHistory>30</MaxHistory>
</rollingPolicy> </rollingPolicy>
<encoder class="ch.qos.logback.classic.encoder.PatternLayoutEncoder"> <encoder class="ch.qos.logback.classic.encoder.PatternLayoutEncoder">
<pattern>${LOG_PATTERN}</pattern> <pattern>${LOG_PATTERN}</pattern>
</encoder> </encoder>
<!--日志文件最大的大小-->
<triggeringPolicy class="ch.qos.logback.core.rolling.SizeBasedTriggeringPolicy">
<MaxFileSize>100MB</MaxFileSize>
</triggeringPolicy>
</appender> </appender>
<!-- 日志输出级别 --> <!-- 日志输出级别 -->
<root level="INFO"> <root level="INFO">
......
...@@ -160,6 +160,14 @@ public class SysDepartment extends EntityClient implements Serializable { ...@@ -160,6 +160,14 @@ public class SysDepartment extends EntityClient implements Serializable {
@JsonProperty("updatedate") @JsonProperty("updatedate")
private Timestamp updatedate; private Timestamp updatedate;
/**
* 启用标识
*/
@DEField(defaultValue = "1")
@JSONField(name = "isvalid")
@JsonProperty("isvalid")
private Integer isvalid;
/** /**
* *
...@@ -258,6 +266,14 @@ public class SysDepartment extends EntityClient implements Serializable { ...@@ -258,6 +266,14 @@ public class SysDepartment extends EntityClient implements Serializable {
this.modify("leadername",leadername); this.modify("leadername",leadername);
} }
/**
* 设置 [启用标识]
*/
public void setIsvalid(Integer isvalid) {
this.isvalid = isvalid ;
this.modify("isvalid",isvalid);
}
/** /**
* 复制当前对象数据到目标对象(粘贴重置) * 复制当前对象数据到目标对象(粘贴重置)
* @param targetEntity 目标数据对象 * @param targetEntity 目标数据对象
......
...@@ -125,6 +125,14 @@ public class SysOrganization extends EntityClient implements Serializable { ...@@ -125,6 +125,14 @@ public class SysOrganization extends EntityClient implements Serializable {
@JsonProperty("updatedate") @JsonProperty("updatedate")
private Timestamp updatedate; private Timestamp updatedate;
/**
* 启用标识
*/
@DEField(defaultValue = "1")
@JSONField(name = "isvalid")
@JsonProperty("isvalid")
private Integer isvalid;
/** /**
* *
...@@ -191,6 +199,14 @@ public class SysOrganization extends EntityClient implements Serializable { ...@@ -191,6 +199,14 @@ public class SysOrganization extends EntityClient implements Serializable {
this.modify("domains",domains); this.modify("domains",domains);
} }
/**
* 设置 [启用标识]
*/
public void setIsvalid(Integer isvalid) {
this.isvalid = isvalid ;
this.modify("isvalid",isvalid);
}
/** /**
* 复制当前对象数据到目标对象(粘贴重置) * 复制当前对象数据到目标对象(粘贴重置)
* @param targetEntity 目标数据对象 * @param targetEntity 目标数据对象
......
...@@ -43,6 +43,8 @@ public class SysDepartmentSearchContext extends SearchContextBase { ...@@ -43,6 +43,8 @@ public class SysDepartmentSearchContext extends SearchContextBase {
private String n_pdeptname_like;//[上级部门] private String n_pdeptname_like;//[上级部门]
private Integer n_isvalid_eq;//[启用标识]
} }
...@@ -43,6 +43,8 @@ public class SysOrganizationSearchContext extends SearchContextBase { ...@@ -43,6 +43,8 @@ public class SysOrganizationSearchContext extends SearchContextBase {
private String n_porgname_like;//[上级单位] private String n_porgname_like;//[上级单位]
private Integer n_isvalid_eq;//[启用标识]
} }
...@@ -1662,6 +1662,20 @@ ...@@ -1662,6 +1662,20 @@
"key_field":0, "key_field":0,
"show_order":19, "show_order":19,
"major_field":0 "major_field":0
},
{
"fieldname":"ISVALID" ,
"codename":"IsValid",
"field_logic_name":"启用标识",
"entity_name":"SysDepartment",
"field_type":"YESNO",
"dict":"YesNo",
"nullable":1,
"physical_field":1,
"data_type":"INT",
"key_field":0,
"show_order":1000,
"major_field":0
} }
], ],
"subEntitys":[ "subEntitys":[
...@@ -2847,6 +2861,20 @@ ...@@ -2847,6 +2861,20 @@
"key_field":0, "key_field":0,
"show_order":19, "show_order":19,
"major_field":0 "major_field":0
},
{
"fieldname":"ISVALID" ,
"codename":"IsValid",
"field_logic_name":"启用标识",
"entity_name":"SysOrganization",
"field_type":"YESNO",
"dict":"YesNo",
"nullable":1,
"physical_field":1,
"data_type":"INT",
"key_field":0,
"show_order":1000,
"major_field":0
} }
], ],
"subEntitys":[ "subEntitys":[
......
...@@ -261,6 +261,7 @@ ...@@ -261,6 +261,7 @@
<version>${baomidou-jobs.version}</version> <version>${baomidou-jobs.version}</version>
</dependency> </dependency>
</dependencies> </dependencies>
</dependencyManagement> </dependencyManagement>
...@@ -346,8 +347,6 @@ ...@@ -346,8 +347,6 @@
</dependency> </dependency>
</dependencies> </dependencies>
</project> </project>
...@@ -14,6 +14,10 @@ services: ...@@ -14,6 +14,10 @@ services:
memory: 400M memory: 400M
mode: replicated mode: replicated
replicas: 1 replicas: 1
restart_policy:
condition: on-failure
max_attempts: 3
window: 120s
volumes: volumes:
- "nfs:/app/file" - "nfs:/app/file"
......
...@@ -181,6 +181,14 @@ public class SysDepartmentDTO extends DTOBase implements Serializable { ...@@ -181,6 +181,14 @@ public class SysDepartmentDTO extends DTOBase implements Serializable {
@JsonProperty("updatedate") @JsonProperty("updatedate")
private Timestamp updatedate; private Timestamp updatedate;
/**
* 属性 [ISVALID]
*
*/
@JSONField(name = "isvalid")
@JsonProperty("isvalid")
private Integer isvalid;
/** /**
* 设置 [DEPTCODE] * 设置 [DEPTCODE]
...@@ -262,6 +270,14 @@ public class SysDepartmentDTO extends DTOBase implements Serializable { ...@@ -262,6 +270,14 @@ public class SysDepartmentDTO extends DTOBase implements Serializable {
this.modify("leadername",leadername); this.modify("leadername",leadername);
} }
/**
* 设置 [ISVALID]
*/
public void setIsvalid(Integer isvalid){
this.isvalid = isvalid ;
this.modify("isvalid",isvalid);
}
} }
......
...@@ -134,6 +134,14 @@ public class SysOrganizationDTO extends DTOBase implements Serializable { ...@@ -134,6 +134,14 @@ public class SysOrganizationDTO extends DTOBase implements Serializable {
@JsonProperty("updatedate") @JsonProperty("updatedate")
private Timestamp updatedate; private Timestamp updatedate;
/**
* 属性 [ISVALID]
*
*/
@JSONField(name = "isvalid")
@JsonProperty("isvalid")
private Integer isvalid;
/** /**
* 设置 [ORGCODE] * 设置 [ORGCODE]
...@@ -183,6 +191,14 @@ public class SysOrganizationDTO extends DTOBase implements Serializable { ...@@ -183,6 +191,14 @@ public class SysOrganizationDTO extends DTOBase implements Serializable {
this.modify("domains",domains); this.modify("domains",domains);
} }
/**
* 设置 [ISVALID]
*/
public void setIsvalid(Integer isvalid){
this.isvalid = isvalid ;
this.modify("isvalid",isvalid);
}
} }
......
...@@ -13,6 +13,7 @@ import org.springframework.boot.ApplicationRunner; ...@@ -13,6 +13,7 @@ import org.springframework.boot.ApplicationRunner;
import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty; import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
import org.springframework.context.annotation.Lazy; import org.springframework.context.annotation.Lazy;
import org.springframework.stereotype.Component; import org.springframework.stereotype.Component;
import org.springframework.util.ObjectUtils;
import org.springframework.util.DigestUtils; import org.springframework.util.DigestUtils;
import java.io.InputStream; import java.io.InputStream;
import java.util.*; import java.util.*;
...@@ -25,58 +26,55 @@ import java.util.*; ...@@ -25,58 +26,55 @@ import java.util.*;
@ConditionalOnProperty( name = "ibiz.enablePermissionValid", havingValue = "true") @ConditionalOnProperty( name = "ibiz.enablePermissionValid", havingValue = "true")
public class PermissionSyncJob implements ApplicationRunner { public class PermissionSyncJob implements ApplicationRunner {
@Autowired
@Lazy
private IBZUAAFeignClient client;
@Value("${ibiz.systemid:ibzrt}") @Value("${ibiz.systemid:ibzrt}")
private String systemId; private String systemId;
@Value("${ibiz.systemname:ibzrt}") @Value("${ibiz.systemname:ibzrt}")
private String systemName; private String systemName;
@Autowired @Autowired
@Lazy @Lazy
IBZLiteFeignClient liteFeignClient; private IBZUAAFeignClient uaaClient;
@Autowired
@Lazy
IBZLiteFeignClient liteClient;
@Override @Override
public void run(ApplicationArguments args) { public void run(ApplicationArguments args) {
try { try {
Thread.sleep(10000); Thread.sleep(10000);
InputStream permission = this.getClass().getResourceAsStream("/permission/systemResource.json"); //获取当前系统所有实体资源能力 InputStream permission = this.getClass().getResourceAsStream("/permission/systemResource.json"); //权限资源
String permissionResult = IOUtils.toString(permission,"UTF-8"); if (!ObjectUtils.isEmpty(permission)) {
JSONObject system= new JSONObject(); String strPermission = IOUtils.toString(permission, "UTF-8");
system.put("pssystemid",systemId); JSONObject system = new JSONObject() {{
system.put("pssystemname",systemName); put("pssystemid", systemId);
system.put("sysstructure",JSONObject.parseObject(permissionResult)); put("pssystemname", systemName);
system.put("md5check",DigestUtils.md5DigestAsHex(permissionResult.getBytes())); put("sysstructure", JSONObject.parseObject(strPermission));
if(client.syncSysAuthority(system)) { put("md5check", DigestUtils.md5DigestAsHex(strPermission.getBytes()));
log.info("向[UAA]同步系统资源成功"); }};
}else{ if (uaaClient.syncSysAuthority(system)) {
log.error("向[UAA]同步系统资源失败"); log.info("向[uaa]同步系统资源成功");
} else {
log.error("向[uaa]同步系统资源失败");
}
} }
} } catch (Exception ex) {
catch (Exception ex) { log.error("向[uaa]同步系统资源失败,请检查[uaa]服务是否正常运行! {}", ex.getMessage());
log.error(String.format("向[UAA]同步系统资源失败,请检查[UAA]服务是否正常! [%s]",ex));
} }
try { try {
InputStream sysModel = this.getClass().getResourceAsStream("/sysmodel/ibzrt.json"); //获取当前系统所有实体资源能力 InputStream model = this.getClass().getResourceAsStream("/sysmodel/ibzrt.json"); //系统模型
String strSysModel = IOUtils.toString(sysModel,"UTF-8"); if (!ObjectUtils.isEmpty(model)) {
if(liteFeignClient.syncSysModel(JSONObject.parseObject(strSysModel))) { String strModel = IOUtils.toString(model, "UTF-8");
log.info("向[lite]同步系统模型成功"); if (liteClient.syncSysModel(JSONObject.parseObject(strModel))) {
}else{ log.info("向[lite]同步模型成功");
log.error("向[lite]同步系统模型失败"); } else {
log.error("向[lite]同步模型失败");
}
} }
} catch (Exception ex) {
log.error("向[lite]同步系统模型失败,请检查[lite]服务是否正常运行! {}", ex.getMessage());
} }
catch (Exception ex) {
log.error(String.format("向[lite]同步系统模型失败,请检查[lite]服务是否正常! [%s]",ex));
}
} }
} }
\ No newline at end of file
...@@ -107,3 +107,4 @@ server: ...@@ -107,3 +107,4 @@ server:
min-response-size: 10240 min-response-size: 10240
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册