|
|
@@ -92,6 +92,9 @@ public class AuctionActivityService {
|
|
|
|
|
|
|
|
|
public AuctionActivity save(AuctionActivity record, String tradeCode) {
|
|
|
+ if (record.getSource().equals(AuctionSource.OFFICIAL)) {
|
|
|
+ record.setStatus(AuctionStatus.NOTSTARTED);
|
|
|
+ }
|
|
|
if (record.getSource().equals(AuctionSource.TRANSFER) & !record.getSellerId().equals(9859L)) {
|
|
|
User user = userRepo.findById(record.getSellerId()).orElseThrow(new BusinessException("无用户信息"));
|
|
|
if (!passwordEncoder.matches(tradeCode, user.getTradeCode())) {
|