mirror of
https://gitee.com/fit2cloud-feizhiyun/MeterSphere.git
synced 2024-12-03 04:28:51 +08:00
fix(工作台): 仪表盘过滤当前用户问题
--bug=1027174 --user=宋昌昌 【我的工作台】我的关注 tab 页面没有任何统计数据 https://www.tapd.cn/55049933/s/1383340, --bug=1027173 --user=宋昌昌 【我的工作台】我的仪表盘首页 -我创建的用例-功能用例数量无统计数据 https://www.tapd.cn/55049933/s/1383341, --bug=1027172 --user=宋昌昌 【我的工作台】我的仪表盘首页-我的待办-功能用例数量跳转链接页面统计数据是空 https://www.tapd.cn/55049933/s/1383343, --bug=1026937 --user=宋昌昌 【工作台】我的关注-缺陷管理-未显示关注的缺陷 https://www.tapd.cn/55049933/s/1383346
This commit is contained in:
parent
d36ed6ad9c
commit
6ae894913a
@ -89,6 +89,9 @@
|
|||||||
<when test='${object}.operator == "le"'>
|
<when test='${object}.operator == "le"'>
|
||||||
<= #{${object}.value}
|
<= #{${object}.value}
|
||||||
</when>
|
</when>
|
||||||
|
<when test='${object}.operator == "current user"'>
|
||||||
|
= '${@io.metersphere.commons.utils.SessionUtils@getUserId()}'
|
||||||
|
</when>
|
||||||
<otherwise>
|
<otherwise>
|
||||||
= #{${object}.value}
|
= #{${object}.value}
|
||||||
</otherwise>
|
</otherwise>
|
||||||
|
@ -93,7 +93,7 @@ public class WorkstationService {
|
|||||||
Map<String, Object> combine = new HashMap<>(2);
|
Map<String, Object> combine = new HashMap<>(2);
|
||||||
Map<String, String> operatorValue = new HashMap<>(2);
|
Map<String, String> operatorValue = new HashMap<>(2);
|
||||||
operatorValue.put("operator", "current user");
|
operatorValue.put("operator", "current user");
|
||||||
operatorValue.put("value", "current user");
|
operatorValue.put("value", userId);
|
||||||
combine.put("creator", operatorValue);
|
combine.put("creator", operatorValue);
|
||||||
testPlanRequest.setCombine(combine);
|
testPlanRequest.setCombine(combine);
|
||||||
apiTestCaseRequest.setCombine(combine);
|
apiTestCaseRequest.setCombine(combine);
|
||||||
|
Loading…
Reference in New Issue
Block a user