Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
为 GitLab 提交贡献
登录/注册
切换导航
C
chinafrica
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分枝图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
分枝图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
zhengfg
chinafrica
Commits
057e9402
提交
057e9402
authored
10月 27, 2020
作者:
吴德鹏
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
修复代购bug
上级
7557785c
隐藏空白字符变更
内嵌
并排
正在显示
5 个修改的文件
包含
28 行增加
和
12 行删除
+28
-12
TbCfOrderDao.java
...rm-admin/src/main/java/com/platform/dao/TbCfOrderDao.java
+2
-0
TbCfOrderServiceImpl.java
.../java/com/platform/service/impl/TbCfOrderServiceImpl.java
+8
-0
TbCfOrderDao.xml
...dmin/src/main/resources/com/platform/dao/TbCfOrderDao.xml
+6
-0
platform.properties
platform-admin/src/main/resources/dev/platform.properties
+6
-6
platform.properties
platform-admin/src/main/resources/prod/platform.properties
+6
-6
没有找到文件。
platform-admin/src/main/java/com/platform/dao/TbCfOrderDao.java
浏览文件 @
057e9402
...
@@ -117,4 +117,6 @@ public interface TbCfOrderDao extends BaseDao<TbCfOrderEntity> {
...
@@ -117,4 +117,6 @@ public interface TbCfOrderDao extends BaseDao<TbCfOrderEntity> {
TbCfOrderEntity
queryOrderById
(
String
orderId
);
TbCfOrderEntity
queryOrderById
(
String
orderId
);
int
getOrderCount
(
@Param
(
"orderId"
)
String
orderId
,
@Param
(
"flag"
)
Integer
flag
);
}
}
platform-admin/src/main/java/com/platform/service/impl/TbCfOrderServiceImpl.java
浏览文件 @
057e9402
...
@@ -141,6 +141,14 @@ public class TbCfOrderServiceImpl implements TbCfOrderService {
...
@@ -141,6 +141,14 @@ public class TbCfOrderServiceImpl implements TbCfOrderService {
tbCfItemOrderREntity3
.
setDeliveryTime
(
new
Date
());
tbCfItemOrderREntity3
.
setDeliveryTime
(
new
Date
());
tbCfItemOrderRDao
.
updateDeliveryTime
(
tbCfItemOrderREntity3
);
tbCfItemOrderRDao
.
updateDeliveryTime
(
tbCfItemOrderREntity3
);
}
}
int
totalOrderCount
=
tbCfOrderDao
.
getOrderCount
(
tbCfPlatformOrder
.
getOrderId
(),
null
);
int
deliveryCount
=
tbCfOrderDao
.
getOrderCount
(
tbCfPlatformOrder
.
getOrderId
(),
10
);
if
(
deliveryCount
==
totalOrderCount
)
{
TbCfOrderEntity
tbCfOrderEntity
=
new
TbCfOrderEntity
();
tbCfOrderEntity
.
setOrderId
(
tbCfPlatformOrder
.
getOrderId
());
tbCfOrderEntity
.
setDeliveryFlag
(
DeliveryStatusEnum
.
PURCHASE
.
getValue
());
tbCfOrderDao
.
updates
(
tbCfOrderEntity
);
}
if
(
res
>
0
)
{
if
(
res
>
0
)
{
tbCfPlatformOrder
=
tbCfPlatformOrderDao
.
queryObject
(
tbCfPlatformOrder
.
getOrdersId
());
tbCfPlatformOrder
=
tbCfPlatformOrderDao
.
queryObject
(
tbCfPlatformOrder
.
getOrdersId
());
}
}
...
...
platform-admin/src/main/resources/com/platform/dao/TbCfOrderDao.xml
浏览文件 @
057e9402
...
@@ -511,6 +511,12 @@
...
@@ -511,6 +511,12 @@
select t2.*
select t2.*
from tb_cf_item_order_r t1 left join tb_cf_item_detail t2 on t2.item_id=t1.item_id where t1.order_id =#{orderId} and t1.enable_flag=1
from tb_cf_item_order_r t1 left join tb_cf_item_detail t2 on t2.item_id=t1.item_id where t1.order_id =#{orderId} and t1.enable_flag=1
</select>
</select>
<select
id=
"getOrderCount"
resultType=
"int"
>
select count(1) from tb_cf_item_order_r where order_id=#{orderId}
<if
test=
"flag!=null"
>
and delivery_flag=#{flag}
</if>
</select>
<update
id=
"updateDeliveryTime"
parameterType=
"com.platform.entity.TbCfOrderEntity"
>
<update
id=
"updateDeliveryTime"
parameterType=
"com.platform.entity.TbCfOrderEntity"
>
update tb_cf_order o left join tb_cf_item_order_r r on r.order_id=o.order_id
update tb_cf_order o left join tb_cf_item_order_r r on r.order_id=o.order_id
...
...
platform-admin/src/main/resources/dev/platform.properties
浏览文件 @
057e9402
...
@@ -2,13 +2,13 @@
...
@@ -2,13 +2,13 @@
#jdbc.username=root
#jdbc.username=root
#jdbc.password=root
#jdbc.password=root
#jdbc.url=jdbc:mysql://47.106.242.175:3306/chinafrica
?allowMultiQueries=true&useSSL=false&useUnicode=true&characterEncoding=UTF-8
jdbc.url
=
jdbc:mysql://47.106.242.175:3306/afrishop_test
?allowMultiQueries=true&useSSL=false&useUnicode=true&characterEncoding=UTF-8
#
jdbc.username=root
jdbc.username
=
root
#
jdbc.password=diaoyun666
jdbc.password
=
diaoyun666
jdbc.url
:
jdbc:mysql://159.138.48.71:3306/chinafrica?useUnicode=true&characterEncoding=UTF-8&rewriteBatchedStatements=true&autoReconnect=true&failOverReadOnly=false&zeroDateTimeBehavior=convertToNull&useSSL=false
#
jdbc.url: jdbc:mysql://159.138.48.71:3306/chinafrica?useUnicode=true&characterEncoding=UTF-8&rewriteBatchedStatements=true&autoReconnect=true&failOverReadOnly=false&zeroDateTimeBehavior=convertToNull&useSSL=false
jdbc.username
:
root
#
jdbc.username: root
jdbc.password
:
Diaoyunnuli.8
#
jdbc.password: Diaoyunnuli.8
jdbc.initialSize
=
5
jdbc.initialSize
=
5
jdbc.maxActive
=
30
jdbc.maxActive
=
30
...
...
platform-admin/src/main/resources/prod/platform.properties
浏览文件 @
057e9402
...
@@ -2,13 +2,13 @@
...
@@ -2,13 +2,13 @@
#jdbc.username=root
#jdbc.username=root
#jdbc.password=root
#jdbc.password=root
#jdbc.url=jdbc:mysql://47.106.242.175:3306/chinafrica
?allowMultiQueries=true&useSSL=false&useUnicode=true&characterEncoding=UTF-8
jdbc.url
=
jdbc:mysql://47.106.242.175:3306/afrishop_test
?allowMultiQueries=true&useSSL=false&useUnicode=true&characterEncoding=UTF-8
#
jdbc.username=root
jdbc.username
=
root
#
jdbc.password=diaoyun666
jdbc.password
=
diaoyun666
jdbc.url
:
jdbc:mysql://159.138.48.71:3306/chinafrica?useUnicode=true&characterEncoding=UTF-8&rewriteBatchedStatements=true&autoReconnect=true&failOverReadOnly=false&zeroDateTimeBehavior=convertToNull&useSSL=false
#
jdbc.url: jdbc:mysql://159.138.48.71:3306/chinafrica?useUnicode=true&characterEncoding=UTF-8&rewriteBatchedStatements=true&autoReconnect=true&failOverReadOnly=false&zeroDateTimeBehavior=convertToNull&useSSL=false
jdbc.username
:
root
#
jdbc.username: root
jdbc.password
:
Diaoyunnuli.8
#
jdbc.password: Diaoyunnuli.8
jdbc.initialSize
=
5
jdbc.initialSize
=
5
jdbc.maxActive
=
30
jdbc.maxActive
=
30
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论