修改了对商家入驻进行审核(通过)的功能模块

This commit is contained in:
XinYi Song 2021-12-21 09:25:00 +08:00
parent 0062f8c9dd
commit 70e4535198
2 changed files with 5 additions and 4 deletions

View File

@ -70,11 +70,11 @@ public interface BusinessDao extends JpaRepository<BusinessEntity,Long>, JpaSpec
/** /**
* 对商家入驻进行审核1审核通过 2审核不通过 * 对商家入驻进行审核1审核通过 2审核不通过
* @param id * @param id
* @param * @param time
*/ */
@Modifying(clearAutomatically=true) @Modifying(clearAutomatically=true)
@Query(value = "update business set business_type = '1' where id = ?1",nativeQuery = true) @Query(value = "update business set business_type = '1',settle_in_time = ?2 where id = ?1",nativeQuery = true)
void updatePassBusiness(Integer id); void updatePassBusiness(Integer id,String time);
/** /**
* 商家入驻审核不通过 * 商家入驻审核不通过

View File

@ -23,6 +23,7 @@ import java.util.Locale;
import java.util.Map; import java.util.Map;
import static com.xkrs.common.encapsulation.OutputEncapsulation.outputEncapsulationObject; 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.DateTimeUtil.getNowTime;
import static com.xkrs.utils.EncryptDecryptUtil.encry256; import static com.xkrs.utils.EncryptDecryptUtil.encry256;
@ -207,7 +208,7 @@ public class MerchantSettlementServiceImpl implements MerchantSettlementService
SendSmsResponse lyb123 = AliYunSmsUtils.sendSmsToBusinessPass(username, username, "lyb123"); SendSmsResponse lyb123 = AliYunSmsUtils.sendSmsToBusinessPass(username, username, "lyb123");
// 修改商家入驻得状态通过 // 修改商家入驻得状态通过
businessDao.updatePassBusiness(id); businessDao.updatePassBusiness(id,dateTimeToString(LocalDateTime.now()));
return outputEncapsulationObject(PromptMessageEnum.SUCCESS,"操作成功!",locale); return outputEncapsulationObject(PromptMessageEnum.SUCCESS,"操作成功!",locale);
} }