From 70e45351988df488ab4206595a4415b9926a74ed Mon Sep 17 00:00:00 2001 From: XinYi Song <2037158277@qq.com> Date: Tue, 21 Dec 2021 09:25:00 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E4=BA=86=E5=AF=B9=E5=95=86?= =?UTF-8?q?=E5=AE=B6=E5=85=A5=E9=A9=BB=E8=BF=9B=E8=A1=8C=E5=AE=A1=E6=A0=B8?= =?UTF-8?q?=EF=BC=88=E9=80=9A=E8=BF=87=EF=BC=89=E7=9A=84=E5=8A=9F=E8=83=BD?= =?UTF-8?q?=E6=A8=A1=E5=9D=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/java/com/xkrs/dao/BusinessDao.java | 6 +++--- .../xkrs/service/impl/MerchantSettlementServiceImpl.java | 3 ++- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/src/main/java/com/xkrs/dao/BusinessDao.java b/src/main/java/com/xkrs/dao/BusinessDao.java index 1c34766..7631c82 100644 --- a/src/main/java/com/xkrs/dao/BusinessDao.java +++ b/src/main/java/com/xkrs/dao/BusinessDao.java @@ -70,11 +70,11 @@ public interface BusinessDao extends JpaRepository, JpaSpec /** * 对商家入驻进行审核(1审核通过 2审核不通过) * @param id - * @param + * @param time */ @Modifying(clearAutomatically=true) - @Query(value = "update business set business_type = '1' where id = ?1",nativeQuery = true) - void updatePassBusiness(Integer id); + @Query(value = "update business set business_type = '1',settle_in_time = ?2 where id = ?1",nativeQuery = true) + void updatePassBusiness(Integer id,String time); /** * 商家入驻审核不通过 diff --git a/src/main/java/com/xkrs/service/impl/MerchantSettlementServiceImpl.java b/src/main/java/com/xkrs/service/impl/MerchantSettlementServiceImpl.java index 54851a5..7ff8005 100644 --- a/src/main/java/com/xkrs/service/impl/MerchantSettlementServiceImpl.java +++ b/src/main/java/com/xkrs/service/impl/MerchantSettlementServiceImpl.java @@ -23,6 +23,7 @@ import java.util.Locale; import java.util.Map; import static com.xkrs.common.encapsulation.OutputEncapsulation.outputEncapsulationObject; +import static com.xkrs.utils.DateTimeUtil.dateTimeToString; import static com.xkrs.utils.DateTimeUtil.getNowTime; import static com.xkrs.utils.EncryptDecryptUtil.encry256; @@ -207,7 +208,7 @@ public class MerchantSettlementServiceImpl implements MerchantSettlementService SendSmsResponse lyb123 = AliYunSmsUtils.sendSmsToBusinessPass(username, username, "lyb123"); // 修改商家入驻得状态(通过) - businessDao.updatePassBusiness(id); + businessDao.updatePassBusiness(id,dateTimeToString(LocalDateTime.now())); return outputEncapsulationObject(PromptMessageEnum.SUCCESS,"操作成功!",locale); }