package com.changhong.autoform.service.fieldvalue.impl; import java.util.List; import java.util.Map; import org.springframework.stereotype.Service; import com.changhong.autoform.core.spring.SpringContext; import com.changhong.autoform.mapper.fieldvalue.FieldValueMapper; import com.changhong.autoform.service.fieldvalue.FieldValueService; @Service("fieldValueService") public class FieldValueServiceImpl implements FieldValueService{ @Override public List selectFormFieldMainValue(Map map) { return getFieldValueMapper().selectFormFieldMainValue(map); } private FieldValueMapper getFieldValueMapper(){ return SpringContext.getBean(FieldValueMapper.class, (key)->{ return !key.equals("fieldValueMapper"); }); } }