29 changed files with 282 additions and 104 deletions
-
7cereshop-admin/src/main/java/com/shop/cereshop/admin/pay/PayService.java
-
4cereshop-admin/src/main/java/com/shop/cereshop/admin/pay/alipay/service/impl/AliPayServiceImpl.java
-
4cereshop-admin/src/main/java/com/shop/cereshop/admin/pay/hnapay/impl/HnaPayServiceImpl.java
-
65cereshop-admin/src/main/java/com/shop/cereshop/admin/pay/weixin/service/impl/WxPayServiceImpl.java
-
4cereshop-admin/src/main/java/com/shop/cereshop/admin/pay/xs/impl/XsPayServiceImpl.java
-
2cereshop-admin/src/main/java/com/shop/cereshop/admin/redis/listener/RedisListener.java
-
2cereshop-admin/src/main/java/com/shop/cereshop/admin/service/after/impl/CereOrderAfterServiceImpl.java
-
1cereshop-admin/src/main/java/com/shop/cereshop/admin/service/bwxpay/CereBusinessWxpayService.java
-
13cereshop-app/src/main/java/com/shop/cereshop/app/controller/index/LoginController.java
-
1cereshop-app/src/main/java/com/shop/cereshop/app/dao/bwxpay/CereBusinessWxpayDao.java
-
94cereshop-app/src/main/java/com/shop/cereshop/app/pay/weixin/service/impl/WxPayServiceImpl.java
-
8cereshop-app/src/main/java/com/shop/cereshop/app/service/buyer/impl/CereBuyerUserServiceImpl.java
-
2cereshop-app/src/main/java/com/shop/cereshop/app/service/bwxpay/CereBusinessWxpayService.java
-
2cereshop-app/src/main/java/com/shop/cereshop/app/service/bwxpay/impl/CereBusinessWxpayServiceImpl.java
-
10cereshop-app/src/main/java/com/shop/cereshop/app/service/product/impl/CereShopProductServiceImpl.java
-
9cereshop-app/src/main/java/com/shop/cereshop/app/service/shop/impl/CerePlatformShopServiceImpl.java
-
18cereshop-app/src/main/java/com/shop/cereshop/app/utils/WechatUtil.java
-
19cereshop-app/src/main/resources/mybatis/mapper/bwxpay/CereBusinessWxpayDAO.xml
-
20cereshop-business/src/main/java/com/shop/cereshop/business/dao/bwxpay/CereBusinessWxpayDao.java
-
3cereshop-business/src/main/java/com/shop/cereshop/business/pay/PayService.java
-
2cereshop-business/src/main/java/com/shop/cereshop/business/pay/alipay/service/impl/AliPayServiceImpl.java
-
2cereshop-business/src/main/java/com/shop/cereshop/business/pay/alipay/service/impl/HuabeiPayServiceImpl.java
-
2cereshop-business/src/main/java/com/shop/cereshop/business/pay/hnapay/impl/HnaPayServiceImpl.java
-
6cereshop-business/src/main/java/com/shop/cereshop/business/pay/weixin/service/impl/WxPayServiceImpl.java
-
4cereshop-business/src/main/java/com/shop/cereshop/business/pay/xs/service/impl/XsPayServiceImpl.java
-
4cereshop-business/src/main/java/com/shop/cereshop/business/service/after/impl/CereOrderAfterServiceImpl.java
-
19cereshop-business/src/main/java/com/shop/cereshop/business/service/bwxpay/CereBusinessWxpayService.java
-
40cereshop-business/src/main/java/com/shop/cereshop/business/service/bwxpay/impl/CereBusinessWxpayServiceImpl.java
-
19cereshop-business/src/main/resources/mybatis/mapper/bwxpay/CereBusinessWxpayDAO.xml
@ -0,0 +1,19 @@ |
|||
<?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.shop.cereshop.app.dao.bwxpay.CereBusinessWxpayDao"> |
|||
<resultMap id="BaseResultMap" type="com.shop.cereshop.commons.domain.bwxpay.CereBusinessWxpay"> |
|||
<id column="id" jdbcType="BIGINT" property="id"/> |
|||
<result column="business_id" jdbcType="BIGINT" property="businessId" /> |
|||
<result column="app_id" jdbcType="VARCHAR" property="appId" /> |
|||
<result column="app_app_id" jdbcType="VARCHAR" property="appAppId" /> |
|||
<result column="mch_id" jdbcType="VARCHAR" property="mchId" /> |
|||
<result column="cert_url" jdbcType="VARCHAR" property="certUrl" /> |
|||
<result column="mch_key" jdbcType="VARCHAR" property="mchKey" /> |
|||
<result column="secret" jdbcType="VARCHAR" property="secret" /> |
|||
</resultMap> |
|||
|
|||
<select id="getByBusinessId" parameterType="java.lang.Object" resultType="com.shop.cereshop.commons.domain.bwxpay.CereBusinessWxpay"> |
|||
SELECT * FROM cere_business_wxpay where business_id = #{businessId} |
|||
</select> |
|||
|
|||
</mapper> |
@ -0,0 +1,20 @@ |
|||
package com.shop.cereshop.business.dao.bwxpay; |
|||
|
|||
import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
|||
import com.shop.cereshop.commons.domain.bwxpay.CereBusinessWxpay; |
|||
import org.apache.ibatis.annotations.Mapper; |
|||
import org.apache.ibatis.annotations.Param; |
|||
|
|||
|
|||
/** |
|||
* 描述: |
|||
* |
|||
* @author stevenhu |
|||
* @version 2025/02/20 11:49 |
|||
*/ |
|||
@Mapper |
|||
public interface CereBusinessWxpayDao extends BaseMapper<CereBusinessWxpay> { |
|||
|
|||
CereBusinessWxpay getByBusinessId(@Param("businessId") Long businessId); |
|||
|
|||
} |
@ -0,0 +1,19 @@ |
|||
package com.shop.cereshop.business.service.bwxpay; |
|||
|
|||
import com.shop.cereshop.commons.domain.bwxpay.CereBusinessWxpay; |
|||
import com.shop.cereshop.commons.exception.CoBusinessException; |
|||
|
|||
/** |
|||
* 描述: |
|||
* |
|||
* @author stevenhu |
|||
* @version 2025/02/20 14:19 |
|||
*/ |
|||
public interface CereBusinessWxpayService { |
|||
|
|||
void save(CereBusinessWxpay record) throws CoBusinessException; |
|||
|
|||
void update(CereBusinessWxpay businessWxpay) throws CoBusinessException; |
|||
|
|||
CereBusinessWxpay getByBusinessId(Long businessId) throws CoBusinessException; |
|||
} |
@ -0,0 +1,40 @@ |
|||
package com.shop.cereshop.business.service.bwxpay.impl; |
|||
|
|||
import com.shop.cereshop.business.dao.bwxpay.CereBusinessWxpayDao; |
|||
import com.shop.cereshop.business.service.bwxpay.CereBusinessWxpayService; |
|||
import com.shop.cereshop.commons.domain.bwxpay.CereBusinessWxpay; |
|||
import com.shop.cereshop.commons.exception.CoBusinessException; |
|||
import org.springframework.beans.factory.annotation.Autowired; |
|||
import org.springframework.stereotype.Service; |
|||
import org.springframework.transaction.annotation.Isolation; |
|||
import org.springframework.transaction.annotation.Propagation; |
|||
import org.springframework.transaction.annotation.Transactional; |
|||
|
|||
/** |
|||
* 描述: |
|||
* |
|||
* @author stevenhu |
|||
* @version 2025/02/20 14:21 |
|||
*/ |
|||
@Service |
|||
public class CereBusinessWxpayServiceImpl implements CereBusinessWxpayService { |
|||
|
|||
@Autowired |
|||
private CereBusinessWxpayDao cereBusinessWxpayDao; |
|||
|
|||
@Override |
|||
@Transactional(isolation= Isolation.DEFAULT,propagation= Propagation.REQUIRED,rollbackFor = {CoBusinessException.class, Exception.class}) |
|||
public void save(CereBusinessWxpay record) throws CoBusinessException { |
|||
cereBusinessWxpayDao.insert(record); |
|||
} |
|||
|
|||
@Override |
|||
public void update(CereBusinessWxpay businessWxpay) throws CoBusinessException { |
|||
cereBusinessWxpayDao.updateById(businessWxpay); |
|||
} |
|||
|
|||
@Override |
|||
public CereBusinessWxpay getByBusinessId(Long businessId) throws CoBusinessException { |
|||
return cereBusinessWxpayDao.getByBusinessId(businessId); |
|||
} |
|||
} |
@ -0,0 +1,19 @@ |
|||
<?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.shop.cereshop.business.dao.bwxpay.CereBusinessWxpayDao"> |
|||
<resultMap id="BaseResultMap" type="com.shop.cereshop.commons.domain.bwxpay.CereBusinessWxpay"> |
|||
<id column="id" jdbcType="BIGINT" property="id"/> |
|||
<result column="business_id" jdbcType="BIGINT" property="businessId" /> |
|||
<result column="app_id" jdbcType="VARCHAR" property="appId" /> |
|||
<result column="app_app_id" jdbcType="VARCHAR" property="appAppId" /> |
|||
<result column="mch_id" jdbcType="VARCHAR" property="mchId" /> |
|||
<result column="cert_url" jdbcType="VARCHAR" property="certUrl" /> |
|||
<result column="mch_key" jdbcType="VARCHAR" property="mchKey" /> |
|||
<result column="secret" jdbcType="VARCHAR" property="secret" /> |
|||
</resultMap> |
|||
|
|||
<select id="getByBusinessId" parameterType="java.lang.Object" resultType="com.shop.cereshop.commons.domain.bwxpay.CereBusinessWxpay"> |
|||
SELECT * FROM cere_business_wxpay where business_id = #{businessId} |
|||
</select> |
|||
|
|||
</mapper> |
Write
Preview
Loading…
Cancel
Save
Reference in new issue