Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
为 GitLab 提交贡献
登录/注册
切换导航
C
chinafrica
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分枝图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
分枝图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
zhengfg
chinafrica
Commits
3e433366
提交
3e433366
authored
2月 24, 2021
作者:
吴德鹏
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
订单优化
上级
6b6caca9
隐藏空白字符变更
内嵌
并排
正在显示
9 个修改的文件
包含
51 行增加
和
19 行删除
+51
-19
TbCfOrderController.java
...ain/java/com/platform/controller/TbCfOrderController.java
+9
-7
TbCfOrderListDao.java
...dmin/src/main/java/com/platform/dao/TbCfOrderListDao.java
+2
-1
TbCfOrderListService.java
.../main/java/com/platform/service/TbCfOrderListService.java
+1
-1
TbCfOrderService.java
.../src/main/java/com/platform/service/TbCfOrderService.java
+2
-0
TbCfOrderListServiceImpl.java
...a/com/platform/service/impl/TbCfOrderListServiceImpl.java
+2
-2
TbCfOrderServiceImpl.java
.../java/com/platform/service/impl/TbCfOrderServiceImpl.java
+5
-0
DeliveryOrderVo.java
...-admin/src/main/java/com/platform/vo/DeliveryOrderVo.java
+13
-4
OrderBasicVo.java
...orm-admin/src/main/java/com/platform/vo/OrderBasicVo.java
+10
-0
TbCfOrderListDao.xml
.../src/main/resources/com/platform/dao/TbCfOrderListDao.xml
+7
-4
没有找到文件。
platform-admin/src/main/java/com/platform/controller/TbCfOrderController.java
浏览文件 @
3e433366
package
com
.
platform
.
controller
;
import
com.platform.entity.SysUserEntity
;
import
com.platform.entity.TbCfItemDetailEntity
;
import
com.platform.entity.TbCfOrderEntity
;
import
com.platform.entity.TbCfOrderListEntity
;
import
com.platform.entity.*
;
import
com.platform.service.TbCfItemOrderRService
;
import
com.platform.service.TbCfOrderListService
;
import
com.platform.service.TbCfOrderService
;
...
...
@@ -246,6 +243,10 @@ public class TbCfOrderController extends AbstractController {
public
R
orderBasic
(
@PathVariable
(
"orderId"
)
String
orderId
)
{
//查询列表数据
OrderBasicVo
orderBasicVo
=
tbCfOrderListService
.
queryorderBasic
(
orderId
);
List
<
TbCfItemOrderREntity
>
orderDetails
=
tbCfOrderService
.
queryByOrderId
(
orderId
);
for
(
TbCfItemOrderREntity
orderDetail
:
orderDetails
)
{
}
orderBasicVo
.
setAtcTime
(
"35天(day)"
);
// orderBasicVo.setCountry("赞比亚(Zambia)");
if
(
orderBasicVo
.
getOrderSource
()
!=
null
)
...
...
@@ -360,10 +361,11 @@ public class TbCfOrderController extends AbstractController {
return
R
.
ok
().
put
(
"page"
,
pageUtil
);
}
@PutMapping
(
"/setToTestOrder
/{orderId}
"
)
@PutMapping
(
"/setToTestOrder"
)
@ResponseBody
public
R
setToTestOrder
(
@PathVariable
(
"orderId"
)
String
orderId
)
{
tbCfOrderListService
.
setToTestOrder
(
orderId
);
public
R
setToTestOrder
(
@RequestParam
(
"tested"
)
String
tested
,
@RequestParam
(
"orderId"
)
String
orderId
)
{
tbCfOrderListService
.
setToTestOrder
(
tested
,
orderId
);
return
R
.
ok
();
}
...
...
platform-admin/src/main/java/com/platform/dao/TbCfOrderListDao.java
浏览文件 @
3e433366
...
...
@@ -3,6 +3,7 @@ package com.platform.dao;
import
com.platform.entity.TbCfOrderListEntity
;
import
com.platform.vo.DeliveryOrderVo
;
import
com.platform.vo.OrderBasicVo
;
import
org.apache.ibatis.annotations.Param
;
import
java.util.List
;
import
java.util.Map
;
...
...
@@ -43,5 +44,5 @@ public interface TbCfOrderListDao extends BaseDao<TbCfOrderListEntity> {
int
saveOrUpdatemMemoOrder
(
OrderBasicVo
memoOrderVo
);
int
setToTestOrder
(
String
orderId
);
int
setToTestOrder
(
@Param
(
"tested"
)
String
tested
,
@Param
(
"orderId"
)
String
orderId
);
}
platform-admin/src/main/java/com/platform/service/TbCfOrderListService.java
浏览文件 @
3e433366
...
...
@@ -60,5 +60,5 @@ public interface TbCfOrderListService {
Long
getOrderNum
(
String
status
);
int
setToTestOrder
(
String
orderId
);
int
setToTestOrder
(
String
tested
,
String
orderId
);
}
platform-admin/src/main/java/com/platform/service/TbCfOrderService.java
浏览文件 @
3e433366
package
com
.
platform
.
service
;
import
com.platform.entity.TbCfItemDetailEntity
;
import
com.platform.entity.TbCfItemOrderREntity
;
import
com.platform.entity.TbCfOrderEntity
;
import
com.platform.vo.PlatformOrderVo
;
import
com.platform.vo.SearchKeywords
;
...
...
@@ -131,6 +132,7 @@ public interface TbCfOrderService {
int
queryCommodityTotal
();
List
<
TbCfItemOrderREntity
>
queryByOrderId
(
String
orderId
);
...
...
platform-admin/src/main/java/com/platform/service/impl/TbCfOrderListServiceImpl.java
浏览文件 @
3e433366
...
...
@@ -141,8 +141,8 @@ public class TbCfOrderListServiceImpl implements TbCfOrderListService {
}
@Override
public
int
setToTestOrder
(
String
orderId
)
{
return
tbCfOrderListDao
.
setToTestOrder
(
orderId
);
public
int
setToTestOrder
(
String
tested
,
String
orderId
)
{
return
tbCfOrderListDao
.
setToTestOrder
(
tested
,
orderId
);
}
}
platform-admin/src/main/java/com/platform/service/impl/TbCfOrderServiceImpl.java
浏览文件 @
3e433366
...
...
@@ -258,5 +258,10 @@ public class TbCfOrderServiceImpl implements TbCfOrderService {
return
tbCfOrderDao
.
queryTotal1
()
+
tbCfOrderDao
.
queryTotal2
();
}
@Override
public
List
<
TbCfItemOrderREntity
>
queryByOrderId
(
String
orderId
)
{
return
tbCfItemOrderRDao
.
queryByOrderId
(
orderId
);
}
}
platform-admin/src/main/java/com/platform/vo/DeliveryOrderVo.java
浏览文件 @
3e433366
...
...
@@ -7,7 +7,7 @@ import java.math.BigDecimal;
public
class
DeliveryOrderVo
implements
Serializable
{
private
static
final
long
serialVersionUID
=
1L
;
private
String
ordersId
;
private
String
ordersId
;
private
String
orderId
;
private
String
itemId
;
private
Long
orderNo
;
...
...
@@ -23,7 +23,8 @@ public class DeliveryOrderVo implements Serializable {
private
String
deliveryPhone
;
private
String
deliveryAddress
;
private
String
itemUrl
;
private
String
reduceAmount
;
private
BigDecimal
reduceAmount
;
private
Integer
length
;
public
String
getItemUrl
()
{
return
itemUrl
;
...
...
@@ -154,11 +155,19 @@ public class DeliveryOrderVo implements Serializable {
this
.
itemSku
=
itemSku
;
}
public
String
getReduceAmount
()
{
public
BigDecimal
getReduceAmount
()
{
return
reduceAmount
;
}
public
void
setReduceAmount
(
String
reduceAmount
)
{
public
void
setReduceAmount
(
BigDecimal
reduceAmount
)
{
this
.
reduceAmount
=
reduceAmount
;
}
public
Integer
getLength
()
{
return
length
;
}
public
void
setLength
(
Integer
length
)
{
this
.
length
=
length
;
}
}
platform-admin/src/main/java/com/platform/vo/OrderBasicVo.java
浏览文件 @
3e433366
...
...
@@ -37,6 +37,8 @@ public class OrderBasicVo implements Serializable {
private
BigDecimal
reduceAmount
;
private
Integer
length
;
public
BigDecimal
getCouponPrice
()
{
return
couponPrice
;
}
...
...
@@ -262,4 +264,12 @@ public class OrderBasicVo implements Serializable {
public
void
setReduceAmount
(
BigDecimal
reduceAmount
)
{
this
.
reduceAmount
=
reduceAmount
;
}
public
Integer
getLength
()
{
return
length
;
}
public
void
setLength
(
Integer
length
)
{
this
.
length
=
length
;
}
}
platform-admin/src/main/resources/com/platform/dao/TbCfOrderListDao.xml
浏览文件 @
3e433366
...
...
@@ -46,7 +46,8 @@
c.coupon_title,
o.delivery_flag,
o.reduce_amount,
a.email
a.email,
o.tested
from tb_cf_order o
LEFT JOIN tb_cf_finance f on f.order_id=o.order_id
LEFT JOIN tb_cf_user_info u on u.user_id=o.user_id
...
...
@@ -164,7 +165,8 @@
o.delivery_name,
o.delivery_phone,
o.delivery_address,
o.reduce_amount
o.reduce_amount,
o.tested
FROM
tb_cf_item_order_r r
LEFT JOIN tb_cf_order o ON o.order_id = r.order_id
...
...
@@ -219,7 +221,8 @@
o.update_time,
o.order_source,
o.coupon_price,
o.reduce_amount
o.reduce_amount,
o.tested
from tb_cf_order o
LEFT JOIN tb_cf_finance f on f.order_id=o.order_id
LEFT JOIN tb_cf_coupon c on c.coupon_id=o.coupon_id
...
...
@@ -252,7 +255,7 @@
</update>
<update
id=
"setToTestOrder"
>
update tb_cf_order set tested=
'T'
where order_id=#{orderId}
update tb_cf_order set tested=
#{tested}
where order_id=#{orderId}
</update>
<select
id=
"getMemoOrder"
resultType=
"com.platform.vo.OrderBasicVo"
>
select
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论