@Component
public class CrmSupCommon {
@Autowired
private CrmSupMapper crmSupMapper;
public static CrmSupCommon crmSupCommon;
@PostConstruct
public void init() {
crmSupCommon = this;
crmSupCommon.crmSupMapper = this.crmSupMapper;
}
public static CrmSupCommon getInstance(){
if(crmSupCommon == null){
return new CrmSupCommon();
}
return crmSupCommon;
}
}