| | |
| | | import com.gkhy.assess.common.utils.StringUtils; |
| | | import com.gkhy.assess.system.domain.AssPlanPerson; |
| | | import com.gkhy.assess.system.domain.AssProject; |
| | | import com.gkhy.assess.system.domain.SysAgency; |
| | | import com.gkhy.assess.system.domain.vo.AssProjectVo; |
| | | import com.gkhy.assess.system.domain.vo.PersonRecognitionVO; |
| | | import com.gkhy.assess.system.domain.vo.ProjectStaticVO; |
| | | import com.gkhy.assess.system.enums.ProgressPhaseEnum; |
| | |
| | | import com.gkhy.assess.system.mapper.AssProjectMapper; |
| | | import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
| | | import com.gkhy.assess.system.domain.SysUser; |
| | | import com.gkhy.assess.system.mapper.SysAgencyMapper; |
| | | import com.gkhy.assess.system.service.AssProjectService; |
| | | import com.gkhy.assess.system.utils.ShiroUtils; |
| | | import org.springframework.beans.BeanUtils; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | |
| | | public class AssProjectServiceImpl extends ServiceImpl<AssProjectMapper, AssProject> implements AssProjectService { |
| | | @Autowired |
| | | private AssPlanPersonMapper planPersonMapper; |
| | | @Autowired |
| | | private SysAgencyMapper agencyMapper; |
| | | |
| | | @Override |
| | | public CommonPage projectList(AssProject project) { |
| | |
| | | } |
| | | |
| | | @Override |
| | | public AssProject getProjectById(Long projectId) { |
| | | return baseMapper.getProjectById(projectId); |
| | | public AssProjectVo getProjectById(Long projectId) { |
| | | AssProject projectById = baseMapper.getProjectById(projectId); |
| | | |
| | | if(projectById!=null){ |
| | | AssProjectVo projectVo = new AssProjectVo(); |
| | | BeanUtils.copyProperties(projectById, projectVo); |
| | | Long agencyId = projectVo.getAgencyId(); |
| | | if (agencyId != null) { |
| | | SysAgency agency = agencyMapper.getAgencyById(agencyId); |
| | | projectVo.setAgency(agency); |
| | | } |
| | | |
| | | return projectVo; |
| | | } |
| | | return null; |
| | | } |
| | | |
| | | @Override |