feat(HrmFlowCcController): 增加抄送状态查询功能
``` - 在my方法中新增readFlag参数,支持按读取状态过滤抄送记录 - 使用LoginHelper替代StpUtil获取用户ID,提高代码一致性 - 将readFlag参数传递给业务对象,实现按状态查询功能 ```
This commit is contained in:
@@ -27,17 +27,18 @@ public class HrmFlowCcController extends BaseController {
|
|||||||
* 抄送我的
|
* 抄送我的
|
||||||
*/
|
*/
|
||||||
@GetMapping("/my")
|
@GetMapping("/my")
|
||||||
public TableDataInfo<HrmFlowCcVo> my(@RequestParam(required = false) Long ccUserId, PageQuery pageQuery) {
|
public TableDataInfo<HrmFlowCcVo> my(@RequestParam(required = false) Long ccUserId,@RequestParam(required = false) Integer readFlag, PageQuery pageQuery) {
|
||||||
Long uid = ccUserId;
|
Long uid = ccUserId;
|
||||||
if (uid == null) {
|
if (uid == null) {
|
||||||
try {
|
try {
|
||||||
uid = StpUtil.getLoginIdAsLong();
|
uid = LoginHelper.getUserId();
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
uid = null;
|
uid = null;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
HrmFlowCcBo bo = new HrmFlowCcBo();
|
HrmFlowCcBo bo = new HrmFlowCcBo();
|
||||||
bo.setCcUserId(uid);
|
bo.setCcUserId(uid);
|
||||||
|
bo.setReadFlag(readFlag);
|
||||||
return service.queryPageList(bo, pageQuery);
|
return service.queryPageList(bo, pageQuery);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user