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); }