Browse Source

# 日常维护任务生成改造

zhongwei
haungxing 11 months ago
parent
commit
821d80e987
  1. 3
      hzims-service-api/hzims-operational-api/src/main/java/com/hnac/hzims/operational/maintenance/entity/OperMaintenanceTaskEntity.java
  2. 62
      hzims-service-api/hzims-operational-api/src/main/java/com/hnac/hzims/operational/maintenance/vo/MaintenanceTaskQueryVO.java
  3. 24
      hzims-service/operational/src/main/java/com/hnac/hzims/operational/maintenance/controller/MaintenanceTaskQueryController.java
  4. 4
      hzims-service/operational/src/main/java/com/hnac/hzims/operational/maintenance/service/IMaintenanceTaskQueryService.java
  5. 14
      hzims-service/operational/src/main/java/com/hnac/hzims/operational/maintenance/service/impl/MaintenanceTaskQueryServiceImpl.java
  6. 1
      hzims-service/safeproduct/src/main/resources/db/1.0.2.sql

3
hzims-service-api/hzims-operational-api/src/main/java/com/hnac/hzims/operational/maintenance/entity/OperMaintenanceTaskEntity.java

@ -191,4 +191,7 @@ public class OperMaintenanceTaskEntity extends TenantEntity {
*/ */
@ApiModelProperty("当前任务名") @ApiModelProperty("当前任务名")
private String flowTaskId; private String flowTaskId;
@ApiModelProperty("是否延期")
private Boolean isDelay;
} }

62
hzims-service-api/hzims-operational-api/src/main/java/com/hnac/hzims/operational/maintenance/vo/MaintenanceTaskQueryVO.java

@ -0,0 +1,62 @@
package com.hnac.hzims.operational.maintenance.vo;
import com.alibaba.excel.annotation.ExcelProperty;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import java.io.Serializable;
@Data
@EqualsAndHashCode
@ApiModel("日常维护任务查询导出对象")
public class MaintenanceTaskQueryVO implements Serializable {
@ApiModelProperty(value = "序号")
@ExcelProperty("序号")
private Integer index;
@ApiModelProperty(value = "创建机构名称")
@ExcelProperty("单位")
private String deptName;
@ApiModelProperty(value = "维护类型 01=定期试验 02=定期保养 03=定期操作 04=其他")
private String typeCode;
@ExcelProperty("维护类型")
@ApiModelProperty(value = "维护类型名称")
private String typeName;
@ApiModelProperty(value = "设备编号")
private String emCode;
@ApiModelProperty(value = "维护设备")
@ExcelProperty("维护设备")
private String emName;
@ApiModelProperty(value = "维护内容")
@ExcelProperty("维护内容")
private String content;
@ApiModelProperty(value = "计划执行时间")
@ExcelProperty("计划执行时间")
private String planDisposeTime;
@ApiModelProperty(value = "实际执行时间")
@ExcelProperty("实际执行时间")
private String disposeTime;
@ApiModelProperty(value = "执行人")
@ExcelProperty("执行人")
private String disposerName;
@ApiModelProperty(value = "逾期状态")
@ExcelProperty("逾期状态")
private String delayStatus;
@ApiModelProperty(value = "状态")
@ExcelProperty("状态")
private String status;
}

24
hzims-service/operational/src/main/java/com/hnac/hzims/operational/maintenance/controller/MaintenanceTaskQueryController.java

@ -0,0 +1,24 @@
package com.hnac.hzims.operational.maintenance.controller;
import io.swagger.annotations.Api;
import lombok.AllArgsConstructor;
import org.springblade.core.boot.ctrl.BladeController;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
/**
* @ClassName MaintenanceTaskQueryController
* @description:
* @author: hx
* @create: 2024-01-08 14:35
* @Version 4.0
**/
@RestController
@RequestMapping("/maintenance/task/query")
@Api(value = "日常维护任务导出管理",tags = "日常维护任务导出管理")
@AllArgsConstructor
public class MaintenanceTaskQueryController extends BladeController {
}

4
hzims-service/operational/src/main/java/com/hnac/hzims/operational/maintenance/service/IMaintenanceTaskQueryService.java

@ -0,0 +1,4 @@
package com.hnac.hzims.operational.maintenance.service;
public interface IMaintenanceTaskQueryService {
}

14
hzims-service/operational/src/main/java/com/hnac/hzims/operational/maintenance/service/impl/MaintenanceTaskQueryServiceImpl.java

@ -0,0 +1,14 @@
package com.hnac.hzims.operational.maintenance.service.impl;
import com.hnac.hzims.operational.maintenance.service.IMaintenanceTaskQueryService;
import com.hnac.hzims.operational.maintenance.service.IOperMaintenanceTaskService;
import lombok.AllArgsConstructor;
import org.springframework.stereotype.Service;
@Service
@AllArgsConstructor
public class MaintenanceTaskQueryServiceImpl implements IMaintenanceTaskQueryService {
private final IOperMaintenanceTaskService operMaintenanceTaskService;
}

1
hzims-service/safeproduct/src/main/resources/db/1.0.2.sql

@ -0,0 +1 @@
alter table `hzims_oper_maintenance_task` add column `is_delay` tinyint(2) default 0 comment '是否延期';
Loading…
Cancel
Save