Browse Source

#打卡巡检

zhongwei
yang_shj 5 days ago
parent
commit
7da5eeb96a
  1. 2
      hzims-service-api/inspect-api/src/main/java/com/hnac/hzinfo/inspect/obj/entity/ObjectEntity.java
  2. 3
      hzims-service/inspect/src/main/java/com/hnac/hzinfo/inspect/obj/services/impl/ObjectServiceImpl.java
  3. 3
      hzims-service/inspect/src/main/java/com/hnac/hzinfo/inspect/task/vo/ClockInEventVO.java

2
hzims-service-api/inspect-api/src/main/java/com/hnac/hzinfo/inspect/obj/entity/ObjectEntity.java

@ -83,7 +83,7 @@ public class ObjectEntity extends TenantEntity {
/**
* 支持的巡检类型 0普通巡检1视频自动巡检2机器人巡检
*/
@ApiModelProperty(value = "inspectType 支持的巡检类型 0普通巡检,1视频自动巡检,2机器人巡检")
@ApiModelProperty(value = "inspectType 支持的巡检类型 0普通巡检,1视频自动巡检,2机器人巡检,3 打卡巡检")
@QueryField(condition = SqlCondition.EQUAL)
private String supportAutoVideo;

3
hzims-service/inspect/src/main/java/com/hnac/hzinfo/inspect/obj/services/impl/ObjectServiceImpl.java

@ -144,7 +144,8 @@ public class ObjectServiceImpl extends ServiceImpl<InspectObjectMapper, ObjectEn
throw new ServiceException("巡检点象描述不能为空!");
}
if (StringUtil.isNotBlank(entity.getSupportAutoVideo())) {
if ("0".equals(entity.getSupportAutoVideo()) || "1".equals(entity.getSupportAutoVideo()) || "2".equals(entity.getSupportAutoVideo())) {
if ("0".equals(entity.getSupportAutoVideo()) || "1".equals(entity.getSupportAutoVideo())
|| "2".equals(entity.getSupportAutoVideo()) || "3".equals(entity.getSupportAutoVideo())) {
} else {
throw new ServiceException("巡检点类型只支持数字: 0普通巡检,1,视频自动巡检,2机器人巡检");
}

3
hzims-service/inspect/src/main/java/com/hnac/hzinfo/inspect/task/vo/ClockInEventVO.java

@ -21,6 +21,5 @@ public class ClockInEventVO implements Serializable{
private static final long serialVersionUID = -904847315218750903L;
@ApiModelProperty(value = "巡检巡检集合")
private List<EventAddVO> events;
}

Loading…
Cancel
Save