Commit b473e656 by 汪志阳

fix:bug修改

parent 9f1f7f07
......@@ -15,7 +15,6 @@ import com.makeit.service.platform.alarm.PlatAlarmRecordService;
import com.makeit.vo.platform.alarm.PlatAlarmRecordVO;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.apache.commons.lang3.StringUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
......@@ -39,7 +38,7 @@ public class PlatAlarmRecordChildrenController {
//只能看到发给关联的长者告警
PageVO<PlatAlarmRecordVO> result = platAlarmRecordService.childrenPage(dto);
Map<String, Object> resMap = Maps.newHashMap();
boolean b = result.getList().stream().anyMatch(p -> StringUtils.equals(CommonEnum.NO.getValue(), p.getWechatReadFlag()));
boolean b = result.getList().stream().anyMatch(p -> !CommonEnum.YES.getValue().equals(p.getWechatReadFlag()));
resMap.put("wechatReadFlag", b);
resMap.put("page", result);
return ApiResponseUtils.success(resMap);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment