修改了对商家入驻进行审核(通过)的功能模块
This commit is contained in:
		| @@ -70,11 +70,11 @@ public interface BusinessDao extends JpaRepository<BusinessEntity,Long>, 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); | ||||
|  | ||||
|     /** | ||||
|      * 商家入驻审核不通过 | ||||
|   | ||||
| @@ -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); | ||||
|     } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user