forked from luyan/epmet-cloud-lingshan
				
			
				 4 changed files with 50 additions and 6 deletions
			
			
		@ -0,0 +1,14 @@ | 
				
			|||
package com.epmet.datareport.service.evaluationindex.screen; | 
				
			|||
 | 
				
			|||
import com.epmet.dto.form.ProcessListFormDTO; | 
				
			|||
import com.epmet.project.dto.result.ProjectDetailResultDTO; | 
				
			|||
 | 
				
			|||
/** | 
				
			|||
 * @Author zxc | 
				
			|||
 * @DateTime 2020/10/23 1:26 下午 | 
				
			|||
 */ | 
				
			|||
public interface ScreenDifficultyDataService { | 
				
			|||
 | 
				
			|||
    ProjectDetailResultDTO projectDetail(ProcessListFormDTO processListFormDTO); | 
				
			|||
 | 
				
			|||
} | 
				
			|||
@ -0,0 +1,30 @@ | 
				
			|||
package com.epmet.datareport.service.evaluationindex.screen.impl; | 
				
			|||
 | 
				
			|||
import com.epmet.commons.dynamic.datasource.annotation.DataSource; | 
				
			|||
import com.epmet.constant.DataSourceConstant; | 
				
			|||
import com.epmet.datareport.dao.evaluationindex.screen.ScreenDifficultyDataDao; | 
				
			|||
import com.epmet.datareport.service.evaluationindex.screen.ScreenDifficultyDataService; | 
				
			|||
import com.epmet.dto.form.ProcessListFormDTO; | 
				
			|||
import com.epmet.project.dto.result.ProjectDetailResultDTO; | 
				
			|||
import lombok.extern.slf4j.Slf4j; | 
				
			|||
import org.springframework.beans.factory.annotation.Autowired; | 
				
			|||
import org.springframework.stereotype.Service; | 
				
			|||
 | 
				
			|||
/** | 
				
			|||
 * @Author zxc | 
				
			|||
 * @DateTime 2020/10/23 1:26 下午 | 
				
			|||
 */ | 
				
			|||
@Service | 
				
			|||
@Slf4j | 
				
			|||
@DataSource(DataSourceConstant.EVALUATION_INDEX) | 
				
			|||
public class ScreenDifficultyDataServiceImpl implements ScreenDifficultyDataService { | 
				
			|||
 | 
				
			|||
    @Autowired | 
				
			|||
    private ScreenDifficultyDataDao screenDifficultyDataDao; | 
				
			|||
 | 
				
			|||
    @Override | 
				
			|||
    public ProjectDetailResultDTO projectDetail(ProcessListFormDTO processListFormDTO) { | 
				
			|||
        ProjectDetailResultDTO projectDetailResultDTO = screenDifficultyDataDao.projectDetail(processListFormDTO.getProjectId()); | 
				
			|||
        return projectDetailResultDTO; | 
				
			|||
    } | 
				
			|||
} | 
				
			|||
					Loading…
					
					
				
		Reference in new issue