增加退款状态枚举类
parent
2716e7bb1f
commit
d59f2f7d03
@ -0,0 +1,31 @@
|
||||
package com.hchbox;
|
||||
|
||||
import cn.hutool.json.JSONUtil;
|
||||
import com.hchbox.entity.master.AppSetting;
|
||||
import com.hchbox.repository.master.AppSettingRepository;
|
||||
import org.junit.Test;
|
||||
import org.junit.runner.RunWith;
|
||||
import org.springframework.boot.test.context.SpringBootTest;
|
||||
import org.springframework.test.context.junit4.SpringRunner;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
|
||||
/**
|
||||
* @author Enzo
|
||||
* @date : 2021/11/19
|
||||
*/
|
||||
@RunWith(SpringRunner.class)
|
||||
@SpringBootTest(classes = TradeServiceSourceApplication.class,
|
||||
webEnvironment = SpringBootTest.WebEnvironment.RANDOM_PORT)
|
||||
public class SettingTest {
|
||||
|
||||
@Resource
|
||||
private AppSettingRepository appSettingRepository;
|
||||
|
||||
@Test
|
||||
public void getSetting(){
|
||||
AppSetting byUserIdAndType = appSettingRepository.findByUserIdAndType(12482L, 15);
|
||||
|
||||
JSONUtil.toJsonStr(byUserIdAndType);
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue