冀北监测点试运行功能调整
This commit is contained in:
@@ -11,6 +11,7 @@ import com.njcn.bpm.api.BpmProcessFeignClient;
|
||||
import com.njcn.bpm.enums.BpmProcessInstanceStatusEnum;
|
||||
import com.njcn.bpm.pojo.dto.BpmProcessInstanceCreateReqDTO;
|
||||
import com.njcn.common.pojo.enums.common.DataStateEnum;
|
||||
import com.njcn.common.pojo.enums.response.CommonResponseEnum;
|
||||
import com.njcn.common.pojo.exception.BusinessException;
|
||||
import com.njcn.device.biz.commApi.CommLineClient;
|
||||
import com.njcn.device.biz.enums.RunFlagEnum;
|
||||
@@ -71,7 +72,7 @@ public class SupervisionTempLineRunTestServiceImpl extends ServiceImpl<Supervisi
|
||||
|
||||
List<LineDTO> lineDTOList = commLineClient.getLineDetailBatch(lineIds).getData();
|
||||
if(lineIds.size()!=lineDTOList.size()){
|
||||
throw new BusinessException("请联系管理员检查监测点唯一编号是否匹配");
|
||||
throw new BusinessException(CommonResponseEnum.FAIL,"请联系管理员检查监测点唯一编号是否匹配");
|
||||
}
|
||||
|
||||
//校验
|
||||
@@ -103,7 +104,6 @@ public class SupervisionTempLineRunTestServiceImpl extends ServiceImpl<Supervisi
|
||||
@Override
|
||||
public void isTestRunStartOrEnd() {
|
||||
LocalDateTime time = LocalDateTime.now();
|
||||
|
||||
LambdaQueryWrapper<SupervisionTempLineRunTestPO> lambdaQueryWrapper = new LambdaQueryWrapper<>();
|
||||
lambdaQueryWrapper.eq(SupervisionTempLineRunTestPO::getTestRunState,1).eq(SupervisionTempLineRunTestPO::getState,DataStateEnum.ENABLE.getCode());
|
||||
List<SupervisionTempLineRunTestPO> supervisionTempLineRunTestPOList = this.list(lambdaQueryWrapper);
|
||||
|
||||
Reference in New Issue
Block a user