Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
为 GitLab 提交贡献
登录/注册
切换导航
C
chinafrica
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分枝图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
分枝图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
zhengfg
chinafrica
Commits
291c1752
提交
291c1752
authored
11月 28, 2019
作者:
luojie
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
修改订单状态物流状态为订单商品关联表获得
上级
98b2c015
全部展开
隐藏空白字符变更
内嵌
并排
正在显示
24 个修改的文件
包含
506 行增加
和
438 行删除
+506
-438
TbCfOrderController.java
...ain/java/com/platform/controller/TbCfOrderController.java
+9
-13
TbCfPlatformOrderController.java
.../com/platform/controller/TbCfPlatformOrderController.java
+3
-3
TbCfItemOrderRDao.java
...min/src/main/java/com/platform/dao/TbCfItemOrderRDao.java
+11
-0
TbCfOrderDao.java
...rm-admin/src/main/java/com/platform/dao/TbCfOrderDao.java
+5
-2
TbCfPlatformOrderDao.java
.../src/main/java/com/platform/dao/TbCfPlatformOrderDao.java
+2
-1
TbCfItemDetailEntity.java
...c/main/java/com/platform/entity/TbCfItemDetailEntity.java
+8
-0
TbCfItemOrderREntity.java
...c/main/java/com/platform/entity/TbCfItemOrderREntity.java
+50
-3
TbCfOrderEntity.java
...in/src/main/java/com/platform/entity/TbCfOrderEntity.java
+12
-1
TbCfOrderListEntity.java
...rc/main/java/com/platform/entity/TbCfOrderListEntity.java
+17
-5
TbCfItemOrderRService.java
...main/java/com/platform/service/TbCfItemOrderRService.java
+21
-0
TbCfOrderService.java
.../src/main/java/com/platform/service/TbCfOrderService.java
+3
-20
TbCfItemOrderRServiceImpl.java
.../com/platform/service/impl/TbCfItemOrderRServiceImpl.java
+22
-0
TbCfOrderServiceImpl.java
.../java/com/platform/service/impl/TbCfOrderServiceImpl.java
+30
-42
TbCfPlatformOrderServiceImpl.java
...m/platform/service/impl/TbCfPlatformOrderServiceImpl.java
+1
-1
ExpressStatusTask.java
...in/src/main/java/com/platform/task/ExpressStatusTask.java
+5
-4
PlatformOrderVo.java
...-admin/src/main/java/com/platform/vo/PlatformOrderVo.java
+56
-156
TbCfItemOrderRDao.xml
...src/main/resources/com/platform/dao/TbCfItemOrderRDao.xml
+83
-9
TbCfOrderDao.xml
...dmin/src/main/resources/com/platform/dao/TbCfOrderDao.xml
+110
-131
TbCfOrderListDao.xml
.../src/main/resources/com/platform/dao/TbCfOrderListDao.xml
+5
-4
TbCfPlatformOrderDao.xml
.../main/resources/com/platform/dao/TbCfPlatformOrderDao.xml
+7
-4
tbcforder.html
...orm-admin/src/main/webapp/WEB-INF/page/sys/tbcforder.html
+1
-1
common.js
platform-admin/src/main/webapp/js/common.js
+1
-1
tbcforder.js
platform-admin/src/main/webapp/js/sys/tbcforder.js
+40
-34
tbcforderList.js
platform-admin/src/main/webapp/js/sys/tbcforderList.js
+4
-3
没有找到文件。
platform-admin/src/main/java/com/platform/controller/TbCfOrderController.java
浏览文件 @
291c1752
...
...
@@ -113,34 +113,30 @@ public class TbCfOrderController {
/**
* 查看订单详情
*/
@RequestMapping
(
"/detail/{orderId}"
)
@RequestMapping
(
"/detail/{order
s
Id}"
)
@ResponseBody
public
R
detail
(
@PathVariable
(
"order
Id"
)
String
order
Id
)
{
List
<
TbCfOrderEntity
>
list
=
tbCfOrderService
.
queryOrderDetail
(
orderId
);
public
R
detail
(
@PathVariable
(
"order
sId"
)
String
orders
Id
)
{
List
<
TbCfOrderEntity
>
list
=
tbCfOrderService
.
queryOrderDetail
(
order
s
Id
);
return
R
.
ok
().
put
(
"list"
,
list
);
}
/**
* 获取订单中的商品
*/
@RequestMapping
(
"/item/{orderId}"
)
@RequestMapping
(
"/item/{order
s
Id}"
)
@RequiresPermissions
(
"tbcforder:info"
)
@ResponseBody
public
R
getOrderItemList
(
@PathVariable
(
"orderId"
)
String
orderId
)
{
List
<
TbCfItemDetailEntity
>
list
=
tbCfOrderService
.
getOrderItemList
(
orderId
);
public
R
getOrderItemList
(
@PathVariable
(
"ordersId"
)
String
ordersId
)
{
List
<
TbCfItemDetailEntity
>
list
=
tbCfOrderService
.
getOrderItemList
(
ordersId
);
return
R
.
ok
().
put
(
"list"
,
list
);
}
/**
* 获取订单的代购信息
*/
@GetMapping
(
"/agent/{orderId}"
)
@GetMapping
(
"/agent/{order
s
Id}"
)
@RequiresPermissions
(
"tbcforder:info"
)
@ResponseBody
public
R
getAgentInfo
(
@PathVariable
(
"orderId"
)
String
orderId
)
{
PlatformOrderVo
tbCfPlatformOrder
=
tbCfOrderService
.
getAgentInfo
(
orderId
);
public
R
getAgentInfo
(
@PathVariable
(
"ordersId"
)
String
ordersId
)
{
PlatformOrderVo
tbCfPlatformOrder
=
tbCfOrderService
.
getAgentInfo
(
ordersId
);
return
R
.
ok
().
put
(
"data"
,
tbCfPlatformOrder
);
}
/**
...
...
platform-admin/src/main/java/com/platform/controller/TbCfPlatformOrderController.java
浏览文件 @
291c1752
...
...
@@ -59,9 +59,9 @@ public class TbCfPlatformOrderController {
return
R
.
ok
().
put
(
"tbCfPlatformOrder"
,
tbCfPlatformOrder
);
}
/**
/* */
/**
* 保存
*/
*/
/*
@RequestMapping("/save")
@RequiresPermissions("tbcfplatformorder:save")
@ResponseBody
...
...
@@ -69,7 +69,7 @@ public class TbCfPlatformOrderController {
tbCfPlatformOrderService.save(PlatformOrderVo);
return R.ok();
}
*/
/**
* 修改
*/
...
...
platform-admin/src/main/java/com/platform/dao/TbCfItemOrderRDao.java
浏览文件 @
291c1752
package
com
.
platform
.
dao
;
import
com.platform.entity.TbCfItemOrderREntity
;
import
org.apache.ibatis.annotations.Param
;
/**
* 订单商品对应表Dao
...
...
@@ -10,4 +11,14 @@ import com.platform.entity.TbCfItemOrderREntity;
*/
public
interface
TbCfItemOrderRDao
extends
BaseDao
<
TbCfItemOrderREntity
>
{
String
getOrderId
(
String
ordersId
);
int
updateDeliveryTime
(
TbCfItemOrderREntity
tbCfItemOrderREntity2
);
int
updateExpressStatusDelivery
(
String
[]
sids
);
int
updateExpressStatuss
(
String
[]
sids
);
int
updateExpressStatus
(
String
[]
sids
);
}
platform-admin/src/main/java/com/platform/dao/TbCfOrderDao.java
浏览文件 @
291c1752
...
...
@@ -5,6 +5,7 @@ import com.platform.entity.TbCfOrderEntity;
import
com.platform.entity.TbCfPlatformOrderEntity
;
import
org.apache.ibatis.annotations.Param
;
import
java.math.BigDecimal
;
import
java.util.List
;
/**
...
...
@@ -20,7 +21,7 @@ public interface TbCfOrderDao extends BaseDao<TbCfOrderEntity> {
* @param orderId
* @return
*/
List
<
TbCfItemDetailEntity
>
getOrderItemList
(
String
orderId
);
List
<
TbCfItemDetailEntity
>
getOrderItemList
(
String
order
s
Id
);
/**
...
...
@@ -29,7 +30,7 @@ public interface TbCfOrderDao extends BaseDao<TbCfOrderEntity> {
*/
void
updateDeliveryTime
(
TbCfOrderEntity
tbCfOrder2
);
List
<
TbCfOrderEntity
>
queryOrderDetail
(
String
orderId
);
List
<
TbCfOrderEntity
>
queryOrderDetail
(
String
order
s
Id
);
/**
* 修改物流状态为入库中国仓
...
...
@@ -51,4 +52,6 @@ public interface TbCfOrderDao extends BaseDao<TbCfOrderEntity> {
* @return
*/
int
updateExpressStatusDelivery
(
String
[]
sid
);
BigDecimal
getPrice
(
String
ordersId
);
}
platform-admin/src/main/java/com/platform/dao/TbCfPlatformOrderDao.java
浏览文件 @
291c1752
...
...
@@ -17,7 +17,8 @@ public interface TbCfPlatformOrderDao extends BaseDao<PlatformOrderVo> {
* @param orderId
* @return
*/
PlatformOrderVo
getAgentInfo
(
String
order
Id
);
PlatformOrderVo
getAgentInfo
(
@Param
(
"ordersId"
)
String
orders
Id
);
int
updates
(
PlatformOrderVo
tbCfPlatformOrder
);
}
platform-admin/src/main/java/com/platform/entity/TbCfItemDetailEntity.java
浏览文件 @
291c1752
...
...
@@ -14,6 +14,7 @@ import java.util.Date;
public
class
TbCfItemDetailEntity
implements
Serializable
{
private
static
final
long
serialVersionUID
=
1L
;
private
String
ordersId
;
/**
* 商品表记录id
*/
...
...
@@ -71,6 +72,13 @@ public class TbCfItemDetailEntity implements Serializable {
*/
private
Date
createTime
;
public
String
getOrdersId
()
{
return
ordersId
;
}
public
void
setOrdersId
(
String
ordersId
)
{
this
.
ordersId
=
ordersId
;
}
/**
* 设置:商品表记录id
...
...
platform-admin/src/main/java/com/platform/entity/TbCfItemOrderREntity.java
浏览文件 @
291c1752
...
...
@@ -18,7 +18,7 @@ public class TbCfItemOrderREntity implements Serializable {
*/
private
String
orderItemId
;
/**
* 商品
表记录
id
* 商品id
*/
private
String
itemId
;
/**
...
...
@@ -30,6 +30,13 @@ public class TbCfItemOrderREntity implements Serializable {
*/
private
Integer
enableFlag
;
private
Integer
orderStatus
;
private
Integer
deliveryFlag
;
private
Date
deliveryTime
;
private
Date
closeTime
;
private
Date
updateTime
;
/**
* 设置:记录表
*/
...
...
@@ -44,14 +51,14 @@ public class TbCfItemOrderREntity implements Serializable {
return
orderItemId
;
}
/**
* 设置:商品
表记录
id
* 设置:商品id
*/
public
void
setItemId
(
String
itemId
)
{
this
.
itemId
=
itemId
;
}
/**
* 获取:商品
表记录
id
* 获取:商品id
*/
public
String
getItemId
()
{
return
itemId
;
...
...
@@ -82,4 +89,44 @@ public class TbCfItemOrderREntity implements Serializable {
public
Integer
getEnableFlag
()
{
return
enableFlag
;
}
public
Integer
getOrderStatus
()
{
return
orderStatus
;
}
public
void
setOrderStatus
(
Integer
orderStatus
)
{
this
.
orderStatus
=
orderStatus
;
}
public
Integer
getDeliveryFlag
()
{
return
deliveryFlag
;
}
public
void
setDeliveryFlag
(
Integer
deliveryFlag
)
{
this
.
deliveryFlag
=
deliveryFlag
;
}
public
Date
getDeliveryTime
()
{
return
deliveryTime
;
}
public
void
setDeliveryTime
(
Date
deliveryTime
)
{
this
.
deliveryTime
=
deliveryTime
;
}
public
Date
getCloseTime
()
{
return
closeTime
;
}
public
void
setCloseTime
(
Date
closeTime
)
{
this
.
closeTime
=
closeTime
;
}
public
Date
getUpdateTime
()
{
return
updateTime
;
}
public
void
setUpdateTime
(
Date
updateTime
)
{
this
.
updateTime
=
updateTime
;
}
}
platform-admin/src/main/java/com/platform/entity/TbCfOrderEntity.java
浏览文件 @
291c1752
...
...
@@ -13,7 +13,10 @@ import java.util.Date;
*/
public
class
TbCfOrderEntity
implements
Serializable
{
private
static
final
long
serialVersionUID
=
1L
;
/**
* 订单id
*/
private
String
ordersId
;
/**
* 订单id
*/
...
...
@@ -508,4 +511,12 @@ public class TbCfOrderEntity implements Serializable {
public
String
getDescripitionName
()
{
return
descripitionName
;
}
public
String
getOrdersId
()
{
return
ordersId
;
}
public
void
setOrdersId
(
String
ordersId
)
{
this
.
ordersId
=
ordersId
;
}
}
platform-admin/src/main/java/com/platform/entity/TbCfOrderListEntity.java
浏览文件 @
291c1752
...
...
@@ -13,6 +13,10 @@ import java.util.Date;
*/
public
class
TbCfOrderListEntity
implements
Serializable
{
private
static
final
long
serialVersionUID
=
1L
;
/**
* 订单id
*/
private
String
ordersId
;
/**
* 订单id
*/
...
...
@@ -36,7 +40,7 @@ public class TbCfOrderListEntity implements Serializable {
/**
* 金额
*/
private
BigDecimal
realityPay
;
private
BigDecimal
itemPrice
;
/**
* 商品
*/
...
...
@@ -66,6 +70,14 @@ public class TbCfOrderListEntity implements Serializable {
*/
private
String
userName
;
public
String
getOrdersId
()
{
return
ordersId
;
}
public
void
setOrdersId
(
String
ordersId
)
{
this
.
ordersId
=
ordersId
;
}
/**
* 获取:订单id
*/
...
...
@@ -129,14 +141,14 @@ public class TbCfOrderListEntity implements Serializable {
/**
* 获取:金额
*/
public
BigDecimal
get
RealityPay
()
{
return
realityPay
;
public
BigDecimal
get
ItemPrice
()
{
return
itemPrice
;
}
/**
* 设置:金额
*/
public
void
set
RealityPay
(
BigDecimal
realityPay
)
{
this
.
realityPay
=
realityPay
;
public
void
set
ItemPrice
(
BigDecimal
itemPrice
)
{
this
.
itemPrice
=
itemPrice
;
}
/**
* 获取:商品
...
...
platform-admin/src/main/java/com/platform/service/TbCfItemOrderRService.java
浏览文件 @
291c1752
...
...
@@ -68,4 +68,25 @@ public interface TbCfItemOrderRService {
* @return 删除条数
*/
int
deleteBatch
(
String
[]
orderItemIds
);
String
getOrderId
(
String
ordersId
);
/**
* 修改物流状态为已入中国仓库
* @return
* @param sid
*/
int
updateExpressStatus
(
String
[]
sid
);
/**
* 修改物流状态为已入非洲仓库
* @return
*/
int
updateExpressStatuss
(
String
[]
sid
);
/**
* 修改物流状态为已签收
* @return
*/
int
updateExpressStatusDelivery
(
String
[]
sids
);
}
platform-admin/src/main/java/com/platform/service/TbCfOrderService.java
浏览文件 @
291c1752
...
...
@@ -75,14 +75,14 @@ public interface TbCfOrderService {
* @param orderId
* @return
*/
List
<
TbCfItemDetailEntity
>
getOrderItemList
(
String
orderId
);
List
<
TbCfItemDetailEntity
>
getOrderItemList
(
String
order
s
Id
);
/**
* 获取订单的代购信息
* @param orderId
* @return
*/
PlatformOrderVo
getAgentInfo
(
String
orderId
);
PlatformOrderVo
getAgentInfo
(
String
order
s
Id
);
/**
* 新增或者修改代购信息
...
...
@@ -96,24 +96,7 @@ public interface TbCfOrderService {
* @param orderId
* @return
*/
List
<
TbCfOrderEntity
>
queryOrderDetail
(
String
orderId
);
List
<
TbCfOrderEntity
>
queryOrderDetail
(
String
order
s
Id
);
/**
* 修改物流状态为已入中国仓库
* @return
* @param sid
*/
int
updateExpressStatus
(
String
[]
sid
);
/**
* 修改物流状态为已入非洲仓库
* @return
*/
int
updateExpressStatuss
(
String
[]
sid
);
/**
* 修改物流状态为已签收
* @return
*/
int
updateExpressStatusDelivery
(
String
[]
sids
);
}
platform-admin/src/main/java/com/platform/service/impl/TbCfItemOrderRServiceImpl.java
浏览文件 @
291c1752
...
...
@@ -56,4 +56,26 @@ public class TbCfItemOrderRServiceImpl implements TbCfItemOrderRService {
public
int
deleteBatch
(
String
[]
orderItemIds
)
{
return
tbCfItemOrderRDao
.
deleteBatch
(
orderItemIds
);
}
@Override
public
String
getOrderId
(
String
ordersId
)
{
return
tbCfItemOrderRDao
.
getOrderId
(
ordersId
);
}
@Override
public
int
updateExpressStatus
(
String
[]
sids
)
{
return
tbCfItemOrderRDao
.
updateExpressStatus
(
sids
);
}
@Override
public
int
updateExpressStatuss
(
String
[]
sids
)
{
return
tbCfItemOrderRDao
.
updateExpressStatuss
(
sids
);
}
@Override
public
int
updateExpressStatusDelivery
(
String
[]
sids
)
{
return
tbCfItemOrderRDao
.
updateExpressStatusDelivery
(
sids
);
}
}
platform-admin/src/main/java/com/platform/service/impl/TbCfOrderServiceImpl.java
浏览文件 @
291c1752
package
com
.
platform
.
service
.
impl
;
import
com.platform.dao.SysUserDao
;
import
com.platform.dao.TbCfOrderDao
;
import
com.platform.dao.TbCfOrderListDao
;
import
com.platform.dao.TbCfPlatformOrderDao
;
import
com.platform.dao.*
;
import
com.platform.entity.TbCfItemDetailEntity
;
import
com.platform.entity.TbCfItemOrderREntity
;
import
com.platform.entity.TbCfOrderEntity
;
import
com.platform.entity.TbCfPlatformEntity
;
import
com.platform.enums.DeliveryStatusEnum
;
import
com.platform.enums.OrderStatusEnum
;
import
com.platform.service.TbCfOrderService
;
...
...
@@ -36,6 +35,8 @@ public class TbCfOrderServiceImpl implements TbCfOrderService {
private
TbCfOrderListDao
tbCfOrderListDao
;
@Autowired
private
SysUserDao
sysUserDao
;
@Autowired
private
TbCfItemOrderRDao
tbCfItemOrderRDao
;
@Override
public
TbCfOrderEntity
queryObject
(
String
orderId
)
{
return
tbCfOrderDao
.
queryObject
(
orderId
);
...
...
@@ -75,13 +76,13 @@ public class TbCfOrderServiceImpl implements TbCfOrderService {
@Override
public
List
<
TbCfItemDetailEntity
>
getOrderItemList
(
String
orderId
)
{
return
tbCfOrderDao
.
getOrderItemList
(
orderId
);
public
List
<
TbCfItemDetailEntity
>
getOrderItemList
(
String
order
s
Id
)
{
return
tbCfOrderDao
.
getOrderItemList
(
order
s
Id
);
}
@Override
public
PlatformOrderVo
getAgentInfo
(
String
orderId
)
{
return
tbCfPlatformOrderDao
.
getAgentInfo
(
orderId
);
public
PlatformOrderVo
getAgentInfo
(
String
order
s
Id
)
{
return
tbCfPlatformOrderDao
.
getAgentInfo
(
order
s
Id
);
}
@Override
...
...
@@ -89,60 +90,47 @@ public class TbCfOrderServiceImpl implements TbCfOrderService {
//tbCfPlatformOrder 有relativeId 则就是修改
int
res
=
0
;
if
(
StringUtils
.
isNotEmpty
(
tbCfPlatformOrder
.
getRelativeId
()))
{
tbCfPlatformOrder
.
setOrdersId
(
tbCfPlatformOrder
.
getOrdersId
());
String
userId
=
ShiroUtils
.
getUserId
();
tbCfPlatformOrder
.
setUserId
(
userId
);
tbCfPlatformOrder
.
setUserName
(
sysUserDao
.
queryById
(
userId
));
res
=
tbCfPlatformOrderDao
.
updates
(
tbCfPlatformOrder
);
res
=
tbCfPlatformOrderDao
.
updates
(
tbCfPlatformOrder
);
}
else
{
tbCfPlatformOrder
.
setCreateTime
(
new
Date
());
tbCfPlatformOrder
.
setRelativeId
(
IdUtil
.
createIdbyUUID
());
tbCfPlatformOrder
.
setOrderId
(
tbCfItemOrderRDao
.
getOrderId
(
tbCfPlatformOrder
.
getOrdersId
()));
tbCfPlatformOrder
.
setCreateTime
(
new
Date
());
String
userId
=
ShiroUtils
.
getUserId
();
tbCfPlatformOrder
.
setUserId
(
userId
);
tbCfPlatformOrder
.
setUserName
(
sysUserDao
.
queryById
(
userId
));
tbCfPlatformOrder
.
setRealityPay
(
tbCfPlatformOrder
.
getRealityPay
());
res
=
tbCfPlatformOrderDao
.
save
(
tbCfPlatformOrder
);
res
=
tbCfPlatformOrderDao
.
save
(
tbCfPlatformOrder
);
}
//如果填写了原网站订单号,那么意味着已发货,需要更改发货状态
if
(
StringUtils
.
isNotEmpty
(
tbCfPlatformOrder
.
get
P
OrderId
()))
{
TbCf
OrderEntity
tbCfOrder
=
new
TbCfOrder
Entity
();
tbCf
Order
.
setOrderId
(
tbCfPlatformOrder
.
getOrder
Id
());
tbCf
Order
.
setOrderStatus
(
OrderStatusEnum
.
SHIPPED
.
getValue
());
tbCf
OrderDao
.
update
(
tbCfOrder
);
if
(
StringUtils
.
isNotEmpty
(
tbCfPlatformOrder
.
get
p
OrderId
()))
{
TbCf
ItemOrderREntity
tbCfItemOrderREntity
=
new
TbCfItemOrderR
Entity
();
tbCf
ItemOrderREntity
.
setOrderItemId
(
tbCfPlatformOrder
.
getOrders
Id
());
tbCf
ItemOrderREntity
.
setOrderStatus
(
OrderStatusEnum
.
SHIPPED
.
getValue
());
tbCf
ItemOrderRDao
.
update
(
tbCfItemOrderREntity
);
//更新发货时间,如果原值为空就更新,否则保留原值
TbCf
OrderEntity
tbCfOrder2
=
new
TbCfOrder
Entity
();
tbCf
Order2
.
setOrderId
(
tbCfPlatformOrder
.
getOrder
Id
());
tbCf
Order
2
.
setDeliveryTime
(
new
Date
());
tbCf
OrderDao
.
updateDeliveryTime
(
tbCfOrder
2
);
TbCf
ItemOrderREntity
tbCfItemOrderREntity2
=
new
TbCfItemOrderR
Entity
();
tbCf
ItemOrderREntity2
.
setOrderItemId
(
tbCfPlatformOrder
.
getOrders
Id
());
tbCf
ItemOrderREntity
2
.
setDeliveryTime
(
new
Date
());
tbCf
ItemOrderRDao
.
updateDeliveryTime
(
tbCfItemOrderREntity
2
);
}
//如果填写了快递单号,那么意味着已代购,需要更改发货状态
if
(
StringUtils
.
isNotEmpty
(
tbCfPlatformOrder
.
get
P
ExpressNumber
()))
{
TbCf
OrderEntity
tbCfOrder
=
new
TbCfOrder
Entity
();
tbCf
Order
.
setOrderId
(
tbCfPlatformOrder
.
getOrder
Id
());
tbCf
Order
.
setDeliveryFlag
(
DeliveryStatusEnum
.
PURCHASE
.
getValue
());
tbCf
OrderDao
.
update
(
tbCfOrder
);
if
(
StringUtils
.
isNotEmpty
(
tbCfPlatformOrder
.
get
p
ExpressNumber
()))
{
TbCf
ItemOrderREntity
tbCfItemOrderREntity2
=
new
TbCfItemOrderR
Entity
();
tbCf
ItemOrderREntity2
.
setOrderItemId
(
tbCfPlatformOrder
.
getOrders
Id
());
tbCf
ItemOrderREntity2
.
setDeliveryFlag
(
DeliveryStatusEnum
.
PURCHASE
.
getValue
());
tbCf
ItemOrderRDao
.
update
(
tbCfItemOrderREntity2
);
}
return
res
;
}
@Override
public
List
<
TbCfOrderEntity
>
queryOrderDetail
(
String
orderId
)
{
return
tbCfOrderDao
.
queryOrderDetail
(
orderId
);
public
List
<
TbCfOrderEntity
>
queryOrderDetail
(
String
order
s
Id
)
{
return
tbCfOrderDao
.
queryOrderDetail
(
order
s
Id
);
}
@Override
public
int
updateExpressStatus
(
String
[]
sids
)
{
return
tbCfOrderDao
.
updateExpressStatus
(
sids
);
}
@Override
public
int
updateExpressStatuss
(
String
[]
sids
)
{
return
tbCfOrderDao
.
updateExpressStatuss
(
sids
);
}
@Override
public
int
updateExpressStatusDelivery
(
String
[]
sids
)
{
return
tbCfOrderDao
.
updateExpressStatusDelivery
(
sids
);
}
}
platform-admin/src/main/java/com/platform/service/impl/TbCfPlatformOrderServiceImpl.java
浏览文件 @
291c1752
...
...
@@ -44,7 +44,7 @@ public class TbCfPlatformOrderServiceImpl implements TbCfPlatformOrderService {
@Override
public
int
save
(
PlatformOrderVo
platformOrderVo
)
{
platformOrderVo
.
set
P
OrderId
(
IdUtil
.
createIdbyUUID
());
platformOrderVo
.
set
p
OrderId
(
IdUtil
.
createIdbyUUID
());
String
userId
=
ShiroUtils
.
getUserId
();
platformOrderVo
.
setUserId
(
userId
);
platformOrderVo
.
setUserName
(
sysUserDao
.
queryById
(
userId
));
...
...
platform-admin/src/main/java/com/platform/task/ExpressStatusTask.java
浏览文件 @
291c1752
package
com
.
platform
.
task
;
import
com.platform.service.TbCfItemOrderRService
;
import
com.platform.service.TbCfOrderService
;
import
com.platform.utils.util.HttpUtils
;
import
net.sf.json.JSONArray
;
...
...
@@ -14,7 +15,7 @@ import java.util.*;
@Component
(
"ExpressStatusTask"
)
public
class
ExpressStatusTask
{
@Autowired
private
TbCf
OrderService
tbCfOrder
Service
;
private
TbCf
ItemOrderRService
tbCfItemOrderR
Service
;
@Scheduled
(
cron
=
"0 15 0/2 * * ? "
)
public
void
expressStatusTaskForStorageC
()
{
...
...
@@ -40,7 +41,7 @@ public class ExpressStatusTask {
sids
[
i
]=
object
.
getString
(
"sid"
);
}
if
(
sids
.
length
!=
0
)
{
tbCf
Order
Service
.
updateExpressStatus
(
sids
);
tbCf
ItemOrderR
Service
.
updateExpressStatus
(
sids
);
System
.
out
.
println
(
"修改了:"
+
sids
.
length
+
"条数据"
);
}
long
endTime
=
System
.
currentTimeMillis
();
...
...
@@ -72,7 +73,7 @@ public class ExpressStatusTask {
sids
[
i
]=
object
.
getString
(
"sid"
);
}
if
(
sids
.
length
!=
0
)
{
tbCf
Order
Service
.
updateExpressStatuss
(
sids
);
tbCf
ItemOrderR
Service
.
updateExpressStatuss
(
sids
);
System
.
out
.
println
(
"修改了:"
+
sids
.
length
+
"条数据"
);
}
long
endTime
=
System
.
currentTimeMillis
();
...
...
@@ -103,7 +104,7 @@ public class ExpressStatusTask {
sids
[
i
]=
object
.
getString
(
"sid"
);
}
if
(
sids
.
length
!=
0
)
{
tbCf
Order
Service
.
updateExpressStatusDelivery
(
sids
);
tbCf
ItemOrderR
Service
.
updateExpressStatusDelivery
(
sids
);
System
.
out
.
println
(
"修改了:"
+
sids
.
length
+
"条数据"
);
}
long
endTime
=
System
.
currentTimeMillis
();
...
...
platform-admin/src/main/java/com/platform/vo/PlatformOrderVo.java
浏览文件 @
291c1752
...
...
@@ -10,6 +10,10 @@ public class PlatformOrderVo implements Serializable{
* 对应id
*/
private
String
relativeId
;
/**
* 订单id
*/
private
String
ordersId
;
/**
* 订单id
*/
...
...
@@ -30,23 +34,11 @@ public class PlatformOrderVo implements Serializable{
* 第三方发货地址
*/
private
String
pDeliveryAddress
;
/**
* 代购人
*/
private
String
userName
;
/**
* 代购人id
*/
private
String
userId
;
/**
* 商品品名
*/
private
String
descripitionId
;
/**
* 商品品名
*/
private
String
templateTitle
;
/**
* 创建时间
*/
...
...
@@ -60,28 +52,25 @@ public class PlatformOrderVo implements Serializable{
*/
private
String
pExpressNumber
;
private
String
userId
;
private
String
userName
;
public
String
get
TemplateTitle
()
{
return
templateTitle
;
public
String
get
OrdersId
()
{
return
ordersId
;
}
public
void
set
TemplateTitle
(
String
templateTitle
)
{
this
.
templateTitle
=
templateTitle
;
public
void
set
OrdersId
(
String
ordersId
)
{
this
.
ordersId
=
ordersId
;
}
// /**
// * 设置:商品品名
// */
// public String setDescripitionId() {
// return descripitionId;
// }
// /**
// * 获取:商品品名
// */
// public String getDescripitionId() {
// this.descripitionId = descripitionId;
// return descripitionId;
// }
public
String
getRelativeId
()
{
return
relativeId
;
}
public
void
setRelativeId
(
String
relativeId
)
{
this
.
relativeId
=
relativeId
;
}
public
String
getpOrderId
()
{
...
...
@@ -92,6 +81,22 @@ public class PlatformOrderVo implements Serializable{
this
.
pOrderId
=
pOrderId
;
}
public
String
getPlatformName
()
{
return
platformName
;
}
public
void
setPlatformName
(
String
platformName
)
{
this
.
platformName
=
platformName
;
}
public
String
getPlatformCode
()
{
return
platformCode
;
}
public
void
setPlatformCode
(
String
platformCode
)
{
this
.
platformCode
=
platformCode
;
}
public
String
getpDeliveryAddress
()
{
return
pDeliveryAddress
;
}
...
...
@@ -100,6 +105,7 @@ public class PlatformOrderVo implements Serializable{
this
.
pDeliveryAddress
=
pDeliveryAddress
;
}
public
String
getDescripitionId
()
{
return
descripitionId
;
}
...
...
@@ -108,158 +114,52 @@ public class PlatformOrderVo implements Serializable{
this
.
descripitionId
=
descripitionId
;
}
public
String
getpExpressNumber
()
{
return
pExpressNumber
;
public
Date
getCreateTime
()
{
return
createTime
;
}
public
void
set
pExpressNumber
(
String
pExpressNumber
)
{
this
.
pExpressNumber
=
pExpressNumber
;
public
void
set
CreateTime
(
Date
createTime
)
{
this
.
createTime
=
createTime
;
}
/**
* 设置:对应id
*/
public
void
setRelativeId
(
String
relativeId
)
{
this
.
relativeId
=
relativeId
;
public
BigDecimal
getRealityPay
()
{
return
realityPay
;
}
/**
* 获取:对应id
*/
public
String
getRelativeId
()
{
return
relativeId
;
}
/**
* 设置:订单id
*/
public
void
setOrderId
(
String
orderId
)
{
this
.
orderId
=
orderId
;
public
void
setRealityPay
(
BigDecimal
realityPay
)
{
this
.
realityPay
=
realityPay
;
}
/**
* 获取:订单id
*/
public
String
getOrderId
()
{
return
orderId
;
}
/**
* 设置:第三方订单id
*/
public
void
setPOrderId
(
String
pOrderId
)
{
this
.
pOrderId
=
pOrderId
;
}
/**
* 获取:第三方订单id
*/
public
String
getPOrderId
()
{
return
pOrderId
;
}
/**
* 设置:第三方平台名
*/
public
void
setPlatformName
(
String
platformName
)
{
this
.
platformName
=
platformName
;
public
String
getpExpressNumber
()
{
return
pExpressNumber
;
}
/**
* 获取:第三方平台名
*/
public
String
getPlatformName
()
{
return
platformName
;
}
/**
* 设置:第三方平台编号
*/
public
void
setPlatformCode
(
String
platformCode
)
{
this
.
platformCode
=
platformCode
;
public
void
setpExpressNumber
(
String
pExpressNumber
)
{
this
.
pExpressNumber
=
pExpressNumber
;
}
/**
* 获取:第三方平台编号
*/
public
String
getPlatformCode
()
{
return
platformCode
;
}
/**
* 设置:第三方发货地址
*/
public
void
setPDeliveryAddress
(
String
pDeliveryAddress
)
{
this
.
pDeliveryAddress
=
pDeliveryAddress
;
public
String
getUserId
()
{
return
userId
;
}
/**
* 获取:第三方发货地址
*/
public
String
getPDeliveryAddress
()
{
return
pDeliveryAddress
;
public
void
setUserId
(
String
userId
)
{
this
.
userId
=
userId
;
}
/**
* 获取:代购人
* @return
*/
public
String
getUserName
()
{
return
userName
;
}
/**
* 设置:代购人
* @return
*/
public
void
setUserName
(
String
userName
)
{
this
.
userName
=
userName
;
}
/**
* 设置:代购人id
*/
public
void
setUserId
(
String
userId
)
{
this
.
userId
=
userId
;
}
/**
* 获取:代购人id
*/
public
String
getUserId
()
{
return
userId
;
}
/**
* 设置:创建时间
*/
public
void
setCreateTime
(
Date
createTime
)
{
this
.
createTime
=
createTime
;
}
/**
* 获取:创建时间
*/
public
Date
getCreateTime
()
{
return
createTime
;
}
/**
* 设置:实际付款
*/
public
void
setRealityPay
(
BigDecimal
realityPay
)
{
this
.
realityPay
=
realityPay
;
}
/**
* 获取:实际付款
*/
public
BigDecimal
getRealityPay
()
{
return
realityPay
;
}
/**
* 设置:第三方快递单号
*/
public
void
setPExpressNumber
(
String
pExpressNumber
)
{
this
.
pExpressNumber
=
pExpressNumber
;
public
String
getOrderId
()
{
return
orderId
;
}
/**
* 获取:第三方快递单号
*/
public
String
getPExpressNumber
()
{
return
pExpressNumber
;
public
void
setOrderId
(
String
orderId
)
{
this
.
orderId
=
orderId
;
}
}
platform-admin/src/main/resources/com/platform/dao/TbCfItemOrderRDao.xml
浏览文件 @
291c1752
...
...
@@ -8,6 +8,11 @@
<result
property=
"itemId"
column=
"item_id"
/>
<result
property=
"orderId"
column=
"order_id"
/>
<result
property=
"enableFlag"
column=
"enable_flag"
/>
<result
property=
"orderStatus"
column=
"order_status"
/>
<result
property=
"deliveryFlag"
column=
"delivery_flag"
/>
<result
property=
"deliveryTime"
column=
"delivery_time"
/>
<result
property=
"closeTime"
column=
"close_time"
/>
<result
property=
"updateTime"
column=
"update_time"
/>
</resultMap>
<select
id=
"queryObject"
resultType=
"com.platform.entity.TbCfItemOrderREntity"
>
...
...
@@ -15,17 +20,27 @@
`order_item_id`,
`item_id`,
`order_id`,
`enable_flag`
`enable_flag`,
`order_status`,
`delivery_flag`,
`delivery_time`,
`close_time`,
`update_time`
from tb_cf_item_order_r
where order_item_id = #{id}
</select>
<select
id=
"queryList"
resultType=
"com.platform.entity.TbCfItemOrderREntity"
>
select
`order_item_id`,
`item_id`,
`order_id`,
`enable_flag`
`order_item_id`,
`item_id`,
`order_id`,
`enable_flag`,
`order_status`,
`delivery_flag`,
`delivery_time`,
`close_time`,
`update_time`
from tb_cf_item_order_r
WHERE 1=1
<if
test=
"name != null and name.trim() != ''"
>
...
...
@@ -57,12 +72,22 @@
`order_item_id`,
`item_id`,
`order_id`,
`enable_flag`)
`enable_flag`,
`order_status`,
`delivery_flag`,
`delivery_time`,
`close_time`,
`update_time`)
values(
#{orderItemId},
#{itemId},
#{orderId},
#{enableFlag})
#{enableFlag},
#{orderStatus},
#{deliveryFlag},
#{deliveryTime},
#{closeTime},
#{updateTime})
</insert>
<update
id=
"update"
parameterType=
"com.platform.entity.TbCfItemOrderREntity"
>
...
...
@@ -70,11 +95,16 @@
<set>
<if
test=
"itemId != null"
>
`item_id` = #{itemId},
</if>
<if
test=
"orderId != null"
>
`order_id` = #{orderId},
</if>
<if
test=
"enableFlag != null"
>
`enable_flag` = #{enableFlag}
</if>
<if
test=
"enableFlag != null"
>
`enable_flag` = #{enableFlag},
</if>
<if
test=
"orderStatus != null"
>
`order_status` = #{orderStatus},
</if>
<if
test=
"deliveryFlag != null"
>
`delivery_flag` = #{deliveryFlag},
</if>
<if
test=
"deliveryTime != null"
>
`delivery_time` = #{deliveryTime},
</if>
<if
test=
"closeTime != null"
>
`close_time` = #{closeTime},
</if>
<if
test=
"updateTime != null"
>
`update_time` = #{updateTime}
</if>
</set>
where order_item_id = #{orderItemId}
</update>
<delete
id=
"delete"
>
delete from tb_cf_item_order_r where order_item_id = #{value}
</delete>
...
...
@@ -85,5 +115,49 @@
#{orderItemId}
</foreach>
</delete>
<select
id=
"getOrderId"
resultType=
"String"
>
select order_id from tb_cf_item_order_r i where i.order_item_id=#{ordersId}
</select>
<select
id=
"getItemId"
resultType=
"String"
>
select item_id from tb_cf_item_order_r i where i.order_item_id=#{ordersId}
</select>
<update
id=
"updateDeliveryTime"
parameterType=
"com.platform.entity.TbCfItemOrderREntity"
>
update tb_cf_item_order_r r
<set>
<if
test=
"deliveryTime != null"
>
r.delivery_time = #{deliveryTime},
</if>
</set>
where r.order_item_id = #{orderItemId} and r.delivery_time is null
</update>
<!--根据快递单号id,修改物流状态为已入中国仓库 -->
<update
id=
"updateExpressStatus"
>
UPDATE tb_cf_order o,tb_cf_platform_order p,
SET i.delivery_flag = 20
WHERE o.order_id=p.order_id and i.delivery_flag=10 and p.p_express_number in
<foreach
collection=
"array"
item=
"sids"
open=
"("
separator=
","
close=
")"
>
#{sids}
</foreach>
</update>
<!--根据快递单号id,修改物流状态为已入非洲仓库 -->
<update
id=
"updateExpressStatuss"
>
update tb_cf_order o,tb_cf_platform_order p
set o.delivery_flag = 40
where o.order_id=p.order_id and o.delivery_flag = 20 and p.p_express_number in
<foreach
collection=
"array"
item=
"sids"
open=
"("
separator=
","
close=
")"
>
#{sids}
</foreach>
</update>
<!--根据快递单号id,修改物流状态为已签收 -->
<update
id=
"updateExpressStatusDelivery"
>
update tb_cf_order o,tb_cf_platform_order p
set o.delivery_flag = 50
where o.order_id=p.order_id and p.p_express_number in
<foreach
collection=
"array"
item=
"sids"
open=
"("
separator=
","
close=
")"
>
#{sids}
</foreach>
</update>
</mapper>
\ No newline at end of file
platform-admin/src/main/resources/com/platform/dao/TbCfOrderDao.xml
浏览文件 @
291c1752
差异被折叠。
点击展开。
platform-admin/src/main/resources/com/platform/dao/TbCfOrderListDao.xml
浏览文件 @
291c1752
...
...
@@ -21,18 +21,19 @@
<!--查询订单列表-->
<select
id=
"queryOrderList"
resultType=
"com.platform.entity.TbCfOrderListEntity"
>
select
i.order_item_id ordersId,
o.order_id,
i.item_id,
o.user_id,
o.order_no,
o.order_time,
o.reality_pay
,
d.item_price
,
d.item_title,
d.item_num,
o.delivery_address,
f.pay_way_code,
p.p_express_number,
o
.delivery_flag,
i
.delivery_flag,
s.user_name
from tb_cf_order o
left join tb_cf_item_order_r i on o.order_id=i.order_id
...
...
@@ -40,7 +41,7 @@
left join tb_cf_platform_order p on p.order_id=o.order_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 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() != ''"
>
AND o.order_no LIKE concat('%',#{name},'%')
</if>
...
...
@@ -79,7 +80,7 @@
left join tb_cf_platform_order p on p.order_id=o.order_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 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() != ''"
>
AND o.order_no LIKE concat('%',#{name},'%')
</if>
...
...
platform-admin/src/main/resources/com/platform/dao/TbCfPlatformOrderDao.xml
浏览文件 @
291c1752
...
...
@@ -5,6 +5,7 @@
<resultMap
type=
"com.platform.vo.PlatformOrderVo"
id=
"tbCfPlatformOrderMap"
>
<result
property=
"relativeId"
column=
"relative_id"
/>
<result
property=
"ordersId"
column=
"ordersId"
/>
<result
property=
"orderId"
column=
"order_id"
/>
<result
property=
"pOrderId"
column=
"p_order_id"
/>
<result
property=
"platformName"
column=
"platform_name"
/>
...
...
@@ -130,6 +131,7 @@
</update>-->
<update
id=
"updates"
parameterType=
"com.platform.vo.PlatformOrderVo"
>
update tb_cf_platform_order p left join tb_cf_express_template e on e.template_id=p.descripition_id
left join tb_cf_item_order_r i on i.order_id=p.order_id
<set>
<if
test=
"orderId != null"
>
p.order_id = #{orderId},
</if>
<if
test=
"pOrderId != null"
>
p.p_order_id = #{pOrderId},
</if>
...
...
@@ -159,9 +161,9 @@
<!--获取订单的代购信息-->
<select
id=
"getAgentInfo"
resultType=
"com.platform.vo.PlatformOrderVo"
>
select
select
p.relative_id,
p.order_i
d,
i.order_item_id ordersI
d,
p.p_order_id,
p.platform_name,
p.platform_code,
...
...
@@ -169,14 +171,15 @@
u.user_name,
u.user_id,
p.create_time,
o
.reality_pay,
p
.reality_pay,
p.p_express_number,
p.descripition_id
from tb_cf_platform_order p
left join tb_cf_order o on p.order_id=o.order_id
left join sys_user u on p.user_id=u.user_id
left join tb_cf_express_template e on e.template_id=p.descripition_id
where p.order_id=#{orderId};
left join tb_cf_item_order_r i on i.order_id=o.order_id
where i.order_item_id =#{ordersId};
</select>
</mapper>
\ No newline at end of file
platform-admin/src/main/webapp/WEB-INF/page/sys/tbcforder.html
浏览文件 @
291c1752
...
...
@@ -229,7 +229,7 @@
</i-select>
</el-form-item>
<el-form-item
label=
"实际付款"
:label-width=
"formLabelWidth"
>
<el-input
v-model=
"agentInfo.realityPay"
disabled=
"true"
></el-input>
<el-input
v-model=
"agentInfo.realityPay"
></el-input>
</el-form-item>
<el-form-item
label=
"快递单号"
:label-width=
"formLabelWidth"
>
<el-input
v-model=
"agentInfo.pExpressNumber"
></el-input>
...
...
platform-admin/src/main/webapp/js/common.js
浏览文件 @
291c1752
...
...
@@ -580,7 +580,7 @@ validFormat = function (cellvalue) {
*/
orderStatusFormat
=
function
(
cellvalue
)
{
var
returnStr
=
"未知"
;
if
(
!!
cellvalue
||
cellvalue
==
'0'
)
{
if
(
!!
cellvalue
)
{
if
(
cellvalue
==
'0'
)
{
returnStr
=
"取消"
;
}
else
if
(
cellvalue
==
'10'
)
{
...
...
platform-admin/src/main/webapp/js/sys/tbcforder.js
浏览文件 @
291c1752
...
...
@@ -7,13 +7,14 @@ $(function () {
],*/
colModel
:
[
//显示字段
{
label
:
'orderId'
,
name
:
'orderId'
,
index
:
'order_id'
,
key
:
true
,
hidden
:
true
},
{
label
:
'ordersId'
,
name
:
'ordersId'
,
index
:
'ordersId'
,
key
:
true
,
hidden
:
true
},
{
label
:
'orderId'
,
name
:
'orderId'
,
index
:
'order_id'
,
hidden
:
true
},
{
label
:
'订单号'
,
name
:
'orderNo'
,
index
:
'order_no'
,
width
:
120
},
{
label
:
'订单创建时间'
,
name
:
'orderTime'
,
index
:
'order_time'
,
width
:
90
},
{
label
:
'支付状态'
,
name
:
'payStatus'
,
index
:
'pay_status'
,
width
:
50
,
formatter
:
payStatusFormat
},
{
label
:
'订单状态'
,
name
:
'orderStatus'
,
index
:
'order
_s
tatus'
,
width
:
50
,
formatter
:
orderStatusFormat
},
{
label
:
'代购状态'
,
name
:
'deliveryFlag'
,
index
:
'delivery
_f
lag'
,
width
:
70
,
formatter
:
deliveryFlagFormat
},
{
label
:
'代购时间'
,
name
:
'deliveryTime'
,
index
:
'delivery
_t
ime'
,
width
:
100
},
{
label
:
'订单状态'
,
name
:
'orderStatus'
,
index
:
'order
S
tatus'
,
width
:
50
,
formatter
:
orderStatusFormat
},
{
label
:
'代购状态'
,
name
:
'deliveryFlag'
,
index
:
'delivery
F
lag'
,
width
:
70
,
formatter
:
deliveryFlagFormat
},
{
label
:
'代购时间'
,
name
:
'deliveryTime'
,
index
:
'delivery
T
ime'
,
width
:
100
},
{
label
:
'用户id'
,
name
:
'userId'
,
index
:
'user_id'
,
width
:
110
,
hidden
:
true
},
{
label
:
'用户名'
,
name
:
'userName'
,
index
:
'user_name'
,
width
:
55
},
{
label
:
'商品品名Id'
,
name
:
'descripitionId'
,
index
:
'descripition_id'
,
width
:
50
,
hidden
:
true
},
...
...
@@ -27,7 +28,7 @@ $(function () {
{
label
:
'收货人'
,
name
:
'deliveryName'
,
index
:
'delivery_name'
,
width
:
70
},
{
label
:
'收货人手机'
,
name
:
'deliveryPhone'
,
index
:
'delivery_phone'
,
width
:
70
},
{
label
:
'快递费'
,
name
:
'expressCost'
,
index
:
'express_cost'
,
width
:
80
,
hidden
:
true
},
{
label
:
'更新时间'
,
name
:
'updateTime'
,
index
:
'update
_t
ime'
,
width
:
120
,
hidden
:
true
},
{
label
:
'更新时间'
,
name
:
'updateTime'
,
index
:
'update
T
ime'
,
width
:
120
,
hidden
:
true
},
{
label
:
'成交时间'
,
name
:
'dealTime'
,
index
:
'deal_time'
,
width
:
120
,
hidden
:
true
},
{
label
:
'优惠券id'
,
name
:
'couponId'
,
index
:
'coupon_id'
,
width
:
120
,
hidden
:
true
},
{
label
:
'优惠券标题'
,
name
:
'couponTitle'
,
index
:
'coupon_title'
,
width
:
120
,
hidden
:
true
},
...
...
@@ -35,7 +36,7 @@ $(function () {
{
label
:
'税费'
,
name
:
'tax'
,
index
:
'tax'
,
width
:
80
,
hidden
:
true
},
{
label
:
'手续费'
,
name
:
'fee'
,
index
:
'fee'
,
width
:
80
,
hidden
:
true
},
{
label
:
'交易号'
,
name
:
'payId'
,
index
:
'pay_id'
,
width
:
120
,
hidden
:
true
},
{
label
:
'交易关闭时间'
,
name
:
'closeTime'
,
index
:
'close
_t
ime'
,
width
:
100
}]
{
label
:
'交易关闭时间'
,
name
:
'closeTime'
,
index
:
'close
T
ime'
,
width
:
100
}]
});
$
.
get
(
'../tbcfexpresstemplate/queryAll'
,
function
(
res
)
{
vm
.
descripition
=
JSON
.
parse
(
res
).
list
;
...
...
@@ -57,7 +58,7 @@ let vm = new Vue({
//订单详情
ordersData
:
[],
agentInfo
:
{
order
Id
:
""
,
order
sId
:
''
,
//代购人
userName
:
''
,
//快递单号
...
...
@@ -69,7 +70,7 @@ let vm = new Vue({
//原网站订单号
pOrderId
:
''
,
//代购平台
platformName
:
''
platformName
:
''
},
orderStatusOptions
:[{
value
:
'20'
,
...
...
@@ -161,26 +162,26 @@ let vm = new Vue({
},
//获取订单详情
showOrders
:
function
()
{
let
orderId
=
getSelectedRow
(
"#jqGrid"
);
if
(
orderId
==
null
)
{
let
order
s
Id
=
getSelectedRow
(
"#jqGrid"
);
if
(
order
s
Id
==
null
)
{
return
;
}
vm
.
orderVisible
=
true
;
vm
.
getOrderDetails
(
orderId
);
vm
.
getOrderDetails
(
order
s
Id
);
},
//获取商品详情
showItems
:
function
()
{
let
orderId
=
getSelectedRow
(
"#jqGrid"
);
if
(
orderId
==
null
)
{
let
order
s
Id
=
getSelectedRow
(
"#jqGrid"
);
if
(
order
s
Id
==
null
)
{
return
;
}
vm
.
itemVisible
=
true
;
vm
.
getOrderItemList
(
orderId
);
vm
.
getOrderItemList
(
order
s
Id
);
},
//获取代购信息
showAgent
:
function
()
{
let
orderId
=
getSelectedRow
(
"#jqGrid"
);
if
(
orderId
==
null
)
{
let
order
s
Id
=
getSelectedRow
(
"#jqGrid"
);
if
(
order
s
Id
==
null
)
{
return
;
}
let
rowData
=
getSelectedRowData
(
"#jqGrid"
);
...
...
@@ -191,21 +192,21 @@ let vm = new Vue({
return
;
}
vm
.
agentVisible
=
true
;
vm
.
agentInfo
.
order
Id
=
order
Id
;
vm
.
getAgentInfo
(
orderId
);
vm
.
agentInfo
.
order
sId
=
orders
Id
;
vm
.
getAgentInfo
(
order
s
Id
);
},
update
:
function
(
event
)
{
let
orderId
=
getSelectedRow
(
"#jqGrid"
);
if
(
orderId
==
null
)
{
let
order
s
Id
=
getSelectedRow
(
"#jqGrid"
);
if
(
order
s
Id
==
null
)
{
return
;
}
vm
.
showList
=
false
;
vm
.
title
=
"修改"
;
vm
.
getInfo
(
orderId
);
vm
.
getInfo
(
order
s
Id
);
},
saveOrUpdate
:
function
(
event
)
{
let
url
=
vm
.
tbCfOrder
.
orderId
==
null
?
"../tbcforder/save"
:
"../tbcforder/update"
;
let
url
=
vm
.
tbCfOrder
.
order
s
Id
==
null
?
"../tbcforder/save"
:
"../tbcforder/update"
;
Ajax
.
request
({
url
:
url
,
params
:
JSON
.
stringify
(
vm
.
tbCfOrder
),
...
...
@@ -238,9 +239,9 @@ let vm = new Vue({
});
});
},
getInfo
:
function
(
orderId
)
{
getInfo
:
function
(
order
s
Id
)
{
Ajax
.
request
({
url
:
"../tbcforder/info/"
+
orderId
,
url
:
"../tbcforder/info/"
+
order
s
Id
,
async
:
true
,
successCallback
:
function
(
r
)
{
vm
.
tbCfOrder
=
r
.
tbCfOrder
;
...
...
@@ -248,9 +249,10 @@ let vm = new Vue({
});
},
/*获取订单中的商品*/
getOrderItemList
:
function
(
orderId
)
{
getOrderItemList
:
function
(
ordersId
)
{
console
.
log
(
vm
.
itemData
);
Ajax
.
request
({
url
:
"../tbcforder/item/"
+
orderId
,
url
:
"../tbcforder/item/"
+
order
s
Id
,
async
:
true
,
successCallback
:
function
(
r
)
{
vm
.
itemData
=
r
.
list
;
...
...
@@ -258,9 +260,10 @@ let vm = new Vue({
});
},
/*获取订单详情*/
getOrderDetails
:
function
(
orderId
)
{
getOrderDetails
:
function
(
ordersId
)
{
debugger
Ajax
.
request
({
url
:
"../tbcforder/detail/"
+
orderId
,
url
:
"../tbcforder/detail/"
+
order
s
Id
,
async
:
true
,
successCallback
:
function
(
r1
)
{
vm
.
ordersData
=
r1
.
list
;
...
...
@@ -268,18 +271,21 @@ let vm = new Vue({
});
},
/*获取订单的代购信息*/
getAgentInfo
:
function
(
orderId
)
{
getAgentInfo
:
function
(
ordersId
)
{
console
.
log
(
'看看'
,
ordersId
)
console
.
log
(
'agentInfo'
,
vm
.
agentInfo
)
// debugger
Ajax
.
request
({
url
:
"../tbcforder/agent/"
+
orderId
,
url
:
"../tbcforder/agent/"
+
order
s
Id
,
async
:
true
,
type
:
"get"
,
successCallback
:
function
(
r
)
{
console
.
log
(
r
)
console
.
log
(
"SHUJU"
,
r
)
if
(
!!
r
.
data
)
{
vm
.
agentInfo
=
r
.
data
;
}
else
{
vm
.
agentInfo
=
{
orderId
:
order
Id
,
ordersId
:
orders
Id
,
//代购人
userName
:
''
,
//商品品名
...
...
@@ -300,13 +306,13 @@ let vm = new Vue({
//新增或者修改代购信息
saveOrUpdateAgentInfo
:
function
()
{
console
.
log
(
vm
.
agentInfo
.
descripitionId
);
console
.
log
(
vm
.
agentInfo
)
console
.
log
(
'11'
,
vm
.
agentInfo
);
if
(
vm
.
agentInfo
.
descripitionId
){
Ajax
.
request
({
url
:
"../tbcforder/agent/"
,
params
:
JSON
.
stringify
(
vm
.
agentInfo
),
type
:
"post"
,
//
dataType: "json",
dataType
:
"json"
,
contentType
:
'application/json'
,
successCallback
:
function
(
r
)
{
if
(
r
.
result
==
"1"
)
{
...
...
platform-admin/src/main/webapp/js/sys/tbcforderList.js
浏览文件 @
291c1752
...
...
@@ -7,12 +7,13 @@ $(function () {
cellurl:'../tbcforder/changeDeliveryFlag/',*/
colModel
:
[
//显示字段
{
label
:
'orderId'
,
name
:
'orderId'
,
index
:
'order_id'
,
key
:
true
,
hidden
:
true
},
{
label
:
'itemId'
,
name
:
'itemId'
,
index
:
'item_id'
,
key
:
true
,
hidden
:
true
},
{
label
:
'ordersId'
,
name
:
'ordersId'
,
index
:
'ordersId'
,
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
:
'orderTime'
,
index
:
'order_time'
,
width
:
70
},
{
label
:
'金额'
,
name
:
'
realityPay'
,
index
:
'reality_pay
'
,
width
:
55
,
formatter
:
"currency"
,
formatoptions
:
{
prefix
:
"$"
}},
{
label
:
'金额'
,
name
:
'
itemPrice'
,
index
:
'item_price
'
,
width
:
55
,
formatter
:
"currency"
,
formatoptions
:
{
prefix
:
"$"
}},
// formatter: "currency",formatoptions: {thousandsSeparator:",",decimalSeparator:".",decimalPlaces:"2", prefix:"$"}}, //在金额前加上$,加上后,页合计无法正常显示。
{
label
:
'商品'
,
name
:
'itemTitle'
,
index
:
'item_title'
,
width
:
90
},
{
label
:
'商品数量'
,
name
:
'itemNum'
,
index
:
'item_num'
,
width
:
30
},
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论