| | |
| | | import com.alibaba.fastjson.JSONArray; |
| | | import com.alibaba.fastjson.JSONObject; |
| | | import com.java110.community.bmo.assets.IQueryAssetsInspectionBMO; |
| | | import com.java110.dto.inspectionTask.InspectionTaskDto; |
| | | import com.java110.dto.inspectionPlan.InspectionTaskDto; |
| | | import com.java110.intf.community.IInspectionTaskInnerServiceSMO; |
| | | import com.java110.utils.util.DateUtil; |
| | | import com.java110.vo.ResultVo; |
| | |
| | | return ResultVo.createResponseEntity(data); |
| | | } |
| | | |
| | | |
| | | private void dealInpectionTask(JSONArray data, InspectionTaskDto inspectionTaskDto1) { |
| | | JSONObject dataObj = null; |
| | | dataObj = new JSONObject(); |
| | |
| | | } else if ("20200406".equals(state)) { |
| | | dataObj.put("msg", inspectionTaskDto1.getPlanUserName() + " 正在巡检中"); |
| | | } else { |
| | | if (planInTime.getTime() > DateUtil.getCurrentDate().getTime()) { |
| | | if (planInTime.getTime() < DateUtil.getCurrentDate().getTime()) { |
| | | dataObj.put("msg", inspectionTaskDto1.getPlanUserName() + " 未巡检"); |
| | | } else { |
| | | dataObj.put("msg", inspectionTaskDto1.getPlanUserName() + " 将于 " + inspectionTaskDto1.getPlanInsTime() + " 开始巡检"); |