记得上下班打卡 | git大法好,push需谨慎
Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
liquidnet-bus-v1
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
董敬伟
liquidnet-bus-v1
Commits
67fed25f
Commit
67fed25f
authored
Mar 22, 2022
by
胡佳晨
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
快递文案修改
parent
70a88d0d
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
52 additions
and
10 deletions
+52
-10
GoblinRedisUtils.java
...a/com/liquidnet/service/goblin/util/GoblinRedisUtils.java
+3
-3
DataImpl.java
...quidnet/service/platform/service/impl/kylin/DataImpl.java
+49
-7
No files found.
liquidnet-bus-service/liquidnet-service-goblin/liquidnet-service-goblin-impl/src/main/java/com/liquidnet/service/goblin/util/GoblinRedisUtils.java
View file @
67fed25f
...
@@ -1216,9 +1216,9 @@ public class GoblinRedisUtils {
...
@@ -1216,9 +1216,9 @@ public class GoblinRedisUtils {
// String rk = GoblinRedisConst.REDIS_ZZ_MUSIC_TAG.concat(musicTag + ":").concat(performanceId);
// String rk = GoblinRedisConst.REDIS_ZZ_MUSIC_TAG.concat(musicTag + ":").concat(performanceId);
// Object obj = redisUtil.get(rk);
// Object obj = redisUtil.get(rk);
// if (obj == null) {
// if (obj == null) {
listVo
=
goblinMongoUtils
.
getMusicTagPGoods
(
musicTag
,
performanceId
);
listVo
=
goblinMongoUtils
.
getMusicTagPGoods
(
musicTag
,
performanceId
);
// redisUtil.set(rk, listVo);
// redisUtil.set(rk, listVo
, 60 * 30
);
return
listVo
;
//
return listVo;
// } else {
// } else {
// return (List<GoblinGoodsInfoVo>) obj;
// return (List<GoblinGoodsInfoVo>) obj;
// }
// }
...
...
liquidnet-bus-service/liquidnet-service-platform/liquidnet-service-platform-impl/src/main/java/com/liquidnet/service/platform/service/impl/kylin/DataImpl.java
View file @
67fed25f
...
@@ -9,6 +9,7 @@ import com.liquidnet.service.base.ResponseDto;
...
@@ -9,6 +9,7 @@ import com.liquidnet.service.base.ResponseDto;
import
com.liquidnet.service.feign.stone.api.FeignStoneIntegralClient
;
import
com.liquidnet.service.feign.stone.api.FeignStoneIntegralClient
;
import
com.liquidnet.service.goblin.constant.GoblinRedisConst
;
import
com.liquidnet.service.goblin.constant.GoblinRedisConst
;
import
com.liquidnet.service.goblin.constant.GoblinStatusConst
;
import
com.liquidnet.service.goblin.constant.GoblinStatusConst
;
import
com.liquidnet.service.goblin.dto.vo.GoblinMailVo
;
import
com.liquidnet.service.goblin.dto.vo.GoblinOrderAttrVo
;
import
com.liquidnet.service.goblin.dto.vo.GoblinOrderAttrVo
;
import
com.liquidnet.service.goblin.dto.vo.GoblinOrderSkuVo
;
import
com.liquidnet.service.goblin.dto.vo.GoblinOrderSkuVo
;
import
com.liquidnet.service.goblin.dto.vo.GoblinStoreOrderVo
;
import
com.liquidnet.service.goblin.dto.vo.GoblinStoreOrderVo
;
...
@@ -74,7 +75,7 @@ public class DataImpl {
...
@@ -74,7 +75,7 @@ public class DataImpl {
" m.matter_num as 'master_order_code',\n"
+
" m.matter_num as 'master_order_code',\n"
+
" m.matter_num as 'order_code',\n"
+
" m.matter_num as 'order_code',\n"
+
" m.out_trade_no as 'pay_code',\n"
+
" m.out_trade_no as 'pay_code',\n"
+
" m.user_id_new as 'user_id',\n"
+
" m.user_id_new
as 'user_id',\n"
+
" m.matter_amount as 'price_total',\n"
+
" m.matter_amount as 'price_total',\n"
+
" (m.matter_amount - m.coupon_type2_price) as 'price_actual',\n"
+
" (m.matter_amount - m.coupon_type2_price) as 'price_actual',\n"
+
" m.price_send as 'price_express',\n"
+
" m.price_send as 'price_express',\n"
+
...
@@ -93,10 +94,14 @@ public class DataImpl {
...
@@ -93,10 +94,14 @@ public class DataImpl {
" m.post_phone as 'express_phone',\n"
+
" m.post_phone as 'express_phone',\n"
+
" m.post_address as 'express_address',\n"
+
" m.post_address as 'express_address',\n"
+
" m.post_address as 'express_address_detail',\n"
+
" m.post_address as 'express_address_detail',\n"
+
" m.created_at as 'created_at'\n"
+
" m.created_at as 'created_at',\n"
+
"from matters as m\n"
+
" e.name as 'logistics_company',\n"
+
" e.status as 'express_status',\n"
+
" e.number as 'mail_no',\n"
+
" e.created_at as 'delivery_time'\n"
+
"from matters as m left join expresses as e on e.order_id = m.id and e.order_type = 'order_product'\n"
+
"where m.status = 1\n"
+
"where m.status = 1\n"
+
" and m.created_at >= '2022-01-01 00:00:00'"
;
" and m.created_at >= '2022-01-01 00:00:00'
group by m.id;
"
;
Connection
connection
=
DriverManager
.
getConnection
(
SQL_URL
,
SQL_USER
,
SQL_PWD
);
Connection
connection
=
DriverManager
.
getConnection
(
SQL_URL
,
SQL_USER
,
SQL_PWD
);
//查询数据
//查询数据
PreparedStatement
preparedStatement
=
connection
.
prepareStatement
(
sql
);
PreparedStatement
preparedStatement
=
connection
.
prepareStatement
(
sql
);
...
@@ -107,7 +112,18 @@ public class DataImpl {
...
@@ -107,7 +112,18 @@ public class DataImpl {
orderVo
.
setStoreId
(
"dab4742921ba3555700896c4fafbee5b"
);
orderVo
.
setStoreId
(
"dab4742921ba3555700896c4fafbee5b"
);
orderVo
.
setStoreName
(
"摩登天空自营店"
);
orderVo
.
setStoreName
(
"摩登天空自营店"
);
orderVo
.
setPayCountdownMinute
(
5
);
orderVo
.
setPayCountdownMinute
(
5
);
orderVo
.
setStatus
(
GoblinStatusConst
.
Status
.
ORDER_STATUS_4
.
getValue
());
//判断快递状态
String
express_status
=
row
.
getString
(
"express_status"
);
if
(
express_status
==
null
)
{
orderVo
.
setStatus
(
GoblinStatusConst
.
Status
.
ORDER_STATUS_2
.
getValue
());
}
else
{
if
(
express_status
.
equals
(
"3"
))
{
orderVo
.
setStatus
(
GoblinStatusConst
.
Status
.
ORDER_STATUS_4
.
getValue
());
}
else
{
orderVo
.
setStatus
(
GoblinStatusConst
.
Status
.
ORDER_STATUS_3
.
getValue
());
}
}
orderVo
.
setOrderId
(
row
.
getString
(
"order_id"
));
orderVo
.
setOrderId
(
row
.
getString
(
"order_id"
));
orderVo
.
setMasterOrderCode
(
row
.
getString
(
"master_order_code"
));
orderVo
.
setMasterOrderCode
(
row
.
getString
(
"master_order_code"
));
orderVo
.
setOrderCode
(
row
.
getString
(
"order_code"
));
orderVo
.
setOrderCode
(
row
.
getString
(
"order_code"
));
...
@@ -163,7 +179,7 @@ public class DataImpl {
...
@@ -163,7 +179,7 @@ public class DataImpl {
while
(
rowSku
.
next
())
{
while
(
rowSku
.
next
())
{
GoblinOrderSkuVo
skuVo
=
GoblinOrderSkuVo
.
getNew
();
GoblinOrderSkuVo
skuVo
=
GoblinOrderSkuVo
.
getNew
();
skuVo
.
setOrderId
(
orderVo
.
getOrderId
());
skuVo
.
setOrderId
(
orderVo
.
getOrderId
());
skuVo
.
setStatus
(
GoblinStatusConst
.
Status
.
ORDER_STATUS_4
.
getValue
());
skuVo
.
setStatus
(
orderVo
.
getStatus
());
skuVo
.
setOrderSkuId
(
rowSku
.
getString
(
"order_sku_id"
));
skuVo
.
setOrderSkuId
(
rowSku
.
getString
(
"order_sku_id"
));
skuVo
.
setSpuId
(
rowSku
.
getString
(
"spu_id"
));
skuVo
.
setSpuId
(
rowSku
.
getString
(
"spu_id"
));
skuVo
.
setSkuId
(
rowSku
.
getString
(
"sku_id"
));
skuVo
.
setSkuId
(
rowSku
.
getString
(
"sku_id"
));
...
@@ -178,9 +194,21 @@ public class DataImpl {
...
@@ -178,9 +194,21 @@ public class DataImpl {
setGoblinOrderSku
(
skuVo
.
getOrderSkuId
(),
skuVo
);
setGoblinOrderSku
(
skuVo
.
getOrderSkuId
(),
skuVo
);
orderSkuIds
.
add
(
skuVo
.
getOrderSkuId
());
orderSkuIds
.
add
(
skuVo
.
getOrderSkuId
());
}
}
//判断快递
if
(
express_status
!=
null
)
{
GoblinMailVo
mailVo
=
GoblinMailVo
.
getNew
();
mailVo
.
setMailId
(
IDGenerator
.
nextTimeId2
());
mailVo
.
setOrderId
(
orderVo
.
getOrderId
());
mailVo
.
setMailNo
(
row
.
getString
(
"mail_no"
));
mailVo
.
setDeliveryTime
(
row
.
getString
(
"delivery_time"
));
mailVo
.
setLogisticsCompany
(
row
.
getString
(
"logistics_company"
));
mailVo
.
setOrderSkuVoIds
(
orderSkuIds
);
setGoblinMail
(
orderVo
.
getOrderId
(),
mailVo
);
}
orderVo
.
setOrderSkuVoIds
(
orderSkuIds
);
orderVo
.
setOrderSkuVoIds
(
orderSkuIds
);
setGoblinOrder
(
orderVo
.
getOrderId
(),
orderVo
);
setGoblinOrder
(
orderVo
.
getOrderId
(),
orderVo
);
addOrderList
(
orderVo
.
getUserId
(),
orderVo
.
getOrderId
());
//
addOrderList(orderVo.getUserId(), orderVo.getOrderId());
rowSku
.
close
();
rowSku
.
close
();
preparedStatementSku
.
close
();
preparedStatementSku
.
close
();
...
@@ -227,4 +255,18 @@ public class DataImpl {
...
@@ -227,4 +255,18 @@ public class DataImpl {
return
(
List
<
String
>)
obj
;
return
(
List
<
String
>)
obj
;
}
}
}
}
// 赋值 快递vo
public
void
setGoblinMail
(
String
orderId
,
GoblinMailVo
vo
)
{
String
redisKey
=
GoblinRedisConst
.
REDIS_GOBLIN_MAIL
.
concat
(
orderId
);
List
<
GoblinMailVo
>
list
=
goblinMailVoList
();
list
.
add
(
vo
);
redisDataSourceUtil
.
getRedisKylinUtil
().
set
(
redisKey
,
list
);
}
private
static
final
ArrayList
<
GoblinMailVo
>
goblinMailVo
=
new
ArrayList
<>();
public
static
ArrayList
<
GoblinMailVo
>
goblinMailVoList
()
{
return
(
ArrayList
<
GoblinMailVo
>)
goblinMailVo
.
clone
();
}
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment