fix:小程序支付密码修改、充值、充值列表、提现接口
This commit is contained in:
@@ -72,6 +72,13 @@ public class ShopInfoDAO {
|
||||
return shopInfo;
|
||||
}
|
||||
|
||||
public ShopInfoDO getShopInfoByStoreId(String storeId) {
|
||||
ShopInfoDO shopInfoDO = new ShopInfoDO();
|
||||
shopInfoDO.setStoreId(storeId);
|
||||
shopInfoDO.setDeleted(false);
|
||||
return shopInfoMapper.selectOne(shopInfoDO);
|
||||
}
|
||||
|
||||
public List<ShopInfoDO> getShopList(Long lineId){
|
||||
if(Objects.isNull(lineId)){
|
||||
return new ArrayList<>();
|
||||
|
||||
@@ -1,21 +0,0 @@
|
||||
package com.cool.store.dao.wallet;
|
||||
|
||||
import com.cool.store.mapper.wallet.WalletLargePaymentMapper;
|
||||
import lombok.RequiredArgsConstructor;
|
||||
import org.springframework.stereotype.Repository;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
* 钱包大额支付DAO
|
||||
* </p>
|
||||
*
|
||||
* @author wangff
|
||||
* @since 2025/11/18
|
||||
*/
|
||||
@Repository
|
||||
@RequiredArgsConstructor
|
||||
public class WalletLargePaymentDAO {
|
||||
private final WalletLargePaymentMapper walletLargePaymentMapper;
|
||||
|
||||
|
||||
}
|
||||
@@ -0,0 +1,40 @@
|
||||
package com.cool.store.dao.wallet;
|
||||
|
||||
import com.cool.store.entity.wallet.WalletPaymentOrderDO;
|
||||
import com.cool.store.mapper.wallet.WalletPaymentOrderMapper;
|
||||
import lombok.RequiredArgsConstructor;
|
||||
import org.springframework.stereotype.Repository;
|
||||
import tk.mybatis.mapper.entity.Example;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
* 钱包大额支付DAO
|
||||
* </p>
|
||||
*
|
||||
* @author wangff
|
||||
* @since 2025/11/18
|
||||
*/
|
||||
@Repository
|
||||
@RequiredArgsConstructor
|
||||
public class WalletPaymentOrderDAO {
|
||||
private final WalletPaymentOrderMapper walletPaymentOrderMapper;
|
||||
|
||||
public void insertSelective(WalletPaymentOrderDO walletPaymentOrderDO) {
|
||||
walletPaymentOrderMapper.insertSelective(walletPaymentOrderDO);
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询未支付的充值订单
|
||||
*/
|
||||
public List<WalletPaymentOrderDO> getNonPaymentList(String storeId) {
|
||||
Example example = new Example(WalletPaymentOrderDO.class);
|
||||
example.createCriteria()
|
||||
.andEqualTo("storeId", storeId)
|
||||
.andEqualTo("orderStatus", 3)
|
||||
.andEqualTo("type", 0);
|
||||
example.setOrderByClause("create_time DESC");
|
||||
return walletPaymentOrderMapper.selectByExample(example);
|
||||
}
|
||||
}
|
||||
@@ -1,7 +0,0 @@
|
||||
package com.cool.store.mapper.wallet;
|
||||
|
||||
import com.cool.store.entity.wallet.WalletLargePaymentDO;
|
||||
import tk.mybatis.mapper.common.Mapper;
|
||||
|
||||
public interface WalletLargePaymentMapper extends Mapper<WalletLargePaymentDO> {
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
package com.cool.store.mapper.wallet;
|
||||
|
||||
import com.cool.store.entity.wallet.WalletPaymentOrderDO;
|
||||
import tk.mybatis.mapper.common.Mapper;
|
||||
|
||||
public interface WalletPaymentOrderMapper extends Mapper<WalletPaymentOrderDO> {
|
||||
}
|
||||
@@ -1,13 +1,14 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.cool.store.mapper.wallet.WalletLargePaymentMapper">
|
||||
<resultMap id="BaseResultMap" type="com.cool.store.entity.wallet.WalletLargePaymentDO">
|
||||
<mapper namespace="com.cool.store.mapper.wallet.WalletPaymentOrderMapper">
|
||||
<resultMap id="BaseResultMap" type="com.cool.store.entity.wallet.WalletPaymentOrderDO">
|
||||
<!--
|
||||
WARNING - @mbg.generated
|
||||
-->
|
||||
<id column="id" jdbcType="BIGINT" property="id" />
|
||||
<result column="store_id" jdbcType="VARCHAR" property="storeId" />
|
||||
<result column="payment_id" jdbcType="VARCHAR" property="paymentId" />
|
||||
<result column="type" jdbcType="TINYINT" property="type" />
|
||||
<result column="amount" jdbcType="DECIMAL" property="amount" />
|
||||
<result column="expire_time" jdbcType="VARCHAR" property="expireTime" />
|
||||
<result column="order_status" jdbcType="BIT" property="orderStatus" />
|
||||
Reference in New Issue
Block a user