Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
为 GitLab 提交贡献
登录/注册
切换导航
C
chinafrica
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分枝图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
分枝图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
zhengfg
chinafrica
Commits
00b4a2c8
提交
00b4a2c8
authored
12月 06, 2019
作者:
luojie
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
修改订单
上级
8d8eca94
全部展开
隐藏空白字符变更
内嵌
并排
正在显示
22 个修改的文件
包含
216 行增加
和
132 行删除
+216
-132
TbCfOrderController.java
...ain/java/com/platform/controller/TbCfOrderController.java
+0
-4
TbCfItemOrderRDao.java
...min/src/main/java/com/platform/dao/TbCfItemOrderRDao.java
+6
-1
TbCfOrderDao.java
...rm-admin/src/main/java/com/platform/dao/TbCfOrderDao.java
+5
-0
TbCfPlatformOrderDao.java
.../src/main/java/com/platform/dao/TbCfPlatformOrderDao.java
+4
-3
TbCfFinanceEntity.java
.../src/main/java/com/platform/entity/TbCfFinanceEntity.java
+10
-0
TbCfOrderListEntity.java
...rc/main/java/com/platform/entity/TbCfOrderListEntity.java
+8
-11
TbCfItemOrderRService.java
...main/java/com/platform/service/TbCfItemOrderRService.java
+2
-2
TbCfOrderService.java
.../src/main/java/com/platform/service/TbCfOrderService.java
+3
-0
TbCfPlatformOrderService.java
...n/java/com/platform/service/TbCfPlatformOrderService.java
+3
-1
TbCfItemOrderRServiceImpl.java
.../com/platform/service/impl/TbCfItemOrderRServiceImpl.java
+4
-1
TbCfOrderServiceImpl.java
.../java/com/platform/service/impl/TbCfOrderServiceImpl.java
+15
-21
TbCfPlatformOrderServiceImpl.java
...m/platform/service/impl/TbCfPlatformOrderServiceImpl.java
+4
-4
ExpressStatusTask.java
...in/src/main/java/com/platform/task/ExpressStatusTask.java
+83
-38
FeeTask.java
platform-admin/src/main/java/com/platform/task/FeeTask.java
+1
-1
TbCfFinanceDao.xml
...in/src/main/resources/com/platform/dao/TbCfFinanceDao.xml
+16
-10
TbCfItemOrderRDao.xml
...src/main/resources/com/platform/dao/TbCfItemOrderRDao.xml
+6
-0
TbCfOrderDao.xml
...dmin/src/main/resources/com/platform/dao/TbCfOrderDao.xml
+7
-2
TbCfOrderListDao.xml
.../src/main/resources/com/platform/dao/TbCfOrderListDao.xml
+12
-20
TbCfPlatformOrderDao.xml
.../main/resources/com/platform/dao/TbCfPlatformOrderDao.xml
+10
-1
tbcffinance.js
platform-admin/src/main/webapp/js/sys/tbcffinance.js
+3
-2
tbcforder.js
platform-admin/src/main/webapp/js/sys/tbcforder.js
+8
-2
tbcforderList.js
platform-admin/src/main/webapp/js/sys/tbcforderList.js
+6
-8
没有找到文件。
platform-admin/src/main/java/com/platform/controller/TbCfOrderController.java
浏览文件 @
00b4a2c8
...
@@ -167,10 +167,6 @@ public class TbCfOrderController {
...
@@ -167,10 +167,6 @@ public class TbCfOrderController {
//查询列表数据
//查询列表数据
Query
query
=
new
Query
(
params
);
Query
query
=
new
Query
(
params
);
List
<
TbCfOrderListEntity
>
tbCfOrderList
=
tbCfOrderListService
.
queryOrderList
(
query
);
List
<
TbCfOrderListEntity
>
tbCfOrderList
=
tbCfOrderListService
.
queryOrderList
(
query
);
for
(
TbCfOrderListEntity
tbCfOrder:
tbCfOrderList
){
BigDecimal
itemNum
=
BigDecimal
.
valueOf
(
tbCfOrder
.
getItemNum
());
tbCfOrder
.
setItemPrice
(
tbCfOrder
.
getItemPrice
().
multiply
(
itemNum
));
}
int
total
=
tbCfOrderListService
.
queryOrderTotal
(
query
);
int
total
=
tbCfOrderListService
.
queryOrderTotal
(
query
);
PageUtils
pageUtil
=
new
PageUtils
(
tbCfOrderList
,
total
,
query
.
getLimit
(),
query
.
getPage
());
PageUtils
pageUtil
=
new
PageUtils
(
tbCfOrderList
,
total
,
query
.
getLimit
(),
query
.
getPage
());
return
R
.
ok
().
put
(
"page"
,
pageUtil
);
return
R
.
ok
().
put
(
"page"
,
pageUtil
);
...
...
platform-admin/src/main/java/com/platform/dao/TbCfItemOrderRDao.java
浏览文件 @
00b4a2c8
...
@@ -26,11 +26,16 @@ public interface TbCfItemOrderRDao extends BaseDao<TbCfItemOrderREntity> {
...
@@ -26,11 +26,16 @@ public interface TbCfItemOrderRDao extends BaseDao<TbCfItemOrderREntity> {
int
updateExpressStatus
(
String
[]
sids
);
int
updateExpressStatus
(
String
[]
sids
);
TbCfItemOrderREntity
getOrderItemId
(
String
orderId
,
String
itemId
);
TbCfItemOrderREntity
getOrderItemId
(
@Param
(
"orderId"
)
String
orderId
,
@Param
(
"itemId"
)
String
itemId
);
Integer
getItemNum
(
String
ordersId
);
Integer
getItemNum
(
String
ordersId
);
int
getOrderStatus
(
String
ordersId
);
int
getOrderStatus
(
String
ordersId
);
Set
<
Integer
>
findOrderStatus
(
String
orderId
);
Set
<
Integer
>
findOrderStatus
(
String
orderId
);
TbCfItemOrderREntity
findDeliveryStatus
(
String
[]
sids
);
int
updateIsSend
(
String
ordersId
);
}
}
platform-admin/src/main/java/com/platform/dao/TbCfOrderDao.java
浏览文件 @
00b4a2c8
...
@@ -58,4 +58,9 @@ public interface TbCfOrderDao extends BaseDao<TbCfOrderEntity> {
...
@@ -58,4 +58,9 @@ public interface TbCfOrderDao extends BaseDao<TbCfOrderEntity> {
int
updateOrderStatus
(
TbCfOrderEntity
tbCfOrderEntity
);
int
updateOrderStatus
(
TbCfOrderEntity
tbCfOrderEntity
);
int
updateStatus
(
TbCfOrderEntity
tbCfOrderEntity
);
int
updateStatus
(
TbCfOrderEntity
tbCfOrderEntity
);
String
getPhone
(
String
orderId
);
int
updateDeliveryStatus
(
String
ordersId
);
}
}
platform-admin/src/main/java/com/platform/dao/TbCfPlatformOrderDao.java
浏览文件 @
00b4a2c8
package
com
.
platform
.
dao
;
package
com
.
platform
.
dao
;
import
com.platform.entity.SysLogEntity
;
import
com.platform.entity.TbCfItemOrderREntity
;
import
com.platform.entity.TbCfItemOrderREntity
;
import
com.platform.entity.TbCf
Platform
OrderEntity
;
import
com.platform.entity.TbCfOrderEntity
;
import
com.platform.vo.PlatformOrderVo
;
import
com.platform.vo.PlatformOrderVo
;
import
org.apache.ibatis.annotations.Param
;
import
org.apache.ibatis.annotations.Param
;
import
java.util.List
;
/**
/**
* 第三方平台对应订单信息Dao
* 第三方平台对应订单信息Dao
*
*
...
@@ -27,5 +28,5 @@ public interface TbCfPlatformOrderDao extends BaseDao<PlatformOrderVo> {
...
@@ -27,5 +28,5 @@ public interface TbCfPlatformOrderDao extends BaseDao<PlatformOrderVo> {
TbCfItemOrderREntity
getOrdersId
(
String
sid
);
TbCfItemOrderREntity
getOrdersId
(
String
sid
);
int
findUs
erByExpressNumber
(
String
[]
sids
);
List
<
TbCfOrderEntity
>
findOrd
erByExpressNumber
(
String
[]
sids
);
}
}
platform-admin/src/main/java/com/platform/entity/TbCfFinanceEntity.java
浏览文件 @
00b4a2c8
...
@@ -22,6 +22,8 @@ public class TbCfFinanceEntity implements Serializable {
...
@@ -22,6 +22,8 @@ public class TbCfFinanceEntity implements Serializable {
* 订单id
* 订单id
*/
*/
private
String
orderId
;
private
String
orderId
;
private
String
orderNo
;
/**
/**
* 用户id
* 用户id
*/
*/
...
@@ -151,4 +153,12 @@ public class TbCfFinanceEntity implements Serializable {
...
@@ -151,4 +153,12 @@ public class TbCfFinanceEntity implements Serializable {
public
String
getReceiptUrl
()
{
public
String
getReceiptUrl
()
{
return
receiptUrl
;
return
receiptUrl
;
}
}
public
String
getOrderNo
()
{
return
orderNo
;
}
public
void
setOrderNo
(
String
orderNo
)
{
this
.
orderNo
=
orderNo
;
}
}
}
platform-admin/src/main/java/com/platform/entity/TbCfOrderListEntity.java
浏览文件 @
00b4a2c8
...
@@ -28,7 +28,7 @@ public class TbCfOrderListEntity implements Serializable {
...
@@ -28,7 +28,7 @@ public class TbCfOrderListEntity implements Serializable {
/**
/**
* 用户id
* 用户id
*/
*/
private
String
userI
d
;
private
String
userI
nfo
;
/**
/**
* 订单号
* 订单号
*/
*/
...
@@ -102,18 +102,15 @@ public class TbCfOrderListEntity implements Serializable {
...
@@ -102,18 +102,15 @@ public class TbCfOrderListEntity implements Serializable {
public
void
setItemId
(
String
itemId
)
{
public
void
setItemId
(
String
itemId
)
{
this
.
itemId
=
itemId
;
this
.
itemId
=
itemId
;
}
}
/**
* 获取:用户id
public
String
getUserInfo
()
{
*/
return
userInfo
;
public
String
getUserId
()
{
return
userId
;
}
}
/**
* 设置:用户id
public
void
setUserInfo
(
String
userInfo
)
{
*/
this
.
userInfo
=
userInfo
;
public
void
setUserId
(
String
userId
)
{
this
.
userId
=
userId
;
}
}
/**
/**
* 获取:订单号
* 获取:订单号
*/
*/
...
...
platform-admin/src/main/java/com/platform/service/TbCfItemOrderRService.java
浏览文件 @
00b4a2c8
package
com
.
platform
.
service
;
package
com
.
platform
.
service
;
import
com.platform.entity.TbCfItemDetailEntity
;
import
com.platform.entity.TbCfItemOrderREntity
;
import
com.platform.entity.TbCfItemOrderREntity
;
import
java.util.List
;
import
java.util.List
;
...
@@ -18,7 +17,6 @@ public interface TbCfItemOrderRService {
...
@@ -18,7 +17,6 @@ public interface TbCfItemOrderRService {
/**
/**
* 根据主键查询实体
* 根据主键查询实体
*
*
* @param id 主键
* @return 实体
* @return 实体
*/
*/
TbCfItemOrderREntity
queryObject
(
String
orderItemId
);
TbCfItemOrderREntity
queryObject
(
String
orderItemId
);
...
@@ -97,4 +95,6 @@ public interface TbCfItemOrderRService {
...
@@ -97,4 +95,6 @@ public interface TbCfItemOrderRService {
int
getOrderStatus
(
String
ordersId
);
int
getOrderStatus
(
String
ordersId
);
Set
<
Integer
>
findOrderStatus
(
String
orderId
);
Set
<
Integer
>
findOrderStatus
(
String
orderId
);
int
updateIsSend
(
String
ordersId
);
}
}
platform-admin/src/main/java/com/platform/service/TbCfOrderService.java
浏览文件 @
00b4a2c8
...
@@ -100,4 +100,7 @@ public interface TbCfOrderService {
...
@@ -100,4 +100,7 @@ public interface TbCfOrderService {
int
updateStatus
(
TbCfOrderEntity
tbCfOrderEntity
);
int
updateStatus
(
TbCfOrderEntity
tbCfOrderEntity
);
String
getPhone
(
String
orderId
);
}
}
platform-admin/src/main/java/com/platform/service/TbCfPlatformOrderService.java
浏览文件 @
00b4a2c8
package
com
.
platform
.
service
;
package
com
.
platform
.
service
;
import
com.platform.entity.TbCfItemOrderREntity
;
import
com.platform.entity.TbCfItemOrderREntity
;
import
com.platform.entity.TbCfOrderEntity
;
import
com.platform.vo.PlatformOrderVo
;
import
com.platform.vo.PlatformOrderVo
;
import
java.util.List
;
import
java.util.List
;
...
@@ -73,5 +74,6 @@ public interface TbCfPlatformOrderService {
...
@@ -73,5 +74,6 @@ public interface TbCfPlatformOrderService {
TbCfItemOrderREntity
getOrdersId
(
String
sid
);
TbCfItemOrderREntity
getOrdersId
(
String
sid
);
int
findUserByExpressNumber
(
String
[]
sids
);
List
<
TbCfOrderEntity
>
findOrderByExpressNumber
(
String
[]
sids
);
}
}
platform-admin/src/main/java/com/platform/service/impl/TbCfItemOrderRServiceImpl.java
浏览文件 @
00b4a2c8
package
com
.
platform
.
service
.
impl
;
package
com
.
platform
.
service
.
impl
;
import
com.platform.dao.TbCfItemOrderRDao
;
import
com.platform.dao.TbCfItemOrderRDao
;
import
com.platform.entity.TbCfItemDetailEntity
;
import
com.platform.entity.TbCfItemOrderREntity
;
import
com.platform.entity.TbCfItemOrderREntity
;
import
com.platform.service.TbCfItemOrderRService
;
import
com.platform.service.TbCfItemOrderRService
;
import
com.platform.utils.IdUtil
;
import
com.platform.utils.IdUtil
;
...
@@ -96,5 +95,9 @@ public class TbCfItemOrderRServiceImpl implements TbCfItemOrderRService {
...
@@ -96,5 +95,9 @@ public class TbCfItemOrderRServiceImpl implements TbCfItemOrderRService {
return
tbCfItemOrderRDao
.
findOrderStatus
(
orderId
);
return
tbCfItemOrderRDao
.
findOrderStatus
(
orderId
);
}
}
@Override
public
int
updateIsSend
(
String
ordersId
)
{
return
tbCfItemOrderRDao
.
updateIsSend
(
ordersId
);
}
}
}
platform-admin/src/main/java/com/platform/service/impl/TbCfOrderServiceImpl.java
浏览文件 @
00b4a2c8
...
@@ -4,7 +4,6 @@ import com.platform.dao.*;
...
@@ -4,7 +4,6 @@ import com.platform.dao.*;
import
com.platform.entity.TbCfItemDetailEntity
;
import
com.platform.entity.TbCfItemDetailEntity
;
import
com.platform.entity.TbCfItemOrderREntity
;
import
com.platform.entity.TbCfItemOrderREntity
;
import
com.platform.entity.TbCfOrderEntity
;
import
com.platform.entity.TbCfOrderEntity
;
import
com.platform.entity.TbCfPlatformEntity
;
import
com.platform.enums.DeliveryStatusEnum
;
import
com.platform.enums.DeliveryStatusEnum
;
import
com.platform.enums.OrderStatusEnum
;
import
com.platform.enums.OrderStatusEnum
;
import
com.platform.service.TbCfOrderService
;
import
com.platform.service.TbCfOrderService
;
...
@@ -12,7 +11,6 @@ import com.platform.utils.IdUtil;
...
@@ -12,7 +11,6 @@ import com.platform.utils.IdUtil;
import
com.platform.utils.ShiroUtils
;
import
com.platform.utils.ShiroUtils
;
import
com.platform.utils.StringUtils
;
import
com.platform.utils.StringUtils
;
import
com.platform.vo.PlatformOrderVo
;
import
com.platform.vo.PlatformOrderVo
;
import
org.jgroups.protocols.FORK
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Service
;
import
org.springframework.stereotype.Service
;
...
@@ -103,13 +101,13 @@ public class TbCfOrderServiceImpl implements TbCfOrderService {
...
@@ -103,13 +101,13 @@ public class TbCfOrderServiceImpl implements TbCfOrderService {
tbCfPlatformOrder
.
setUserName
(
sysUserDao
.
queryById
(
userId
));
tbCfPlatformOrder
.
setUserName
(
sysUserDao
.
queryById
(
userId
));
res
=
tbCfPlatformOrderDao
.
save
(
tbCfPlatformOrder
);
res
=
tbCfPlatformOrderDao
.
save
(
tbCfPlatformOrder
);
}
}
//如果填写了快递单号,那么意味着已代购,需要更改发货状态
//如果填写了原网站订单号,那么意味着已发货,需要更改发货状态
if
(
StringUtils
.
isNotEmpty
(
tbCfPlatformOrder
.
getpExpressNumber
()))
{
if
(
StringUtils
.
isNotEmpty
(
tbCfPlatformOrder
.
getpOrderId
()))
{
TbCfItemOrderREntity
tbCfItemOrderREntity2
=
new
TbCfItemOrderREntity
();
TbCfItemOrderREntity
tbCfItemOrderREntity
=
new
TbCfItemOrderREntity
(
);
tbCfItemOrderREntity2
.
setOrderItemId
(
tbCfPlatformOrder
.
getOrdersId
()
);
tbCfItemOrderREntity
.
setOrderItemId
(
tbCfPlatformOrder
.
getOrdersId
());
tbCfItemOrderREntity
2
.
setDeliveryFlag
(
DeliveryStatusEnum
.
PURCHASE
.
getValue
());
tbCfItemOrderREntity
.
setOrderStatus
(
OrderStatusEnum
.
SHIPPED
.
getValue
());
tbCfItemOrderREntity
2
.
setOrderStatus
(
OrderStatusEnum
.
SHIPPED
.
getValue
());
tbCfItemOrderRDao
.
update
(
tbCfItemOrderREntity
);
tbCfItemOrderRDao
.
update
(
tbCfItemOrderREntity
2
);
List
<
TbCfItemDetailEntity
>
orderItemList
=
tbCfOrderDao
.
getOrderItemList
(
tbCfPlatformOrder
.
getOrderId
());
List
<
TbCfItemDetailEntity
>
orderItemList
=
tbCfOrderDao
.
getOrderItemList
(
tbCfPlatformOrder
.
getOrderId
());
Set
<
Integer
>
status
=
new
HashSet
<>();
Set
<
Integer
>
status
=
new
HashSet
<>();
for
(
TbCfItemDetailEntity
itemList:
orderItemList
){
for
(
TbCfItemDetailEntity
itemList:
orderItemList
){
...
@@ -126,19 +124,11 @@ public class TbCfOrderServiceImpl implements TbCfOrderService {
...
@@ -126,19 +124,11 @@ public class TbCfOrderServiceImpl implements TbCfOrderService {
tbCfOrderDao
.
update
(
tbCfOrderEntity
);
tbCfOrderDao
.
update
(
tbCfOrderEntity
);
}
}
}
}
//更新发货时间,如果原值为空就更新,否则保留原值
//更新发货时间,如果原值为空就更新,否则保留原值
TbCfItemOrderREntity
tbCfItemOrderREntity2
=
new
TbCfItemOrderREntity
();
TbCfItemOrderREntity
tbCfItemOrderREntity3
=
new
TbCfItemOrderREntity
();
tbCfItemOrderREntity2
.
setOrderItemId
(
tbCfPlatformOrder
.
getOrdersId
());
tbCfItemOrderREntity3
.
setOrderItemId
(
tbCfPlatformOrder
.
getOrdersId
());
tbCfItemOrderREntity2
.
setDeliveryTime
(
new
Date
());
tbCfItemOrderREntity3
.
setDeliveryTime
(
new
Date
());
tbCfItemOrderRDao
.
updateDeliveryTime
(
tbCfItemOrderREntity2
);
tbCfItemOrderRDao
.
updateDeliveryTime
(
tbCfItemOrderREntity3
);
}
//如果填写了快递单号,那么意味着已代购,需要更改发货状态
if
(
StringUtils
.
isNotEmpty
(
tbCfPlatformOrder
.
getpExpressNumber
()))
{
TbCfItemOrderREntity
tbCfItemOrderREntity2
=
new
TbCfItemOrderREntity
();
tbCfItemOrderREntity2
.
setOrderItemId
(
tbCfPlatformOrder
.
getOrdersId
());
tbCfItemOrderREntity2
.
setDeliveryFlag
(
DeliveryStatusEnum
.
PURCHASE
.
getValue
());
tbCfItemOrderRDao
.
update
(
tbCfItemOrderREntity2
);
}
}
return
res
;
return
res
;
}
}
...
@@ -152,5 +142,9 @@ public class TbCfOrderServiceImpl implements TbCfOrderService {
...
@@ -152,5 +142,9 @@ public class TbCfOrderServiceImpl implements TbCfOrderService {
return
tbCfOrderDao
.
updateStatus
(
tbCfOrderEntity
);
return
tbCfOrderDao
.
updateStatus
(
tbCfOrderEntity
);
}
}
@Override
public
String
getPhone
(
String
orderId
)
{
return
tbCfOrderDao
.
getPhone
(
orderId
);
}
}
}
platform-admin/src/main/java/com/platform/service/impl/TbCfPlatformOrderServiceImpl.java
浏览文件 @
00b4a2c8
...
@@ -2,9 +2,8 @@ package com.platform.service.impl;
...
@@ -2,9 +2,8 @@ package com.platform.service.impl;
import
com.platform.dao.SysUserDao
;
import
com.platform.dao.SysUserDao
;
import
com.platform.dao.TbCfPlatformOrderDao
;
import
com.platform.dao.TbCfPlatformOrderDao
;
import
com.platform.entity.SysLogEntity
;
import
com.platform.entity.SysUserEntity
;
import
com.platform.entity.TbCfItemOrderREntity
;
import
com.platform.entity.TbCfItemOrderREntity
;
import
com.platform.entity.TbCfOrderEntity
;
import
com.platform.service.TbCfPlatformOrderService
;
import
com.platform.service.TbCfPlatformOrderService
;
import
com.platform.utils.IdUtil
;
import
com.platform.utils.IdUtil
;
import
com.platform.utils.ShiroUtils
;
import
com.platform.utils.ShiroUtils
;
...
@@ -80,7 +79,8 @@ public class TbCfPlatformOrderServiceImpl implements TbCfPlatformOrderService {
...
@@ -80,7 +79,8 @@ public class TbCfPlatformOrderServiceImpl implements TbCfPlatformOrderService {
}
}
@Override
@Override
public
int
findUs
erByExpressNumber
(
String
[]
sids
)
{
public
List
<
TbCfOrderEntity
>
findOrd
erByExpressNumber
(
String
[]
sids
)
{
return
tbCfPlatformOrderDao
.
find
Us
erByExpressNumber
(
sids
);
return
tbCfPlatformOrderDao
.
find
Ord
erByExpressNumber
(
sids
);
}
}
}
}
platform-admin/src/main/java/com/platform/task/ExpressStatusTask.java
浏览文件 @
00b4a2c8
差异被折叠。
点击展开。
platform-admin/src/main/java/com/platform/task/FeeTask.java
浏览文件 @
00b4a2c8
...
@@ -22,7 +22,7 @@ public class FeeTask {
...
@@ -22,7 +22,7 @@ public class FeeTask {
@Autowired
@Autowired
private
TbCfFeeService
tbCfFeeService
;
private
TbCfFeeService
tbCfFeeService
;
@Scheduled
(
cron
=
"0 0/
2
0 * * * ? "
)
@Scheduled
(
cron
=
"0 0/
3
0 * * * ? "
)
public
void
FeeTask
()
{
public
void
FeeTask
()
{
String
url
=
"http://op.juhe.cn/onebox/exchange/currency"
;
String
url
=
"http://op.juhe.cn/onebox/exchange/currency"
;
Map
<
String
,
String
>
parameters
=
new
HashMap
<>();
Map
<
String
,
String
>
parameters
=
new
HashMap
<>();
...
...
platform-admin/src/main/resources/com/platform/dao/TbCfFinanceDao.xml
浏览文件 @
00b4a2c8
...
@@ -74,16 +74,22 @@
...
@@ -74,16 +74,22 @@
<select
id=
"queryList"
resultType=
"com.platform.entity.TbCfFinanceEntity"
>
<select
id=
"queryList"
resultType=
"com.platform.entity.TbCfFinanceEntity"
>
select
select
`finace_id`,
DISTINCT
`order_id`,
r.order_id,
`user_id`,
f.finace_id,
`pay_account`,
r.order_no orderNo,
`pay_id`,
CONCAT_WS("_",u.nick,u.user_no) userInfo,
`pay_way_code`,
f.pay_account,
`pay_Time`,
f.pay_id,
`receipt_url`
f.pay_way_code,
from tb_cf_finance
f.pay_Time,
WHERE 1=1
f.receipt_url
from tb_cf_finance f
left join tb_cf_order r on r.order_id=f.order_id
left join tb_cf_user_info u on f.user_id=u.user_id
left join tb_cf_item_order_r i on i.order_id = r.order_id
WHERE 1=1 and i.enable_flag=1
<if
test=
"name != null and name.trim() != ''"
>
<if
test=
"name != null and name.trim() != ''"
>
AND name LIKE concat('%',#{name},'%')
AND name LIKE concat('%',#{name},'%')
</if>
</if>
...
...
platform-admin/src/main/resources/com/platform/dao/TbCfItemOrderRDao.xml
浏览文件 @
00b4a2c8
...
@@ -153,6 +153,12 @@
...
@@ -153,6 +153,12 @@
select order_status from tb_cf_item_order_r where order_id=#{orderId}
select order_status from tb_cf_item_order_r where order_id=#{orderId}
</select>
</select>
<update
id=
"updateIsSend"
parameterType=
"com.platform.entity.TbCfItemOrderREntity"
>
update tb_cf_item_order_r r
set r.is_send = 1
where r.order_item_id = #{ordersId}
</update>
<!--根据快递单号id,修改物流状态为已入中国仓库 -->
<!--根据快递单号id,修改物流状态为已入中国仓库 -->
<update
id=
"updateExpressStatus"
>
<update
id=
"updateExpressStatus"
>
UPDATE tb_cf_order o,tb_cf_platform_order p,tb_cf_item_order_r i
UPDATE tb_cf_order o,tb_cf_platform_order p,tb_cf_item_order_r i
...
...
platform-admin/src/main/resources/com/platform/dao/TbCfOrderDao.xml
浏览文件 @
00b4a2c8
...
@@ -157,7 +157,8 @@
...
@@ -157,7 +157,8 @@
<select
id=
"queryTotal"
resultType=
"int"
>
<select
id=
"queryTotal"
resultType=
"int"
>
select count(*) from tb_cf_order o left join tb_cf_coupon c on c.coupon_id=o.coupon_id
select count(*) from tb_cf_order o left join tb_cf_coupon c on c.coupon_id=o.coupon_id
left join tb_cf_item_order_r i on i.order_id=o.order_id
left join tb_cf_item_order_r i on i.order_id=o.order_id
WHERE 1=1 and i.enable_flag=1 and o.enable_flag=1
left join tb_cf_item_detail d on d.item_id=i.item_id
WHERE 1=1 and i.enable_flag=1 and o.enable_flag=1
<if
test=
"name != null and name.trim() != ''"
>
<if
test=
"name != null and name.trim() != ''"
>
AND o.order_no LIKE concat('%',#{name},'%')
AND o.order_no LIKE concat('%',#{name},'%')
</if>
</if>
...
@@ -300,9 +301,13 @@
...
@@ -300,9 +301,13 @@
where order_id = #{orderId}
where order_id = #{orderId}
</update>
</update>
<select
id=
"getPhone"
resultType=
"String"
>
select delivery_phone from tb_cf_order where order_id=#{orderId}
</select>
<!--根据订单id,获取订单内商品详情-->
<!--根据订单id,获取订单内商品详情-->
<select
id=
"getOrderItemList"
resultType=
"com.platform.entity.TbCfItemDetailEntity"
>
<select
id=
"getOrderItemList"
resultType=
"com.platform.entity.TbCfItemDetailEntity"
>
select t2.* from tb_cf_item_order_r t1,tb_cf_item_detail t2 where t1.order_i
tem_id =#{orders
Id}
select t2.* from tb_cf_item_order_r t1,tb_cf_item_detail t2 where t1.order_i
d =#{order
Id}
and t1.enable_flag=1 and t2.item_id=t1.item_id
and t1.enable_flag=1 and t2.item_id=t1.item_id
</select>
</select>
...
...
platform-admin/src/main/resources/com/platform/dao/TbCfOrderListDao.xml
浏览文件 @
00b4a2c8
...
@@ -21,26 +21,20 @@
...
@@ -21,26 +21,20 @@
<!--查询订单列表-->
<!--查询订单列表-->
<select
id=
"queryOrderList"
resultType=
"com.platform.entity.TbCfOrderListEntity"
>
<select
id=
"queryOrderList"
resultType=
"com.platform.entity.TbCfOrderListEntity"
>
select
select
i.order_item_id ordersId,
DISTINCT
o.order_id,
o.order_id,
i.item_id,
o.user_id,
o.order_no,
o.order_no,
CONCAT_WS("_",u.nick,u.user_no) userInfo,
o.order_time,
o.order_time,
d.item_price
,
o.reality_pay
,
d.item_titl
e,
o.delivery_nam
e,
d.item_num
,
o.delivery_phone
,
o.delivery_address,
o.delivery_address,
f.pay_way_code,
f.pay_way_code
p.p_express_number,
i.delivery_flag,
s.user_name
from tb_cf_order o
from tb_cf_order o
left join tb_cf_item_order_r i on o.order_id=i.order_id
INNER JOIN tb_cf_item_order_r i on o.order_id=i.order_id
left join tb_cf_item_detail d on d.item_id=i.item_id
INNER JOIN tb_cf_finance f on f.order_id=o.order_id
left join tb_cf_platform_order p on p.order_id=o.order_id
INNER JOIN tb_cf_user_info u on u.user_id=o.user_id
left join tb_cf_finance f on f.order_id=o.order_id
left join sys_user s on s.user_id=p.user_id
WHERE 1=1 and i.enable_flag=1 and f.pay_way_code!='null'
WHERE 1=1 and i.enable_flag=1 and f.pay_way_code!='null'
<if
test=
"name != null and name.trim() != ''"
>
<if
test=
"name != null and name.trim() != ''"
>
AND o.order_no LIKE concat('%',#{name},'%')
AND o.order_no LIKE concat('%',#{name},'%')
...
@@ -75,11 +69,9 @@
...
@@ -75,11 +69,9 @@
select
select
count(*)
count(*)
from tb_cf_order o
from tb_cf_order o
left join tb_cf_item_order_r i on o.order_id=i.order_id
INNER JOIN tb_cf_item_order_r i on o.order_id=i.order_id
left join tb_cf_item_detail d on d.item_id=i.item_id
INNER JOIN tb_cf_finance f on f.order_id=o.order_id
left join tb_cf_platform_order p on p.order_id=o.order_id
INNER JOIN tb_cf_user_info u on u.user_id=o.user_id
left join tb_cf_finance f on f.order_id=o.order_id
left join sys_user s on s.user_id=p.user_id
WHERE 1=1 and i.enable_flag=1 and f.pay_way_code!='null'
WHERE 1=1 and i.enable_flag=1 and f.pay_way_code!='null'
<if
test=
"name != null and name.trim() != ''"
>
<if
test=
"name != null and name.trim() != ''"
>
AND o.order_no LIKE concat('%',#{name},'%')
AND o.order_no LIKE concat('%',#{name},'%')
...
...
platform-admin/src/main/resources/com/platform/dao/TbCfPlatformOrderDao.xml
浏览文件 @
00b4a2c8
...
@@ -187,5 +187,14 @@
...
@@ -187,5 +187,14 @@
select order_id from tb_cf_platform_order where p_express_number=#{sid}
select order_id from tb_cf_platform_order where p_express_number=#{sid}
</select>
</select>
<select
id=
"findOrderByExpressNumber"
resultType=
"com.platform.entity.TbCfOrderEntity"
>
select o.delivery_phone,i.order_item_id ordersId,i.order_id
from tb_cf_platform_order p
left join tb_cf_item_order_r i on p.order_id=i.order_id
left join tb_cf_order o on o.order_id=i.order_id
where i.is_send=0 and i.delivery_flag=10 and p.p_express_number in
<foreach
collection=
"array"
item=
"sids"
open=
"("
separator=
","
close=
")"
>
#{sids}
</foreach>
</select>
</mapper>
</mapper>
\ No newline at end of file
platform-admin/src/main/webapp/js/sys/tbcffinance.js
浏览文件 @
00b4a2c8
...
@@ -3,8 +3,9 @@ $(function () {
...
@@ -3,8 +3,9 @@ $(function () {
url
:
'../tbcffinance/list'
,
url
:
'../tbcffinance/list'
,
colModel
:
[
colModel
:
[
{
label
:
'finaceId'
,
name
:
'finaceId'
,
index
:
'finace_id'
,
key
:
true
,
hidden
:
true
},
{
label
:
'finaceId'
,
name
:
'finaceId'
,
index
:
'finace_id'
,
key
:
true
,
hidden
:
true
},
{
label
:
'订单id'
,
name
:
'orderId'
,
index
:
'order_id'
,
width
:
80
},
{
label
:
'订单id'
,
name
:
'orderId'
,
index
:
'order_id'
,
width
:
80
,
hidden
:
true
},
{
label
:
'用户id'
,
name
:
'userId'
,
index
:
'user_id'
,
width
:
80
},
{
label
:
'订单号'
,
name
:
'orderNo'
,
index
:
'orderNo'
,
width
:
80
},
{
label
:
'用户'
,
name
:
'userInfo'
,
index
:
'userInfo'
,
width
:
80
},
{
label
:
'支付款项'
,
name
:
'payAccount'
,
index
:
'pay_account'
,
width
:
80
},
{
label
:
'支付款项'
,
name
:
'payAccount'
,
index
:
'pay_account'
,
width
:
80
},
{
label
:
'支付流水号'
,
name
:
'payId'
,
index
:
'pay_id'
,
width
:
80
},
{
label
:
'支付流水号'
,
name
:
'payId'
,
index
:
'pay_id'
,
width
:
80
},
{
label
:
'支付方式'
,
name
:
'payWayCode'
,
index
:
'pay_way_code'
,
width
:
80
},
{
label
:
'支付方式'
,
name
:
'payWayCode'
,
index
:
'pay_way_code'
,
width
:
80
},
...
...
platform-admin/src/main/webapp/js/sys/tbcforder.js
浏览文件 @
00b4a2c8
...
@@ -102,13 +102,19 @@ let vm = new Vue({
...
@@ -102,13 +102,19 @@ let vm = new Vue({
}],
}],
deliveryFlagOptions
:
[{
deliveryFlagOptions
:
[{
value
:
'0'
,
value
:
'0'
,
label
:
'未代购'
label
:
'待采购'
},{
value
:
'10'
,
label
:
'已代购'
},{
},{
value
:
'20'
,
value
:
'20'
,
label
:
'已到达中国仓'
label
:
'已到达中国仓'
},{
},{
value
:
'40'
,
value
:
'40'
,
label
:
'已到达非洲仓'
label
:
'已到达非洲仓'
},{
value
:
'50'
,
label
:
'买家已签收'
}],
}],
pickerOptions
:
{
pickerOptions
:
{
shortcuts
:
[{
shortcuts
:
[{
...
...
platform-admin/src/main/webapp/js/sys/tbcforderList.js
浏览文件 @
00b4a2c8
...
@@ -7,19 +7,17 @@ $(function () {
...
@@ -7,19 +7,17 @@ $(function () {
cellurl:'../tbcforder/changeDeliveryFlag/',*/
cellurl:'../tbcforder/changeDeliveryFlag/',*/
colModel
:
[
colModel
:
[
//显示字段
//显示字段
{
label
:
'ordersId'
,
name
:
'ordersId'
,
index
:
'ordersId'
,
key
:
true
,
hidden
:
true
},
{
label
:
'orderId'
,
name
:
'orderId'
,
index
:
'order_id'
,
key
:
true
,
hidden
:
true
},
{
label
:
'orderId'
,
name
:
'orderId'
,
index
:
'order_id'
,
hidden
:
true
},
{
label
:
'itemId'
,
name
:
'itemId'
,
index
:
'item_id'
,
hidden
:
true
},
{
label
:
'用户id'
,
name
:
'userId'
,
index
:
'user_id'
,
width
:
120
},
{
label
:
'订单号'
,
name
:
'orderNo'
,
index
:
'order_no'
,
width
:
80
},
{
label
:
'订单号'
,
name
:
'orderNo'
,
index
:
'order_no'
,
width
:
80
},
{
label
:
'用户'
,
name
:
'userInfo'
,
index
:
'userInfo'
,
width
:
120
},
{
label
:
'下单时间'
,
name
:
'orderTime'
,
index
:
'order_time'
,
width
:
70
},
{
label
:
'下单时间'
,
name
:
'orderTime'
,
index
:
'order_time'
,
width
:
70
},
{
label
:
'
商品总价'
,
name
:
'itemPrice'
,
index
:
'itemPrice'
,
width
:
55
,
formatter
:
"currency"
,
formatoptions
:
{
prefix
:
"$"
}
},
{
label
:
'
下单金额'
,
name
:
'realityPay'
,
index
:
'reality_pay'
,
width
:
45
},
// formatter: "currency",formatoptions: {thousandsSeparator:",",decimalSeparator:".",decimalPlaces:"2", prefix:"$"}}, //在金额前加上$,加上后,页合计无法正常显示。
// formatter: "currency",formatoptions: {thousandsSeparator:",",decimalSeparator:".",decimalPlaces:"2", prefix:"$"}}, //在金额前加上$,加上后,页合计无法正常显示。
{
label
:
'
商品'
,
name
:
'itemTitle'
,
index
:
'item_title'
,
width
:
9
0
},
{
label
:
'
收货人'
,
name
:
'deliveryName'
,
index
:
'delivery_name'
,
width
:
10
0
},
{
label
:
'
商品数量'
,
name
:
'itemNum'
,
index
:
'item_num'
,
width
:
3
0
},
{
label
:
'
收货地址'
,
name
:
'deliveryPhone'
,
index
:
'delivery_phone'
,
width
:
10
0
},
{
label
:
'收货地址'
,
name
:
'deliveryAddress'
,
index
:
'delivery_address'
,
width
:
100
},
{
label
:
'收货地址'
,
name
:
'deliveryAddress'
,
index
:
'delivery_address'
,
width
:
100
},
{
label
:
'快递单号'
,
name
:
'pExpressNumber'
,
index
:
'p_express_number'
,
width
:
80
,
sortable
:
false
},
{
label
:
'快递单号'
,
name
:
'pExpressNumber'
,
index
:
'p_express_number'
,
width
:
80
,
sortable
:
false
},
{
label
:
'支付方式'
,
name
:
'payWayCode'
,
index
:
'pay_way_code'
,
width
:
3
5
},
{
label
:
'支付方式'
,
name
:
'payWayCode'
,
index
:
'pay_way_code'
,
width
:
4
5
},
{
label
:
'物流状态'
,
name
:
'deliveryFlag'
,
index
:
'delivery_flag'
,
width
:
40
,
formatter
:
deliveryFlagFormat
},
{
label
:
'物流状态'
,
name
:
'deliveryFlag'
,
index
:
'delivery_flag'
,
width
:
40
,
formatter
:
deliveryFlagFormat
},
{
label
:
'代购人'
,
name
:
'userName'
,
index
:
'user_name'
,
width
:
40
},
{
label
:
'代购人'
,
name
:
'userName'
,
index
:
'user_name'
,
width
:
40
},
{
label
:
'总金额'
,
name
:
'totalPay'
,
index
:
'totalPay'
,
width
:
40
,
hidden
:
true
}
{
label
:
'总金额'
,
name
:
'totalPay'
,
index
:
'totalPay'
,
width
:
40
,
hidden
:
true
}
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论