package com.changhong.autoform.service.define.impl;
|
|
import java.util.List;
|
import org.springframework.stereotype.Service;
|
import com.changhong.autoform.core.spring.SpringContext;
|
import com.changhong.autoform.entity.CodeAndValueBean;
|
import com.changhong.autoform.entity.MasterData;
|
import com.changhong.autoform.entity.MasterDefineEntity;
|
import com.changhong.autoform.entity.MasterElementEntity;
|
import com.changhong.autoform.entity.MasterValue;
|
import com.changhong.autoform.entity.MasterValueEntity;
|
import com.changhong.autoform.mapper.define.DefineMapper;
|
import com.changhong.autoform.service.define.DefineService;
|
|
@Service("defineService")
|
public class DefineServiceImpl implements DefineService {
|
|
private DefineMapper getDefineMapper(){
|
return SpringContext.getBean(DefineMapper.class, (key)->{
|
return !key.equals("simpleDefMapper");
|
});
|
}
|
|
@Override
|
public List<MasterDefineEntity> selectAllMainDef(MasterData materData) {
|
return getDefineMapper().selectAllMainDef(materData);
|
}
|
|
@Override
|
public List<MasterElementEntity> searchMainElement(MasterData materData) {
|
return getDefineMapper().searchMainElement(materData);
|
}
|
|
@Override
|
public List<CodeAndValueBean> selectCreateMainValue(MasterValue masterValue) {
|
return getDefineMapper().selectCreateMainValue(masterValue);
|
}
|
|
@Override
|
public CodeAndValueBean masterValueCodeToName(MasterValue masterValue) {
|
return getDefineMapper().masterValueCodeToName(masterValue);
|
}
|
|
}
|