提交 2306cd23 编写于 作者: ibizdev's avatar ibizdev

xignzi006 部署微服务接口

上级 7cb0d8a6
...@@ -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:
......
...@@ -63,14 +63,6 @@ public class KnowledgeArticle extends EntityMP implements Serializable { ...@@ -63,14 +63,6 @@ public class KnowledgeArticle extends EntityMP implements Serializable {
@JSONField(name = "statuscode") @JSONField(name = "statuscode")
@JsonProperty("statuscode") @JsonProperty("statuscode")
private Integer statuscode; private Integer statuscode;
/**
* 主要文章
*/
@DEField(defaultValue = "0")
@TableField(value = "primary")
@JSONField(name = "primary")
@JsonProperty("primary")
private Integer primary;
/** /**
* 过期状态 ID * 过期状态 ID
*/ */
...@@ -528,6 +520,14 @@ public class KnowledgeArticle extends EntityMP implements Serializable { ...@@ -528,6 +520,14 @@ public class KnowledgeArticle extends EntityMP implements Serializable {
@JSONField(name = "transactioncurrencyname") @JSONField(name = "transactioncurrencyname")
@JsonProperty("transactioncurrencyname") @JsonProperty("transactioncurrencyname")
private String transactioncurrencyname; private String transactioncurrencyname;
/**
* 主要文章
*/
@DEField(defaultValue = "0")
@TableField(value = "isprimary")
@JSONField(name = "isprimary")
@JsonProperty("isprimary")
private Integer isprimary;
/** /**
* *
...@@ -613,14 +613,6 @@ public class KnowledgeArticle extends EntityMP implements Serializable { ...@@ -613,14 +613,6 @@ public class KnowledgeArticle extends EntityMP implements Serializable {
this.modify("statuscode",statuscode); this.modify("statuscode",statuscode);
} }
/**
* 设置 [主要文章]
*/
public void setPrimary(Integer primary){
this.primary = primary ;
this.modify("primary",primary);
}
/** /**
* 设置 [过期状态 ID] * 设置 [过期状态 ID]
*/ */
...@@ -1117,6 +1109,14 @@ public class KnowledgeArticle extends EntityMP implements Serializable { ...@@ -1117,6 +1109,14 @@ public class KnowledgeArticle extends EntityMP implements Serializable {
this.modify("transactioncurrencyname",transactioncurrencyname); this.modify("transactioncurrencyname",transactioncurrencyname);
} }
/**
* 设置 [主要文章]
*/
public void setIsprimary(Integer isprimary){
this.isprimary = isprimary ;
this.modify("isprimary",isprimary);
}
} }
......
...@@ -5488,7 +5488,7 @@ ...@@ -5488,7 +5488,7 @@
<!--输出实体[KNOWLEDGEARTICLE]数据结构 --> <!--输出实体[KNOWLEDGEARTICLE]数据结构 -->
<changeSet author="a_LAB01_e85d8801c" id="tab-knowledgearticle-47-65"> <changeSet author="a_LAB01_e85d8801c" id="tab-knowledgearticle-51-65">
<createTable tableName="KNOWLEDGEARTICLE"> <createTable tableName="KNOWLEDGEARTICLE">
<column name="KNOWLEDGEARTICLEVIEWS_DATE" remarks="" type="DATETIME"> <column name="KNOWLEDGEARTICLEVIEWS_DATE" remarks="" type="DATETIME">
</column> </column>
...@@ -5496,8 +5496,6 @@ ...@@ -5496,8 +5496,6 @@
</column> </column>
<column name="STATUSCODE" remarks="" type="INT"> <column name="STATUSCODE" remarks="" type="INT">
</column> </column>
<column name="PRIMARY" remarks="" type="INT">
</column>
<column name="EXPIRATIONSTATEID" remarks="" type="INT"> <column name="EXPIRATIONSTATEID" remarks="" type="INT">
</column> </column>
<column name="RATING_COUNT" remarks="" type="INT"> <column name="RATING_COUNT" remarks="" type="INT">
...@@ -5591,7 +5589,7 @@ ...@@ -5591,7 +5589,7 @@
</column> </column>
<column name="INTERNAL" remarks="" type="INT"> <column name="INTERNAL" remarks="" type="INT">
</column> </column>
<column name="TITLE" remarks="" type="TEXT(1048576)"> <column name="TITLE" remarks="" type="VARCHAR(2000)">
</column> </column>
<column name="UPDATECONTENT" remarks="" type="INT"> <column name="UPDATECONTENT" remarks="" type="INT">
</column> </column>
...@@ -5613,16 +5611,18 @@ ...@@ -5613,16 +5611,18 @@
</column> </column>
<column name="LANGUAGELOCALENAME" remarks="" type="VARCHAR(100)"> <column name="LANGUAGELOCALENAME" remarks="" type="VARCHAR(100)">
</column> </column>
<column name="PARENTARTICLECONTENTNAME" remarks="" type="TEXT(1048576)"> <column name="PARENTARTICLECONTENTNAME" remarks="" type="VARCHAR(2000)">
</column> </column>
<column name="PREVIOUSARTICLECONTENTNAME" remarks="" type="TEXT(1048576)"> <column name="PREVIOUSARTICLECONTENTNAME" remarks="" type="VARCHAR(2000)">
</column> </column>
<column name="ROOTARTICLENAME" remarks="" type="TEXT(1048576)"> <column name="ROOTARTICLENAME" remarks="" type="VARCHAR(2000)">
</column> </column>
<column name="SUBJECTNAME" remarks="" type="VARCHAR(500)"> <column name="SUBJECTNAME" remarks="" type="VARCHAR(500)">
</column> </column>
<column name="TRANSACTIONCURRENCYNAME" remarks="" type="VARCHAR(100)"> <column name="TRANSACTIONCURRENCYNAME" remarks="" type="VARCHAR(100)">
</column> </column>
<column name="ISPRIMARY" remarks="" type="INT">
</column>
</createTable> </createTable>
</changeSet> </changeSet>
...@@ -5673,7 +5673,7 @@ ...@@ -5673,7 +5673,7 @@
</column> </column>
<column name="INCIDENTNAME" remarks="" type="VARCHAR(200)"> <column name="INCIDENTNAME" remarks="" type="VARCHAR(200)">
</column> </column>
<column name="KNOWLEDGEARTICLENAME" remarks="" type="TEXT(1048576)"> <column name="KNOWLEDGEARTICLENAME" remarks="" type="VARCHAR(2000)">
</column> </column>
</createTable> </createTable>
</changeSet> </changeSet>
...@@ -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-47-292"> <changeSet author="a_LAB01_e85d8801c" id="fk-knowledgearticle-51-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-47-295"> <changeSet author="a_LAB01_e85d8801c" id="fk-knowledgearticle-51-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-47-296"> <changeSet author="a_LAB01_e85d8801c" id="fk-knowledgearticle-51-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-47-297"> <changeSet author="a_LAB01_e85d8801c" id="fk-knowledgearticle-51-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]外键关系 -->
......
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
<!--该方法用于重写mybatis中selectById方法,以实现查询逻辑属性--> <!--该方法用于重写mybatis中selectById方法,以实现查询逻辑属性-->
<select id="selectById" resultMap="KnowledgeArticleResultMap" databaseId="mysql"> <select id="selectById" resultMap="KnowledgeArticleResultMap" databaseId="mysql">
<![CDATA[select t1.* from (SELECT t1.`ARTICLEPUBLICNUMBER`, t1.`CONTENT`, t1.`CREATEDATE`, t1.`CREATEMAN`, t1.`DESCRIPTION`, t1.`EXCHANGERATE`, t1.`EXPIRATIONDATE`, t1.`EXPIRATIONSTATEID`, t1.`EXPIRATIONSTATUSID`, t1.`EXPIREDREVIEWOPTIONS`, t1.`IMPORTSEQUENCENUMBER`, t1.`INTERNAL`, t1.`KEYWORDS`, t1.`KNOWLEDGEARTICLEID`, t1.`KNOWLEDGEARTICLEVIEWS`, t1.`KNOWLEDGEARTICLEVIEWS_DATE`, t1.`KNOWLEDGEARTICLEVIEWS_STATE`, t1.`LANGUAGELOCALEID`, t1.`LANGUAGELOCALEIDLOCALEID`, t1.`LANGUAGELOCALENAME`, t1.`LATESTVERSION`, t1.`MAJORVERSIONNUMBER`, t1.`MINORVERSIONNUMBER`, t1.`OVERRIDDENCREATEDON`, t1.`OWNERID`, t1.`OWNERNAME`, t1.`OWNERTYPE`, t1.`PARENTARTICLECONTENTID`, t1.`PARENTARTICLECONTENTNAME`, t1.`PREVIOUSARTICLECONTENTID`, t1.`PREVIOUSARTICLECONTENTNAME`, t1.`PRIMARY`, t1.`PRIMARYAUTHORID`, t1.`PRIMARYAUTHORIDNAME`, t1.`PROCESSID`, t1.`PUBLISHON`, t1.`PUBLISHSTATUSID`, t1.`RATING`, t1.`RATING_COUNT`, t1.`RATING_DATE`, t1.`RATING_STATE`, t1.`RATING_SUM`, t1.`READYFORREVIEW`, t1.`REVIEW`, t1.`ROOTARTICLE`, t1.`ROOTARTICLEID`, t1.`ROOTARTICLENAME`, t1.`SCHEDULEDSTATUSID`, t1.`SETCATEGORYASSOCIATIONS`, t1.`SETPRODUCTASSOCIATIONS`, t1.`STAGEID`, t1.`STATECODE`, t1.`STATUSCODE`, t1.`SUBJECTID`, t1.`SUBJECTIDDSC`, t1.`SUBJECTNAME`, t1.`TIMEZONERULEVERSIONNUMBER`, t1.`TITLE`, t1.`TRANSACTIONCURRENCYID`, t1.`TRANSACTIONCURRENCYNAME`, t1.`TRAVERSEDPATH`, t1.`UPDATECONTENT`, t1.`UPDATEDATE`, t1.`UPDATEMAN`, t1.`UTCCONVERSIONTIMEZONECODE`, t1.`VERSIONNUMBER` FROM `KNOWLEDGEARTICLE` t1 ) t1 where knowledgearticleid=#{id}]]> <![CDATA[select t1.* from (SELECT t1.`ARTICLEPUBLICNUMBER`, t1.`CONTENT`, t1.`CREATEDATE`, t1.`CREATEMAN`, t1.`DESCRIPTION`, t1.`EXCHANGERATE`, t1.`EXPIRATIONDATE`, t1.`EXPIRATIONSTATEID`, t1.`EXPIRATIONSTATUSID`, t1.`EXPIREDREVIEWOPTIONS`, t1.`IMPORTSEQUENCENUMBER`, t1.`INTERNAL`, t1.`ISPRIMARY`, t1.`KEYWORDS`, t1.`KNOWLEDGEARTICLEID`, t1.`KNOWLEDGEARTICLEVIEWS`, t1.`KNOWLEDGEARTICLEVIEWS_DATE`, t1.`KNOWLEDGEARTICLEVIEWS_STATE`, t1.`LANGUAGELOCALEID`, t1.`LANGUAGELOCALEIDLOCALEID`, t1.`LANGUAGELOCALENAME`, t1.`LATESTVERSION`, t1.`MAJORVERSIONNUMBER`, t1.`MINORVERSIONNUMBER`, t1.`OVERRIDDENCREATEDON`, t1.`OWNERID`, t1.`OWNERNAME`, t1.`OWNERTYPE`, t1.`PARENTARTICLECONTENTID`, t1.`PARENTARTICLECONTENTNAME`, t1.`PREVIOUSARTICLECONTENTID`, t1.`PREVIOUSARTICLECONTENTNAME`, t1.`PRIMARYAUTHORID`, t1.`PRIMARYAUTHORIDNAME`, t1.`PROCESSID`, t1.`PUBLISHON`, t1.`PUBLISHSTATUSID`, t1.`RATING`, t1.`RATING_COUNT`, t1.`RATING_DATE`, t1.`RATING_STATE`, t1.`RATING_SUM`, t1.`READYFORREVIEW`, t1.`REVIEW`, t1.`ROOTARTICLE`, t1.`ROOTARTICLEID`, t1.`ROOTARTICLENAME`, t1.`SCHEDULEDSTATUSID`, t1.`SETCATEGORYASSOCIATIONS`, t1.`SETPRODUCTASSOCIATIONS`, t1.`STAGEID`, t1.`STATECODE`, t1.`STATUSCODE`, t1.`SUBJECTID`, t1.`SUBJECTIDDSC`, t1.`SUBJECTNAME`, t1.`TIMEZONERULEVERSIONNUMBER`, t1.`TITLE`, t1.`TRANSACTIONCURRENCYID`, t1.`TRANSACTIONCURRENCYNAME`, t1.`TRAVERSEDPATH`, t1.`UPDATECONTENT`, t1.`UPDATEDATE`, t1.`UPDATEMAN`, t1.`UTCCONVERSIONTIMEZONECODE`, t1.`VERSIONNUMBER` FROM `KNOWLEDGEARTICLE` t1 ) t1 where knowledgearticleid=#{id}]]>
</select> </select>
<!--通过mybatis将查询结果注入到entity中,通过配置autoMapping="true"由mybatis自动处理映射关系 --> <!--通过mybatis将查询结果注入到entity中,通过配置autoMapping="true"由mybatis自动处理映射关系 -->
...@@ -94,12 +94,12 @@ ...@@ -94,12 +94,12 @@
<!--数据查询[Default]--> <!--数据查询[Default]-->
<sql id="Default" databaseId="mysql"> <sql id="Default" databaseId="mysql">
<![CDATA[ SELECT t1.`CREATEDATE`, t1.`CREATEMAN`, t1.`DESCRIPTION`, t1.`EXCHANGERATE`, t1.`EXPIRATIONDATE`, t1.`EXPIRATIONSTATEID`, t1.`EXPIRATIONSTATUSID`, t1.`EXPIREDREVIEWOPTIONS`, t1.`IMPORTSEQUENCENUMBER`, t1.`INTERNAL`, t1.`KNOWLEDGEARTICLEID`, t1.`KNOWLEDGEARTICLEVIEWS`, t1.`KNOWLEDGEARTICLEVIEWS_DATE`, t1.`KNOWLEDGEARTICLEVIEWS_STATE`, t1.`LANGUAGELOCALEID`, t1.`LANGUAGELOCALEIDLOCALEID`, t1.`LANGUAGELOCALENAME`, t1.`LATESTVERSION`, t1.`MAJORVERSIONNUMBER`, t1.`MINORVERSIONNUMBER`, t1.`OVERRIDDENCREATEDON`, t1.`OWNERID`, t1.`OWNERNAME`, t1.`OWNERTYPE`, t1.`PARENTARTICLECONTENTID`, t1.`PREVIOUSARTICLECONTENTID`, t1.`PRIMARY`, t1.`PRIMARYAUTHORID`, t1.`PRIMARYAUTHORIDNAME`, t1.`PROCESSID`, t1.`PUBLISHON`, t1.`PUBLISHSTATUSID`, t1.`RATING`, t1.`RATING_COUNT`, t1.`RATING_DATE`, t1.`RATING_STATE`, t1.`RATING_SUM`, t1.`READYFORREVIEW`, t1.`REVIEW`, t1.`ROOTARTICLE`, t1.`ROOTARTICLEID`, t1.`SCHEDULEDSTATUSID`, t1.`SETCATEGORYASSOCIATIONS`, t1.`SETPRODUCTASSOCIATIONS`, t1.`STAGEID`, t1.`STATECODE`, t1.`STATUSCODE`, t1.`SUBJECTID`, t1.`SUBJECTIDDSC`, t1.`SUBJECTNAME`, t1.`TIMEZONERULEVERSIONNUMBER`, t1.`TRANSACTIONCURRENCYID`, t1.`TRANSACTIONCURRENCYNAME`, t1.`TRAVERSEDPATH`, t1.`UPDATECONTENT`, t1.`UPDATEDATE`, t1.`UPDATEMAN`, t1.`UTCCONVERSIONTIMEZONECODE`, t1.`VERSIONNUMBER` FROM `KNOWLEDGEARTICLE` t1 <![CDATA[ SELECT t1.`CREATEDATE`, t1.`CREATEMAN`, t1.`DESCRIPTION`, t1.`EXCHANGERATE`, t1.`EXPIRATIONDATE`, t1.`EXPIRATIONSTATEID`, t1.`EXPIRATIONSTATUSID`, t1.`EXPIREDREVIEWOPTIONS`, t1.`IMPORTSEQUENCENUMBER`, t1.`INTERNAL`, t1.`ISPRIMARY`, t1.`KNOWLEDGEARTICLEID`, t1.`KNOWLEDGEARTICLEVIEWS`, t1.`KNOWLEDGEARTICLEVIEWS_DATE`, t1.`KNOWLEDGEARTICLEVIEWS_STATE`, t1.`LANGUAGELOCALEID`, t1.`LANGUAGELOCALEIDLOCALEID`, t1.`LANGUAGELOCALENAME`, t1.`LATESTVERSION`, t1.`MAJORVERSIONNUMBER`, t1.`MINORVERSIONNUMBER`, t1.`OVERRIDDENCREATEDON`, t1.`OWNERID`, t1.`OWNERNAME`, t1.`OWNERTYPE`, t1.`PARENTARTICLECONTENTID`, t1.`PARENTARTICLECONTENTNAME`, t1.`PREVIOUSARTICLECONTENTID`, t1.`PREVIOUSARTICLECONTENTNAME`, t1.`PRIMARYAUTHORID`, t1.`PRIMARYAUTHORIDNAME`, t1.`PROCESSID`, t1.`PUBLISHON`, t1.`PUBLISHSTATUSID`, t1.`RATING`, t1.`RATING_COUNT`, t1.`RATING_DATE`, t1.`RATING_STATE`, t1.`RATING_SUM`, t1.`READYFORREVIEW`, t1.`REVIEW`, t1.`ROOTARTICLE`, t1.`ROOTARTICLEID`, t1.`ROOTARTICLENAME`, t1.`SCHEDULEDSTATUSID`, t1.`SETCATEGORYASSOCIATIONS`, t1.`SETPRODUCTASSOCIATIONS`, t1.`STAGEID`, t1.`STATECODE`, t1.`STATUSCODE`, t1.`SUBJECTID`, t1.`SUBJECTIDDSC`, t1.`SUBJECTNAME`, t1.`TIMEZONERULEVERSIONNUMBER`, t1.`TITLE`, t1.`TRANSACTIONCURRENCYID`, t1.`TRANSACTIONCURRENCYNAME`, t1.`TRAVERSEDPATH`, t1.`UPDATECONTENT`, t1.`UPDATEDATE`, t1.`UPDATEMAN`, t1.`UTCCONVERSIONTIMEZONECODE`, t1.`VERSIONNUMBER` FROM `KNOWLEDGEARTICLE` t1
]]> ]]>
</sql> </sql>
<!--数据查询[View]--> <!--数据查询[View]-->
<sql id="View" databaseId="mysql"> <sql id="View" databaseId="mysql">
<![CDATA[ SELECT t1.`ARTICLEPUBLICNUMBER`, t1.`CONTENT`, t1.`CREATEDATE`, t1.`CREATEMAN`, t1.`DESCRIPTION`, t1.`EXCHANGERATE`, t1.`EXPIRATIONDATE`, t1.`EXPIRATIONSTATEID`, t1.`EXPIRATIONSTATUSID`, t1.`EXPIREDREVIEWOPTIONS`, t1.`IMPORTSEQUENCENUMBER`, t1.`INTERNAL`, t1.`KEYWORDS`, t1.`KNOWLEDGEARTICLEID`, t1.`KNOWLEDGEARTICLEVIEWS`, t1.`KNOWLEDGEARTICLEVIEWS_DATE`, t1.`KNOWLEDGEARTICLEVIEWS_STATE`, t1.`LANGUAGELOCALEID`, t1.`LANGUAGELOCALEIDLOCALEID`, t1.`LANGUAGELOCALENAME`, t1.`LATESTVERSION`, t1.`MAJORVERSIONNUMBER`, t1.`MINORVERSIONNUMBER`, t1.`OVERRIDDENCREATEDON`, t1.`OWNERID`, t1.`OWNERNAME`, t1.`OWNERTYPE`, t1.`PARENTARTICLECONTENTID`, t1.`PARENTARTICLECONTENTNAME`, t1.`PREVIOUSARTICLECONTENTID`, t1.`PREVIOUSARTICLECONTENTNAME`, t1.`PRIMARY`, t1.`PRIMARYAUTHORID`, t1.`PRIMARYAUTHORIDNAME`, t1.`PROCESSID`, t1.`PUBLISHON`, t1.`PUBLISHSTATUSID`, t1.`RATING`, t1.`RATING_COUNT`, t1.`RATING_DATE`, t1.`RATING_STATE`, t1.`RATING_SUM`, t1.`READYFORREVIEW`, t1.`REVIEW`, t1.`ROOTARTICLE`, t1.`ROOTARTICLEID`, t1.`ROOTARTICLENAME`, t1.`SCHEDULEDSTATUSID`, t1.`SETCATEGORYASSOCIATIONS`, t1.`SETPRODUCTASSOCIATIONS`, t1.`STAGEID`, t1.`STATECODE`, t1.`STATUSCODE`, t1.`SUBJECTID`, t1.`SUBJECTIDDSC`, t1.`SUBJECTNAME`, t1.`TIMEZONERULEVERSIONNUMBER`, t1.`TITLE`, t1.`TRANSACTIONCURRENCYID`, t1.`TRANSACTIONCURRENCYNAME`, t1.`TRAVERSEDPATH`, t1.`UPDATECONTENT`, t1.`UPDATEDATE`, t1.`UPDATEMAN`, t1.`UTCCONVERSIONTIMEZONECODE`, t1.`VERSIONNUMBER` FROM `KNOWLEDGEARTICLE` t1 <![CDATA[ SELECT t1.`ARTICLEPUBLICNUMBER`, t1.`CONTENT`, t1.`CREATEDATE`, t1.`CREATEMAN`, t1.`DESCRIPTION`, t1.`EXCHANGERATE`, t1.`EXPIRATIONDATE`, t1.`EXPIRATIONSTATEID`, t1.`EXPIRATIONSTATUSID`, t1.`EXPIREDREVIEWOPTIONS`, t1.`IMPORTSEQUENCENUMBER`, t1.`INTERNAL`, t1.`ISPRIMARY`, t1.`KEYWORDS`, t1.`KNOWLEDGEARTICLEID`, t1.`KNOWLEDGEARTICLEVIEWS`, t1.`KNOWLEDGEARTICLEVIEWS_DATE`, t1.`KNOWLEDGEARTICLEVIEWS_STATE`, t1.`LANGUAGELOCALEID`, t1.`LANGUAGELOCALEIDLOCALEID`, t1.`LANGUAGELOCALENAME`, t1.`LATESTVERSION`, t1.`MAJORVERSIONNUMBER`, t1.`MINORVERSIONNUMBER`, t1.`OVERRIDDENCREATEDON`, t1.`OWNERID`, t1.`OWNERNAME`, t1.`OWNERTYPE`, t1.`PARENTARTICLECONTENTID`, t1.`PARENTARTICLECONTENTNAME`, t1.`PREVIOUSARTICLECONTENTID`, t1.`PREVIOUSARTICLECONTENTNAME`, t1.`PRIMARYAUTHORID`, t1.`PRIMARYAUTHORIDNAME`, t1.`PROCESSID`, t1.`PUBLISHON`, t1.`PUBLISHSTATUSID`, t1.`RATING`, t1.`RATING_COUNT`, t1.`RATING_DATE`, t1.`RATING_STATE`, t1.`RATING_SUM`, t1.`READYFORREVIEW`, t1.`REVIEW`, t1.`ROOTARTICLE`, t1.`ROOTARTICLEID`, t1.`ROOTARTICLENAME`, t1.`SCHEDULEDSTATUSID`, t1.`SETCATEGORYASSOCIATIONS`, t1.`SETPRODUCTASSOCIATIONS`, t1.`STAGEID`, t1.`STATECODE`, t1.`STATUSCODE`, t1.`SUBJECTID`, t1.`SUBJECTIDDSC`, t1.`SUBJECTNAME`, t1.`TIMEZONERULEVERSIONNUMBER`, t1.`TITLE`, t1.`TRANSACTIONCURRENCYID`, t1.`TRANSACTIONCURRENCYNAME`, t1.`TRAVERSEDPATH`, t1.`UPDATECONTENT`, t1.`UPDATEDATE`, t1.`UPDATEMAN`, t1.`UTCCONVERSIONTIMEZONECODE`, t1.`VERSIONNUMBER` FROM `KNOWLEDGEARTICLE` t1
]]> ]]>
</sql> </sql>
</mapper> </mapper>
......
...@@ -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:
......
...@@ -48,14 +48,6 @@ public class KnowledgeArticleDTO extends DTOBase implements Serializable { ...@@ -48,14 +48,6 @@ public class KnowledgeArticleDTO extends DTOBase implements Serializable {
@JsonProperty("statuscode") @JsonProperty("statuscode")
private Integer statuscode; private Integer statuscode;
/**
* 属性 [PRIMARY]
*
*/
@JSONField(name = "primary")
@JsonProperty("primary")
private Integer primary;
/** /**
* 属性 [EXPIRATIONSTATEID] * 属性 [EXPIRATIONSTATEID]
* *
...@@ -558,6 +550,14 @@ public class KnowledgeArticleDTO extends DTOBase implements Serializable { ...@@ -558,6 +550,14 @@ public class KnowledgeArticleDTO extends DTOBase implements Serializable {
@JsonProperty("transactioncurrencyname") @JsonProperty("transactioncurrencyname")
private String transactioncurrencyname; private String transactioncurrencyname;
/**
* 属性 [ISPRIMARY]
*
*/
@JSONField(name = "isprimary")
@JsonProperty("isprimary")
private Integer isprimary;
/** /**
* 设置 [KNOWLEDGEARTICLEVIEWS_DATE] * 设置 [KNOWLEDGEARTICLEVIEWS_DATE]
...@@ -583,14 +583,6 @@ public class KnowledgeArticleDTO extends DTOBase implements Serializable { ...@@ -583,14 +583,6 @@ public class KnowledgeArticleDTO extends DTOBase implements Serializable {
this.modify("statuscode",statuscode); this.modify("statuscode",statuscode);
} }
/**
* 设置 [PRIMARY]
*/
public void setPrimary(Integer primary){
this.primary = primary ;
this.modify("primary",primary);
}
/** /**
* 设置 [EXPIRATIONSTATEID] * 设置 [EXPIRATIONSTATEID]
*/ */
...@@ -1047,6 +1039,14 @@ public class KnowledgeArticleDTO extends DTOBase implements Serializable { ...@@ -1047,6 +1039,14 @@ public class KnowledgeArticleDTO extends DTOBase implements Serializable {
this.modify("transactioncurrencyname",transactioncurrencyname); this.modify("transactioncurrencyname",transactioncurrencyname);
} }
/**
* 设置 [ISPRIMARY]
*/
public void setIsprimary(Integer isprimary){
this.isprimary = isprimary ;
this.modify("isprimary",isprimary);
}
} }
...@@ -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 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册