Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
为 GitLab 提交贡献
登录/注册
切换导航
C
chinafrica
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分枝图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
分枝图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
zhengfg
chinafrica
Commits
b303f62e
提交
b303f62e
authored
12月 01, 2019
作者:
luojie
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
优化代购信息
上级
66f27f33
隐藏空白字符变更
内嵌
并排
正在显示
10 个修改的文件
包含
50 行增加
和
39 行删除
+50
-39
TbCfItemOrderRServiceImpl.java
.../com/platform/service/impl/TbCfItemOrderRServiceImpl.java
+1
-0
TbCfOrderServiceImpl.java
.../java/com/platform/service/impl/TbCfOrderServiceImpl.java
+6
-2
caffeine.properties
platform-admin/src/main/resources/caffeine.properties
+1
-1
TbCfItemOrderRDao.xml
...src/main/resources/com/platform/dao/TbCfItemOrderRDao.xml
+8
-8
TbCfPlatformOrderDao.xml
.../main/resources/com/platform/dao/TbCfPlatformOrderDao.xml
+1
-3
platform.properties
platform-admin/src/main/resources/dev/platform.properties
+8
-4
platform.properties
platform-admin/src/main/resources/prod/platform.properties
+9
-4
tbcfcoupon.html
...rm-admin/src/main/webapp/WEB-INF/page/sys/tbcfcoupon.html
+2
-2
tbcfcoupon.js
platform-admin/src/main/webapp/js/sys/tbcfcoupon.js
+12
-15
tbcforder.js
platform-admin/src/main/webapp/js/sys/tbcforder.js
+2
-0
没有找到文件。
platform-admin/src/main/java/com/platform/service/impl/TbCfItemOrderRServiceImpl.java
浏览文件 @
b303f62e
...
...
@@ -75,6 +75,7 @@ public class TbCfItemOrderRServiceImpl implements TbCfItemOrderRService {
@Override
public
int
updateExpressStatusDelivery
(
String
[]
sids
)
{
return
tbCfItemOrderRDao
.
updateExpressStatusDelivery
(
sids
);
}
...
...
platform-admin/src/main/java/com/platform/service/impl/TbCfOrderServiceImpl.java
浏览文件 @
b303f62e
...
...
@@ -90,13 +90,13 @@ public class TbCfOrderServiceImpl implements TbCfOrderService {
//tbCfPlatformOrder 有relativeId 则就是修改
int
res
=
0
;
if
(
StringUtils
.
isNotEmpty
(
tbCfPlatformOrder
.
getRelativeId
()))
{
tbCfPlatformOrder
.
set
OrdersId
(
tbCfPlatformOrder
.
getOrders
Id
());
tbCfPlatformOrder
.
set
RelativeId
(
tbCfPlatformOrder
.
getRelative
Id
());
String
userId
=
ShiroUtils
.
getUserId
();
tbCfPlatformOrder
.
setUserId
(
userId
);
tbCfPlatformOrder
.
setUserName
(
sysUserDao
.
queryById
(
userId
));
res
=
tbCfPlatformOrderDao
.
updates
(
tbCfPlatformOrder
);
}
else
{
tbCfPlatformOrder
.
setRelativeId
(
IdUtil
.
createIdbyUUID
());
tbCfPlatformOrder
.
setRelativeId
(
tbCfPlatformOrder
.
getOrdersId
());
tbCfPlatformOrder
.
setOrderId
(
tbCfItemOrderRDao
.
getOrderId
(
tbCfPlatformOrder
.
getOrdersId
()));
tbCfPlatformOrder
.
setCreateTime
(
new
Date
());
String
userId
=
ShiroUtils
.
getUserId
();
...
...
@@ -111,6 +111,10 @@ public class TbCfOrderServiceImpl implements TbCfOrderService {
tbCfItemOrderREntity
.
setOrderItemId
(
tbCfPlatformOrder
.
getOrdersId
());
tbCfItemOrderREntity
.
setOrderStatus
(
OrderStatusEnum
.
SHIPPED
.
getValue
());
tbCfItemOrderRDao
.
update
(
tbCfItemOrderREntity
);
TbCfOrderEntity
tbCfOrderEntity
=
new
TbCfOrderEntity
();
tbCfOrderEntity
.
setOrderId
(
tbCfOrderEntity
.
getOrderId
());
tbCfOrderEntity
.
setOrderStatus
(
OrderStatusEnum
.
SHIPPED
.
getValue
());
tbCfOrderDao
.
update
(
tbCfOrderEntity
);
//更新发货时间,如果原值为空就更新,否则保留原值
TbCfItemOrderREntity
tbCfItemOrderREntity2
=
new
TbCfItemOrderREntity
();
tbCfItemOrderREntity2
.
setOrderItemId
(
tbCfPlatformOrder
.
getOrdersId
());
...
...
platform-admin/src/main/resources/caffeine.properties
浏览文件 @
b303f62e
...
...
@@ -2,5 +2,5 @@
# Caffeine configuration
# [name] = size, xxxx[s|m|h|d]
#########################################
default
=
1000,
3
0m
default
=
1000,
144
0m
sysCache
=
1000, 60m
\ No newline at end of file
platform-admin/src/main/resources/com/platform/dao/TbCfItemOrderRDao.xml
浏览文件 @
b303f62e
...
...
@@ -133,9 +133,9 @@
<!--根据快递单号id,修改物流状态为已入中国仓库 -->
<update
id=
"updateExpressStatus"
>
UPDATE tb_cf_order o,tb_cf_platform_order p,
UPDATE tb_cf_order o,tb_cf_platform_order p,
tb_cf_item_order_r i
SET i.delivery_flag = 20
WHERE o.order_id=p.order_id and i.delivery_flag=10 and p.p_express_number in
WHERE o.order_id=p.order_id and i.
order_id=o.order_id and i.
delivery_flag=10 and p.p_express_number in
<foreach
collection=
"array"
item=
"sids"
open=
"("
separator=
","
close=
")"
>
#{sids}
</foreach>
...
...
@@ -143,9 +143,9 @@
<!--根据快递单号id,修改物流状态为已入非洲仓库 -->
<update
id=
"updateExpressStatuss"
>
update tb_cf_order o,tb_cf_platform_order p
set
i.delivery_flag = 40
where o.order_id=p.order_id and i.delivery_flag = 20 and
p.p_express_number in
UPDATE tb_cf_order o,tb_cf_platform_order p,tb_cf_item_order_r i
SET
i.delivery_flag = 40
WHERE o.order_id=p.order_id and i.order_id=o.order_id and i.delivery_flag=20 and
p.p_express_number in
<foreach
collection=
"array"
item=
"sids"
open=
"("
separator=
","
close=
")"
>
#{sids}
</foreach>
...
...
@@ -153,9 +153,9 @@
<!--根据快递单号id,修改物流状态为已签收 -->
<update
id=
"updateExpressStatusDelivery"
>
update tb_cf_order o,tb_cf_platform_order p
set i.delivery_flag =
50
where o.order_id=p.order_id and
p.p_express_number in
UPDATE tb_cf_order o,tb_cf_platform_order p,tb_cf_item_order_r i
SET i.delivery_flag = 50,o.order_status=
50
WHERE o.order_id=p.order_id and i.order_id=o.order_id and i.delivery_flag=40 and
p.p_express_number in
<foreach
collection=
"array"
item=
"sids"
open=
"("
separator=
","
close=
")"
>
#{sids}
</foreach>
...
...
platform-admin/src/main/resources/com/platform/dao/TbCfPlatformOrderDao.xml
浏览文件 @
b303f62e
...
...
@@ -138,8 +138,6 @@
<if
test=
"platformName != null"
>
p.platform_name = #{platformName},
</if>
<if
test=
"platformCode != null"
>
p.platform_code = #{platformCode},
</if>
<if
test=
"pDeliveryAddress != null"
>
p.p_delivery_address = #{pDeliveryAddress},
</if>
<if
test=
"userName != null"
>
p.user_name = #{userName},
</if>
<if
test=
"userId != null"
>
p.user_id = #{userId},
</if>
<if
test=
"createTime != null"
>
p.create_time = #{createTime},
</if>
<if
test=
"realityPay != null"
>
p.reality_pay = #{realityPay},
</if>
<if
test=
"pExpressNumber != null"
>
p.p_express_number = #{pExpressNumber},
</if>
...
...
@@ -179,7 +177,7 @@
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
left join tb_cf_item_order_r i on i.order_id=o.order_id
where i.order_item_id =#{ordersId};
where i.order_item_id =#{ordersId}
and p.relative_id=#{ordersId}
;
</select>
</mapper>
\ No newline at end of file
platform-admin/src/main/resources/dev/platform.properties
浏览文件 @
b303f62e
...
...
@@ -2,13 +2,17 @@
#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.initialSize
=
5
jdbc.maxActive
=
30
2
jdbc.minPoolSize
=
2
jdbc.maxIdleTime
=
30000
jdbc.idleConnectionTestPeriod
=
100
\ No newline at end of file
jdbc.idleConnectionTestPeriod
=
100
\ No newline at end of file
platform-admin/src/main/resources/prod/platform.properties
浏览文件 @
b303f62e
...
...
@@ -2,11 +2,16 @@
#jdbc.username=root
#jdbc.password=root
jdbc.url
=
jdbc:mysql://47.106.242.175:3306/platform?allowMultiQueries=true&useSSL=false&useUnicode=true&characterEncoding=UTF-8
jdbc.username
=
root
jdbc.password
=
diaoyun666
#jdbc.url=jdbc:mysql://47.106.242.175:3306/platform?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.initialSize
=
5
jdbc.maxActive
=
30
jdbc.maxActive
=
30
jdbc.minPoolSize
=
2
jdbc.maxIdleTime
=
30000
...
...
platform-admin/src/main/webapp/WEB-INF/page/sys/tbcfcoupon.html
浏览文件 @
b303f62e
...
...
@@ -27,8 +27,8 @@
<i-button
@
click=
"reloadSearch"
>
重置
</i-button>
</div>
<div
class=
"buttons-group"
>
<!--<i-button type="info" @click="insertcoupon">新增优惠券类型</i-button>-->
<!-- <i-button type="info" @click="showTake">查看领取情况</i-button>-->
<!--
<i-button type="info" @click="insertcoupon">新增优惠券类型</i-button>-->
<!-- <i-button type="info" @click="showTake">查看领取情况</i-button>-->
<i-button
type=
"info"
@
click=
"showToi"
>
查看发放情况
</i-button>
<!--<i-button type="info" @click="showUse"><i class="fa fa-plus"></i> 查看使用情况</i-button>-->
#if($shiro.hasPermission("tbcfcoupon:save"))
...
...
platform-admin/src/main/webapp/js/sys/tbcfcoupon.js
浏览文件 @
b303f62e
...
...
@@ -3,7 +3,7 @@ $(function () {
url
:
'../tbcfcoupon/list'
,
colModel
:
[
{
label
:
'couponId'
,
name
:
'couponId'
,
index
:
'coupon_id'
,
key
:
true
,
hidden
:
true
},
{
label
:
'优惠券类型 '
,
name
:
'couponCategoryId'
,
index
:
'coupon
Category_i
d'
,
width
:
60
,
formatter
:
"select"
,
editoptions
:{
value
:
"10:购物返券;20:注册返券;30:邀请返券;40:用户领券"
}},
{
label
:
'优惠券类型 '
,
name
:
'couponCategoryId'
,
index
:
'coupon
_category_
d'
,
width
:
60
,
formatter
:
"select"
,
editoptions
:{
value
:
"10:购物返券;20:注册返券;30:邀请返券;40:用户领券"
}},
{
label
:
'可用于类目'
,
name
:
'couponUse'
,
index
:
'coupon_use'
,
width
:
80
,
hidden
:
true
},
{
label
:
'优惠券标题'
,
name
:
'couponTitle'
,
index
:
'coupon_title'
,
width
:
80
},
{
label
:
'优惠券图片地址'
,
name
:
'couponIcon'
,
index
:
'coupon_icon'
,
width
:
70
,
hidden
:
true
},
...
...
@@ -25,6 +25,15 @@ $(function () {
{
label
:
'是否为注册即送优惠券'
,
name
:
'couponVaild'
,
index
:
'coupon_vaild'
,
width
:
90
,
formatter
:
validFormat
}]
});
});
$
.
get
(
'../tbcfcoupon/queryAllCoupon'
,
function
(
res
)
{
vm
.
Coupon
=
JSON
.
parse
(
res
).
list
;
console
.
log
(
res
.
list
)
})
$
.
get
(
'../tbcfcouponcategory/queryAll'
,
function
(
res1
)
{
console
.
log
(
res1
.
list
)
vm
.
CouponCategory
=
JSON
.
parse
(
res1
).
list
;
})
$
(
function
()
{
$
(
"#jqGrid1"
).
Grid
({
url
:
'../tbcfcouponIssue/list'
,
...
...
@@ -298,11 +307,11 @@ let vm = new Vue({
this
.
showCategory
=
false
vm
.
title
=
"新增优惠券类型"
;
vm
.
tbCfCouponCategory
=
{};
console
.
log
(
"insertcoupon"
)
},
edit
:
function
(){
this
.
showEdit
=
false
vm
.
title
=
"设置优惠券发放"
;
vm
.
reload
();
vm
.
tbCfCoupon
=
{};
},
...
...
@@ -393,17 +402,5 @@ let vm = new Vue({
handleReset2
:
function
(
name
)
{
handleResetForm
(
this
,
name
);
}
},
created
(){
let
that
=
this
$
.
get
(
'../tbcfcoupon/queryAllCoupon'
,
function
(
res
)
{
console
.
log
(
res
.
list
)
that
.
Coupon
=
res
.
list
;
})
let
ta
=
this
$
.
get
(
'../tbcfcouponcategory/queryAll'
,
function
(
res1
)
{
console
.
log
(
res1
.
list
)
ta
.
CouponCategory
=
res1
.
list
;
})
}
}
});
platform-admin/src/main/webapp/js/sys/tbcforder.js
浏览文件 @
b303f62e
...
...
@@ -310,6 +310,7 @@ let vm = new Vue({
},
//新增或者修改代购信息
saveOrUpdateAgentInfo
:
function
()
{
let
that
=
this
;
console
.
log
(
vm
.
agentInfo
.
descripitionId
);
console
.
log
(
'11'
,
vm
.
agentInfo
);
if
(
vm
.
agentInfo
.
descripitionId
){
...
...
@@ -325,6 +326,7 @@ let vm = new Vue({
layer
.
msg
(
"保存成功"
,
{
time
:
2000
//2秒关闭(如果不配置,默认是3秒)
});
that
.
reload
();
}
else
{
alert
(
"保存失败"
);
}
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论