代码如下:
package com.ouyeel.platform.components.rzcore.foundation.service.csy.utils;
import com.ouyeel.platform.components.rzcore.foundation.dao.csy.RzFinanceRedeemDtlMapper;
import com.ouyeel.platform.components.rzcore.foundation.model.csy.RzFinanceRedeemDtl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.ApplicationContext;
import javax.annotation.PostConstruct;
import java.util.List;
public class TestUtil {
private static RzFinanceRedeemDtlMapper rzFinanceRedeemDtlMapper;
@Autowired
private ApplicationContext applicationContext;
@PostConstruct
public void init() {
TestUtil.rzFinanceRedeemDtlMapper = applicationContext.getBean(RzFinanceRedeemDtlMapper.class);
}
public static void transformDate(String resultJson){
List<RzFinanceRedeemDtl> repeated = rzFinanceRedeemDtlMapper.selectRzFinanceRedeemDtlBySelective(id);
}
}