提交 7ee7578d 编写于 作者: ibizdev's avatar ibizdev

lab_gzf 部署微服务接口

上级 ffdf264f
...@@ -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 /businesscentral-app-businesscentral.jar java ${JAVA_OPTS} -Djava.security.egd=file:/dev/./urandom -jar /businesscentral-app-businesscentral.jar
EXPOSE 10320 EXPOSE 8080
ADD businesscentral-app-businesscentral.jar /businesscentral-app-businesscentral.jar ADD businesscentral-app-businesscentral.jar /businesscentral-app-businesscentral.jar
...@@ -3,23 +3,9 @@ services: ...@@ -3,23 +3,9 @@ services:
businesscentral-app-businesscentral: businesscentral-app-businesscentral:
image: registry.cn-shanghai.aliyuncs.com/ibizsys/businesscentral-app-businesscentral:latest image: registry.cn-shanghai.aliyuncs.com/ibizsys/businesscentral-app-businesscentral:latest
ports: ports:
- "10320:10320" - "8080:8080"
networks: networks:
- agent_network - agent_network
environment:
- SPRING_CLOUD_NACOS_DISCOVERY_IP=172.16.240.110
- SERVER_PORT=10320
- SPRING_CLOUD_NACOS_DISCOVERY_SERVER-ADDR=172.16.240.110:8848
- SPRING_REDIS_HOST=172.16.240.110
- SPRING_REDIS_PORT=6379
- SPRING_REDIS_DATABASE=0
- SPRING_DATASOURCE_USERNAME=a_LAB01_e85d8801c
- SPRING_DATASOURCE_PASSWORD=b1@@@772
- SPRING_DATASOURCE_URL=jdbc:mysql://172.16.186.185:3306/a_LAB01_e85d8801c?autoReconnect=true&useUnicode=true&characterEncoding=UTF-8&useOldAliasMetadataBehavior=true
- SPRING_DATASOURCE_DRIVER-CLASS-NAME=com.mysql.jdbc.Driver
- SPRING_DATASOURCE_DEFAULTSCHEMA=a_LAB01_e85d8801c
- CAS=https://passport.ibizlab.cn
- NACOS=172.16.240.110:8848
deploy: deploy:
resources: resources:
limits: limits:
......
...@@ -75,6 +75,10 @@ zuul: ...@@ -75,6 +75,10 @@ zuul:
path: /leads/** path: /leads/**
serviceId: ${ibiz.ref.service.ibizbusinesscentral-centralapi:ibizbusinesscentral-centralapi} serviceId: ${ibiz.ref.service.ibizbusinesscentral-centralapi:ibizbusinesscentral-centralapi}
stripPrefix: false stripPrefix: false
languagelocale:
path: /languagelocales/**
serviceId: ${ibiz.ref.service.ibizbusinesscentral-centralapi:ibizbusinesscentral-centralapi}
stripPrefix: false
incident: incident:
path: /incidents/** path: /incidents/**
serviceId: ${ibiz.ref.service.ibizbusinesscentral-centralapi:ibizbusinesscentral-centralapi} serviceId: ${ibiz.ref.service.ibizbusinesscentral-centralapi:ibizbusinesscentral-centralapi}
......
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
<!--输出实体[ACCOUNT]数据结构 --> <!--输出实体[ACCOUNT]数据结构 -->
<changeSet author="a_LAB01_e85d8801c" id="tab-account-619-1"> <changeSet author="a_LAB01_e85d8801c" id="tab-account-620-1">
<createTable tableName="ACCOUNT"> <createTable tableName="ACCOUNT">
<column name="ADDRESS1_PRIMARYCONTACTNAME" remarks="" type="VARCHAR(100)"> <column name="ADDRESS1_PRIMARYCONTACTNAME" remarks="" type="VARCHAR(100)">
</column> </column>
...@@ -5488,7 +5488,7 @@ ...@@ -5488,7 +5488,7 @@
<!--输出实体[KNOWLEDGEARTICLE]数据结构 --> <!--输出实体[KNOWLEDGEARTICLE]数据结构 -->
<changeSet author="a_LAB01_e85d8801c" id="tab-knowledgearticle-51-65"> <changeSet author="a_LAB01_e85d8801c" id="tab-knowledgearticle-65-65">
<createTable tableName="KNOWLEDGEARTICLE"> <createTable tableName="KNOWLEDGEARTICLE">
<column name="KNOWLEDGEARTICLEVIEWS_DATE" remarks="" type="DATETIME"> <column name="KNOWLEDGEARTICLEVIEWS_DATE" remarks="" type="DATETIME">
</column> </column>
...@@ -5764,7 +5764,7 @@ ...@@ -5764,7 +5764,7 @@
<!--输出实体[LANGUAGELOCALE]数据结构 --> <!--输出实体[LANGUAGELOCALE]数据结构 -->
<changeSet author="a_LAB01_e85d8801c" id="tab-languagelocale-1-69"> <changeSet author="a_LAB01_e85d8801c" id="tab-languagelocale-4-69">
<createTable tableName="LANGUAGELOCALE"> <createTable tableName="LANGUAGELOCALE">
<column name="CREATEDATE" remarks="" type="DATETIME"> <column name="CREATEDATE" remarks="" type="DATETIME">
</column> </column>
...@@ -7967,7 +7967,7 @@ ...@@ -7967,7 +7967,7 @@
<!--输出实体[PRODUCT]数据结构 --> <!--输出实体[PRODUCT]数据结构 -->
<changeSet author="a_LAB01_e85d8801c" id="tab-product-165-91"> <changeSet author="a_LAB01_e85d8801c" id="tab-product-167-91">
<createTable tableName="PRODUCT"> <createTable tableName="PRODUCT">
<column name="VENDORID" remarks="" type="VARCHAR(100)"> <column name="VENDORID" remarks="" type="VARCHAR(100)">
</column> </column>
...@@ -10980,31 +10980,31 @@ ...@@ -10980,31 +10980,31 @@
</changeSet> </changeSet>
<!--输出实体[ACCOUNT]外键关系 --> <!--输出实体[ACCOUNT]外键关系 -->
<changeSet author="a_LAB01_e85d8801c" id="fk-account-619-135"> <changeSet author="a_LAB01_e85d8801c" id="fk-account-620-135">
<addForeignKeyConstraint baseColumnNames="PARENTACCOUNTID" baseTableName="ACCOUNT" constraintName="DER1N_ACCOUNT__ACCOUNT__PARENT" deferrable="false" initiallyDeferred="false" onDelete="RESTRICT" onUpdate="RESTRICT" referencedColumnNames="ACCOUNTID" referencedTableName="ACCOUNT" validate="true"/> <addForeignKeyConstraint baseColumnNames="PARENTACCOUNTID" baseTableName="ACCOUNT" constraintName="DER1N_ACCOUNT__ACCOUNT__PARENT" deferrable="false" initiallyDeferred="false" onDelete="RESTRICT" onUpdate="RESTRICT" referencedColumnNames="ACCOUNTID" referencedTableName="ACCOUNT" validate="true"/>
</changeSet> </changeSet>
<changeSet author="a_LAB01_e85d8801c" id="fk-account-619-136"> <changeSet author="a_LAB01_e85d8801c" id="fk-account-620-136">
<addForeignKeyConstraint baseColumnNames="PRIMARYCONTACTID" baseTableName="ACCOUNT" constraintName="DER1N_ACCOUNT__CONTACT__PRIMAR" deferrable="false" initiallyDeferred="false" onDelete="RESTRICT" onUpdate="RESTRICT" referencedColumnNames="CONTACTID" referencedTableName="CONTACT" validate="true"/> <addForeignKeyConstraint baseColumnNames="PRIMARYCONTACTID" baseTableName="ACCOUNT" constraintName="DER1N_ACCOUNT__CONTACT__PRIMAR" deferrable="false" initiallyDeferred="false" onDelete="RESTRICT" onUpdate="RESTRICT" referencedColumnNames="CONTACTID" referencedTableName="CONTACT" validate="true"/>
</changeSet> </changeSet>
<changeSet author="a_LAB01_e85d8801c" id="fk-account-619-137"> <changeSet author="a_LAB01_e85d8801c" id="fk-account-620-137">
<addForeignKeyConstraint baseColumnNames="PREFERREDEQUIPMENTID" baseTableName="ACCOUNT" constraintName="DER1N_ACCOUNT__EQUIPMENT__PREF" deferrable="false" initiallyDeferred="false" onDelete="RESTRICT" onUpdate="RESTRICT" referencedColumnNames="EQUIPMENTID" referencedTableName="EQUIPMENT" validate="true"/> <addForeignKeyConstraint baseColumnNames="PREFERREDEQUIPMENTID" baseTableName="ACCOUNT" constraintName="DER1N_ACCOUNT__EQUIPMENT__PREF" deferrable="false" initiallyDeferred="false" onDelete="RESTRICT" onUpdate="RESTRICT" referencedColumnNames="EQUIPMENTID" referencedTableName="EQUIPMENT" validate="true"/>
</changeSet> </changeSet>
<changeSet author="a_LAB01_e85d8801c" id="fk-account-619-138"> <changeSet author="a_LAB01_e85d8801c" id="fk-account-620-138">
<addForeignKeyConstraint baseColumnNames="ORIGINATINGLEADID" baseTableName="ACCOUNT" constraintName="DER1N_ACCOUNT__LEAD__ORIGINATI" deferrable="false" initiallyDeferred="false" onDelete="RESTRICT" onUpdate="RESTRICT" referencedColumnNames="LEADID" referencedTableName="LEAD" validate="true"/> <addForeignKeyConstraint baseColumnNames="ORIGINATINGLEADID" baseTableName="ACCOUNT" constraintName="DER1N_ACCOUNT__LEAD__ORIGINATI" deferrable="false" initiallyDeferred="false" onDelete="RESTRICT" onUpdate="RESTRICT" referencedColumnNames="LEADID" referencedTableName="LEAD" validate="true"/>
</changeSet> </changeSet>
<changeSet author="a_LAB01_e85d8801c" id="fk-account-619-139"> <changeSet author="a_LAB01_e85d8801c" id="fk-account-620-139">
<addForeignKeyConstraint baseColumnNames="DEFAULTPRICELEVELID" baseTableName="ACCOUNT" constraintName="DER1N_ACCOUNT__PRICELEVEL__DEF" deferrable="false" initiallyDeferred="false" onDelete="RESTRICT" onUpdate="RESTRICT" referencedColumnNames="PRICELEVELID" referencedTableName="PRICELEVEL" validate="true"/> <addForeignKeyConstraint baseColumnNames="DEFAULTPRICELEVELID" baseTableName="ACCOUNT" constraintName="DER1N_ACCOUNT__PRICELEVEL__DEF" deferrable="false" initiallyDeferred="false" onDelete="RESTRICT" onUpdate="RESTRICT" referencedColumnNames="PRICELEVELID" referencedTableName="PRICELEVEL" validate="true"/>
</changeSet> </changeSet>
<changeSet author="a_LAB01_e85d8801c" id="fk-account-619-140"> <changeSet author="a_LAB01_e85d8801c" id="fk-account-620-140">
<addForeignKeyConstraint baseColumnNames="PREFERREDSERVICEID" baseTableName="ACCOUNT" constraintName="DER1N_ACCOUNT__SERVICE__PREFER" deferrable="false" initiallyDeferred="false" onDelete="RESTRICT" onUpdate="RESTRICT" referencedColumnNames="SERVICEID" referencedTableName="SERVICE" validate="true"/> <addForeignKeyConstraint baseColumnNames="PREFERREDSERVICEID" baseTableName="ACCOUNT" constraintName="DER1N_ACCOUNT__SERVICE__PREFER" deferrable="false" initiallyDeferred="false" onDelete="RESTRICT" onUpdate="RESTRICT" referencedColumnNames="SERVICEID" referencedTableName="SERVICE" validate="true"/>
</changeSet> </changeSet>
<changeSet author="a_LAB01_e85d8801c" id="fk-account-619-141"> <changeSet author="a_LAB01_e85d8801c" id="fk-account-620-141">
<addForeignKeyConstraint baseColumnNames="SLAID" baseTableName="ACCOUNT" constraintName="DER1N_ACCOUNT__SLA__SLAID" deferrable="false" initiallyDeferred="false" onDelete="RESTRICT" onUpdate="RESTRICT" referencedColumnNames="SLAID" referencedTableName="SLA" validate="true"/> <addForeignKeyConstraint baseColumnNames="SLAID" baseTableName="ACCOUNT" constraintName="DER1N_ACCOUNT__SLA__SLAID" deferrable="false" initiallyDeferred="false" onDelete="RESTRICT" onUpdate="RESTRICT" referencedColumnNames="SLAID" referencedTableName="SLA" validate="true"/>
</changeSet> </changeSet>
<changeSet author="a_LAB01_e85d8801c" id="fk-account-619-142"> <changeSet author="a_LAB01_e85d8801c" id="fk-account-620-142">
<addForeignKeyConstraint baseColumnNames="TERRITORYID" baseTableName="ACCOUNT" constraintName="DER1N_ACCOUNT__TERRITORY__TERR" deferrable="false" initiallyDeferred="false" onDelete="RESTRICT" onUpdate="RESTRICT" referencedColumnNames="TERRITORYID" referencedTableName="TERRITORY" validate="true"/> <addForeignKeyConstraint baseColumnNames="TERRITORYID" baseTableName="ACCOUNT" constraintName="DER1N_ACCOUNT__TERRITORY__TERR" deferrable="false" initiallyDeferred="false" onDelete="RESTRICT" onUpdate="RESTRICT" referencedColumnNames="TERRITORYID" referencedTableName="TERRITORY" validate="true"/>
</changeSet> </changeSet>
<changeSet author="a_LAB01_e85d8801c" id="fk-account-619-143"> <changeSet author="a_LAB01_e85d8801c" id="fk-account-620-143">
<addForeignKeyConstraint baseColumnNames="TRANSACTIONCURRENCYID" baseTableName="ACCOUNT" constraintName="DER1N_ACCOUNT__TRANSACTIONCURR" deferrable="false" initiallyDeferred="false" onDelete="RESTRICT" onUpdate="RESTRICT" referencedColumnNames="TRANSACTIONCURRENCYID" referencedTableName="TRANSACTIONCURRENCY" validate="true"/> <addForeignKeyConstraint baseColumnNames="TRANSACTIONCURRENCYID" baseTableName="ACCOUNT" constraintName="DER1N_ACCOUNT__TRANSACTIONCURR" deferrable="false" initiallyDeferred="false" onDelete="RESTRICT" onUpdate="RESTRICT" referencedColumnNames="TRANSACTIONCURRENCYID" referencedTableName="TRANSACTIONCURRENCY" validate="true"/>
</changeSet> </changeSet>
<!--输出实体[ACTIVITYMIMEATTACHMENT]外键关系 --> <!--输出实体[ACTIVITYMIMEATTACHMENT]外键关系 -->
...@@ -11449,16 +11449,16 @@ ...@@ -11449,16 +11449,16 @@
<addForeignKeyConstraint baseColumnNames="UOMID" baseTableName="INVOICEDETAIL" constraintName="DER1N_INVOICEDETAIL__UOM__UOMI" deferrable="false" initiallyDeferred="false" onDelete="RESTRICT" onUpdate="RESTRICT" referencedColumnNames="UOMID" referencedTableName="UOM" validate="true"/> <addForeignKeyConstraint baseColumnNames="UOMID" baseTableName="INVOICEDETAIL" constraintName="DER1N_INVOICEDETAIL__UOM__UOMI" deferrable="false" initiallyDeferred="false" onDelete="RESTRICT" onUpdate="RESTRICT" referencedColumnNames="UOMID" referencedTableName="UOM" validate="true"/>
</changeSet> </changeSet>
<!--输出实体[KNOWLEDGEARTICLE]外键关系 --> <!--输出实体[KNOWLEDGEARTICLE]外键关系 -->
<changeSet author="a_LAB01_e85d8801c" id="fk-knowledgearticle-51-292"> <changeSet author="a_LAB01_e85d8801c" id="fk-knowledgearticle-65-292">
<addForeignKeyConstraint baseColumnNames="PARENTARTICLECONTENTID" baseTableName="KNOWLEDGEARTICLE" constraintName="DER1N_KNOWLEDGEARTICLE__KNOWLE" deferrable="false" initiallyDeferred="false" onDelete="RESTRICT" onUpdate="RESTRICT" referencedColumnNames="KNOWLEDGEARTICLEID" referencedTableName="KNOWLEDGEARTICLE" validate="true"/> <addForeignKeyConstraint baseColumnNames="PARENTARTICLECONTENTID" baseTableName="KNOWLEDGEARTICLE" constraintName="DER1N_KNOWLEDGEARTICLE__KNOWLE" deferrable="false" initiallyDeferred="false" onDelete="RESTRICT" onUpdate="RESTRICT" referencedColumnNames="KNOWLEDGEARTICLEID" referencedTableName="KNOWLEDGEARTICLE" validate="true"/>
</changeSet> </changeSet>
<changeSet author="a_LAB01_e85d8801c" id="fk-knowledgearticle-51-295"> <changeSet author="a_LAB01_e85d8801c" id="fk-knowledgearticle-65-295">
<addForeignKeyConstraint baseColumnNames="LANGUAGELOCALEID" baseTableName="KNOWLEDGEARTICLE" constraintName="DER1N_KNOWLEDGEARTICLE__LANGUA" deferrable="false" initiallyDeferred="false" onDelete="RESTRICT" onUpdate="RESTRICT" referencedColumnNames="LANGUAGELOCALEID" referencedTableName="LANGUAGELOCALE" validate="true"/> <addForeignKeyConstraint baseColumnNames="LANGUAGELOCALEID" baseTableName="KNOWLEDGEARTICLE" constraintName="DER1N_KNOWLEDGEARTICLE__LANGUA" deferrable="false" initiallyDeferred="false" onDelete="RESTRICT" onUpdate="RESTRICT" referencedColumnNames="LANGUAGELOCALEID" referencedTableName="LANGUAGELOCALE" validate="true"/>
</changeSet> </changeSet>
<changeSet author="a_LAB01_e85d8801c" id="fk-knowledgearticle-51-296"> <changeSet author="a_LAB01_e85d8801c" id="fk-knowledgearticle-65-296">
<addForeignKeyConstraint baseColumnNames="SUBJECTID" baseTableName="KNOWLEDGEARTICLE" constraintName="DER1N_KNOWLEDGEARTICLE__SUBJEC" deferrable="false" initiallyDeferred="false" onDelete="RESTRICT" onUpdate="RESTRICT" referencedColumnNames="SUBJECTID" referencedTableName="SUBJECT" validate="true"/> <addForeignKeyConstraint baseColumnNames="SUBJECTID" baseTableName="KNOWLEDGEARTICLE" constraintName="DER1N_KNOWLEDGEARTICLE__SUBJEC" deferrable="false" initiallyDeferred="false" onDelete="RESTRICT" onUpdate="RESTRICT" referencedColumnNames="SUBJECTID" referencedTableName="SUBJECT" validate="true"/>
</changeSet> </changeSet>
<changeSet author="a_LAB01_e85d8801c" id="fk-knowledgearticle-51-297"> <changeSet author="a_LAB01_e85d8801c" id="fk-knowledgearticle-65-297">
<addForeignKeyConstraint baseColumnNames="TRANSACTIONCURRENCYID" baseTableName="KNOWLEDGEARTICLE" constraintName="DER1N_KNOWLEDGEARTICLE__TRANSA" deferrable="false" initiallyDeferred="false" onDelete="RESTRICT" onUpdate="RESTRICT" referencedColumnNames="TRANSACTIONCURRENCYID" referencedTableName="TRANSACTIONCURRENCY" validate="true"/> <addForeignKeyConstraint baseColumnNames="TRANSACTIONCURRENCYID" baseTableName="KNOWLEDGEARTICLE" constraintName="DER1N_KNOWLEDGEARTICLE__TRANSA" deferrable="false" initiallyDeferred="false" onDelete="RESTRICT" onUpdate="RESTRICT" referencedColumnNames="TRANSACTIONCURRENCYID" referencedTableName="TRANSACTIONCURRENCY" validate="true"/>
</changeSet> </changeSet>
<!--输出实体[KNOWLEDGEARTICLEINCIDENT]外键关系 --> <!--输出实体[KNOWLEDGEARTICLEINCIDENT]外键关系 -->
...@@ -11622,22 +11622,22 @@ ...@@ -11622,22 +11622,22 @@
<addForeignKeyConstraint baseColumnNames="TRANSACTIONCURRENCYID" baseTableName="PRICELEVEL" constraintName="DER1N_PRICELEVEL__TRANSACTIONC" deferrable="false" initiallyDeferred="false" onDelete="RESTRICT" onUpdate="RESTRICT" referencedColumnNames="TRANSACTIONCURRENCYID" referencedTableName="TRANSACTIONCURRENCY" validate="true"/> <addForeignKeyConstraint baseColumnNames="TRANSACTIONCURRENCYID" baseTableName="PRICELEVEL" constraintName="DER1N_PRICELEVEL__TRANSACTIONC" deferrable="false" initiallyDeferred="false" onDelete="RESTRICT" onUpdate="RESTRICT" referencedColumnNames="TRANSACTIONCURRENCYID" referencedTableName="TRANSACTIONCURRENCY" validate="true"/>
</changeSet> </changeSet>
<!--输出实体[PRODUCT]外键关系 --> <!--输出实体[PRODUCT]外键关系 -->
<changeSet author="a_LAB01_e85d8801c" id="fk-product-165-345"> <changeSet author="a_LAB01_e85d8801c" id="fk-product-167-345">
<addForeignKeyConstraint baseColumnNames="PRICELEVELID" baseTableName="PRODUCT" constraintName="DER1N_PRODUCT__PRICELEVEL__PRI" deferrable="false" initiallyDeferred="false" onDelete="RESTRICT" onUpdate="RESTRICT" referencedColumnNames="PRICELEVELID" referencedTableName="PRICELEVEL" validate="true"/> <addForeignKeyConstraint baseColumnNames="PRICELEVELID" baseTableName="PRODUCT" constraintName="DER1N_PRODUCT__PRICELEVEL__PRI" deferrable="false" initiallyDeferred="false" onDelete="RESTRICT" onUpdate="RESTRICT" referencedColumnNames="PRICELEVELID" referencedTableName="PRICELEVEL" validate="true"/>
</changeSet> </changeSet>
<changeSet author="a_LAB01_e85d8801c" id="fk-product-165-346"> <changeSet author="a_LAB01_e85d8801c" id="fk-product-167-346">
<addForeignKeyConstraint baseColumnNames="PARENTPRODUCTID" baseTableName="PRODUCT" constraintName="DER1N_PRODUCT__PRODUCT__PARENT" deferrable="false" initiallyDeferred="false" onDelete="RESTRICT" onUpdate="RESTRICT" referencedColumnNames="PRODUCTID" referencedTableName="PRODUCT" validate="true"/> <addForeignKeyConstraint baseColumnNames="PARENTPRODUCTID" baseTableName="PRODUCT" constraintName="DER1N_PRODUCT__PRODUCT__PARENT" deferrable="false" initiallyDeferred="false" onDelete="RESTRICT" onUpdate="RESTRICT" referencedColumnNames="PRODUCTID" referencedTableName="PRODUCT" validate="true"/>
</changeSet> </changeSet>
<changeSet author="a_LAB01_e85d8801c" id="fk-product-165-347"> <changeSet author="a_LAB01_e85d8801c" id="fk-product-167-347">
<addForeignKeyConstraint baseColumnNames="SUBJECTID" baseTableName="PRODUCT" constraintName="DER1N_PRODUCT__SUBJECT__SUBJEC" deferrable="false" initiallyDeferred="false" onDelete="RESTRICT" onUpdate="RESTRICT" referencedColumnNames="SUBJECTID" referencedTableName="SUBJECT" validate="true"/> <addForeignKeyConstraint baseColumnNames="SUBJECTID" baseTableName="PRODUCT" constraintName="DER1N_PRODUCT__SUBJECT__SUBJEC" deferrable="false" initiallyDeferred="false" onDelete="RESTRICT" onUpdate="RESTRICT" referencedColumnNames="SUBJECTID" referencedTableName="SUBJECT" validate="true"/>
</changeSet> </changeSet>
<changeSet author="a_LAB01_e85d8801c" id="fk-product-165-348"> <changeSet author="a_LAB01_e85d8801c" id="fk-product-167-348">
<addForeignKeyConstraint baseColumnNames="TRANSACTIONCURRENCYID" baseTableName="PRODUCT" constraintName="DER1N_PRODUCT__TRANSACTIONCURR" deferrable="false" initiallyDeferred="false" onDelete="RESTRICT" onUpdate="RESTRICT" referencedColumnNames="TRANSACTIONCURRENCYID" referencedTableName="TRANSACTIONCURRENCY" validate="true"/> <addForeignKeyConstraint baseColumnNames="TRANSACTIONCURRENCYID" baseTableName="PRODUCT" constraintName="DER1N_PRODUCT__TRANSACTIONCURR" deferrable="false" initiallyDeferred="false" onDelete="RESTRICT" onUpdate="RESTRICT" referencedColumnNames="TRANSACTIONCURRENCYID" referencedTableName="TRANSACTIONCURRENCY" validate="true"/>
</changeSet> </changeSet>
<changeSet author="a_LAB01_e85d8801c" id="fk-product-165-349"> <changeSet author="a_LAB01_e85d8801c" id="fk-product-167-349">
<addForeignKeyConstraint baseColumnNames="DEFAULTUOMSCHEDULEID" baseTableName="PRODUCT" constraintName="DER1N_PRODUCT__UOMSCHEDULE__DE" deferrable="false" initiallyDeferred="false" onDelete="RESTRICT" onUpdate="RESTRICT" referencedColumnNames="UOMSCHEDULEID" referencedTableName="UOMSCHEDULE" validate="true"/> <addForeignKeyConstraint baseColumnNames="DEFAULTUOMSCHEDULEID" baseTableName="PRODUCT" constraintName="DER1N_PRODUCT__UOMSCHEDULE__DE" deferrable="false" initiallyDeferred="false" onDelete="RESTRICT" onUpdate="RESTRICT" referencedColumnNames="UOMSCHEDULEID" referencedTableName="UOMSCHEDULE" validate="true"/>
</changeSet> </changeSet>
<changeSet author="a_LAB01_e85d8801c" id="fk-product-165-350"> <changeSet author="a_LAB01_e85d8801c" id="fk-product-167-350">
<addForeignKeyConstraint baseColumnNames="DEFAULTUOMID" baseTableName="PRODUCT" constraintName="DER1N_PRODUCT__UOM__DEFAULTUOM" deferrable="false" initiallyDeferred="false" onDelete="RESTRICT" onUpdate="RESTRICT" referencedColumnNames="UOMID" referencedTableName="UOM" validate="true"/> <addForeignKeyConstraint baseColumnNames="DEFAULTUOMID" baseTableName="PRODUCT" constraintName="DER1N_PRODUCT__UOM__DEFAULTUOM" deferrable="false" initiallyDeferred="false" onDelete="RESTRICT" onUpdate="RESTRICT" referencedColumnNames="UOMID" referencedTableName="UOM" validate="true"/>
</changeSet> </changeSet>
<!--输出实体[PRODUCTASSOCIATION]外键关系 --> <!--输出实体[PRODUCTASSOCIATION]外键关系 -->
......
...@@ -140,6 +140,14 @@ ...@@ -140,6 +140,14 @@
"datascope":[{"id":"all","name":"全部数据"}, {"id":"createman","name":"创建人"}] "datascope":[{"id":"all","name":"全部数据"}, {"id":"createman","name":"创建人"}]
} }
, { , {
"dename":"LanguageLocale",
"delogicname":"语言",
"sysmoudle":{"id":"BASE","name":"基础"},
"dedataset":[{"id":"Default" , "name":"DEFAULT"}],
"deaction":[{"id":"Create" , "name":"Create" , "type":"BUILTIN" },{"id":"Update" , "name":"Update" , "type":"BUILTIN" },{"id":"Remove" , "name":"Remove" , "type":"BUILTIN" },{"id":"Get" , "name":"Get" , "type":"BUILTIN" },{"id":"GetDraft" , "name":"GetDraft" , "type":"BUILTIN" },{"id":"CheckKey" , "name":"CheckKey" , "type":"BUILTIN" },{"id":"Save" , "name":"Save" , "type":"BUILTIN" }],
"datascope":[{"id":"all","name":"全部数据"}, {"id":"createman","name":"创建人"}]
}
, {
"dename":"Incident", "dename":"Incident",
"delogicname":"案例", "delogicname":"案例",
"sysmoudle":{"id":"SERVICE","name":"服务"}, "sysmoudle":{"id":"SERVICE","name":"服务"},
......
...@@ -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 /businesscentral-provider-centralapi.jar java ${JAVA_OPTS} -Djava.security.egd=file:/dev/./urandom -jar /businesscentral-provider-centralapi.jar
EXPOSE 8081 EXPOSE 10310
ADD businesscentral-provider-centralapi.jar /businesscentral-provider-centralapi.jar ADD businesscentral-provider-centralapi.jar /businesscentral-provider-centralapi.jar
...@@ -3,9 +3,23 @@ services: ...@@ -3,9 +3,23 @@ services:
businesscentral-provider-centralapi: businesscentral-provider-centralapi:
image: registry.cn-shanghai.aliyuncs.com/ibizsys/businesscentral-provider-centralapi:latest image: registry.cn-shanghai.aliyuncs.com/ibizsys/businesscentral-provider-centralapi:latest
ports: ports:
- "8081:8081" - "10310:10310"
networks: networks:
- agent_network - agent_network
environment:
- SPRING_CLOUD_NACOS_DISCOVERY_IP=172.16.240.110
- SERVER_PORT=10310
- SPRING_CLOUD_NACOS_DISCOVERY_SERVER-ADDR=172.16.240.110:8848
- SPRING_REDIS_HOST=172.16.240.110
- SPRING_REDIS_PORT=6379
- SPRING_REDIS_DATABASE=0
- SPRING_DATASOURCE_USERNAME=a_LAB01_e85d8801c
- SPRING_DATASOURCE_PASSWORD=b1@@@772
- SPRING_DATASOURCE_URL=jdbc:mysql://172.16.186.185:3306/a_LAB01_e85d8801c?autoReconnect=true&useUnicode=true&characterEncoding=UTF-8&useOldAliasMetadataBehavior=true
- SPRING_DATASOURCE_DRIVER-CLASS-NAME=com.mysql.jdbc.Driver
- SPRING_DATASOURCE_DEFAULTSCHEMA=a_LAB01_e85d8801c
- CAS=https://passport.ibizlab.cn
- NACOS=172.16.240.110:8848
deploy: deploy:
resources: resources:
limits: limits:
......
package cn.ibizlab.businesscentral.centralapi.dto;
import java.sql.Timestamp;
import java.util.ArrayList;
import java.util.List;
import java.math.BigInteger;
import java.util.Map;
import java.util.HashMap;
import java.io.Serializable;
import java.math.BigDecimal;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.alibaba.fastjson.annotation.JSONField;
import cn.ibizlab.businesscentral.util.domain.DTOBase;
import lombok.Data;
/**
* 服务DTO对象[LanguageLocaleDTO]
*/
@Data
public class LanguageLocaleDTO extends DTOBase implements Serializable {
private static final long serialVersionUID = 1L;
/**
* 属性 [CREATEDATE]
*
*/
@JsonFormat(pattern="yyyy-MM-dd HH:mm:ss", locale = "zh" , timezone="GMT+8")
@JSONField(name = "createdate" , format="yyyy-MM-dd HH:mm:ss")
@JsonProperty("createdate")
private Timestamp createdate;
/**
* 属性 [LANGUAGELOCALEID]
*
*/
@JSONField(name = "languagelocaleid")
@JsonProperty("languagelocaleid")
private String languagelocaleid;
/**
* 属性 [LANGUAGELOCALENAME]
*
*/
@JSONField(name = "languagelocalename")
@JsonProperty("languagelocalename")
private String languagelocalename;
/**
* 属性 [LOCALEID]
*
*/
@JSONField(name = "localeid")
@JsonProperty("localeid")
private Integer localeid;
/**
* 属性 [LANGUAGE]
*
*/
@JSONField(name = "language")
@JsonProperty("language")
private String language;
/**
* 属性 [VERSIONNUMBER]
*
*/
@JSONField(name = "versionnumber")
@JsonProperty("versionnumber")
private BigInteger versionnumber;
/**
* 属性 [UPDATEMAN]
*
*/
@JSONField(name = "updateman")
@JsonProperty("updateman")
private String updateman;
/**
* 属性 [UPDATEDATE]
*
*/
@JsonFormat(pattern="yyyy-MM-dd HH:mm:ss", locale = "zh" , timezone="GMT+8")
@JSONField(name = "updatedate" , format="yyyy-MM-dd HH:mm:ss")
@JsonProperty("updatedate")
private Timestamp updatedate;
/**
* 属性 [CREATEMAN]
*
*/
@JSONField(name = "createman")
@JsonProperty("createman")
private String createman;
/**
* 属性 [CODE]
*
*/
@JSONField(name = "code")
@JsonProperty("code")
private String code;
/**
* 属性 [STATUSCODE]
*
*/
@JSONField(name = "statuscode")
@JsonProperty("statuscode")
private Integer statuscode;
/**
* 属性 [STATECODE]
*
*/
@JSONField(name = "statecode")
@JsonProperty("statecode")
private Integer statecode;
/**
* 属性 [REGION]
*
*/
@JSONField(name = "region")
@JsonProperty("region")
private String region;
/**
* 设置 [LANGUAGELOCALENAME]
*/
public void setLanguagelocalename(String languagelocalename){
this.languagelocalename = languagelocalename ;
this.modify("languagelocalename",languagelocalename);
}
/**
* 设置 [LOCALEID]
*/
public void setLocaleid(Integer localeid){
this.localeid = localeid ;
this.modify("localeid",localeid);
}
/**
* 设置 [LANGUAGE]
*/
public void setLanguage(String language){
this.language = language ;
this.modify("language",language);
}
/**
* 设置 [VERSIONNUMBER]
*/
public void setVersionnumber(BigInteger versionnumber){
this.versionnumber = versionnumber ;
this.modify("versionnumber",versionnumber);
}
/**
* 设置 [CODE]
*/
public void setCode(String code){
this.code = code ;
this.modify("code",code);
}
/**
* 设置 [STATUSCODE]
*/
public void setStatuscode(Integer statuscode){
this.statuscode = statuscode ;
this.modify("statuscode",statuscode);
}
/**
* 设置 [STATECODE]
*/
public void setStatecode(Integer statecode){
this.statecode = statecode ;
this.modify("statecode",statecode);
}
/**
* 设置 [REGION]
*/
public void setRegion(String region){
this.region = region ;
this.modify("region",region);
}
}
package cn.ibizlab.businesscentral.centralapi.mapping;
import org.mapstruct.*;
import cn.ibizlab.businesscentral.core.base.domain.LanguageLocale;
import cn.ibizlab.businesscentral.centralapi.dto.LanguageLocaleDTO;
import cn.ibizlab.businesscentral.util.domain.MappingBase;
import org.mapstruct.factory.Mappers;
@Mapper(componentModel = "spring", uses = {},implementationName="CentralApiLanguageLocaleMapping",
nullValuePropertyMappingStrategy = NullValuePropertyMappingStrategy.IGNORE,
nullValueCheckStrategy = NullValueCheckStrategy.ALWAYS)
public interface LanguageLocaleMapping extends MappingBase<LanguageLocaleDTO, LanguageLocale> {
}
package cn.ibizlab.businesscentral.centralapi.rest;
import java.sql.Timestamp;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;
import java.math.BigInteger;
import java.util.HashMap;
import lombok.extern.slf4j.Slf4j;
import com.alibaba.fastjson.JSONObject;
import javax.servlet.ServletRequest;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.cglib.beans.BeanCopier;
import org.springframework.transaction.annotation.Transactional;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.*;
import org.springframework.http.HttpStatus;
import org.springframework.data.domain.PageRequest;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.PageImpl;
import org.springframework.data.domain.Pageable;
import org.springframework.util.StringUtils;
import org.springframework.context.annotation.Lazy;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.security.access.prepost.PostAuthorize;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import io.swagger.annotations.ApiResponse;
import io.swagger.annotations.ApiResponses;
import cn.ibizlab.businesscentral.centralapi.dto.*;
import cn.ibizlab.businesscentral.centralapi.mapping.*;
import cn.ibizlab.businesscentral.core.base.domain.LanguageLocale;
import cn.ibizlab.businesscentral.core.base.service.ILanguageLocaleService;
import cn.ibizlab.businesscentral.core.base.filter.LanguageLocaleSearchContext;
import cn.ibizlab.businesscentral.util.annotation.VersionCheck;
@Slf4j
@Api(tags = {"语言" })
@RestController("CentralApi-languagelocale")
@RequestMapping("")
public class LanguageLocaleResource {
@Autowired
public ILanguageLocaleService languagelocaleService;
@Autowired
@Lazy
public LanguageLocaleMapping languagelocaleMapping;
@PreAuthorize("hasPermission(this.languagelocaleMapping.toDomain(#languagelocaledto),'iBizBusinessCentral-LanguageLocale-Create')")
@ApiOperation(value = "新建语言", tags = {"语言" }, notes = "新建语言")
@RequestMapping(method = RequestMethod.POST, value = "/languagelocales")
@Transactional
public ResponseEntity<LanguageLocaleDTO> create(@RequestBody LanguageLocaleDTO languagelocaledto) {
LanguageLocale domain = languagelocaleMapping.toDomain(languagelocaledto);
languagelocaleService.create(domain);
LanguageLocaleDTO dto = languagelocaleMapping.toDto(domain);
return ResponseEntity.status(HttpStatus.OK).body(dto);
}
@PreAuthorize("hasPermission(this.languagelocaleMapping.toDomain(#languagelocaledtos),'iBizBusinessCentral-LanguageLocale-Create')")
@ApiOperation(value = "批量新建语言", tags = {"语言" }, notes = "批量新建语言")
@RequestMapping(method = RequestMethod.POST, value = "/languagelocales/batch")
public ResponseEntity<Boolean> createBatch(@RequestBody List<LanguageLocaleDTO> languagelocaledtos) {
languagelocaleService.createBatch(languagelocaleMapping.toDomain(languagelocaledtos));
return ResponseEntity.status(HttpStatus.OK).body(true);
}
@VersionCheck(entity = "languagelocale" , versionfield = "updatedate")
@PreAuthorize("hasPermission(this.languagelocaleService.get(#languagelocale_id),'iBizBusinessCentral-LanguageLocale-Update')")
@ApiOperation(value = "更新语言", tags = {"语言" }, notes = "更新语言")
@RequestMapping(method = RequestMethod.PUT, value = "/languagelocales/{languagelocale_id}")
@Transactional
public ResponseEntity<LanguageLocaleDTO> update(@PathVariable("languagelocale_id") String languagelocale_id, @RequestBody LanguageLocaleDTO languagelocaledto) {
LanguageLocale domain = languagelocaleMapping.toDomain(languagelocaledto);
domain .setLanguagelocaleid(languagelocale_id);
languagelocaleService.update(domain );
LanguageLocaleDTO dto = languagelocaleMapping.toDto(domain );
return ResponseEntity.status(HttpStatus.OK).body(dto);
}
@PreAuthorize("hasPermission(this.languagelocaleService.getLanguagelocaleByEntities(this.languagelocaleMapping.toDomain(#languagelocaledtos)),'iBizBusinessCentral-LanguageLocale-Update')")
@ApiOperation(value = "批量更新语言", tags = {"语言" }, notes = "批量更新语言")
@RequestMapping(method = RequestMethod.PUT, value = "/languagelocales/batch")
public ResponseEntity<Boolean> updateBatch(@RequestBody List<LanguageLocaleDTO> languagelocaledtos) {
languagelocaleService.updateBatch(languagelocaleMapping.toDomain(languagelocaledtos));
return ResponseEntity.status(HttpStatus.OK).body(true);
}
@PreAuthorize("hasPermission(this.languagelocaleService.get(#languagelocale_id),'iBizBusinessCentral-LanguageLocale-Remove')")
@ApiOperation(value = "删除语言", tags = {"语言" }, notes = "删除语言")
@RequestMapping(method = RequestMethod.DELETE, value = "/languagelocales/{languagelocale_id}")
@Transactional
public ResponseEntity<Boolean> remove(@PathVariable("languagelocale_id") String languagelocale_id) {
return ResponseEntity.status(HttpStatus.OK).body(languagelocaleService.remove(languagelocale_id));
}
@PreAuthorize("hasPermission(this.languagelocaleService.getLanguagelocaleByIds(#ids),'iBizBusinessCentral-LanguageLocale-Remove')")
@ApiOperation(value = "批量删除语言", tags = {"语言" }, notes = "批量删除语言")
@RequestMapping(method = RequestMethod.DELETE, value = "/languagelocales/batch")
public ResponseEntity<Boolean> removeBatch(@RequestBody List<String> ids) {
languagelocaleService.removeBatch(ids);
return ResponseEntity.status(HttpStatus.OK).body(true);
}
@PostAuthorize("hasPermission(this.languagelocaleMapping.toDomain(returnObject.body),'iBizBusinessCentral-LanguageLocale-Get')")
@ApiOperation(value = "获取语言", tags = {"语言" }, notes = "获取语言")
@RequestMapping(method = RequestMethod.GET, value = "/languagelocales/{languagelocale_id}")
public ResponseEntity<LanguageLocaleDTO> get(@PathVariable("languagelocale_id") String languagelocale_id) {
LanguageLocale domain = languagelocaleService.get(languagelocale_id);
LanguageLocaleDTO dto = languagelocaleMapping.toDto(domain);
return ResponseEntity.status(HttpStatus.OK).body(dto);
}
@ApiOperation(value = "获取语言草稿", tags = {"语言" }, notes = "获取语言草稿")
@RequestMapping(method = RequestMethod.GET, value = "/languagelocales/getdraft")
public ResponseEntity<LanguageLocaleDTO> getDraft() {
return ResponseEntity.status(HttpStatus.OK).body(languagelocaleMapping.toDto(languagelocaleService.getDraft(new LanguageLocale())));
}
@ApiOperation(value = "检查语言", tags = {"语言" }, notes = "检查语言")
@RequestMapping(method = RequestMethod.POST, value = "/languagelocales/checkkey")
public ResponseEntity<Boolean> checkKey(@RequestBody LanguageLocaleDTO languagelocaledto) {
return ResponseEntity.status(HttpStatus.OK).body(languagelocaleService.checkKey(languagelocaleMapping.toDomain(languagelocaledto)));
}
@PreAuthorize("hasPermission(this.languagelocaleMapping.toDomain(#languagelocaledto),'iBizBusinessCentral-LanguageLocale-Save')")
@ApiOperation(value = "保存语言", tags = {"语言" }, notes = "保存语言")
@RequestMapping(method = RequestMethod.POST, value = "/languagelocales/save")
public ResponseEntity<Boolean> save(@RequestBody LanguageLocaleDTO languagelocaledto) {
return ResponseEntity.status(HttpStatus.OK).body(languagelocaleService.save(languagelocaleMapping.toDomain(languagelocaledto)));
}
@PreAuthorize("hasPermission(this.languagelocaleMapping.toDomain(#languagelocaledtos),'iBizBusinessCentral-LanguageLocale-Save')")
@ApiOperation(value = "批量保存语言", tags = {"语言" }, notes = "批量保存语言")
@RequestMapping(method = RequestMethod.POST, value = "/languagelocales/savebatch")
public ResponseEntity<Boolean> saveBatch(@RequestBody List<LanguageLocaleDTO> languagelocaledtos) {
languagelocaleService.saveBatch(languagelocaleMapping.toDomain(languagelocaledtos));
return ResponseEntity.status(HttpStatus.OK).body(true);
}
@PreAuthorize("hasAnyAuthority('ROLE_SUPERADMIN','iBizBusinessCentral-LanguageLocale-searchDefault-all') and hasPermission(#context,'iBizBusinessCentral-LanguageLocale-Get')")
@ApiOperation(value = "获取DEFAULT", tags = {"语言" } ,notes = "获取DEFAULT")
@RequestMapping(method= RequestMethod.GET , value="/languagelocales/fetchdefault")
public ResponseEntity<List<LanguageLocaleDTO>> fetchDefault(LanguageLocaleSearchContext context) {
Page<LanguageLocale> domains = languagelocaleService.searchDefault(context) ;
List<LanguageLocaleDTO> list = languagelocaleMapping.toDto(domains.getContent());
return ResponseEntity.status(HttpStatus.OK)
.header("x-page", String.valueOf(context.getPageable().getPageNumber()))
.header("x-per-page", String.valueOf(context.getPageable().getPageSize()))
.header("x-total", String.valueOf(domains.getTotalElements()))
.body(list);
}
@PreAuthorize("hasAnyAuthority('ROLE_SUPERADMIN','iBizBusinessCentral-LanguageLocale-searchDefault-all') and hasPermission(#context,'iBizBusinessCentral-LanguageLocale-Get')")
@ApiOperation(value = "查询DEFAULT", tags = {"语言" } ,notes = "查询DEFAULT")
@RequestMapping(method= RequestMethod.POST , value="/languagelocales/searchdefault")
public ResponseEntity<Page<LanguageLocaleDTO>> searchDefault(@RequestBody LanguageLocaleSearchContext context) {
Page<LanguageLocale> domains = languagelocaleService.searchDefault(context) ;
return ResponseEntity.status(HttpStatus.OK)
.body(new PageImpl(languagelocaleMapping.toDto(domains.getContent()), context.getPageable(), domains.getTotalElements()));
}
}
...@@ -37,11 +37,11 @@ ...@@ -37,11 +37,11 @@
git clone -b master $para2 ibizbusinesscentral/ git clone -b master $para2 ibizbusinesscentral/
export NODE_OPTIONS=--max-old-space-size=4096 export NODE_OPTIONS=--max-old-space-size=4096
cd ibizbusinesscentral/ cd ibizbusinesscentral/
mvn clean package -Pbusinesscentral mvn clean package -Pcentralapi
cd businesscentral-app/businesscentral-app-businesscentral cd businesscentral-provider/businesscentral-provider-centralapi
mvn -Pbusinesscentral docker:build mvn -Pcentralapi docker:build
mvn -Pbusinesscentral docker:push mvn -Pcentralapi docker:push
docker -H $para1 stack deploy --compose-file=src/main/docker/businesscentral-app-businesscentral.yaml iBizEE --with-registry-auth docker -H $para1 stack deploy --compose-file=src/main/docker/businesscentral-provider-centralapi.yaml iBizEE --with-registry-auth
</command> </command>
</hudson.tasks.Shell> </hudson.tasks.Shell>
</builders> </builders>
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册