7 changed files with 140 additions and 2 deletions
@ -0,0 +1,35 @@ |
|||||
|
package com.dreamchaser.depository_manage; |
||||
|
|
||||
|
import com.dreamchaser.depository_manage.depository_mapper.DepositoryRecordMapper; |
||||
|
import com.dreamchaser.depository_manage.entity.ApplicationOutRecordMin; |
||||
|
import com.dreamchaser.depository_manage.entity.UserByPort; |
||||
|
import com.dreamchaser.depository_manage.pojo.ApplicationOutRecordMinP; |
||||
|
import com.dreamchaser.depository_manage.service.DepositoryRecordService; |
||||
|
import com.dreamchaser.depository_manage.service.UserService; |
||||
|
import com.dreamchaser.depository_manage.service.impl.QyWxOperationService; |
||||
|
import org.junit.Test; |
||||
|
import org.junit.runner.RunWith; |
||||
|
import org.springframework.beans.factory.annotation.Autowired; |
||||
|
import org.springframework.boot.test.context.SpringBootTest; |
||||
|
import org.springframework.test.context.junit4.SpringRunner; |
||||
|
|
||||
|
@RunWith(SpringRunner.class) |
||||
|
@SpringBootTest(webEnvironment = SpringBootTest.WebEnvironment.RANDOM_PORT) |
||||
|
public class SomeTest { |
||||
|
@Autowired |
||||
|
private QyWxOperationService qyWxOperationService; |
||||
|
|
||||
|
@Autowired |
||||
|
private DepositoryRecordMapper depositoryRecordMapper; |
||||
|
|
||||
|
@Autowired |
||||
|
private UserService userService; |
||||
|
|
||||
|
@Test |
||||
|
public void sendQyWxMsg(){ |
||||
|
UserByPort userById = userService.findUserById(6235L); |
||||
|
ApplicationOutRecordMin applicationOutMinById = depositoryRecordMapper.findApplicationOutMinById(1002L); |
||||
|
qyWxOperationService.sendNotificationToApplicantForRefunded(userById,applicationOutMinById,6235L,"555375c83c6f6cabc7f83f73d0270022"); |
||||
|
|
||||
|
} |
||||
|
} |
||||
Loading…
Reference in new issue