Browse Source

Merge remote-tracking branch 'origin/master'

zhongwei
haungxing 6 months ago
parent
commit
ea19bb23ad
  1. 8
      hzims-service-api/inspect-api/src/main/java/com/hnac/hzinfo/inspect/task/entity/TaskEntity.java
  2. 1
      hzims-service/inspect/src/main/java/com/hnac/hzinfo/inspect/ai/service/impl/RobotTaskServiceImpl.java
  3. 4
      hzims-service/inspect/src/main/java/com/hnac/hzinfo/inspect/ai/vo/robot/RobotTaskTransParam.java
  4. 1
      hzims-service/inspect/src/main/java/com/hnac/hzinfo/inspect/task/job/service/TaskJobService.java

8
hzims-service-api/inspect-api/src/main/java/com/hnac/hzinfo/inspect/task/entity/TaskEntity.java

@ -48,6 +48,14 @@ public class TaskEntity extends TenantEntity {
@ApiModelProperty(value = "计划名称") @ApiModelProperty(value = "计划名称")
@QueryField(condition = SqlCondition.LIKE) @QueryField(condition = SqlCondition.LIKE)
private String planName; private String planName;
/**
* 路线名称
*/
@ApiModelProperty(value = "路线名称")
@QueryField(condition = SqlCondition.LIKE)
private String routeName;
/** /**
* 任务批次号 * 任务批次号
*/ */

1
hzims-service/inspect/src/main/java/com/hnac/hzinfo/inspect/ai/service/impl/RobotTaskServiceImpl.java

@ -236,6 +236,7 @@ public class RobotTaskServiceImpl extends BaseServiceImpl<RobotTaskMapper, Robot
RobotTaskTransParam transParam = new RobotTaskTransParam(); RobotTaskTransParam transParam = new RobotTaskTransParam();
transParam.setTaskId(taskvo.getId()); transParam.setTaskId(taskvo.getId());
transParam.setName(taskvo.getPlanName()); transParam.setName(taskvo.getPlanName());
transParam.setRouteName(taskvo.getRouteName());
transParam.setStatus(taskvo.getStatus()); transParam.setStatus(taskvo.getStatus());
transParam.setStartTime(taskvo.getPlanStartTime()); transParam.setStartTime(taskvo.getPlanStartTime());
transParam.setEndTime(taskvo.getPlanEndTime()); transParam.setEndTime(taskvo.getPlanEndTime());

4
hzims-service/inspect/src/main/java/com/hnac/hzinfo/inspect/ai/vo/robot/RobotTaskTransParam.java

@ -28,6 +28,10 @@ public class RobotTaskTransParam {
@ApiModelProperty(value = "任务名称") @ApiModelProperty(value = "任务名称")
private String name; private String name;
@ApiModelProperty(value = "巡检路线")
private String routeName;
/** /**
* 任务状态 * 任务状态
* 0未开始 1进行中 2暂停 3已完成 4未完成, 程序只会返回以下状态任务 0未开始 1进行中 2暂停 * 0未开始 1进行中 2暂停 3已完成 4未完成, 程序只会返回以下状态任务 0未开始 1进行中 2暂停

1
hzims-service/inspect/src/main/java/com/hnac/hzinfo/inspect/task/job/service/TaskJobService.java

@ -400,6 +400,7 @@ public class TaskJobService {
task.setDutyId(plan.getDutyId()); task.setDutyId(plan.getDutyId());
task.setPlanId(plan.getId()); task.setPlanId(plan.getId());
task.setPlanName(plan.getName()); task.setPlanName(plan.getName());
task.setRouteName(plan.getRouteName());
task.setType(plan.getType()); task.setType(plan.getType());
task.setCycle(plan.getCycle()); task.setCycle(plan.getCycle());
if(PlanCycleEnum.NEVER_CYCLE.getCycle().equals(plan.getCycle())) { if(PlanCycleEnum.NEVER_CYCLE.getCycle().equals(plan.getCycle())) {

Loading…
Cancel
Save