|
@@ -11,6 +11,7 @@ import com.xunmei.common.core.domain.iot.domain.IotDeviceDiagnoseThreshold;
|
|
|
import com.xunmei.common.core.domain.iot.domain.IotDeviceDiagnoseThresholdCh;
|
|
import com.xunmei.common.core.domain.iot.domain.IotDeviceDiagnoseThresholdCh;
|
|
|
import com.xunmei.common.core.enums.OrgTypeEnum;
|
|
import com.xunmei.common.core.enums.OrgTypeEnum;
|
|
|
import com.xunmei.common.core.exception.ServiceException;
|
|
import com.xunmei.common.core.exception.ServiceException;
|
|
|
|
|
+import com.xunmei.common.core.utils.DateUtils;
|
|
|
import com.xunmei.common.core.utils.IDHelper;
|
|
import com.xunmei.common.core.utils.IDHelper;
|
|
|
import com.xunmei.common.core.utils.StringUtils;
|
|
import com.xunmei.common.core.utils.StringUtils;
|
|
|
import com.xunmei.common.core.web.page.TableDataInfo;
|
|
import com.xunmei.common.core.web.page.TableDataInfo;
|
|
@@ -30,10 +31,7 @@ import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.stereotype.Service;
|
|
import org.springframework.stereotype.Service;
|
|
|
import org.springframework.transaction.annotation.Transactional;
|
|
import org.springframework.transaction.annotation.Transactional;
|
|
|
import org.springframework.util.DigestUtils;
|
|
import org.springframework.util.DigestUtils;
|
|
|
-
|
|
|
|
|
import javax.annotation.Resource;
|
|
import javax.annotation.Resource;
|
|
|
-import java.time.LocalDateTime;
|
|
|
|
|
-import java.time.LocalTime;
|
|
|
|
|
import java.util.Arrays;
|
|
import java.util.Arrays;
|
|
|
import java.util.List;
|
|
import java.util.List;
|
|
|
import java.util.stream.Collectors;
|
|
import java.util.stream.Collectors;
|
|
@@ -250,7 +248,7 @@ public class DiagnoseThresholdServiceImpl implements DiagnoseThresholdService {
|
|
|
threshold.setEndTime(request.getTimeRange()[1]);
|
|
threshold.setEndTime(request.getTimeRange()[1]);
|
|
|
|
|
|
|
|
threshold.setThresholdCode(thresholdCode);
|
|
threshold.setThresholdCode(thresholdCode);
|
|
|
- threshold.setCreateTime(LocalDateTime.now());
|
|
|
|
|
|
|
+ threshold.setCreateTime(DateUtils.getTime());
|
|
|
threshold.setDiagnoseNumber(0);
|
|
threshold.setDiagnoseNumber(0);
|
|
|
threshold.setType(0L);
|
|
threshold.setType(0L);
|
|
|
|
|
|
|
@@ -285,7 +283,7 @@ public class DiagnoseThresholdServiceImpl implements DiagnoseThresholdService {
|
|
|
threshold.setEndTime(request.getTimeRange()[1]);
|
|
threshold.setEndTime(request.getTimeRange()[1]);
|
|
|
|
|
|
|
|
threshold.setThresholdCode(thresholdCode);
|
|
threshold.setThresholdCode(thresholdCode);
|
|
|
- threshold.setCreateTime(LocalDateTime.now());
|
|
|
|
|
|
|
+ threshold.setCreateTime(DateUtils.getTime());
|
|
|
threshold.setType(0L);
|
|
threshold.setType(0L);
|
|
|
|
|
|
|
|
diagnoseThresholdChMapper.updateById(threshold);
|
|
diagnoseThresholdChMapper.updateById(threshold);
|