记得上下班打卡 | 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
2c27fc67
Commit
2c27fc67
authored
Mar 22, 2022
by
张国柄
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/hjc_goblin_version2' into hjc_goblin_version2
parents
f8a635e7
70a88d0d
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
38 additions
and
22 deletions
+38
-22
IGoblinStoreMoneyService.java
...rvice/goblin/service/manage/IGoblinStoreMoneyService.java
+1
-1
GoblinStoreMoneyController.java
.../goblin/controller/manage/GoblinStoreMoneyController.java
+6
-2
GoblinStoreMoneyServiceImpl.java
...blin/service/impl/manage/GoblinStoreMoneyServiceImpl.java
+2
-2
GoblinMongoUtils.java
...a/com/liquidnet/service/goblin/util/GoblinMongoUtils.java
+18
-6
GoblinOrderServiceImpl.java
...et/service/order/service/impl/GoblinOrderServiceImpl.java
+1
-1
DataController.java
...net/service/platform/controller/kylin/DataController.java
+6
-6
DataImpl.java
...quidnet/service/platform/service/impl/kylin/DataImpl.java
+4
-4
No files found.
liquidnet-bus-api/liquidnet-service-goblin-api/src/main/java/com/liquidnet/service/goblin/service/manage/IGoblinStoreMoneyService.java
View file @
2c27fc67
...
...
@@ -13,7 +13,7 @@ import java.util.HashMap;
public
interface
IGoblinStoreMoneyService
{
ResponseDto
<
HashMap
<
String
,
String
>>
money
(
String
spuId
);
ResponseDto
<
HashMap
<
String
,
String
>>
money
(
String
spuId
,
String
st
,
String
et
);
ResponseDto
<
PageInfo
<
GoblinOrderLogVo
>>
getSpuList
(
String
spuName
,
String
st
,
String
et
,
int
page
);
...
...
liquidnet-bus-service/liquidnet-service-goblin/liquidnet-service-goblin-impl/src/main/java/com/liquidnet/service/goblin/controller/manage/GoblinStoreMoneyController.java
View file @
2c27fc67
...
...
@@ -32,10 +32,14 @@ public class GoblinStoreMoneyController {
@ApiOperation
(
"商品资金总收入"
)
@ApiImplicitParams
({
@ApiImplicitParam
(
type
=
"form"
,
required
=
false
,
dataType
=
"String"
,
name
=
"spuId"
,
value
=
"spuId"
),
@ApiImplicitParam
(
type
=
"form"
,
required
=
false
,
dataType
=
"String"
,
name
=
"st"
,
value
=
"开始时间"
),
@ApiImplicitParam
(
type
=
"form"
,
required
=
false
,
dataType
=
"String"
,
name
=
"et"
,
value
=
"截至时间"
),
})
@ApiResponse
(
code
=
200
,
message
=
"接口返回对象参数"
)
public
ResponseDto
<
HashMap
<
String
,
String
>>
money
(
@RequestParam
(
value
=
"spuId"
,
required
=
false
)
String
spuId
)
{
return
goblinStoreMoneyService
.
money
(
spuId
);
public
ResponseDto
<
HashMap
<
String
,
String
>>
money
(
@RequestParam
(
value
=
"spuId"
,
required
=
false
)
String
spuId
,
@RequestParam
(
value
=
"st"
,
required
=
false
)
String
st
,
@RequestParam
(
value
=
"et"
,
required
=
false
)
String
et
)
{
return
goblinStoreMoneyService
.
money
(
spuId
,
st
,
et
);
}
@GetMapping
(
"spu/list"
)
...
...
liquidnet-bus-service/liquidnet-service-goblin/liquidnet-service-goblin-impl/src/main/java/com/liquidnet/service/goblin/service/impl/manage/GoblinStoreMoneyServiceImpl.java
View file @
2c27fc67
...
...
@@ -25,13 +25,13 @@ public class GoblinStoreMoneyServiceImpl implements IGoblinStoreMoneyService {
GoblinMongoUtils
mongoUtils
;
@Override
public
ResponseDto
<
HashMap
<
String
,
String
>>
money
(
String
spuId
)
{
public
ResponseDto
<
HashMap
<
String
,
String
>>
money
(
String
spuId
,
String
st
,
String
et
)
{
String
uid
=
CurrentUtil
.
getCurrentUid
();
GoblinStoreInfoVo
vo
=
redisUtils
.
getStoreInfoVoByUid
(
uid
);
if
(
vo
==
null
)
{
return
ResponseDto
.
failure
(
"店铺不存在"
);
}
String
data
=
mongoUtils
.
storeMoney
(
vo
.
getStoreId
(),
spuId
);
String
data
=
mongoUtils
.
storeMoney
(
vo
.
getStoreId
(),
spuId
,
st
,
et
);
String
[]
array
=
data
.
split
(
","
);
HashMap
<
String
,
String
>
map
=
CollectionUtil
.
mapStringString
();
map
.
put
(
"name"
,
array
[
0
]);
...
...
liquidnet-bus-service/liquidnet-service-goblin/liquidnet-service-goblin-impl/src/main/java/com/liquidnet/service/goblin/util/GoblinMongoUtils.java
View file @
2c27fc67
...
...
@@ -43,6 +43,8 @@ import java.util.List;
import
java.util.regex.Pattern
;
import
java.util.stream.Collectors
;
import
static
com
.
liquidnet
.
commons
.
lang
.
util
.
DateUtil
.
DTF_YMD_HMS
;
@Component
public
class
GoblinMongoUtils
{
@Autowired
...
...
@@ -445,6 +447,7 @@ public class GoblinMongoUtils {
return
mongoTemplate
.
findOne
(
Query
.
query
(
Criteria
.
where
(
"storeId"
).
is
(
storeId
).
and
(
"name"
).
is
(
name
).
and
(
"delFlg"
).
is
(
"0"
)),
GoblinGoodsInfoVo
.
class
,
GoblinGoodsInfoVo
.
class
.
getSimpleName
());
}
public
long
countMgtGoodsInfoVo
(
String
name
)
{
return
mongoTemplate
.
count
(
Query
.
query
(
Criteria
.
where
(
"name"
).
is
(
name
).
and
(
"delFlg"
).
is
(
"0"
)),
GoblinGoodsInfoVo
.
class
.
getSimpleName
());
...
...
@@ -806,9 +809,14 @@ public class GoblinMongoUtils {
}
//店铺总收入
public
String
storeMoney
(
String
storeId
,
String
spuId
)
{
public
String
storeMoney
(
String
storeId
,
String
spuId
,
String
st
,
String
et
)
{
String
spuName
=
"店铺总收入"
;
Criteria
criteria
=
Criteria
.
where
(
"status"
).
in
(
GoblinStatusConst
.
Status
.
ORDER_LOG_STATUS_11
.
getValue
(),
GoblinStatusConst
.
Status
.
ORDER_LOG_STATUS_22
.
getValue
(),
GoblinStatusConst
.
Status
.
ORDER_LOG_STATUS_28
.
getValue
()).
and
(
"storeId"
).
is
(
storeId
);
if
(
st
!=
null
&&
et
!=
null
)
{
LocalDateTime
stDateTime
=
LocalDateTime
.
parse
(
st
,
DTF_YMD_HMS
);
LocalDateTime
etDateTime
=
LocalDateTime
.
parse
(
et
,
DTF_YMD_HMS
);
criteria
=
criteria
.
and
(
"createdAt"
).
gte
(
stDateTime
).
lt
(
etDateTime
);
}
Aggregation
aggregation
;
if
(
spuId
!=
null
)
{
criteria
=
criteria
.
and
(
"spuId"
).
is
(
spuId
);
...
...
@@ -857,7 +865,9 @@ public class GoblinMongoUtils {
List
<
GoblinGoodsInfoVo
>
spuIdAndName
=
null
;
Criteria
criteria
=
Criteria
.
where
(
"status"
).
in
(
GoblinStatusConst
.
Status
.
ORDER_LOG_STATUS_11
.
getValue
(),
GoblinStatusConst
.
Status
.
ORDER_LOG_STATUS_22
.
getValue
(),
GoblinStatusConst
.
Status
.
ORDER_LOG_STATUS_28
.
getValue
()).
and
(
"storeId"
).
is
(
storeId
);
if
(
st
!=
null
&&
et
!=
null
)
{
criteria
=
criteria
.
and
(
"createdAt"
).
gte
(
st
).
lt
(
et
);
LocalDateTime
stDateTime
=
LocalDateTime
.
parse
(
st
,
DTF_YMD_HMS
);
LocalDateTime
etDateTime
=
LocalDateTime
.
parse
(
et
,
DTF_YMD_HMS
);
criteria
=
criteria
.
and
(
"createdAt"
).
gte
(
stDateTime
).
lt
(
etDateTime
);
}
//查询总数量
Query
countQuery
=
Query
.
query
(
criteria
);
...
...
@@ -870,7 +880,7 @@ public class GoblinMongoUtils {
}
if
(
spuName
!=
null
)
{
//根据spu名称查询spuId
Query
query
=
Query
.
query
(
Criteria
.
where
(
"name"
).
regex
(
".*?"
+
spuName
+
".*"
).
and
(
"storeId"
).
is
(
storeId
));
Query
query
=
Query
.
query
(
Criteria
.
where
(
"name"
).
regex
(
".*?"
+
spuName
+
".*"
).
and
(
"storeId"
).
is
(
storeId
))
.
with
(
Sort
.
by
(
Sort
.
Order
.
desc
(
"createdAt"
)))
;
query
.
fields
().
include
(
"spuId"
).
include
(
"name"
);
spuIdAndName
=
mongoTemplate
.
find
(
query
,
GoblinGoodsInfoVo
.
class
,
GoblinGoodsInfoVo
.
class
.
getSimpleName
());
spuIdList
=
spuIdAndName
.
stream
().
map
(
GoblinGoodsInfoVo:
:
getSpuId
).
collect
(
Collectors
.
toList
());
...
...
@@ -878,7 +888,7 @@ public class GoblinMongoUtils {
finalCount
=
spuIdList
.
size
();
}
}
if
(
finalCount
>
0
)
{
if
(
finalCount
>
0
)
{
spuIdList
=
spuIdList
.
subList
(
skipCount
,
finalCount
);
}
criteria
=
criteria
.
and
(
"spuId"
).
in
(
spuIdList
);
...
...
@@ -920,6 +930,8 @@ public class GoblinMongoUtils {
int
skipCount
=
((
page
-
1
)
*
size
);
Criteria
criteria
=
Criteria
.
where
(
"spuId"
).
is
(
spuId
);
if
(
st
!=
null
&&
et
!=
null
)
{
LocalDateTime
stDateTime
=
LocalDateTime
.
parse
(
st
,
DTF_YMD_HMS
);
LocalDateTime
etDateTime
=
LocalDateTime
.
parse
(
et
,
DTF_YMD_HMS
);
criteria
=
criteria
.
and
(
"createdAt"
).
gte
(
st
).
lt
(
et
);
}
if
(
orderCode
!=
null
)
{
...
...
@@ -940,7 +952,7 @@ public class GoblinMongoUtils {
criteria
=
criteria
.
and
(
"orderType"
).
is
(
"zhengzai"
).
and
(
"status"
).
in
(
22
,
28
);
break
;
}
}
else
{
}
else
{
criteria
=
criteria
.
and
(
"status"
).
in
(
GoblinStatusConst
.
Status
.
ORDER_LOG_STATUS_11
.
getValue
(),
GoblinStatusConst
.
Status
.
ORDER_LOG_STATUS_22
.
getValue
(),
...
...
@@ -1192,7 +1204,7 @@ public class GoblinMongoUtils {
//根据艺人标签和演出查询商品
public
List
<
GoblinGoodsInfoVo
>
getMusicTagPGoods
(
String
musicTag
,
String
performanceId
)
{
Query
query
=
Query
.
query
(
Criteria
.
where
(
"
ex
tagVoList.tagName"
).
is
(
musicTag
)
Query
query
=
Query
.
query
(
Criteria
.
where
(
"
ar
tagVoList.tagName"
).
is
(
musicTag
)
.
and
(
"delFlg"
).
is
(
"0"
).
and
(
"shelvesStatus"
).
is
(
"3"
));
return
mongoTemplate
.
find
(
query
,
GoblinGoodsInfoVo
.
class
,
...
...
liquidnet-bus-service/liquidnet-service-order/liquidnet-service-order-impl/src/main/java/com/liquidnet/service/order/service/impl/GoblinOrderServiceImpl.java
View file @
2c27fc67
...
...
@@ -385,7 +385,7 @@ public class GoblinOrderServiceImpl implements IGoblinOrderService {
orderAttr
.
setOrderId
(
orderId
);
if
(!
writeOffCode
.
equals
(
"EMPTY"
))
{
orderAttr
.
setExpressContacts
(
addressesVo
.
getName
());
orderAttr
.
setExpressAddress
(
addressesVo
.
getProvince
()
+
"
,"
+
addressesVo
.
getCounty
()
+
","
+
addressesVo
.
getCi
ty
());
orderAttr
.
setExpressAddress
(
addressesVo
.
getProvince
()
+
"
"
+
addressesVo
.
getCity
()
+
" "
+
addressesVo
.
getCoun
ty
());
orderAttr
.
setExpressAddressDetail
(
addressesVo
.
getAddress
());
orderAttr
.
setExpressPhone
(
addressesVo
.
getPhone
());
orderAttr
.
setExpressType
(
1
);
...
...
liquidnet-bus-service/liquidnet-service-platform/liquidnet-service-platform-impl/src/main/java/com/liquidnet/service/platform/controller/kylin/DataController.java
View file @
2c27fc67
...
...
@@ -19,12 +19,12 @@ public class DataController {
private
DataImpl
data
;
@PostMapping
(
"phpGoodsOrder"
)
@ApiOperation
(
"php今年订单迁移"
)
public
ResponseDto
<
Boolean
>
fieldData
()
{
data
.
fieldData
();
return
ResponseDto
.
success
();
}
//
@PostMapping("phpGoodsOrder")
//
@ApiOperation("php今年订单迁移")
//
public ResponseDto<Boolean> fieldData() {
//
data.fieldData();
//
return ResponseDto.success();
//
}
// @PostMapping("fieldData")
// @ApiOperation("场地数据迁移")
...
...
liquidnet-bus-service/liquidnet-service-platform/liquidnet-service-platform-impl/src/main/java/com/liquidnet/service/platform/service/impl/kylin/DataImpl.java
View file @
2c27fc67
...
...
@@ -74,7 +74,7 @@ public class DataImpl {
" m.matter_num as 'master_order_code',\n"
+
" m.matter_num as 'order_code',\n"
+
" m.out_trade_no as 'pay_code',\n"
+
"
ifnull(user_id, 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 - m.coupon_type2_price) as 'price_actual',\n"
+
" m.price_send as 'price_express',\n"
+
...
...
@@ -172,15 +172,15 @@ public class DataImpl {
skuVo
.
setSkuPriceActual
(
rowSku
.
getBigDecimal
(
"sku_price_actual"
));
skuVo
.
setSkuName
(
rowSku
.
getString
(
"sku_specs"
));
skuVo
.
setSkuImage
(
rowSku
.
getString
(
"sku_image"
));
skuVo
.
setSkuSpecs
(
"[{\"specName\":\""
+
rowSku
.
getString
(
"sku_name"
)+
"\",\"specVname\":\""
+
rowSku
.
getString
(
"sku_specs"
)+
"\"}]"
);
//
skuVo
.
setSkuSpecs
(
"[{\"specName\":\""
+
rowSku
.
getString
(
"sku_name"
)
+
"\",\"specVname\":\""
+
rowSku
.
getString
(
"sku_specs"
)
+
"\"}]"
);
//
skuVo
.
setSpuName
(
rowSku
.
getString
(
"spu_name"
));
skuVo
.
setCreatedAt
(
orderVo
.
getCreatedAt
());
setGoblinOrderSku
(
skuVo
.
getOrderSkuId
(),
skuVo
);
orderSkuIds
.
add
(
skuVo
.
getOrderSkuId
());
}
orderVo
.
setOrderSkuVoIds
(
orderSkuIds
);
setGoblinOrder
(
orderVo
.
getOrderId
(),
orderVo
);
addOrderList
(
orderVo
.
getUserId
(),
orderVo
.
getOrderId
());
setGoblinOrder
(
orderVo
.
getOrderId
(),
orderVo
);
addOrderList
(
orderVo
.
getUserId
(),
orderVo
.
getOrderId
());
rowSku
.
close
();
preparedStatementSku
.
close
();
...
...
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