|
|
@@ -5,21 +5,27 @@ import com.github.pagehelper.PageInfo;
|
|
|
import com.sckw.core.exception.BusinessException;
|
|
|
import com.sckw.core.model.page.PageRes;
|
|
|
import com.sckw.core.utils.IdWorker;
|
|
|
+import com.sckw.core.utils.StringUtils;
|
|
|
+import com.sckw.core.web.context.LoginUserHolder;
|
|
|
+import com.sckw.payment.api.model.constant.ChannelEnum;
|
|
|
+import com.sckw.payment.api.model.dto.WalletDto;
|
|
|
+import com.sckw.payment.api.model.dto.common.R;
|
|
|
import com.sckw.payment.dao.KwpSettlementLogisticsMapper;
|
|
|
+import com.sckw.payment.dao.KwpSettlementLogisticsTrackMapper;
|
|
|
import com.sckw.payment.dao.KwpSettlementTradeMapper;
|
|
|
import com.sckw.payment.dao.KwpSettlementWalletMapper;
|
|
|
-import com.sckw.payment.model.KwpSettlementLogistics;
|
|
|
-import com.sckw.payment.model.KwpSettlementTrade;
|
|
|
-import com.sckw.payment.model.KwpSettlementWallet;
|
|
|
-import com.sckw.payment.model.constant.SettlementEnum;
|
|
|
-import com.sckw.payment.model.constant.SettlementOrderTypeEnum;
|
|
|
-import com.sckw.payment.model.constant.SettlementWalletPayTypeEnum;
|
|
|
-import com.sckw.payment.model.constant.WalletChannelEnum;
|
|
|
+import com.sckw.payment.model.*;
|
|
|
+import com.sckw.payment.model.constant.*;
|
|
|
+import com.sckw.payment.model.dto.LedgerUnitDto;
|
|
|
import com.sckw.payment.model.dto.SettlementLogisticsDto;
|
|
|
import com.sckw.payment.model.dto.SettlementTradeDto;
|
|
|
import com.sckw.payment.model.dto.SettlementWalletDto;
|
|
|
+import com.sckw.payment.model.vo.req.OfflinePaymentReq;
|
|
|
import com.sckw.payment.model.vo.req.SettlementWalletReq;
|
|
|
+import com.sckw.payment.model.vo.req.WalletPayReq;
|
|
|
import com.sckw.payment.model.vo.res.SettlementWalletVo;
|
|
|
+import com.sckw.redis.config.RedisLockUtil;
|
|
|
+import com.sckw.redis.constant.RedisConstant;
|
|
|
import com.sckw.system.api.RemoteSystemService;
|
|
|
import com.sckw.system.api.model.dto.res.UserCacheResDto;
|
|
|
import jakarta.annotation.Resource;
|
|
|
@@ -197,7 +203,7 @@ public class KwpSettlementWalletService {
|
|
|
kwpSettlementWallet.setEntId(settlementLogisticsDto.getEntId());
|
|
|
kwpSettlementWallet.setSettlementId(settlementLogisticsDto.getId());
|
|
|
kwpSettlementWallet.setOrderType(SettlementOrderTypeEnum.LOGISTICS.getStatus());
|
|
|
- kwpSettlementWallet.setChannel(WalletChannelEnum.HF.getStatus());//先用数字默认定义为1
|
|
|
+ kwpSettlementWallet.setChannel(WalletChannelEnum.getValue(settlementLogisticsDto.getLedgerTrading()));//先用数字默认定义为1
|
|
|
kwpSettlementWallet.setPayTime(LocalDateTime.now());
|
|
|
kwpSettlementWallet.setPayPrice(price);
|
|
|
kwpSettlementWallet.setTopayPrice(remainingReceivables);
|