|
|
|
@ -8,6 +8,7 @@ import com.yipin.liuwanr.mapper.ProjectManagementMapper; |
|
|
|
|
import com.yipin.liuwanr.mapper.ScoreIndexMapper; |
|
|
|
|
import org.apache.commons.lang3.StringUtils; |
|
|
|
|
import org.jboss.logging.Logger; |
|
|
|
|
import org.springframework.beans.BeanUtils; |
|
|
|
|
import org.springframework.beans.factory.annotation.Autowired; |
|
|
|
|
import org.springframework.stereotype.Service; |
|
|
|
|
import org.springframework.transaction.annotation.Transactional; |
|
|
|
@ -129,6 +130,16 @@ public class ProjectManagementService { |
|
|
|
|
} |
|
|
|
|
//条件查询
|
|
|
|
|
List<ProjectManagement> list = mapper.queryManagements(vo); |
|
|
|
|
//管理员权限id
|
|
|
|
|
String adminId = "13"; |
|
|
|
|
if (adminId.equals(vo.getFounder())){ |
|
|
|
|
//查完管理员,再查管理员+教师权限的 13,14
|
|
|
|
|
ProjectManagement vo1 = new ProjectManagement(); |
|
|
|
|
BeanUtils.copyProperties(vo,vo1); |
|
|
|
|
vo1.setFounder("13,14"); |
|
|
|
|
List<ProjectManagement> list1 = mapper.queryManagements(vo1); |
|
|
|
|
list.addAll(list1); |
|
|
|
|
} |
|
|
|
|
resp.put("retvalue",list); |
|
|
|
|
resp.put("retcode", 200); |
|
|
|
|
} catch (Exception e) { |
|
|
|
|