|
@@ -10,6 +10,8 @@ import com.jeeplus.modules.sg.project.entity.WbsProject;
|
|
|
import com.jeeplus.modules.sg.project.entity.WbsSelection;
|
|
|
import com.jeeplus.modules.sg.project.mapper.ItemMapper;
|
|
|
import com.jeeplus.modules.sg.project.mapper.ProjectMapper;
|
|
|
+import com.jeeplus.modules.sys.entity.User;
|
|
|
+import com.jeeplus.modules.sys.utils.UserUtils;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.stereotype.Service;
|
|
|
import org.springframework.transaction.annotation.Transactional;
|
|
@@ -49,6 +51,10 @@ public class ProjectService extends CrudService<ProjectMapper, WbsProject> {
|
|
|
|
|
|
public Page<WbsProject> findPage(Page<WbsProject> page, WbsProject wbsProject) {
|
|
|
wbsProject.setPage(page);
|
|
|
+ User user = UserUtils.getUser();
|
|
|
+ if(!user.getId().equals("1")){
|
|
|
+ wbsProject.setCreateBy(user);
|
|
|
+ }
|
|
|
List<WbsProject> list = projectMapper.findList(wbsProject);
|
|
|
long count = page.getCount();
|
|
|
Integer pageNo = page.getPageNo();
|