提交 071ef44e 编写于 作者: ibizdev's avatar ibizdev

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

上级 a9835292
......@@ -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>
......
......@@ -120,6 +120,13 @@ public class IBIZAPPEDITOR extends EntityMP implements Serializable {
@JSONField(name = "amount")
@JsonProperty("amount")
private Integer amount;
/**
* 是否为扩展编辑器
*/
@TableField(value = "isextendeditor")
@JSONField(name = "isextendeditor")
@JsonProperty("isextendeditor")
private String isextendeditor;
......@@ -163,6 +170,14 @@ public class IBIZAPPEDITOR extends EntityMP implements Serializable {
this.modify("amount", amount);
}
/**
* 设置 [是否为扩展编辑器]
*/
public void setIsextendeditor(String isextendeditor) {
this.isextendeditor = isextendeditor;
this.modify("isextendeditor", isextendeditor);
}
/**
* 复制当前对象数据到目标对象(粘贴重置)
......
......@@ -8,16 +8,16 @@ import java.util.List;
public interface IBIZBOOKDataImport {
@Mappings({
@Mapping(target = "ibizbookid", source = "ibizbookid"),
@Mapping(target = "createdate", source = "createdate"),
@Mapping(target = "press", source = "press"),
@Mapping(target = "author", source = "author"),
@Mapping(target = "ibizbookname", source = "ibizbookname"),
@Mapping(target = "price", source = "price"),
@Mapping(target = "updateman", source = "updateman"),
@Mapping(target = "booknumber", source = "booknumber"),
@Mapping(target = "createman", source = "createman"),
@Mapping(target = "createdate", source = "createdate"),
@Mapping(target = "ibizbookname", source = "ibizbookname"),
@Mapping(target = "updateman", source = "updateman"),
@Mapping(target = "updatedate", source = "updatedate"),
@Mapping(target = "type", source = "type"),
@Mapping(target = "press", source = "press"),
})
@BeanMapping(ignoreByDefault = true)
IBIZBOOK toDomain(IBIZBOOK entity);
......
......@@ -8,9 +8,9 @@ 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 = "ibizordername", source = "ibizordername"),
@Mapping(target = "orderuid", source = "orderuid"),
})
@BeanMapping(ignoreByDefault = true)
......
......@@ -4,7 +4,7 @@
<!--输出实体[IBIZAPPCTRL]数据结构 -->
<changeSet author="a_LAB01_df847bdfd" id="tab-ibizappctrl-54-1">
<changeSet author="a_LAB01_df847bdfd" id="tab-ibizappctrl-59-1">
<createTable tableName="T_IBIZAPPCTRL">
<column name="IBIZAPPCTRLNAME" remarks="" type="VARCHAR(200)">
</column>
......@@ -32,7 +32,7 @@
<!--输出实体[IBIZAPPEDITOR]数据结构 -->
<changeSet author="a_LAB01_df847bdfd" id="tab-ibizappeditor-78-2">
<changeSet author="a_LAB01_df847bdfd" id="tab-ibizappeditor-87-2">
<createTable tableName="T_IBIZAPPEDITOR">
<column name="CREATEMAN" remarks="" type="VARCHAR(60)">
</column>
......@@ -55,12 +55,14 @@
</column>
<column name="AMOUNT" remarks="" type="INT">
</column>
<column name="ISEXTENDEDITOR" remarks="" type="VARCHAR(100)">
</column>
</createTable>
</changeSet>
<!--输出实体[IBIZAPPVIEW]数据结构 -->
<changeSet author="a_LAB01_df847bdfd" id="tab-ibizappview-55-3">
<changeSet author="a_LAB01_df847bdfd" id="tab-ibizappview-64-3">
<createTable tableName="T_IBIZAPPVIEW">
<column name="CREATEMAN" remarks="" type="VARCHAR(60)">
</column>
......@@ -114,7 +116,7 @@
<!--输出实体[IBIZBOOK]数据结构 -->
<changeSet author="a_LAB01_df847bdfd" id="tab-ibizbook-877-5">
<changeSet author="a_LAB01_df847bdfd" id="tab-ibizbook-879-5">
<createTable tableName="T_IBIZBOOK">
<column name="CREATEMAN" remarks="" type="VARCHAR(60)">
</column>
......@@ -286,7 +288,7 @@
<!--输出实体[IBIZORDER]数据结构 -->
<changeSet author="a_LAB01_df847bdfd" id="tab-ibizorder-459-12">
<changeSet author="a_LAB01_df847bdfd" id="tab-ibizorder-462-12">
<createTable tableName="T_IBIZORDER">
<column name="TP" remarks="" type="TEXT(1048576)">
</column>
......
......@@ -37,7 +37,7 @@
</createView>
</changeSet>
<!--输出实体[IBIZORDER]视图结构信息 runOnChange="true" 当视图发生变更时,通过liquibase强刷prod的视图,实现视图的同步-->
<changeSet author="a_LAB01_df847bdfd" id="view-ibizorder-459-8" runOnChange="true">
<changeSet author="a_LAB01_df847bdfd" id="view-ibizorder-462-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>
......
......@@ -5,7 +5,7 @@
<!--该方法用于重写mybatis中selectById方法,以实现查询逻辑属性-->
<select id="selectById" resultMap="IBIZAPPEDITORResultMap" databaseId="mysql">
<![CDATA[select t1.* from (SELECT t1.`AMOUNT`, t1.`CREATEDATE`, t1.`CREATEMAN`, t1.`DOCUMENTADDRESS`, t1.`IBIZAPPEDITORID`, t1.`IBIZAPPEDITORNAME`, t1.`IBIZAPPEDITORTYPE`, t1.`RDITORDESCRIPTION`, t1.`UPDATEDATE`, t1.`UPDATEMAN` FROM `T_IBIZAPPEDITOR` t1 ) t1 where ibizappeditorid=#{id}]]>
<![CDATA[select t1.* from (SELECT t1.`AMOUNT`, t1.`CREATEDATE`, t1.`CREATEMAN`, t1.`DOCUMENTADDRESS`, t1.`IBIZAPPEDITORID`, t1.`IBIZAPPEDITORNAME`, t1.`IBIZAPPEDITORTYPE`, t1.`ISEXTENDEDITOR`, t1.`RDITORDESCRIPTION`, t1.`UPDATEDATE`, t1.`UPDATEMAN` FROM `T_IBIZAPPEDITOR` t1 ) t1 where ibizappeditorid=#{id}]]>
</select>
<!--通过mybatis将查询结果注入到entity中,通过配置autoMapping="true"由mybatis自动处理映射关系 -->
......@@ -27,12 +27,12 @@
<!--数据查询[Default]-->
<sql id="Default" databaseId="mysql">
<![CDATA[ SELECT t1.`AMOUNT`, t1.`CREATEDATE`, t1.`CREATEMAN`, t1.`DOCUMENTADDRESS`, t1.`IBIZAPPEDITORID`, t1.`IBIZAPPEDITORNAME`, t1.`IBIZAPPEDITORTYPE`, t1.`RDITORDESCRIPTION`, t1.`UPDATEDATE`, t1.`UPDATEMAN` FROM `T_IBIZAPPEDITOR` t1
<![CDATA[ SELECT t1.`AMOUNT`, t1.`CREATEDATE`, t1.`CREATEMAN`, t1.`DOCUMENTADDRESS`, t1.`IBIZAPPEDITORID`, t1.`IBIZAPPEDITORNAME`, t1.`IBIZAPPEDITORTYPE`, t1.`ISEXTENDEDITOR`, t1.`RDITORDESCRIPTION`, t1.`UPDATEDATE`, t1.`UPDATEMAN` FROM `T_IBIZAPPEDITOR` t1
]]>
</sql>
<!--数据查询[View]-->
<sql id="View" databaseId="mysql">
<![CDATA[ SELECT t1.`AMOUNT`, t1.`CREATEDATE`, t1.`CREATEMAN`, t1.`DOCUMENTADDRESS`, t1.`IBIZAPPEDITORID`, t1.`IBIZAPPEDITORNAME`, t1.`IBIZAPPEDITORTYPE`, t1.`RDITORDESCRIPTION`, t1.`UPDATEDATE`, t1.`UPDATEMAN` FROM `T_IBIZAPPEDITOR` t1
<![CDATA[ SELECT t1.`AMOUNT`, t1.`CREATEDATE`, t1.`CREATEMAN`, t1.`DOCUMENTADDRESS`, t1.`IBIZAPPEDITORID`, t1.`IBIZAPPEDITORNAME`, t1.`IBIZAPPEDITORTYPE`, t1.`ISEXTENDEDITOR`, t1.`RDITORDESCRIPTION`, t1.`UPDATEDATE`, t1.`UPDATEMAN` FROM `T_IBIZAPPEDITOR` t1
]]>
</sql>
</mapper>
......
......@@ -321,6 +321,21 @@
"key_field":0,
"show_order":1000,
"major_field":0
},
{
"fieldname":"ISEXTENDEDITOR" ,
"codename":"Isextendeditor",
"field_logic_name":"是否为扩展编辑器",
"entity_name":"IBIZAPPEDITOR",
"field_type":"TEXT",
"dict":"IsExtendEditor",
"nullable":1,
"physical_field":1,
"data_type":"VARCHAR",
"data_length":100,
"key_field":0,
"show_order":1000,
"major_field":0
}
],
"subEntitys":[
......
......@@ -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:
......
......@@ -118,6 +118,15 @@ public class IBIZAPPEDITORDTO extends DTOBase implements Serializable {
@JsonProperty("amount")
private Integer amount;
/**
* 属性 [ISEXTENDEDITOR]
*
*/
@JSONField(name = "isextendeditor")
@JsonProperty("isextendeditor")
@Size(min = 0, max = 100, message = "内容长度必须小于等于[100]")
private String isextendeditor;
/**
* 设置 [IBIZAPPEDITORNAME]
......@@ -159,6 +168,14 @@ public class IBIZAPPEDITORDTO extends DTOBase implements Serializable {
this.modify("amount",amount);
}
/**
* 设置 [ISEXTENDEDITOR]
*/
public void setIsextendeditor(String isextendeditor){
this.isextendeditor = isextendeditor ;
this.modify("isextendeditor",isextendeditor);
}
}
......
......@@ -2827,6 +2827,27 @@ public class StaticDict {
}
/**
* 代码表[是否为扩展编辑器]
*/
@Getter
public enum IsExtendEditor {
ITEM_1("1","是"),
ITEM_0("0","否");
private String value;
private String text;
private String valueSeparator="";
private String textSeparator="";
private String emptyText="";
IsExtendEditor(String value , String text) {
this.value=value;
this.text = text;
}
}
/**
* 代码表[开发帮助重要程度]
*/
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册