|
@@ -382,26 +382,20 @@ public class ContrastController {
|
|
**/
|
|
**/
|
|
@PostMapping("/benchmarkZjWtList")
|
|
@PostMapping("/benchmarkZjWtList")
|
|
@ResponseBody
|
|
@ResponseBody
|
|
- public AjaxResult benchmarkZjWtList(HttpServletRequest request,Tablepar tablepar, String cid) {
|
|
|
|
|
|
+ public AjaxResult benchmarkZjWtList(HttpServletRequest request,Tablepar tablepar, ConditionVo ct) {
|
|
List<BenchMarkVo> vos=new ArrayList<>();
|
|
List<BenchMarkVo> vos=new ArrayList<>();
|
|
- Map<String, List<ConditionVo>> ctmap = null;
|
|
|
|
- if (null != request.getSession().getAttribute("bmwtvos")) {
|
|
|
|
- ctmap = (Map<String, List<ConditionVo>>) request.getSession().getAttribute("bmwtvos");
|
|
|
|
- } else {
|
|
|
|
- ctmap = new HashMap<String, List<ConditionVo>>();
|
|
|
|
- }
|
|
|
|
|
|
|
|
- if (StringUtils.notEmp(cid) && ctmap.containsKey(cid)) {
|
|
|
|
- List<ConditionVo> ctvos = ctmap.get(cid);
|
|
|
|
|
|
+
|
|
|
|
+ if (StringUtils.notEmp(ct) ) {
|
|
|
|
+
|
|
Map<String, BenchMarkVo> bmmap = new HashMap<String, BenchMarkVo>();
|
|
Map<String, BenchMarkVo> bmmap = new HashMap<String, BenchMarkVo>();
|
|
- for (ConditionVo ct : ctvos) {
|
|
|
|
|
|
|
|
- String wpId = ct.getWpId();
|
|
|
|
- String beginDate = DateUtils.format(ct.getBeginDate());
|
|
|
|
- String endDate =DateUtils.format(ct.getEndDate());
|
|
|
|
|
|
|
|
- bmmap=contrastWtService.benchmarkZjInWtList(wpId,null,beginDate,endDate);
|
|
|
|
- }
|
|
|
|
|
|
+ String wpId = ct.getWpId();
|
|
|
|
+ String beginDate = DateUtils.format(ct.getBeginDate());
|
|
|
|
+ String endDate =DateUtils.format(ct.getEndDate());
|
|
|
|
+
|
|
|
|
+ bmmap=contrastWtService.benchmarkZjInWtList(wpId,null,beginDate,endDate);
|
|
|
|
|
|
Set<Map.Entry<String, BenchMarkVo>> set = bmmap.entrySet();
|
|
Set<Map.Entry<String, BenchMarkVo>> set = bmmap.entrySet();
|
|
for (Iterator<Map.Entry<String, BenchMarkVo>> it = set.iterator(); it.hasNext();) {
|
|
for (Iterator<Map.Entry<String, BenchMarkVo>> it = set.iterator(); it.hasNext();) {
|