Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
提交反馈
为 GitLab 提交贡献
登录
切换导航
功
功能演示系统
项目
项目
详情
动态
版本
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
示例
功能演示系统
提交
7d6cbc9d
提交
7d6cbc9d
编写于
12月 01, 2020
作者:
ibizdev
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
tony001 部署微服务接口 [后台服务,接口示例]
上级
31aec217
变更
8
隐藏空白字符变更
内嵌
并排
正在显示
8 个修改的文件
包含
46 行增加
和
8 行删除
+46
-8
config.xml
config.xml
+5
-0
IBIZOrderDetail.java
...n/java/cn/ibizlab/core/sample/domain/IBIZOrderDetail.java
+9
-1
h2_table.xml
demo-core/src/main/resources/liquibase/h2_table.xml
+2
-0
IBIZOrderDetailMapper.xml
...s/mapper/sample/ibizorderdetail/IBIZOrderDetailMapper.xml
+4
-4
DemoSys.json
demo-core/src/main/resources/sysmodel/DemoSys.json
+1
-1
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
IBIZOrderDetailDTO.java
.../main/java/cn/ibizlab/demoapi/dto/IBIZOrderDetailDTO.java
+8
-0
未找到文件。
config.xml
浏览文件 @
7d6cbc9d
...
...
@@ -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/IBIZOrderDetail.java
浏览文件 @
7d6cbc9d
...
...
@@ -116,7 +116,7 @@ public class IBIZOrderDetail extends EntityMP implements Serializable {
/**
* 单价
*/
@TableField
(
exist
=
false
)
@TableField
(
value
=
"unitprice"
)
@JSONField
(
name
=
"unitprice"
)
@JsonProperty
(
"unitprice"
)
private
Double
unitprice
;
...
...
@@ -205,6 +205,14 @@ public class IBIZOrderDetail extends EntityMP implements Serializable {
this
.
modify
(
"quantity"
,
quantity
);
}
/**
* 设置 [单价]
*/
public
void
setUnitprice
(
Double
unitprice
)
{
this
.
unitprice
=
unitprice
;
this
.
modify
(
"unitprice"
,
unitprice
);
}
/**
* 设置 [订单标识]
*/
...
...
demo-core/src/main/resources/liquibase/h2_table.xml
浏览文件 @
7d6cbc9d
...
...
@@ -245,6 +245,8 @@
</column>
<column
name=
"UPDATEMAN"
remarks=
""
type=
"VARCHAR(60)"
>
</column>
<column
name=
"UNITPRICE"
remarks=
""
type=
"FLOAT"
>
</column>
<column
name=
"IBIZORDERID"
remarks=
""
type=
"VARCHAR(100)"
>
</column>
<column
name=
"IBIZUNIPRODUCTID"
remarks=
""
type=
"VARCHAR(100)"
>
...
...
demo-core/src/main/resources/mapper/sample/ibizorderdetail/IBIZOrderDetailMapper.xml
浏览文件 @
7d6cbc9d
...
...
@@ -98,7 +98,7 @@
</sql>
<!--数据查询[CSMXDY]-->
<sql
id=
"CSMXDY"
databaseId=
"mysql"
>
<![CDATA[ SELECT t1.`QUANTITY`*t1
1.`UNITPRICE` AS `AMOUNT`, t1.`CREATEDATE`, t1.`CREATEMAN`, t1.`IBIZORDERDETAILA`, t1.`IBIZORDERDETAILID`, t1.`IBIZORDERDETAILNAME`, t1.`IBIZORDERID`, t21.`IBIZORDERNAME`, t1.`IBIZUNIPRODUCTID`, t11.`IBIZUNIPRODUCTNAME`, t21.`ORDERUID`, t1.`QUANTITY`, t11.`UNIT`, t11.`UNITPRICE`, t1.`UPDATEDATE`, t1.`UPDATEMAN` FROM `T_IBIZORDERDETAIL` t1 LEFT JOIN T_IBIZUNIPRODUCT t11 ON t1.IBIZUNIPRODUCTID = t11.IBIZUNIPRODUCTID LEFT JOIN T_IBIZORDER t21 ON t1.IBIZORDERID = t21.IBIZORDER
ID
<![CDATA[ SELECT t1.`QUANTITY`*t1
.`UNITPRICE` AS `AMOUNT`, t1.`CREATEDATE`, t1.`CREATEMAN`, t1.`IBIZORDERDETAILA`, t1.`IBIZORDERDETAILID`, t1.`IBIZORDERDETAILNAME`, t1.`IBIZORDERID`, t11.`IBIZORDERNAME`, t1.`IBIZUNIPRODUCTID`, t21.`IBIZUNIPRODUCTNAME`, t11.`ORDERUID`, t1.`QUANTITY`, t21.`UNIT`, t1.`UNITPRICE`, t1.`UPDATEDATE`, t1.`UPDATEMAN` FROM `T_IBIZORDERDETAIL` t1 LEFT JOIN T_IBIZORDER t11 ON t1.IBIZORDERID = t11.IBIZORDERID LEFT JOIN T_IBIZUNIPRODUCT t21 ON t1.IBIZUNIPRODUCTID = t21.IBIZUNIPRODUCT
ID
WHERE ( t1.`IBIZORDERID` = #{srf.webcontext.srfkeys} )
]]>
</sql>
...
...
@@ -126,7 +126,7 @@
</sql>
<!--数据查询[Default]-->
<sql
id=
"Default"
databaseId=
"mysql"
>
<![CDATA[ SELECT t1.`QUANTITY`*t1
1.`UNITPRICE` AS `AMOUNT`, t1.`CREATEDATE`, t1.`CREATEMAN`, t1.`IBIZORDERDETAILA`, t1.`IBIZORDERDETAILID`, t1.`IBIZORDERDETAILNAME`, t1.`IBIZORDERID`, t21.`IBIZORDERNAME`, t1.`IBIZUNIPRODUCTID`, t11.`IBIZUNIPRODUCTNAME`, t21.`ORDERUID`, t1.`QUANTITY`, t11.`UNIT`, t11.`UNITPRICE`, t1.`UPDATEDATE`, t1.`UPDATEMAN` FROM `T_IBIZORDERDETAIL` t1 LEFT JOIN T_IBIZUNIPRODUCT t11 ON t1.IBIZUNIPRODUCTID = t11.IBIZUNIPRODUCTID LEFT JOIN T_IBIZORDER t21 ON t1.IBIZORDERID = t21.IBIZORDER
ID
<![CDATA[ SELECT t1.`QUANTITY`*t1
.`UNITPRICE` AS `AMOUNT`, t1.`CREATEDATE`, t1.`CREATEMAN`, t1.`IBIZORDERDETAILA`, t1.`IBIZORDERDETAILID`, t1.`IBIZORDERDETAILNAME`, t1.`IBIZORDERID`, t11.`IBIZORDERNAME`, t1.`IBIZUNIPRODUCTID`, t21.`IBIZUNIPRODUCTNAME`, t11.`ORDERUID`, t1.`QUANTITY`, t21.`UNIT`, t1.`UNITPRICE`, t1.`UPDATEDATE`, t1.`UPDATEMAN` FROM `T_IBIZORDERDETAIL` t1 LEFT JOIN T_IBIZORDER t11 ON t1.IBIZORDERID = t11.IBIZORDERID LEFT JOIN T_IBIZUNIPRODUCT t21 ON t1.IBIZUNIPRODUCTID = t21.IBIZUNIPRODUCT
ID
]]>
</sql>
<!--数据查询[Default]-->
...
...
@@ -153,7 +153,7 @@
</sql>
<!--数据查询[LOGIC_0007]-->
<sql
id=
"LOGIC_0007"
databaseId=
"mysql"
>
<![CDATA[ SELECT t1.`QUANTITY`*t1
1.`UNITPRICE` AS `AMOUNT`, t1.`CREATEDATE`, t1.`CREATEMAN`, t1.`IBIZORDERDETAILA`, t1.`IBIZORDERDETAILID`, t1.`IBIZORDERDETAILNAME`, t1.`IBIZORDERID`, t21.`IBIZORDERNAME`, t1.`IBIZUNIPRODUCTID`, t11.`IBIZUNIPRODUCTNAME`, t21.`ORDERUID`, t1.`QUANTITY`, t11.`UNIT`, t11.`UNITPRICE`, t1.`UPDATEDATE`, t1.`UPDATEMAN` FROM `T_IBIZORDERDETAIL` t1 LEFT JOIN T_IBIZUNIPRODUCT t11 ON t1.IBIZUNIPRODUCTID = t11.IBIZUNIPRODUCTID LEFT JOIN T_IBIZORDER t21 ON t1.IBIZORDERID = t21.IBIZORDER
ID
<![CDATA[ SELECT t1.`QUANTITY`*t1
.`UNITPRICE` AS `AMOUNT`, t1.`CREATEDATE`, t1.`CREATEMAN`, t1.`IBIZORDERDETAILA`, t1.`IBIZORDERDETAILID`, t1.`IBIZORDERDETAILNAME`, t1.`IBIZORDERID`, t11.`IBIZORDERNAME`, t1.`IBIZUNIPRODUCTID`, t21.`IBIZUNIPRODUCTNAME`, t11.`ORDERUID`, t1.`QUANTITY`, t21.`UNIT`, t1.`UNITPRICE`, t1.`UPDATEDATE`, t1.`UPDATEMAN` FROM `T_IBIZORDERDETAIL` t1 LEFT JOIN T_IBIZORDER t11 ON t1.IBIZORDERID = t11.IBIZORDERID LEFT JOIN T_IBIZUNIPRODUCT t21 ON t1.IBIZUNIPRODUCTID = t21.IBIZUNIPRODUCT
ID
WHERE ( t1.`IBIZUNIPRODUCTID` = #{srf.datacontext.ibizuniproductid} AND t1.`IBIZORDERID` = #{srf.datacontext.ibizorderid} )
]]>
</sql>
...
...
@@ -171,7 +171,7 @@
</sql>
<!--数据查询[X]-->
<sql
id=
"X"
databaseId=
"mysql"
>
<![CDATA[ SELECT t1.`QUANTITY`*t1
1.`UNITPRICE` AS `AMOUNT`, t1.`CREATEDATE`, t1.`CREATEMAN`, t1.`IBIZORDERDETAILA`, t1.`IBIZORDERDETAILID`, t1.`IBIZORDERDETAILNAME`, t1.`IBIZORDERID`, t21.`IBIZORDERNAME`, t1.`IBIZUNIPRODUCTID`, t11.`IBIZUNIPRODUCTNAME`, t21.`ORDERUID`, t1.`QUANTITY`, t11.`UNIT`, t11.`UNITPRICE`, t1.`UPDATEDATE`, t1.`UPDATEMAN` FROM `T_IBIZORDERDETAIL` t1 LEFT JOIN T_IBIZUNIPRODUCT t11 ON t1.IBIZUNIPRODUCTID = t11.IBIZUNIPRODUCTID LEFT JOIN T_IBIZORDER t21 ON t1.IBIZORDERID = t21.IBIZORDER
ID
<![CDATA[ SELECT t1.`QUANTITY`*t1
.`UNITPRICE` AS `AMOUNT`, t1.`CREATEDATE`, t1.`CREATEMAN`, t1.`IBIZORDERDETAILA`, t1.`IBIZORDERDETAILID`, t1.`IBIZORDERDETAILNAME`, t1.`IBIZORDERID`, t11.`IBIZORDERNAME`, t1.`IBIZUNIPRODUCTID`, t21.`IBIZUNIPRODUCTNAME`, t11.`ORDERUID`, t1.`QUANTITY`, t21.`UNIT`, t1.`UNITPRICE`, t1.`UPDATEDATE`, t1.`UPDATEMAN` FROM `T_IBIZORDERDETAIL` t1 LEFT JOIN T_IBIZORDER t11 ON t1.IBIZORDERID = t11.IBIZORDERID LEFT JOIN T_IBIZUNIPRODUCT t21 ON t1.IBIZUNIPRODUCTID = t21.IBIZUNIPRODUCT
ID
]]>
</sql>
<!--数据查询[X]-->
...
...
demo-core/src/main/resources/sysmodel/DemoSys.json
浏览文件 @
7d6cbc9d
...
...
@@ -1864,7 +1864,7 @@
"relation_codename"
:
"IBIZUNIPRODUCT"
,
"field_type"
:
"PICKUPDATA"
,
"nullable"
:
1
,
"physical_field"
:
0
,
"physical_field"
:
1
,
"data_type"
:
"FLOAT"
,
"key_field"
:
0
,
"show_order"
:
1000
,
...
...
demo-provider/demo-provider-demoapi/src/main/docker/Dockerfile
浏览文件 @
7d6cbc9d
...
...
@@ -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
浏览文件 @
7d6cbc9d
...
...
@@ -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/IBIZOrderDetailDTO.java
浏览文件 @
7d6cbc9d
...
...
@@ -195,6 +195,14 @@ public class IBIZOrderDetailDTO extends DTOBase implements Serializable {
this
.
modify
(
"quantity"
,
quantity
);
}
/**
* 设置 [UNITPRICE]
*/
public
void
setUnitprice
(
Double
unitprice
){
this
.
unitprice
=
unitprice
;
this
.
modify
(
"unitprice"
,
unitprice
);
}
/**
* 设置 [IBIZORDERID]
*/
...
...
编辑
预览
Markdown
格式
0%
请重试
or
添加新附件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录