Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Q
qk_backend
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
quanku
qk_backend
Commits
1d15bc67
Commit
1d15bc67
authored
Jun 25, 2024
by
shiyu
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'quanku_v2.7' into quanku_v2.7.1
parents
1b27516a
0f29f66d
Changes
12
Hide whitespace changes
Inline
Side-by-side
Showing
12 changed files
with
54 additions
and
13 deletions
+54
-13
ch-admin-api/src/main/java/com/wwdz/ch/admin/impl/SysIdentifyOrderServiceImpl.java
...a/com/wwdz/ch/admin/impl/SysIdentifyOrderServiceImpl.java
+1
-1
ch-admin-api/src/main/java/com/wwdz/ch/admin/impl/SysSupplierItemServiceImpl.java
...va/com/wwdz/ch/admin/impl/SysSupplierItemServiceImpl.java
+1
-1
ch-dao/src/main/java/com/wwdz/ch/db/dto/request/distribution/SupplierItemRequestDto.java
...h/db/dto/request/distribution/SupplierItemRequestDto.java
+5
-0
ch-dao/src/main/java/com/wwdz/ch/db/impl/distribution/AuctionConfigDaoImpl.java
...om/wwdz/ch/db/impl/distribution/AuctionConfigDaoImpl.java
+1
-1
ch-dao/src/main/java/com/wwdz/ch/db/impl/distribution/SupplierItemDaoImpl.java
...com/wwdz/ch/db/impl/distribution/SupplierItemDaoImpl.java
+4
-0
ch-wx-api/src/main/java/com/wwdz/ch/wx/impl/distribution/CollectionItemsRelationServiceImpl.java
...impl/distribution/CollectionItemsRelationServiceImpl.java
+2
-0
ch-wx-api/src/main/java/com/wwdz/ch/wx/impl/distribution/DistributionOrderServiceImpl.java
...ch/wx/impl/distribution/DistributionOrderServiceImpl.java
+30
-6
ch-wx-api/src/main/java/com/wwdz/ch/wx/impl/distribution/DistributorShareRecordServiceImpl.java
.../impl/distribution/DistributorShareRecordServiceImpl.java
+2
-2
ch-wx-api/src/main/java/com/wwdz/ch/wx/impl/distribution/SpecialPerformanceServiceImpl.java
...h/wx/impl/distribution/SpecialPerformanceServiceImpl.java
+1
-0
ch-wx-api/src/main/java/com/wwdz/ch/wx/job/AutoCreateAuctionOrderJob.java
...in/java/com/wwdz/ch/wx/job/AutoCreateAuctionOrderJob.java
+1
-0
ch-wx-api/src/main/java/com/wwdz/ch/wx/job/SpecialPerformanceNoticeJob.java
.../java/com/wwdz/ch/wx/job/SpecialPerformanceNoticeJob.java
+6
-0
ch-wx-api/src/main/java/com/wwdz/ch/wx/web/distribution/DistributorShareRecordController.java
...wx/web/distribution/DistributorShareRecordController.java
+0
-2
No files found.
ch-admin-api/src/main/java/com/wwdz/ch/admin/impl/SysIdentifyOrderServiceImpl.java
View file @
1d15bc67
...
@@ -248,7 +248,7 @@ public class SysIdentifyOrderServiceImpl implements SysIdentifyOrderService {
...
@@ -248,7 +248,7 @@ public class SysIdentifyOrderServiceImpl implements SysIdentifyOrderService {
try
{
try
{
DeliveryNoticeMsg
deliveryNoticeMsg
=
new
DeliveryNoticeMsg
();
DeliveryNoticeMsg
deliveryNoticeMsg
=
new
DeliveryNoticeMsg
();
deliveryNoticeMsg
.
setDistributionOrderId
(
distributionOrderId
);
deliveryNoticeMsg
.
setDistributionOrderId
(
distributionOrderId
);
deliveryNoticeMsg
.
setWaybill
(
dto
.
getOut
LogisticsCode
());
deliveryNoticeMsg
.
setWaybill
(
dto
.
getOut
Waybill
());
deliveryNoticeMsg
.
setAddress
(
distributionOrder
.
getReceiverName
()
+
" "
+
distributionOrder
.
getReceiverPhone
()
+
" "
+
distributionOrder
.
getReceiverAddress
());
deliveryNoticeMsg
.
setAddress
(
distributionOrder
.
getReceiverName
()
+
" "
+
distributionOrder
.
getReceiverPhone
()
+
" "
+
distributionOrder
.
getReceiverAddress
());
SupplierItem
supplierItem
=
supplierItemDao
.
findById
(
distributionOrder
.
getItemId
());
SupplierItem
supplierItem
=
supplierItemDao
.
findById
(
distributionOrder
.
getItemId
());
deliveryNoticeMsg
.
setItemName
(
supplierItem
.
getName
());
deliveryNoticeMsg
.
setItemName
(
supplierItem
.
getName
());
...
...
ch-admin-api/src/main/java/com/wwdz/ch/admin/impl/SysSupplierItemServiceImpl.java
View file @
1d15bc67
...
@@ -515,7 +515,7 @@ public class SysSupplierItemServiceImpl implements SysSupplierItemService {
...
@@ -515,7 +515,7 @@ public class SysSupplierItemServiceImpl implements SysSupplierItemService {
auctionConfig
.
setState
(
AuctionEnum
.
StateEnum
.
WAIT_ON_SALE
.
getCode
());
auctionConfig
.
setState
(
AuctionEnum
.
StateEnum
.
WAIT_ON_SALE
.
getCode
());
auctionConfig
.
setItemId
(
newItemId
);
auctionConfig
.
setItemId
(
newItemId
);
auctionConfig
.
setCreatorId
(
oldItem
.
getCreatorId
());
auctionConfig
.
setCreatorId
(
oldItem
.
getCreatorId
());
auctionConfig
.
setIsValid
(
fals
e
);
auctionConfig
.
setIsValid
(
tru
e
);
auctionConfig
.
setIsDeal
(
false
);
auctionConfig
.
setIsDeal
(
false
);
Instant
startInstant
=
now
.
toInstant
().
plus
(
Duration
.
ofHours
(
2
));
Instant
startInstant
=
now
.
toInstant
().
plus
(
Duration
.
ofHours
(
2
));
Date
startTime
=
Date
.
from
(
startInstant
);
Date
startTime
=
Date
.
from
(
startInstant
);
...
...
ch-dao/src/main/java/com/wwdz/ch/db/dto/request/distribution/SupplierItemRequestDto.java
View file @
1d15bc67
...
@@ -138,6 +138,11 @@ public class SupplierItemRequestDto extends BaseRequestDto implements Entity {
...
@@ -138,6 +138,11 @@ public class SupplierItemRequestDto extends BaseRequestDto implements Entity {
*/
*/
private
Integer
type
;
private
Integer
type
;
/**
* 排除的商品类型
*/
private
List
<
Integer
>
filterType
;
/**
/**
* 商品类型1一口价2竞拍3用户上传
* 商品类型1一口价2竞拍3用户上传
*/
*/
...
...
ch-dao/src/main/java/com/wwdz/ch/db/impl/distribution/AuctionConfigDaoImpl.java
View file @
1d15bc67
...
@@ -106,7 +106,7 @@ public class AuctionConfigDaoImpl implements AuctionConfigDao {
...
@@ -106,7 +106,7 @@ public class AuctionConfigDaoImpl implements AuctionConfigDao {
AuctionConfigExample
example
=
new
AuctionConfigExample
();
AuctionConfigExample
example
=
new
AuctionConfigExample
();
AuctionConfigExample
.
Criteria
criteria
=
example
.
createCriteria
();
AuctionConfigExample
.
Criteria
criteria
=
example
.
createCriteria
();
Date
now
=
new
Date
();
Date
now
=
new
Date
();
//查询截
单
时间一小时内的拍卖
//查询截
拍
时间一小时内的拍卖
Instant
instant
=
now
.
toInstant
().
minus
(
Duration
.
ofHours
(
1
));
Instant
instant
=
now
.
toInstant
().
minus
(
Duration
.
ofHours
(
1
));
Date
time
=
Date
.
from
(
instant
);
Date
time
=
Date
.
from
(
instant
);
criteria
.
andRealEndTimeGreaterThanOrEqualTo
(
time
);
criteria
.
andRealEndTimeGreaterThanOrEqualTo
(
time
);
...
...
ch-dao/src/main/java/com/wwdz/ch/db/impl/distribution/SupplierItemDaoImpl.java
View file @
1d15bc67
...
@@ -38,6 +38,7 @@ public class SupplierItemDaoImpl implements SupplierItemDao {
...
@@ -38,6 +38,7 @@ public class SupplierItemDaoImpl implements SupplierItemDao {
}
}
JdbcHelper
.
ifPresent
(
dto
.
getTypeList
(),
criteria:
:
andTypeIn
);
JdbcHelper
.
ifPresent
(
dto
.
getTypeList
(),
criteria:
:
andTypeIn
);
JdbcHelper
.
ifPresent
(
dto
.
getType
(),
criteria:
:
andTypeEqualTo
);
JdbcHelper
.
ifPresent
(
dto
.
getType
(),
criteria:
:
andTypeEqualTo
);
JdbcHelper
.
ifPresent
(
dto
.
getFilterType
(),
criteria:
:
andTypeNotIn
);
JdbcHelper
.
ifPresent
(
dto
.
getStatus
(),
criteria:
:
andStatusEqualTo
);
JdbcHelper
.
ifPresent
(
dto
.
getStatus
(),
criteria:
:
andStatusEqualTo
);
JdbcHelper
.
ifPresent
(
dto
.
getStock
(),
criteria:
:
andStockGreaterThan
);
JdbcHelper
.
ifPresent
(
dto
.
getStock
(),
criteria:
:
andStockGreaterThan
);
JdbcHelper
.
ifPresent
(
dto
.
getIsOnSale
(),
criteria:
:
andIsOnSaleEqualTo
);
JdbcHelper
.
ifPresent
(
dto
.
getIsOnSale
(),
criteria:
:
andIsOnSaleEqualTo
);
...
@@ -74,6 +75,9 @@ public class SupplierItemDaoImpl implements SupplierItemDao {
...
@@ -74,6 +75,9 @@ public class SupplierItemDaoImpl implements SupplierItemDao {
SupplierItemExample
supplierItemExample
=
new
SupplierItemExample
();
SupplierItemExample
supplierItemExample
=
new
SupplierItemExample
();
SupplierItemExample
.
Criteria
criteria
=
supplierItemExample
.
createCriteria
();
SupplierItemExample
.
Criteria
criteria
=
supplierItemExample
.
createCriteria
();
criteria
.
andCreatorIdEqualTo
(
dto
.
getCreatorId
());
criteria
.
andCreatorIdEqualTo
(
dto
.
getCreatorId
());
JdbcHelper
.
ifPresent
(
dto
.
getTypeList
(),
criteria:
:
andTypeIn
);
JdbcHelper
.
ifPresent
(
dto
.
getType
(),
criteria:
:
andTypeEqualTo
);
JdbcHelper
.
ifPresent
(
dto
.
getFilterType
(),
criteria:
:
andTypeNotIn
);
criteria
.
andStockEqualTo
(
0
);
criteria
.
andStockEqualTo
(
0
);
supplierItemExample
.
setOrderByClause
(
" create_time desc"
);
supplierItemExample
.
setOrderByClause
(
" create_time desc"
);
PageHelper
.
startPage
(
dto
.
getPage
(),
dto
.
getLimit
());
PageHelper
.
startPage
(
dto
.
getPage
(),
dto
.
getLimit
());
...
...
ch-wx-api/src/main/java/com/wwdz/ch/wx/impl/distribution/CollectionItemsRelationServiceImpl.java
View file @
1d15bc67
...
@@ -194,12 +194,14 @@ public class CollectionItemsRelationServiceImpl implements CollectionItemsRelati
...
@@ -194,12 +194,14 @@ public class CollectionItemsRelationServiceImpl implements CollectionItemsRelati
}
else
if
(
dto
.
getCollectionBookId
().
longValue
()
==
CollectionBookConstants
.
DefaultBookEnum
.
SALEING
.
getId
())
{
}
else
if
(
dto
.
getCollectionBookId
().
longValue
()
==
CollectionBookConstants
.
DefaultBookEnum
.
SALEING
.
getId
())
{
//换藏中, 表示上架售卖中
//换藏中, 表示上架售卖中
supplierItemRequestDto
.
setCreatorId
(
targetUserId
);
supplierItemRequestDto
.
setCreatorId
(
targetUserId
);
supplierItemRequestDto
.
setType
(
DistributionEnum
.
DistributionTypeEnum
.
COLLECT
.
getCode
());
supplierItemRequestDto
.
setIsOnSale
(
true
);
supplierItemRequestDto
.
setIsOnSale
(
true
);
supplierItemRequestDto
.
setIsDeleted
(
false
);
supplierItemRequestDto
.
setIsDeleted
(
false
);
supplierItemList
=
supplierItemDao
.
findList
(
supplierItemRequestDto
);
supplierItemList
=
supplierItemDao
.
findList
(
supplierItemRequestDto
);
pageInfo
=
new
PageInfo
<>(
supplierItemList
);
pageInfo
=
new
PageInfo
<>(
supplierItemList
);
}
else
if
(
dto
.
getCollectionBookId
().
longValue
()
==
CollectionBookConstants
.
DefaultBookEnum
.
FINISHED
.
getId
())
{
}
else
if
(
dto
.
getCollectionBookId
().
longValue
()
==
CollectionBookConstants
.
DefaultBookEnum
.
FINISHED
.
getId
())
{
//已结缘, 表示卖完了
//已结缘, 表示卖完了
supplierItemRequestDto
.
setType
(
DistributionEnum
.
DistributionTypeEnum
.
COLLECT
.
getCode
());
supplierItemRequestDto
.
setCreatorId
(
targetUserId
);
supplierItemRequestDto
.
setCreatorId
(
targetUserId
);
supplierItemRequestDto
.
setStock
(
0
);
supplierItemRequestDto
.
setStock
(
0
);
supplierItemList
=
supplierItemDao
.
findSellOutList
(
supplierItemRequestDto
);
supplierItemList
=
supplierItemDao
.
findSellOutList
(
supplierItemRequestDto
);
...
...
ch-wx-api/src/main/java/com/wwdz/ch/wx/impl/distribution/DistributionOrderServiceImpl.java
View file @
1d15bc67
...
@@ -267,22 +267,46 @@ public class DistributionOrderServiceImpl implements DistributionOrderService {
...
@@ -267,22 +267,46 @@ public class DistributionOrderServiceImpl implements DistributionOrderService {
map
.
put
(
"prepayId"
,
null
);
map
.
put
(
"prepayId"
,
null
);
//计算分销商的利润
//计算分销商的利润
DistributorProfit
distributorProfit
=
new
DistributorProfit
();
DistributorProfit
distributorProfit
=
new
DistributorProfit
();
//利润,该记录在用户未付款时未无效,仅用于在分销商查看订单详情时,计算预计利润
Double
profit
=
distributionOrder
.
getAmount
().
doubleValue
()
*
0.03
;
//平台服务费,默认15%
CollectorWhiteList
collectorWhiteList
=
collectorWhiteListDao
.
findById
(
auctionConfig
.
getCreatorId
());
double
channelCostRebate
=
0.15
;
if
(
collectorWhiteList
!=
null
)
{
BigDecimal
channelCost
=
collectorWhiteList
.
getChannelCostRebate
();
channelCost
=
PriceUtil
.
convertToDivide
(
channelCost
);
channelCostRebate
=
channelCost
.
doubleValue
();
}
logger
.
info
(
"藏家id:{} 生成新拍卖订单,平台服务费比例:{}"
,
auctionConfig
.
getCreatorId
(),
channelCostRebate
);
double
channelServiceCost
=
distributionOrder
.
getAmount
().
doubleValue
()
*
channelCostRebate
;
distributorProfit
.
setChannelCost
(
PriceUtil
.
convertPriceFromStr
(
PriceUtil
.
convertDoubleToString
(
channelServiceCost
)));
//查询该用户和藏家的介绍人
FollowFansRecordRequestDto
followFansRecordRequestDto
=
new
FollowFansRecordRequestDto
();
followFansRecordRequestDto
.
setFollowerId
(
auctionConfig
.
getCreatorId
());
followFansRecordRequestDto
.
setFansId
(
auctionRecord
.
getUserId
());
double
rebate
=
distributorProfitService
.
getIntroduceRebate
(
followFansRecordRequestDto
);
double
introduceCost
=
distributionOrder
.
getAmount
().
doubleValue
()
*
rebate
;
distributorProfit
.
setIntroduceCost
(
PriceUtil
.
convertPriceFromStr
(
PriceUtil
.
convertDoubleToString
(
introduceCost
)));
distributorProfit
.
setDistributionOrderId
(
distributionOrderId
);
distributorProfit
.
setDistributionOrderId
(
distributionOrderId
);
distributorProfit
.
setDistributorId
(
distributionOrder
.
getSellerId
());
distributorProfit
.
setDistributorId
(
distributionOrder
.
getSellerId
());
distributorProfit
.
setItemId
(
distributionOrder
.
getItemId
());
distributorProfit
.
setItemId
(
distributionOrder
.
getItemId
());
distributorProfit
.
setItemNum
(
distributionOrder
.
getItemNum
());
distributorProfit
.
setItemNum
(
distributionOrder
.
getItemNum
());
distributorProfit
.
setAmount
(
distributionOrder
.
getAmount
());
distributorProfit
.
setAmount
(
distributionOrder
.
getAmount
());
distributorProfit
.
setItemCost
(
auctionConfig
.
getStartPrice
());
distributorProfit
.
setItemCost
(
auctionConfig
.
getStartPrice
());
distributorProfit
.
setProfit
((
long
)
Math
.
floor
(
profit
));
distributorProfit
.
setChannelCost
(
PriceUtil
.
convertPriceFromStr
(
PriceUtil
.
convertDoubleToString
(
channelServiceCost
)));
distributorProfit
.
setIntroduceCost
(
PriceUtil
.
convertPriceFromStr
(
PriceUtil
.
convertDoubleToString
(
introduceCost
)));
long
profit
=
distributionOrder
.
getAmount
()
-
distributorProfit
.
getChannelCost
()
-
distributorProfit
.
getIntroduceCost
();
distributorProfit
.
setProfit
(
profit
);
distributorProfit
.
setCreateTime
(
new
Date
());
distributorProfit
.
setCreateTime
(
new
Date
());
distributorProfit
.
setType
(
DistributionEnum
.
DistributionTypeEnum
.
AUCTION
.
getCode
());
distributorProfit
.
setType
(
DistributionEnum
.
DistributionTypeEnum
.
AUCTION
.
getCode
());
distributorProfit
.
setIsValid
(
false
);
distributorProfit
.
setIsValid
(
false
);
distributorProfitDao
.
insert
(
distributorProfit
);
distributorProfitDao
.
insert
(
distributorProfit
);
SupplierItem
supplierItem
=
supplierItemDao
.
findById
(
dto
.
getItemId
());
SupplierItem
supplierItem
=
supplierItemDao
.
findById
(
dto
.
getItemId
());
//查询参与出价的所有用户所对应的分销商,可以
评
分成交额的3%的利润
//查询参与出价的所有用户所对应的分销商,可以
平
分成交额的3%的利润
List
<
AuctionRecord
>
auctionRecordList
=
auctionRecordDao
.
findByItemId
(
dto
.
getItemId
());
List
<
AuctionRecord
>
auctionRecordList
=
auctionRecordDao
.
findByItemId
(
dto
.
getItemId
());
List
<
AuctionRecord
>
filterRecordList
=
auctionRecordList
.
stream
()
List
<
AuctionRecord
>
filterRecordList
=
auctionRecordList
.
stream
()
.
filter
(
StringUtil
.
distinctByKey
(
AuctionRecord:
:
getDistributorId
))
.
filter
(
StringUtil
.
distinctByKey
(
AuctionRecord:
:
getDistributorId
))
...
@@ -317,13 +341,13 @@ public class DistributionOrderServiceImpl implements DistributionOrderService {
...
@@ -317,13 +341,13 @@ public class DistributionOrderServiceImpl implements DistributionOrderService {
Result
result
=
sendMsgService
.
auctionSuccessForDistributorsMsg
(
auctionOfferNoticeMsg
);
Result
result
=
sendMsgService
.
auctionSuccessForDistributorsMsg
(
auctionOfferNoticeMsg
);
if
(!
result
.
getSuccess
())
{
if
(!
result
.
getSuccess
())
{
String
url
=
wxAppletApi
.
getUrlLink
(
AUCTION_MSG_URL
,
"itemId="
+
supplierItem
.
getId
()
+
"&shareRecordId="
);
String
url
=
wxAppletApi
.
getUrlLink
(
AUCTION_MSG_URL
,
"itemId="
+
supplierItem
.
getId
()
+
"&shareRecordId="
);
String
msg
=
"您分
销
的拍品"
+
supplierItem
.
getName
()
+
"已成拍,成交价是"
+
PriceUtil
.
convertPriceFenToYuan
(
distributionOrder
.
getAmount
())
+
String
msg
=
"您分
享
的拍品"
+
supplierItem
.
getName
()
+
"已成拍,成交价是"
+
PriceUtil
.
convertPriceFenToYuan
(
distributionOrder
.
getAmount
())
+
"元,您预计获得利润"
+
PriceUtil
.
convertDoubleToString
(
Math
.
floor
(
averageProfit
))
+
"元。请前往"
+
url
+
"查看"
;
"元,您预计获得利润"
+
PriceUtil
.
convertDoubleToString
(
Math
.
floor
(
averageProfit
))
+
"元。请前往"
+
url
+
"查看"
;
aliSmsSender
.
sendSms
(
record
.
getDistributorId
(),
msg
);
aliSmsSender
.
sendSms
(
record
.
getDistributorId
(),
msg
);
}
}
}
else
{
}
else
{
String
url
=
wxAppletApi
.
getUrlLink
(
AUCTION_MSG_URL
,
"itemId="
+
supplierItem
.
getId
()
+
"&shareRecordId="
);
String
url
=
wxAppletApi
.
getUrlLink
(
AUCTION_MSG_URL
,
"itemId="
+
supplierItem
.
getId
()
+
"&shareRecordId="
);
String
msg
=
"您分
销
的拍品"
+
supplierItem
.
getName
()
+
"已成拍,成交价是"
+
PriceUtil
.
convertPriceFenToYuan
(
distributionOrder
.
getAmount
())
+
String
msg
=
"您分
享
的拍品"
+
supplierItem
.
getName
()
+
"已成拍,成交价是"
+
PriceUtil
.
convertPriceFenToYuan
(
distributionOrder
.
getAmount
())
+
"元,您预计获得利润"
+
PriceUtil
.
convertDoubleToString
(
Math
.
floor
(
averageProfit
))
+
"元。请前往"
+
url
+
"查看"
;
"元,您预计获得利润"
+
PriceUtil
.
convertDoubleToString
(
Math
.
floor
(
averageProfit
))
+
"元。请前往"
+
url
+
"查看"
;
aliSmsSender
.
sendSms
(
record
.
getDistributorId
(),
msg
);
aliSmsSender
.
sendSms
(
record
.
getDistributorId
(),
msg
);
}
}
...
...
ch-wx-api/src/main/java/com/wwdz/ch/wx/impl/distribution/DistributorShareRecordServiceImpl.java
View file @
1d15bc67
...
@@ -73,7 +73,7 @@ public class DistributorShareRecordServiceImpl implements DistributorShareRecord
...
@@ -73,7 +73,7 @@ public class DistributorShareRecordServiceImpl implements DistributorShareRecord
distributorShareRecord
.
setItemId
(
dto
.
getItemId
());
distributorShareRecord
.
setItemId
(
dto
.
getItemId
());
distributorShareRecord
.
setPrice
(
PriceUtil
.
convertPriceFromStr
(
dto
.
getPrice
()));
distributorShareRecord
.
setPrice
(
PriceUtil
.
convertPriceFromStr
(
dto
.
getPrice
()));
distributorShareRecord
.
setDistributorId
(
dto
.
getDistributorId
());
distributorShareRecord
.
setDistributorId
(
dto
.
getDistributorId
());
distributorShareRecord
.
setShopId
(
dto
.
get
Shop
Id
());
distributorShareRecord
.
setShopId
(
dto
.
get
Distributor
Id
());
distributorShareRecord
.
setCreateTime
(
new
Date
());
distributorShareRecord
.
setCreateTime
(
new
Date
());
distributorShareRecord
.
setEnabled
(
true
);
distributorShareRecord
.
setEnabled
(
true
);
distributorShareRecord
.
setType
(
DistributionEnum
.
DistributionTypeEnum
.
FIXED_PRICE
.
getCode
());
distributorShareRecord
.
setType
(
DistributionEnum
.
DistributionTypeEnum
.
FIXED_PRICE
.
getCode
());
...
@@ -107,7 +107,7 @@ public class DistributorShareRecordServiceImpl implements DistributorShareRecord
...
@@ -107,7 +107,7 @@ public class DistributorShareRecordServiceImpl implements DistributorShareRecord
//商品的起拍价
//商品的起拍价
distributorShareRecord
.
setPrice
(
auctionConfig
.
getStartPrice
());
distributorShareRecord
.
setPrice
(
auctionConfig
.
getStartPrice
());
distributorShareRecord
.
setDistributorId
(
dto
.
getDistributorId
());
distributorShareRecord
.
setDistributorId
(
dto
.
getDistributorId
());
distributorShareRecord
.
setShopId
(
dto
.
get
Shop
Id
());
distributorShareRecord
.
setShopId
(
dto
.
get
Distributor
Id
());
distributorShareRecord
.
setCreateTime
(
new
Date
());
distributorShareRecord
.
setCreateTime
(
new
Date
());
distributorShareRecord
.
setEnabled
(
true
);
distributorShareRecord
.
setEnabled
(
true
);
distributorShareRecord
.
setType
(
DistributionEnum
.
DistributionTypeEnum
.
AUCTION
.
getCode
());
distributorShareRecord
.
setType
(
DistributionEnum
.
DistributionTypeEnum
.
AUCTION
.
getCode
());
...
...
ch-wx-api/src/main/java/com/wwdz/ch/wx/impl/distribution/SpecialPerformanceServiceImpl.java
View file @
1d15bc67
...
@@ -252,6 +252,7 @@ public class SpecialPerformanceServiceImpl implements SpecialPerformanceService
...
@@ -252,6 +252,7 @@ public class SpecialPerformanceServiceImpl implements SpecialPerformanceService
supplierItemVos
.
add
(
supplierItemVo
);
supplierItemVos
.
add
(
supplierItemVo
);
});
});
resultMap
.
put
(
"dataList"
,
PageSearchResult
.
of
(
pageInfo
,
supplierItemVos
));
resultMap
.
put
(
"dataList"
,
PageSearchResult
.
of
(
pageInfo
,
supplierItemVos
));
resultMap
.
put
(
"startTime"
,
specialPerformance
.
getStartTime
());
resultMap
.
put
(
"endTime"
,
specialPerformance
.
getEndTime
());
resultMap
.
put
(
"endTime"
,
specialPerformance
.
getEndTime
());
resultMap
.
put
(
"title"
,
specialPerformance
.
getTitle
());
resultMap
.
put
(
"title"
,
specialPerformance
.
getTitle
());
//当前时间大于专场结束时间则修改专场的状态
//当前时间大于专场结束时间则修改专场的状态
...
...
ch-wx-api/src/main/java/com/wwdz/ch/wx/job/AutoCreateAuctionOrderJob.java
View file @
1d15bc67
...
@@ -102,6 +102,7 @@ public class AutoCreateAuctionOrderJob {
...
@@ -102,6 +102,7 @@ public class AutoCreateAuctionOrderJob {
}
}
}
else
{
}
else
{
//没有出价记录,流拍的商品也要更新拍卖配置信息为已处理, 拍品状态更新为"无出价流拍"
//没有出价记录,流拍的商品也要更新拍卖配置信息为已处理, 拍品状态更新为"无出价流拍"
logger
.
info
(
"商品id:{}, 没有出价记录,状态更新为'无出价流拍'"
);
auctionConfigDao
.
setDeal
(
itemId
,
AuctionEnum
.
StateEnum
.
NO_OFFER_TO_PASS
.
getCode
());
auctionConfigDao
.
setDeal
(
itemId
,
AuctionEnum
.
StateEnum
.
NO_OFFER_TO_PASS
.
getCode
());
}
}
});
});
...
...
ch-wx-api/src/main/java/com/wwdz/ch/wx/job/SpecialPerformanceNoticeJob.java
View file @
1d15bc67
...
@@ -117,6 +117,12 @@ public class SpecialPerformanceNoticeJob {
...
@@ -117,6 +117,12 @@ public class SpecialPerformanceNoticeJob {
logger
.
info
(
">>>>>>>>>>>>>>>>>>>>>>> dev环境, 不执行专场即将开始通知任务<<<<<<<<<<<<<<<<<<<<<"
);
logger
.
info
(
">>>>>>>>>>>>>>>>>>>>>>> dev环境, 不执行专场即将开始通知任务<<<<<<<<<<<<<<<<<<<<<"
);
return
;
return
;
}
}
//正式环境测试, 不发送消息
/* if (true) {
logger.info(">>>>>>>>>>>>>>>>>>>>>>> 正式环境测试, 不执行专场即将开始通知任务<<<<<<<<<<<<<<<<<<<<<");
return;
}*/
logger
.
info
(
"当前即将开始的专场id:{}, 名称为 {} "
,
specialPerformance
.
getId
(),
specialPerformance
.
getTitle
());
logger
.
info
(
"当前即将开始的专场id:{}, 名称为 {} "
,
specialPerformance
.
getId
(),
specialPerformance
.
getTitle
());
//发送短信通知
//发送短信通知
String
url
=
wxAppletApi
.
getUrlLink
(
SPECIAL_PERFORMANCE_URL
,
"specialId="
+
specialPerformance
.
getId
());
String
url
=
wxAppletApi
.
getUrlLink
(
SPECIAL_PERFORMANCE_URL
,
"specialId="
+
specialPerformance
.
getId
());
...
...
ch-wx-api/src/main/java/com/wwdz/ch/wx/web/distribution/DistributorShareRecordController.java
View file @
1d15bc67
...
@@ -37,7 +37,6 @@ public class DistributorShareRecordController {
...
@@ -37,7 +37,6 @@ public class DistributorShareRecordController {
validator
.
set
(
"itemId"
,
"商品id"
).
must
().
number
()
validator
.
set
(
"itemId"
,
"商品id"
).
must
().
number
()
.
set
(
"price"
,
"商品销售价"
).
must
().
string
()
.
set
(
"price"
,
"商品销售价"
).
must
().
string
()
.
set
(
"distributorId"
,
"分销商id"
).
must
().
number
()
.
set
(
"distributorId"
,
"分销商id"
).
must
().
number
()
.
set
(
"shopId"
,
"分销商店铺id"
).
must
().
number
()
.
end
();
.
end
();
if
(!
validator
.
isValid
())
{
if
(!
validator
.
isValid
())
{
return
Result
.
failed
(
validator
.
getErrorInfo
());
return
Result
.
failed
(
validator
.
getErrorInfo
());
...
@@ -53,7 +52,6 @@ public class DistributorShareRecordController {
...
@@ -53,7 +52,6 @@ public class DistributorShareRecordController {
Validator
validator
=
new
Validator
(
FormHandler
.
ofEntity
(
dto
));
Validator
validator
=
new
Validator
(
FormHandler
.
ofEntity
(
dto
));
validator
.
set
(
"itemId"
,
"商品id"
).
must
().
number
()
validator
.
set
(
"itemId"
,
"商品id"
).
must
().
number
()
.
set
(
"distributorId"
,
"分销商id"
).
must
().
number
()
.
set
(
"distributorId"
,
"分销商id"
).
must
().
number
()
.
set
(
"shopId"
,
"分销商店铺id"
).
must
().
number
()
.
end
();
.
end
();
if
(!
validator
.
isValid
())
{
if
(!
validator
.
isValid
())
{
return
Result
.
failed
(
validator
.
getErrorInfo
());
return
Result
.
failed
(
validator
.
getErrorInfo
());
...
...
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