Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
提交反馈
为 GitLab 提交贡献
登录
切换导航
功
功能演示系统
项目
项目
详情
动态
版本
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
示例
功能演示系统
提交
071ef44e
提交
071ef44e
编写于
12月 07, 2020
作者:
ibizdev
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
ShineKOT 部署微服务接口 [后台服务,接口示例]
上级
a9835292
变更
12
隐藏空白字符变更
内嵌
并排
正在显示
12 个修改的文件
包含
106 行增加
和
16 行删除
+106
-16
config.xml
config.xml
+5
-0
IBIZAPPEDITOR.java
...ain/java/cn/ibizlab/core/sample/domain/IBIZAPPEDITOR.java
+15
-0
IBIZBOOKDataImport.java
...va/cn/ibizlab/core/sample/mapping/IBIZBOOKDataImport.java
+4
-4
IBIZOrderImport.java
.../java/cn/ibizlab/core/sample/mapping/IBIZOrderImport.java
+1
-1
h2_table.xml
demo-core/src/main/resources/liquibase/h2_table.xml
+7
-5
view.xml
demo-core/src/main/resources/liquibase/view.xml
+1
-1
IBIZAPPEDITORMapper.xml
...urces/mapper/sample/ibizappeditor/IBIZAPPEDITORMapper.xml
+3
-3
DemoSys.json
demo-core/src/main/resources/sysmodel/DemoSys.json
+15
-0
Dockerfile
...provider/demo-provider-demoapi/src/main/docker/Dockerfile
+1
-1
demo-provider-demoapi.yaml
...ovider-demoapi/src/main/docker/demo-provider-demoapi.yaml
+16
-1
IBIZAPPEDITORDTO.java
...rc/main/java/cn/ibizlab/demoapi/dto/IBIZAPPEDITORDTO.java
+17
-0
StaticDict.java
demo-util/src/main/java/cn/ibizlab/util/dict/StaticDict.java
+21
-0
未找到文件。
config.xml
浏览文件 @
071ef44e
...
...
@@ -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>
...
...
demo-core/src/main/java/cn/ibizlab/core/sample/domain/IBIZAPPEDITOR.java
浏览文件 @
071ef44e
...
...
@@ -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
);
}
/**
* 复制当前对象数据到目标对象(粘贴重置)
...
...
demo-core/src/main/java/cn/ibizlab/core/sample/mapping/IBIZBOOKDataImport.java
浏览文件 @
071ef44e
...
...
@@ -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
);
...
...
demo-core/src/main/java/cn/ibizlab/core/sample/mapping/IBIZOrderImport.java
浏览文件 @
071ef44e
...
...
@@ -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
)
...
...
demo-core/src/main/resources/liquibase/h2_table.xml
浏览文件 @
071ef44e
...
...
@@ -4,7 +4,7 @@
<!--输出实体[IBIZAPPCTRL]数据结构 -->
<changeSet
author=
"a_LAB01_df847bdfd"
id=
"tab-ibizappctrl-5
4
-1"
>
<changeSet
author=
"a_LAB01_df847bdfd"
id=
"tab-ibizappctrl-5
9
-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-87
7
-5"
>
<changeSet
author=
"a_LAB01_df847bdfd"
id=
"tab-ibizbook-87
9
-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-4
59
-12"
>
<changeSet
author=
"a_LAB01_df847bdfd"
id=
"tab-ibizorder-4
62
-12"
>
<createTable
tableName=
"T_IBIZORDER"
>
<column
name=
"TP"
remarks=
""
type=
"TEXT(1048576)"
>
</column>
...
...
demo-core/src/main/resources/liquibase/view.xml
浏览文件 @
071ef44e
...
...
@@ -37,7 +37,7 @@
</createView>
</changeSet>
<!--输出实体[IBIZORDER]视图结构信息 runOnChange="true" 当视图发生变更时,通过liquibase强刷prod的视图,实现视图的同步-->
<changeSet
author=
"a_LAB01_df847bdfd"
id=
"view-ibizorder-4
59
-8"
runOnChange=
"true"
>
<changeSet
author=
"a_LAB01_df847bdfd"
id=
"view-ibizorder-4
62
-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>
...
...
demo-core/src/main/resources/mapper/sample/ibizappeditor/IBIZAPPEDITORMapper.xml
浏览文件 @
071ef44e
...
...
@@ -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>
...
...
demo-core/src/main/resources/sysmodel/DemoSys.json
浏览文件 @
071ef44e
...
...
@@ -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"
:[
...
...
demo-provider/demo-provider-demoapi/src/main/docker/Dockerfile
浏览文件 @
071ef44e
...
...
@@ -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
demo-provider/demo-provider-demoapi/src/main/docker/demo-provider-demoapi.yaml
浏览文件 @
071ef44e
...
...
@@ -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
:
...
...
demo-provider/demo-provider-demoapi/src/main/java/cn/ibizlab/demoapi/dto/IBIZAPPEDITORDTO.java
浏览文件 @
071ef44e
...
...
@@ -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
);
}
}
...
...
demo-util/src/main/java/cn/ibizlab/util/dict/StaticDict.java
浏览文件 @
071ef44e
...
...
@@ -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
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录