提交 7d6cbc9d 编写于 作者: ibizdev's avatar ibizdev

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

上级 31aec217
...@@ -37,6 +37,11 @@ ...@@ -37,6 +37,11 @@
git clone -b master $para2 demosys/ git clone -b master $para2 demosys/
export NODE_OPTIONS=--max-old-space-size=4096 export NODE_OPTIONS=--max-old-space-size=4096
cd demosys/ 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> </command>
</hudson.tasks.Shell> </hudson.tasks.Shell>
</builders> </builders>
......
...@@ -116,7 +116,7 @@ public class IBIZOrderDetail extends EntityMP implements Serializable { ...@@ -116,7 +116,7 @@ public class IBIZOrderDetail extends EntityMP implements Serializable {
/** /**
* 单价 * 单价
*/ */
@TableField(exist = false) @TableField(value = "unitprice")
@JSONField(name = "unitprice") @JSONField(name = "unitprice")
@JsonProperty("unitprice") @JsonProperty("unitprice")
private Double unitprice; private Double unitprice;
...@@ -205,6 +205,14 @@ public class IBIZOrderDetail extends EntityMP implements Serializable { ...@@ -205,6 +205,14 @@ public class IBIZOrderDetail extends EntityMP implements Serializable {
this.modify("quantity", quantity); this.modify("quantity", quantity);
} }
/**
* 设置 [单价]
*/
public void setUnitprice(Double unitprice) {
this.unitprice = unitprice;
this.modify("unitprice", unitprice);
}
/** /**
* 设置 [订单标识] * 设置 [订单标识]
*/ */
......
...@@ -245,6 +245,8 @@ ...@@ -245,6 +245,8 @@
</column> </column>
<column name="UPDATEMAN" remarks="" type="VARCHAR(60)"> <column name="UPDATEMAN" remarks="" type="VARCHAR(60)">
</column> </column>
<column name="UNITPRICE" remarks="" type="FLOAT">
</column>
<column name="IBIZORDERID" remarks="" type="VARCHAR(100)"> <column name="IBIZORDERID" remarks="" type="VARCHAR(100)">
</column> </column>
<column name="IBIZUNIPRODUCTID" remarks="" type="VARCHAR(100)"> <column name="IBIZUNIPRODUCTID" remarks="" type="VARCHAR(100)">
......
...@@ -98,7 +98,7 @@ ...@@ -98,7 +98,7 @@
</sql> </sql>
<!--数据查询[CSMXDY]--> <!--数据查询[CSMXDY]-->
<sql id="CSMXDY" databaseId="mysql"> <sql id="CSMXDY" databaseId="mysql">
<![CDATA[ SELECT t1.`QUANTITY`*t11.`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.IBIZORDERID <![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.IBIZUNIPRODUCTID
WHERE ( t1.`IBIZORDERID` = #{srf.webcontext.srfkeys} ) WHERE ( t1.`IBIZORDERID` = #{srf.webcontext.srfkeys} )
]]> ]]>
</sql> </sql>
...@@ -126,7 +126,7 @@ ...@@ -126,7 +126,7 @@
</sql> </sql>
<!--数据查询[Default]--> <!--数据查询[Default]-->
<sql id="Default" databaseId="mysql"> <sql id="Default" databaseId="mysql">
<![CDATA[ SELECT t1.`QUANTITY`*t11.`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.IBIZORDERID <![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.IBIZUNIPRODUCTID
]]> ]]>
</sql> </sql>
<!--数据查询[Default]--> <!--数据查询[Default]-->
...@@ -153,7 +153,7 @@ ...@@ -153,7 +153,7 @@
</sql> </sql>
<!--数据查询[LOGIC_0007]--> <!--数据查询[LOGIC_0007]-->
<sql id="LOGIC_0007" databaseId="mysql"> <sql id="LOGIC_0007" databaseId="mysql">
<![CDATA[ SELECT t1.`QUANTITY`*t11.`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.IBIZORDERID <![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.IBIZUNIPRODUCTID
WHERE ( t1.`IBIZUNIPRODUCTID` = #{srf.datacontext.ibizuniproductid} AND t1.`IBIZORDERID` = #{srf.datacontext.ibizorderid} ) WHERE ( t1.`IBIZUNIPRODUCTID` = #{srf.datacontext.ibizuniproductid} AND t1.`IBIZORDERID` = #{srf.datacontext.ibizorderid} )
]]> ]]>
</sql> </sql>
...@@ -171,7 +171,7 @@ ...@@ -171,7 +171,7 @@
</sql> </sql>
<!--数据查询[X]--> <!--数据查询[X]-->
<sql id="X" databaseId="mysql"> <sql id="X" databaseId="mysql">
<![CDATA[ SELECT t1.`QUANTITY`*t11.`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.IBIZORDERID <![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.IBIZUNIPRODUCTID
]]> ]]>
</sql> </sql>
<!--数据查询[X]--> <!--数据查询[X]-->
......
...@@ -1864,7 +1864,7 @@ ...@@ -1864,7 +1864,7 @@
"relation_codename":"IBIZUNIPRODUCT", "relation_codename":"IBIZUNIPRODUCT",
"field_type":"PICKUPDATA", "field_type":"PICKUPDATA",
"nullable":1, "nullable":1,
"physical_field":0, "physical_field":1,
"data_type":"FLOAT", "data_type":"FLOAT",
"key_field":0, "key_field":0,
"show_order":1000, "show_order":1000,
......
...@@ -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 /demo-provider-demoapi.jar 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 ADD demo-provider-demoapi.jar /demo-provider-demoapi.jar
...@@ -3,9 +3,24 @@ services: ...@@ -3,9 +3,24 @@ services:
demo-provider-demoapi: demo-provider-demoapi:
image: registry.cn-shanghai.aliyuncs.com/ibizsys/demo-provider-demoapi:latest image: registry.cn-shanghai.aliyuncs.com/ibizsys/demo-provider-demoapi:latest
ports: ports:
- "8081:8081" - "51000:51000"
networks: networks:
- agent_network - 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: deploy:
resources: resources:
limits: limits:
......
...@@ -195,6 +195,14 @@ public class IBIZOrderDetailDTO extends DTOBase implements Serializable { ...@@ -195,6 +195,14 @@ public class IBIZOrderDetailDTO extends DTOBase implements Serializable {
this.modify("quantity",quantity); this.modify("quantity",quantity);
} }
/**
* 设置 [UNITPRICE]
*/
public void setUnitprice(Double unitprice){
this.unitprice = unitprice ;
this.modify("unitprice",unitprice);
}
/** /**
* 设置 [IBIZORDERID] * 设置 [IBIZORDERID]
*/ */
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册