修改了总部审核商家入驻的功能模块,修改了商家入驻时间和添加商家的账号id

This commit is contained in:
XinYi Song 2021-12-22 14:17:08 +08:00
parent 2301c42f67
commit b0c916c8e8
2 changed files with 3 additions and 3 deletions

View File

@ -73,8 +73,8 @@ public interface BusinessDao extends JpaRepository<BusinessEntity,Long>, 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);
/**
* 商家入驻审核不通过

View File

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