|
|
@ -93,6 +93,43 @@ public class RequirementItemController extends JeecgController<RequirementItem, |
|
|
|
return Result.OK(pageList); |
|
|
|
return Result.OK(pageList); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
|
|
|
* 我的需求 |
|
|
|
|
|
|
|
* |
|
|
|
|
|
|
|
* @param requirementItem |
|
|
|
|
|
|
|
* @param pageNo |
|
|
|
|
|
|
|
* @param pageSize |
|
|
|
|
|
|
|
* @param req |
|
|
|
|
|
|
|
* @return |
|
|
|
|
|
|
|
*/ |
|
|
|
|
|
|
|
@AutoLog(value = "需求管理-分页列表查询") |
|
|
|
|
|
|
|
@ApiOperation(value="需求管理-分页列表查询", notes="需求管理-分页列表查询") |
|
|
|
|
|
|
|
@GetMapping(value = "/wdxqlist") |
|
|
|
|
|
|
|
public Result<?> wdxqlist(RequirementItem requirementItem, |
|
|
|
|
|
|
|
@RequestParam(name="pageNo", defaultValue="1") Integer pageNo, |
|
|
|
|
|
|
|
@RequestParam(name="pageSize", defaultValue="10") Integer pageSize, |
|
|
|
|
|
|
|
HttpServletRequest req) { |
|
|
|
|
|
|
|
LoginUser principal = (LoginUser) SecurityUtils.getSubject().getPrincipal(); |
|
|
|
|
|
|
|
QueryWrapper<RequirementItem> queryWrapper = QueryGenerator.initQueryWrapper(requirementItem, req.getParameterMap()); |
|
|
|
|
|
|
|
queryWrapper.eq("create_by",principal.getUsername()); |
|
|
|
|
|
|
|
Page<RequirementItem> page = new Page<RequirementItem>(pageNo, pageSize); |
|
|
|
|
|
|
|
IPage<RequirementItem> pageList = requirementItemService.page(page, queryWrapper); |
|
|
|
|
|
|
|
for (int i = 0 ; i < pageList.getRecords().size();i++){ |
|
|
|
|
|
|
|
Projectx projectx = projectxService.getById(pageList.getRecords().get(i).getProjectId()); |
|
|
|
|
|
|
|
if(!principal.getUsername().equals("admin")){ |
|
|
|
|
|
|
|
if(projectx.getCreateBy().equals(principal.getUsername())){ |
|
|
|
|
|
|
|
pageList.getRecords().get(i).setXqflag("1"); |
|
|
|
|
|
|
|
}else{ |
|
|
|
|
|
|
|
pageList.getRecords().get(i).setXqflag("0"); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
}else{ |
|
|
|
|
|
|
|
pageList.getRecords().get(i).setXqflag("1"); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
return Result.OK(pageList); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
/** |
|
|
|
* 添加 |
|
|
|
* 添加 |
|
|
|
* |
|
|
|
* |
|
|
|