提交 3eb28934 编写于 作者: ibizdev's avatar ibizdev

Mosher 部署微服务接口 [后台服务,接口示例]

上级 e33bd02e
......@@ -37,6 +37,11 @@
git clone -b master $para2 demosys/
export NODE_OPTIONS=--max-old-space-size=4096
cd demosys/
mvn clean package -Pdemoapi
cd demo-provider/demo-provider-demoapi
mvn -Pdemoapi docker:build
mvn -Pdemoapi docker:push
docker -H $para1 stack deploy --compose-file=src/main/docker/demo-provider-demoapi.yaml iBizDemo --with-registry-auth
</command>
</hudson.tasks.Shell>
</builders>
......
......@@ -8,16 +8,16 @@ import java.util.List;
public interface IBIZBOOKDataImport {
@Mappings({
@Mapping(target = "ibizbookid", source = "ibizbookid"),
@Mapping(target = "createman", source = "createman"),
@Mapping(target = "press", source = "press"),
@Mapping(target = "author", source = "author"),
@Mapping(target = "price", source = "price"),
@Mapping(target = "booknumber", source = "booknumber"),
@Mapping(target = "createdate", source = "createdate"),
@Mapping(target = "ibizbookname", source = "ibizbookname"),
@Mapping(target = "createman", source = "createman"),
@Mapping(target = "updateman", source = "updateman"),
@Mapping(target = "updatedate", source = "updatedate"),
@Mapping(target = "type", source = "type"),
@Mapping(target = "press", source = "press"),
@Mapping(target = "author", source = "author"),
@Mapping(target = "price", source = "price"),
@Mapping(target = "booknumber", source = "booknumber"),
})
@BeanMapping(ignoreByDefault = true)
IBIZBOOK toDomain(IBIZBOOK entity);
......
......@@ -8,10 +8,10 @@ import java.util.List;
public interface IBIZOrderImport {
@Mappings({
@Mapping(target = "ibizorderid", source = "ibizorderid"),
@Mapping(target = "ibizordername", source = "ibizordername"),
@Mapping(target = "ordertype", source = "ordertype"),
@Mapping(target = "ordertime", source = "ordertime"),
@Mapping(target = "orderuid", source = "orderuid"),
@Mapping(target = "ibizordername", source = "ibizordername"),
})
@BeanMapping(ignoreByDefault = true)
IBIZOrder toDomain(IBIZOrder entity);
......
......@@ -24,7 +24,7 @@
<!--输出实体[IBIZAPPVIEW]数据结构 -->
<changeSet author="a_LAB01_df847bdfd" id="tab-ibizappview-14-2">
<changeSet author="a_LAB01_df847bdfd" id="tab-ibizappview-27-2">
<createTable tableName="T_IBIZAPPVIEW">
<column name="IBIZAPPVIEWNAME" remarks="" type="VARCHAR(200)">
</column>
......@@ -74,7 +74,7 @@
<!--输出实体[IBIZBOOK]数据结构 -->
<changeSet author="a_LAB01_df847bdfd" id="tab-ibizbook-751-4">
<changeSet author="a_LAB01_df847bdfd" id="tab-ibizbook-777-4">
<createTable tableName="T_IBIZBOOK">
<column name="CREATEMAN" remarks="" type="VARCHAR(60)">
</column>
......@@ -121,7 +121,7 @@
</column>
<column name="BORROWERID" remarks="" type="VARCHAR(100)">
</column>
<column name="BORROWER1" remarks="" type="VARCHAR(100)">
<column name="BORROWER1" remarks="" type="TEXT(1048576)">
</column>
<column name="BORROWER1_ID" remarks="" type="VARCHAR(100)">
</column>
......@@ -129,7 +129,7 @@
</column>
<column name="BORROWER2_ID" remarks="" type="VARCHAR(100)">
</column>
<column name="BORROWER3" remarks="" type="VARCHAR(100)">
<column name="BORROWER3" remarks="" type="TEXT(1048576)">
</column>
<column name="BORROWER3_ID" remarks="" type="VARCHAR(100)">
</column>
......@@ -178,7 +178,7 @@
<!--输出实体[IBIZCUSTOMER]数据结构 -->
<changeSet author="a_LAB01_df847bdfd" id="tab-ibizcustomer-21-7">
<changeSet author="a_LAB01_df847bdfd" id="tab-ibizcustomer-27-7">
<createTable tableName="T_IBIZCUSTOMER">
<column name="CREATEMAN" remarks="" type="VARCHAR(60)">
</column>
......@@ -244,7 +244,7 @@
<!--输出实体[IBIZORDER]数据结构 -->
<changeSet author="a_LAB01_df847bdfd" id="tab-ibizorder-411-11">
<changeSet author="a_LAB01_df847bdfd" id="tab-ibizorder-412-11">
<createTable tableName="T_IBIZORDER">
<column name="TP" remarks="" type="TEXT(1048576)">
</column>
......
......@@ -19,7 +19,7 @@
</createView>
</changeSet>
<!--输出实体[IBIZCUSTOMER]视图结构信息 runOnChange="true" 当视图发生变更时,通过liquibase强刷prod的视图,实现视图的同步-->
<changeSet author="a_LAB01_df847bdfd" id="view-ibizcustomer-21-4" runOnChange="true">
<changeSet author="a_LAB01_df847bdfd" id="view-ibizcustomer-27-4" runOnChange="true">
<createView fullDefinition="false" replaceIfExists="true" viewName="V_IBIZCUSTOMER">
<![CDATA[ SELECT t1.[ADDRESS], t1.[CREATEDATE], t1.[CREATEMAN], t1.[CUSTOMERUID], t1.[IBIZCUSTOMERID], t1.[IBIZCUSTOMERNAME], t1.[SN], t1.[UPDATEDATE], t1.[UPDATEMAN] FROM [T_IBIZCUSTOMER] t1 ]]>
</createView>
......@@ -37,7 +37,7 @@
</createView>
</changeSet>
<!--输出实体[IBIZORDER]视图结构信息 runOnChange="true" 当视图发生变更时,通过liquibase强刷prod的视图,实现视图的同步-->
<changeSet author="a_LAB01_df847bdfd" id="view-ibizorder-411-8" runOnChange="true">
<changeSet author="a_LAB01_df847bdfd" id="view-ibizorder-412-8" runOnChange="true">
<createView fullDefinition="false" replaceIfExists="true" viewName="V_IBIZORDER">
<![CDATA[ SELECT t1.[AMOUNT], t1.[CREATEDATE], t1.[CREATEMAN], t1.[DETAILNUM], t1.[IBIZCUSTOMERID], t11.[IBIZCUSTOMERNAME], t1.[IBIZORDERID], t1.[IBIZORDERNAME], t1.[MEMO], t1.[ORDERSTATE], t1.[ORDERTIME], t1.[ORDERTYPE], t1.[ORDERUID], t1.[UPDATEDATE], t1.[UPDATEMAN], t1.[WFINSTANCEID], t1.[WFSTATE], t1.[WFSTEP] FROM [T_IBIZORDER] t1 LEFT JOIN T_IBIZCUSTOMER t11 ON t1.IBIZCUSTOMERID = t11.IBIZCUSTOMERID ]]>
</createView>
......
......@@ -30,7 +30,7 @@
<!--数据查询[Default]-->
<sql id="Default" databaseId="mysql">
<![CDATA[ SELECT t1.`AUTHOR`, t1.`BOOKNUMBER`, t1.`BORROWER`, t1.`BORROWER1`, t1.`BORROWER1_ID`, t1.`BORROWER2`, t1.`BORROWER2_ID`, t1.`BORROWER3`, t1.`BORROWER3_ID`, t1.`BORROWERID`, t1.`BORROWSTATUS`, t1.`BORROWWAY`, t1.`CREATEDATE`, t1.`CREATEMAN`, t1.`IBIZBOOKID`, t1.`IBIZBOOKNAME`, t1.`ICON`, t1.`LENDOUTTIME`, t1.`PRESS`, t1.`PRICE`, t1.`RETURNLIB`, t1.`RETURNTIME`, t1.`SAILSTATE`, t1.`STEPSTATUS`, t1.`SUBTEXT`, t1.`TYPE`, t1.`UPDATEDATE`, t1.`UPDATEMAN` FROM `T_IBIZBOOK` t1
<![CDATA[ SELECT t1.`AUTHOR`, t1.`BOOKNUMBER`, t1.`BORROWER`, t1.`BORROWER1_ID`, t1.`BORROWER2`, t1.`BORROWER2_ID`, t1.`BORROWER3_ID`, t1.`BORROWERID`, t1.`BORROWSTATUS`, t1.`BORROWWAY`, t1.`CREATEDATE`, t1.`CREATEMAN`, t1.`IBIZBOOKID`, t1.`IBIZBOOKNAME`, t1.`ICON`, t1.`LENDOUTTIME`, t1.`PRESS`, t1.`PRICE`, t1.`RETURNLIB`, t1.`RETURNTIME`, t1.`SAILSTATE`, t1.`STEPSTATUS`, t1.`SUBTEXT`, t1.`TYPE`, t1.`UPDATEDATE`, t1.`UPDATEMAN` FROM `T_IBIZBOOK` t1
]]>
</sql>
<!--数据查询[View]-->
......
......@@ -737,11 +737,11 @@
"codename":"Borrower1",
"field_logic_name":"借阅人1",
"entity_name":"IBIZBOOK",
"field_type":"LONGTEXT_1000",
"field_type":"LONGTEXT",
"nullable":1,
"physical_field":1,
"data_type":"VARCHAR",
"data_length":100,
"data_type":"TEXT",
"data_length":1048576,
"key_field":0,
"show_order":1000,
"major_field":0
......@@ -793,11 +793,11 @@
"codename":"Borrower3",
"field_logic_name":"借阅人3",
"entity_name":"IBIZBOOK",
"field_type":"LONGTEXT_1000",
"field_type":"LONGTEXT",
"nullable":1,
"physical_field":1,
"data_type":"VARCHAR",
"data_length":100,
"data_type":"TEXT",
"data_length":1048576,
"key_field":0,
"show_order":1000,
"major_field":0
......
......@@ -12,6 +12,6 @@ CMD echo "The application will start in ${IBIZ_SLEEP}s..." && \
sleep ${IBIZ_SLEEP} && \
java ${JAVA_OPTS} -Djava.security.egd=file:/dev/./urandom -jar /demo-provider-demoapi.jar
EXPOSE 8081
EXPOSE 51000
ADD demo-provider-demoapi.jar /demo-provider-demoapi.jar
......@@ -3,9 +3,24 @@ services:
demo-provider-demoapi:
image: registry.cn-shanghai.aliyuncs.com/ibizsys/demo-provider-demoapi:latest
ports:
- "8081:8081"
- "51000:51000"
networks:
- agent_network
environment:
- SPRING_CLOUD_NACOS_DISCOVERY_IP=172.16.240.110
- SERVER_PORT=51000
- 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_df847bdfd
- SPRING_DATASOURCE_PASSWORD=3d6@460A
- SPRING_DATASOURCE_URL=jdbc:mysql://172.16.186.185:3306/a_LAB01_df847bdfd?autoReconnect=true&useUnicode=true&characterEncoding=UTF-8&useOldAliasMetadataBehavior=true&allowMultiQueries=true
- SPRING_DATASOURCE_DRIVER-CLASS-NAME=com.mysql.jdbc.Driver
- SPRING_DATASOURCE_DEFAULTSCHEMA=a_LAB01_df847bdfd
- NACOS=172.16.240.110:8848
- SEATA_REGISTRY_NACOS_SERVER-ADDR=172.16.240.110:8848
- SEATA_ENABLED=true
deploy:
resources:
limits:
......
......@@ -233,7 +233,7 @@ public class IBIZBOOKDTO extends DTOBase implements Serializable {
*/
@JSONField(name = "borrower1")
@JsonProperty("borrower1")
@Size(min = 0, max = 100, message = "内容长度必须小于等于[100]")
@Size(min = 0, max = 1048576, message = "内容长度必须小于等于[1048576]")
private String borrower1;
/**
......@@ -269,7 +269,7 @@ public class IBIZBOOKDTO extends DTOBase implements Serializable {
*/
@JSONField(name = "borrower3")
@JsonProperty("borrower3")
@Size(min = 0, max = 100, message = "内容长度必须小于等于[100]")
@Size(min = 0, max = 1048576, message = "内容长度必须小于等于[1048576]")
private String borrower3;
/**
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册