From b0c916c8e8f6940edd18eb291a3f4f36acbd635c Mon Sep 17 00:00:00 2001 From: XinYi Song <2037158277@qq.com> Date: Wed, 22 Dec 2021 14:17:08 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E4=BA=86=E6=80=BB=E9=83=A8?= =?UTF-8?q?=E5=AE=A1=E6=A0=B8=E5=95=86=E5=AE=B6=E5=85=A5=E9=A9=BB=E7=9A=84?= =?UTF-8?q?=E5=8A=9F=E8=83=BD=E6=A8=A1=E5=9D=97=EF=BC=8C=E4=BF=AE=E6=94=B9?= =?UTF-8?q?=E4=BA=86=E5=95=86=E5=AE=B6=E5=85=A5=E9=A9=BB=E6=97=B6=E9=97=B4?= =?UTF-8?q?=E5=92=8C=E6=B7=BB=E5=8A=A0=E5=95=86=E5=AE=B6=E7=9A=84=E8=B4=A6?= =?UTF-8?q?=E5=8F=B7id?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/java/com/xkrs/dao/BusinessDao.java | 4 ++-- .../com/xkrs/service/impl/MerchantSettlementServiceImpl.java | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/java/com/xkrs/dao/BusinessDao.java b/src/main/java/com/xkrs/dao/BusinessDao.java index 7631c82..6df5a9a 100644 --- a/src/main/java/com/xkrs/dao/BusinessDao.java +++ b/src/main/java/com/xkrs/dao/BusinessDao.java @@ -73,8 +73,8 @@ public interface BusinessDao extends JpaRepository, JpaSpec * @param time */ @Modifying(clearAutomatically=true) - @Query(value = "update business set business_type = '1',settle_in_time = ?2 where id = ?1",nativeQuery = true) - void updatePassBusiness(Integer id,String time); + @Query(value = "update business set business_type = '1',settle_in_time = ?2,business_id = ?3 where id = ?1",nativeQuery = true) + void updatePassBusiness(Integer id,String time,Integer businessId); /** * 商家入驻审核不通过 diff --git a/src/main/java/com/xkrs/service/impl/MerchantSettlementServiceImpl.java b/src/main/java/com/xkrs/service/impl/MerchantSettlementServiceImpl.java index 07aea86..7b50561 100644 --- a/src/main/java/com/xkrs/service/impl/MerchantSettlementServiceImpl.java +++ b/src/main/java/com/xkrs/service/impl/MerchantSettlementServiceImpl.java @@ -212,7 +212,7 @@ public class MerchantSettlementServiceImpl implements MerchantSettlementService SendSmsResponse lyb123 = AliYunSmsUtils.sendSmsToBusinessPass(username, username, "lyb123"); // 修改商家入驻得状态(通过) - businessDao.updatePassBusiness(id,dateTimeToString(LocalDateTime.now())); + businessDao.updatePassBusiness(id,dateTimeToString(LocalDateTime.now()),sysUserEntity.getId()); return outputEncapsulationObject(PromptMessageEnum.SUCCESS,"操作成功!",locale); }