Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
为 GitLab 提交贡献
登录/注册
切换导航
C
chinafrica
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分枝图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
分枝图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
zhengfg
chinafrica
Commits
f73489f0
提交
f73489f0
authored
10月 05, 2020
作者:
吴德鹏
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
修复后台订单bug
上级
03eff256
隐藏空白字符变更
内嵌
并排
正在显示
9 个修改的文件
包含
61 行增加
和
14 行删除
+61
-14
TbCfOrderDao.java
...rm-admin/src/main/java/com/platform/dao/TbCfOrderDao.java
+3
-0
TbCfOrderListDao.java
...dmin/src/main/java/com/platform/dao/TbCfOrderListDao.java
+1
-0
TbCfOrderEntity.java
...in/src/main/java/com/platform/entity/TbCfOrderEntity.java
+10
-0
TbCfOrderListEntity.java
...rc/main/java/com/platform/entity/TbCfOrderListEntity.java
+10
-0
TbCfOrderListServiceImpl.java
...a/com/platform/service/impl/TbCfOrderListServiceImpl.java
+6
-0
TbCfOrderDao.xml
...dmin/src/main/resources/com/platform/dao/TbCfOrderDao.xml
+8
-1
TbCfOrderListDao.xml
.../src/main/resources/com/platform/dao/TbCfOrderListDao.xml
+11
-1
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
浏览文件 @
f73489f0
...
...
@@ -114,4 +114,7 @@ public interface TbCfOrderDao extends BaseDao<TbCfOrderEntity> {
int
queryTotal2
();
TbCfOrderEntity
queryOrderById
(
String
orderId
);
}
platform-admin/src/main/java/com/platform/dao/TbCfOrderListDao.java
浏览文件 @
f73489f0
...
...
@@ -29,6 +29,7 @@ public interface TbCfOrderListDao extends BaseDao<TbCfOrderListEntity> {
int
queryOrderDeliveryTotal
(
String
orderId
);
List
<
DeliveryOrderVo
>
queryOrderDeliveryList
(
String
orderId
);
List
<
DeliveryOrderVo
>
queryOrderDeliveryWebList
(
String
orderId
);
OrderBasicVo
queryorderBasic
(
String
orderId
);
...
...
platform-admin/src/main/java/com/platform/entity/TbCfOrderEntity.java
浏览文件 @
f73489f0
...
...
@@ -142,6 +142,16 @@ public class TbCfOrderEntity implements Serializable {
*/
private
String
remarkInfo
;
private
Integer
orderSource
;
public
Integer
getOrderSource
()
{
return
orderSource
;
}
public
void
setOrderSource
(
Integer
orderSource
)
{
this
.
orderSource
=
orderSource
;
}
public
String
getRemarkInfo
()
{
return
remarkInfo
;
}
...
...
platform-admin/src/main/java/com/platform/entity/TbCfOrderListEntity.java
浏览文件 @
f73489f0
...
...
@@ -31,6 +31,16 @@ public class TbCfOrderListEntity implements Serializable {
private
String
deliveryFlag
;
private
BigDecimal
itemsPrice
;
private
Integer
orderSource
;
public
Integer
getOrderSource
()
{
return
orderSource
;
}
public
void
setOrderSource
(
Integer
orderSource
)
{
this
.
orderSource
=
orderSource
;
}
public
BigDecimal
getItemsPrice
()
{
return
itemsPrice
;
}
...
...
platform-admin/src/main/java/com/platform/service/impl/TbCfOrderListServiceImpl.java
浏览文件 @
f73489f0
...
...
@@ -30,6 +30,8 @@ public class TbCfOrderListServiceImpl implements TbCfOrderListService {
@Autowired
private
TbCfOrderDao
tbCfOrderDao
;
private
final
String
PC_WEB_ORDER
=
"2"
;
@Override
public
List
<
TbCfOrderListEntity
>
queryOrderList
(
Map
<
String
,
Object
>
map
)
{
return
tbCfOrderListDao
.
queryOrderList
(
map
);
...
...
@@ -42,6 +44,10 @@ public class TbCfOrderListServiceImpl implements TbCfOrderListService {
@Override
public
List
<
DeliveryOrderVo
>
queryOrderDeliveryList
(
String
orderId
)
{
TbCfOrderEntity
order
=
tbCfOrderDao
.
queryOrderById
(
orderId
);
if
(
PC_WEB_ORDER
.
equals
(
order
.
getOrderSource
().
toString
())){
return
tbCfOrderListDao
.
queryOrderDeliveryWebList
(
orderId
);
}
return
tbCfOrderListDao
.
queryOrderDeliveryList
(
orderId
);
}
...
...
platform-admin/src/main/resources/com/platform/dao/TbCfOrderDao.xml
浏览文件 @
f73489f0
...
...
@@ -15,6 +15,7 @@
<result
property=
"orderStatus"
column=
"order_status"
/>
<result
property=
"userId"
column=
"user_id"
/>
<result
property=
"userName"
column=
"user_name"
/>
<result
property=
"orderSource"
column=
"order_source"
/>
<result
property=
"deliveryAddressId"
column=
"delivery_address_id"
/>
<result
property=
"deliveryAddress"
column=
"delivery_address"
/>
<result
property=
"deliveryName"
column=
"delivery_name"
/>
...
...
@@ -47,6 +48,7 @@
o.deal_time,
i.close_time closeTime,
i.order_status,
o.order_source,
o.user_id,
o.user_name,
o.delivery_address_id,
...
...
@@ -71,6 +73,11 @@
left join tb_cf_item_order_r i on i.order_id=o.order_id
WHERE 1=1 and i.enable_flag=1 and i.order_item_id = #{orderId}
</select>
<select
id=
"queryOrderById"
resultType=
"com.platform.entity.TbCfOrderEntity"
>
select * from tb_cf_order where order_id=#{orderId}
</select>
<select
id=
"getOrderByDate"
resultType=
"com.platform.vo.StatisticalVo"
>
SELECT
<choose>
...
...
@@ -578,4 +585,4 @@
<select
id=
"queryPayCount"
resultType=
"int"
>
select count(order_id) from tb_cf_order where pay_status=#{payStatus}
</select>
</mapper>
\ No newline at end of file
</mapper>
platform-admin/src/main/resources/com/platform/dao/TbCfOrderListDao.xml
浏览文件 @
f73489f0
...
...
@@ -10,6 +10,7 @@
<result
property=
"orderTime"
column=
"order_time"
/>
<result
property=
"realityPay"
column=
"reality_pay"
/>
<result
property=
"itemsPrice"
column=
"items_price"
/>
<result
property=
"orderSource"
column=
"order_source"
/>
<result
property=
"deliveryAddress"
column=
"delivery_address"
/>
<result
property=
"deliveryName"
column=
"delivery_name"
/>
<result
property=
"deliveryPhone"
column=
"delivery_phone"
/>
...
...
@@ -143,6 +144,15 @@
LEFT JOIN tb_cf_coupon c on c.coupon_id =o.coupon_id
where r.order_id=#{orderId}
</select>
<select
id=
"queryOrderDeliveryWebList"
resultType=
"com.platform.vo.DeliveryOrderVo"
>
select *,s.discount_price itemPrice,s.item_name itemTitle,i.sku_desc itemSku,i.sku_img itemImg, r.item_num itemNum from tb_cf_item_order_r r
left join tb_cf_order o on o.order_id=r.order_id
left join tb_cf_item_skus i on r.item_id=i.id
left join tb_cf_station_item s on s.item_id=i.item_id
where r.order_id=#{orderId}
</select>
<!--查询代购订单列表总记录数-->
<select
id=
"queryOrderDeliveryTotal"
resultType=
"int"
>
select count( *)
...
...
@@ -226,4 +236,4 @@
</set>
where order_id=#{orderId}
</update>
</mapper>
\ No newline at end of file
</mapper>
platform-admin/src/main/resources/dev/platform.properties
浏览文件 @
f73489f0
...
...
@@ -2,13 +2,13 @@
#jdbc.username=root
#jdbc.password=root
jdbc.url
=
jdbc:mysql://47.106.242.175:3306/chinafrica?allowMultiQueries=true&useSSL=false&useUnicode=true&characterEncoding=UTF-8
jdbc.username
=
root
jdbc.password
=
diaoyun666
#
jdbc.url=jdbc:mysql://47.106.242.175:3306/chinafrica?allowMultiQueries=true&useSSL=false&useUnicode=true&characterEncoding=UTF-8
#
jdbc.username=root
#
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.username: root
#
jdbc.password: Diaoyunnuli.8
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.password
:
Diaoyunnuli.8
jdbc.initialSize
=
5
jdbc.maxActive
=
30
...
...
platform-admin/src/main/resources/prod/platform.properties
浏览文件 @
f73489f0
...
...
@@ -2,13 +2,13 @@
#jdbc.username=root
#jdbc.password=root
jdbc.url
=
jdbc:mysql://47.106.242.175:3306/chinafrica?allowMultiQueries=true&useSSL=false&useUnicode=true&characterEncoding=UTF-8
jdbc.username
=
root
jdbc.password
=
diaoyun666
#
jdbc.url=jdbc:mysql://47.106.242.175:3306/chinafrica?allowMultiQueries=true&useSSL=false&useUnicode=true&characterEncoding=UTF-8
#
jdbc.username=root
#
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.username: root
#
jdbc.password: Diaoyunnuli.8
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.password
:
Diaoyunnuli.8
jdbc.initialSize
=
5
jdbc.maxActive
=
30
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论