Browse Source

Merge remote-tracking branch 'origin/master'

zhongwei
ty 9 months ago
parent
commit
475f74c194
  1. 29
      hzims-service-api/hzims-operational-api/src/main/java/com/hnac/hzims/operational/duty/vo/DutyClassTypeTree.java
  2. 8
      hzims-service-api/hzims-operational-api/src/main/java/com/hnac/hzims/operational/fill/entity/OtherEntity.java
  3. 2
      hzims-service-api/hzims-operational-api/src/main/java/com/hnac/hzims/operational/maintenance/entity/OperMaintenanceLibraryEntity.java
  4. 3
      hzims-service-api/safeproduct-api/src/main/java/com/hnac/hzims/safeproduct/entity/SystemFileEntity.java
  5. 2
      hzims-service/hzims-scheduled/src/main/java/com/hnac/hzims/scheduled/service/alarm/impl/AlarmQueryServiceImpl.java
  6. 3
      hzims-service/operational/src/main/java/com/hnac/hzims/operational/census/service/impl/TargetServiceImpl.java
  7. 4
      hzims-service/operational/src/main/java/com/hnac/hzims/operational/config/Swagger2Config.java
  8. 2
      hzims-service/operational/src/main/java/com/hnac/hzims/operational/config/controller/CentralMonitorController.java
  9. 2
      hzims-service/operational/src/main/java/com/hnac/hzims/operational/config/controller/StAlamRecordController.java
  10. 2
      hzims-service/operational/src/main/java/com/hnac/hzims/operational/config/controller/StFocusPropertiesController.java
  11. 10
      hzims-service/operational/src/main/java/com/hnac/hzims/operational/duty/controller/ImsDutyClassController.java
  12. 8
      hzims-service/operational/src/main/java/com/hnac/hzims/operational/duty/mapper/ImsDutyClassMapper.java
  13. 42
      hzims-service/operational/src/main/java/com/hnac/hzims/operational/duty/mapper/ImsDutyClassMapper.xml
  14. 4
      hzims-service/operational/src/main/java/com/hnac/hzims/operational/duty/service/IImsDutyClassService.java
  15. 17
      hzims-service/operational/src/main/java/com/hnac/hzims/operational/duty/service/impl/ImsDutyClassServiceImpl.java
  16. 24
      hzims-service/operational/src/main/java/com/hnac/hzims/operational/fill/service/impl/GenerateServiceImpl.java
  17. 2
      hzims-service/operational/src/main/java/com/hnac/hzims/operational/maintenance/controller/MaintenanceController.java
  18. 4
      hzims-service/operational/src/main/java/com/hnac/hzims/operational/maintenance/service/impl/OperMaintenanceTaskServiceImpl.java
  19. 2
      hzims-service/operational/src/main/resources/db/4.0.0 .sql.1
  20. 3
      hzims-service/safeproduct/src/main/java/com/hnac/hzims/safeproduct/service/impl/SystemFileServiceImpl.java
  21. 19
      hzims-service/safeproduct/src/main/resources/file/体系文件审批.bpmn20.xml
  22. 2
      hzims-service/ticket/src/main/java/com/hnac/hzims/ticket/workTicket/controller/WorkTicketInfoController.java

29
hzims-service-api/hzims-operational-api/src/main/java/com/hnac/hzims/operational/duty/vo/DutyClassTypeTree.java

@ -0,0 +1,29 @@
package com.hnac.hzims.operational.duty.vo;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.hnac.hzims.common.pojo.Tree;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import java.util.List;
@Data
@ApiModel(value = "机构-值班班次类型-班次树",description = "机构-值班班次类型-班次树")
public class DutyClassTypeTree implements Tree<DutyClassTypeTree> {
@ApiModelProperty("树ID")
private Long id;
@ApiModelProperty("父节点树ID")
@JsonIgnore
private Long parentId;
@ApiModelProperty("节点名称")
private String name;
@ApiModelProperty("子节点")
@JsonInclude(JsonInclude.Include.NON_EMPTY)
private List<DutyClassTypeTree> children;
}

8
hzims-service-api/hzims-operational-api/src/main/java/com/hnac/hzims/operational/fill/entity/OtherEntity.java

@ -6,13 +6,19 @@ import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty; import io.swagger.annotations.ApiModelProperty;
import lombok.Data; import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springblade.core.tenant.mp.TenantEntity; import org.springblade.core.tenant.mp.TenantEntity;
import org.springframework.format.annotation.DateTimeFormat; import org.springframework.format.annotation.DateTimeFormat;
import java.io.Serializable; import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date; import java.util.Date;
/**
* @author ysj
*/
@EqualsAndHashCode(callSuper = true)
@Data @Data
@TableName("hzims_fill_other") @TableName("hzims_fill_other")
@ApiModel(value="OverOtherEntity对象", description="其他填报") @ApiModel(value="OverOtherEntity对象", description="其他填报")
@ -37,7 +43,7 @@ public class OtherEntity extends TenantEntity implements Serializable {
private Date endDate; private Date endDate;
@ApiModelProperty("FA_投入条数") @ApiModelProperty("FA_投入条数")
private Integer faQuantity; private Long faQuantity;
@ApiModelProperty("设备在线率") @ApiModelProperty("设备在线率")
private String onlineRate; private String onlineRate;

2
hzims-service-api/hzims-operational-api/src/main/java/com/hnac/hzims/operational/maintenance/entity/OperMaintenanceLibraryEntity.java

@ -132,4 +132,6 @@ public class OperMaintenanceLibraryEntity extends TenantEntity {
@QueryField(condition = SqlCondition.LIKE) @QueryField(condition = SqlCondition.LIKE)
private Long createDept; private Long createDept;
@ApiModelProperty("班次树,机构-班次类型-班次")
private String dutyClassTree;
} }

3
hzims-service-api/safeproduct-api/src/main/java/com/hnac/hzims/safeproduct/entity/SystemFileEntity.java

@ -50,4 +50,7 @@ public class SystemFileEntity extends TenantEntity {
@ApiModelProperty(value = "工作流ID") @ApiModelProperty(value = "工作流ID")
private String flowId; private String flowId;
@ApiModelProperty("创建人")
private Long createUser;
} }

2
hzims-service/hzims-scheduled/src/main/java/com/hnac/hzims/scheduled/service/alarm/impl/AlarmQueryServiceImpl.java

@ -186,6 +186,6 @@ public class AlarmQueryServiceImpl extends BaseServiceImpl<AlarmQueryMapper, Ala
return alarm.getStationId(); return alarm.getStationId();
} }
return ""; return "";
}).filter(StringUtil::isBlank).distinct().collect(Collectors.toList()); }).filter(StringUtil::isNotBlank).distinct().collect(Collectors.toList());
} }
} }

3
hzims-service/operational/src/main/java/com/hnac/hzims/operational/census/service/impl/TargetServiceImpl.java

@ -443,6 +443,7 @@ public class TargetServiceImpl implements TargetService {
completeTicketVo.setCompleteRate(doublePass.getDoublePassRate()); completeTicketVo.setCompleteRate(doublePass.getDoublePassRate());
} }
completes.add(completeTicketVo); completes.add(completeTicketVo);
countDownLatch.countDown();
} }
}else{ }else{
for (Dept dept: areas) { for (Dept dept: areas) {
@ -465,9 +466,9 @@ public class TargetServiceImpl implements TargetService {
completeTicketVo.setCompleteRate(doublePass.getDoublePassRate()); completeTicketVo.setCompleteRate(doublePass.getDoublePassRate());
} }
completes.add(completeTicketVo); completes.add(completeTicketVo);
countDownLatch.countDown();
} }
} }
countDownLatch.countDown();
}); });
// 等待所有线程执行完成 // 等待所有线程执行完成
try { try {

4
hzims-service/operational/src/main/java/com/hnac/hzims/operational/config/Swagger2Config.java

@ -20,8 +20,8 @@ import springfox.documentation.swagger2.annotations.EnableSwagger2;
* @Serial 1.0 * @Serial 1.0
* @Date 2023/4/13 13:40 * @Date 2023/4/13 13:40
*/ */
@Configuration //@Configuration
@EnableSwagger2 //@EnableSwagger2
public class Swagger2Config implements WebMvcConfigurer { public class Swagger2Config implements WebMvcConfigurer {

2
hzims-service/operational/src/main/java/com/hnac/hzims/operational/config/controller/CentralMonitorController.java

@ -48,6 +48,8 @@ public class CentralMonitorController extends BladeController {
* @return * @return
*/ */
@GetMapping("/selectCommunication/{page}/{size}") @GetMapping("/selectCommunication/{page}/{size}")
@ApiOperation("查询通讯告警的最后一小时的运行数据")
@ApiOperationSupport(order = 2)
public R selectCommunication(@PathVariable Integer page, public R selectCommunication(@PathVariable Integer page,
@PathVariable Integer size, @PathVariable Integer size,
String roleId, String roleId,

2
hzims-service/operational/src/main/java/com/hnac/hzims/operational/config/controller/StAlamRecordController.java

@ -23,7 +23,7 @@ import org.springframework.web.bind.annotation.*;
import java.util.Date; import java.util.Date;
@Api(tags = "告警记录") @Api(value = "告警记录",tags = "告警记录")
@RestController @RestController
@RequestMapping("/stAlamRecord") @RequestMapping("/stAlamRecord")
public class StAlamRecordController { public class StAlamRecordController {

2
hzims-service/operational/src/main/java/com/hnac/hzims/operational/config/controller/StFocusPropertiesController.java

@ -21,7 +21,7 @@ import org.springframework.web.bind.annotation.*;
import java.util.List; import java.util.List;
@Api(tags = "重点关注属性") @Api(value = "重点关注属性",tags = "重点关注属性")
@RestController @RestController
@RequestMapping("/stFocusProperties") @RequestMapping("/stFocusProperties")
public class StFocusPropertiesController { public class StFocusPropertiesController {

10
hzims-service/operational/src/main/java/com/hnac/hzims/operational/duty/controller/ImsDutyClassController.java

@ -6,12 +6,15 @@ import com.github.xiaoymin.knife4j.annotations.ApiOperationSupport;
import com.hnac.hzims.common.logs.annotation.OperationAnnotation; import com.hnac.hzims.common.logs.annotation.OperationAnnotation;
import com.hnac.hzims.common.logs.enums.BusinessType; import com.hnac.hzims.common.logs.enums.BusinessType;
import com.hnac.hzims.common.logs.enums.OperatorType; import com.hnac.hzims.common.logs.enums.OperatorType;
import com.hnac.hzims.common.pojo.Tree;
import com.hnac.hzims.operational.duty.entity.ImsDutyClassEntity; import com.hnac.hzims.operational.duty.entity.ImsDutyClassEntity;
import com.hnac.hzims.operational.duty.service.IImsDutyClassService; import com.hnac.hzims.operational.duty.service.IImsDutyClassService;
import com.hnac.hzims.operational.duty.vo.DutyClassTypeTree;
import io.swagger.annotations.Api; import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation; import io.swagger.annotations.ApiOperation;
import io.swagger.annotations.ApiParam; import io.swagger.annotations.ApiParam;
import lombok.AllArgsConstructor; import lombok.AllArgsConstructor;
import lombok.Value;
import org.springblade.core.boot.ctrl.BladeController; import org.springblade.core.boot.ctrl.BladeController;
import org.springblade.core.mp.support.Condition; import org.springblade.core.mp.support.Condition;
import org.springblade.core.mp.support.Query; import org.springblade.core.mp.support.Query;
@ -139,7 +142,12 @@ public class ImsDutyClassController extends BladeController {
return imsDutyClassService.typeRemove(classTypeId); return imsDutyClassService.typeRemove(classTypeId);
} }
@GetMapping("/getDutyClassTree")
@ApiOperationSupport(order = 10)
@ApiOperation(value = "获取机构-班次类型-班次树")
public R<List<DutyClassTypeTree>> getDutyClassTree(@RequestParam(required = false) @ApiParam(value = "机构id") Long deptId) {
return R.data(imsDutyClassService.getDutyClassTree(deptId));
}

8
hzims-service/operational/src/main/java/com/hnac/hzims/operational/duty/mapper/ImsDutyClassMapper.java

@ -1,5 +1,7 @@
package com.hnac.hzims.operational.duty.mapper; package com.hnac.hzims.operational.duty.mapper;
import com.hnac.hzims.common.pojo.Tree;
import com.hnac.hzims.operational.duty.vo.DutyClassTypeTree;
import org.apache.ibatis.annotations.Param; import org.apache.ibatis.annotations.Param;
import org.springblade.core.datascope.annotation.UserDataAuth; import org.springblade.core.datascope.annotation.UserDataAuth;
import com.hnac.hzims.operational.duty.entity.ImsDutyClassEntity; import com.hnac.hzims.operational.duty.entity.ImsDutyClassEntity;
@ -32,4 +34,10 @@ public interface ImsDutyClassMapper extends UserDataScopeBaseMapper<ImsDutyClass
String getClassTypeIds(@Param("createDept") Long createDept,@Param("classTypeId") Long classTypeId); String getClassTypeIds(@Param("createDept") Long createDept,@Param("classTypeId") Long classTypeId);
List<DutyClassTypeTree> getDutyClassTree(@Param("deptId")Long deptId);
List<DutyClassTypeTree> getDutyClassByType(@Param("class_type_id") Long classTypeId);
List<DutyClassTypeTree> getDutyClassTypeByDept(@Param("create_dept") Long deptId);
} }

42
hzims-service/operational/src/main/java/com/hnac/hzims/operational/duty/mapper/ImsDutyClassMapper.xml

@ -17,6 +17,23 @@
<result column="STATUS" property="status"/> <result column="STATUS" property="status"/>
<result column="CREATE_DEPT" property="createDept"/> <result column="CREATE_DEPT" property="createDept"/>
</resultMap> </resultMap>
<resultMap id="deptClassTypeTree" type="com.hnac.hzims.operational.duty.vo.DutyClassTypeTree">
<id column="create_dept" property="id"/>
<collection property="children" column="{create_dept = create_dept}" select="getDutyClassTypeByDept"></collection>
</resultMap>
<resultMap id="dutyClassTypeTree" type="com.hnac.hzims.operational.duty.vo.DutyClassTypeTree">
<id column="id" property="id"/>
<result column="class_type_name" property="name"/>
<collection property="children" column="{class_type_id = id}" select="getDutyClassByType"></collection>
</resultMap>
<resultMap id="dutyClassTree" type="com.hnac.hzims.operational.duty.vo.DutyClassTypeTree">
<id column="id" property="id"/>
<result column="class_name" property="name"/>
</resultMap>
<sql id="Base_Column_List"> <sql id="Base_Column_List">
ID, TENANT_ID,CLASS_TYPE_ID,CLASS_NAME, START_TIME, END_TIME, CREATE_TIME, UPDATE_TIME, CREATE_USER, UPDATE_USER, ID, TENANT_ID,CLASS_TYPE_ID,CLASS_NAME, START_TIME, END_TIME, CREATE_TIME, UPDATE_TIME, CREATE_USER, UPDATE_USER,
IS_DELETED,STATUS,CREATE_DEPT IS_DELETED,STATUS,CREATE_DEPT
@ -75,4 +92,29 @@
and CLASS_TYPE_ID &lt;&gt; #{classTypeId} and CLASS_TYPE_ID &lt;&gt; #{classTypeId}
</if> </if>
</select> </select>
<select id="getDutyClassByType" resultMap="dutyClassTree">
select `id`,`class_name`
from `hz_ims_duty_class`
where `is_deleted` = 0
and `class_type_id` = #{class_type_id}
</select>
<select id="getDutyClassTypeByDept" resultMap="dutyClassTypeTree">
select distinct ct.id,ct.class_type_name
from `hz_ims_duty_class_type` ct,`hz_ims_duty_class` dc
where ct.`id` = dc.`class_type_id`
and ct.`is_deleted` = 0
and dc.`is_deleted` = 0
and ct.create_dept = #{create_dept}
</select>
<select id="getDutyClassTree" resultMap="deptClassTypeTree">
select distinct `create_dept`
from `hz_ims_duty_class_type`
where `is_deleted` = 0
<if test="deptId != null and deptId != ''">
and `create_dept` = #{deptId}
</if>
</select>
</mapper> </mapper>

4
hzims-service/operational/src/main/java/com/hnac/hzims/operational/duty/service/IImsDutyClassService.java

@ -1,6 +1,8 @@
package com.hnac.hzims.operational.duty.service; package com.hnac.hzims.operational.duty.service;
import com.hnac.hzims.common.pojo.Tree;
import com.hnac.hzims.operational.duty.entity.ImsDutyClassEntity; import com.hnac.hzims.operational.duty.entity.ImsDutyClassEntity;
import com.hnac.hzims.operational.duty.vo.DutyClassTypeTree;
import org.springblade.core.mp.base.BaseService; import org.springblade.core.mp.base.BaseService;
import org.springblade.core.tool.api.R; import org.springblade.core.tool.api.R;
@ -32,6 +34,6 @@ public interface IImsDutyClassService extends BaseService<ImsDutyClassEntity> {
R typeRemove(Long classTypeId); R typeRemove(Long classTypeId);
List<DutyClassTypeTree> getDutyClassTree(Long deptId);
} }

17
hzims-service/operational/src/main/java/com/hnac/hzims/operational/duty/service/impl/ImsDutyClassServiceImpl.java

@ -1,19 +1,25 @@
package com.hnac.hzims.operational.duty.service.impl; package com.hnac.hzims.operational.duty.service.impl;
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.hnac.hzims.common.pojo.Tree;
import com.hnac.hzims.operational.duty.entity.ImsDutyClassEntity; import com.hnac.hzims.operational.duty.entity.ImsDutyClassEntity;
import com.hnac.hzims.operational.duty.entity.ImsDutyMainEntity; import com.hnac.hzims.operational.duty.entity.ImsDutyMainEntity;
import com.hnac.hzims.operational.duty.mapper.ImsDutyClassMapper; import com.hnac.hzims.operational.duty.mapper.ImsDutyClassMapper;
import com.hnac.hzims.operational.duty.mapper.ImsDutyMainMapper; import com.hnac.hzims.operational.duty.mapper.ImsDutyMainMapper;
import com.hnac.hzims.operational.duty.service.IImsDutyClassService; import com.hnac.hzims.operational.duty.service.IImsDutyClassService;
import com.hnac.hzims.operational.duty.vo.DutyClassTypeTree;
import org.apache.commons.lang3.StringUtils; import org.apache.commons.lang3.StringUtils;
import org.springblade.core.mp.base.BaseServiceImpl; import org.springblade.core.mp.base.BaseServiceImpl;
import org.springblade.core.tool.api.R; import org.springblade.core.tool.api.R;
import org.springblade.core.tool.utils.CollectionUtil; import org.springblade.core.tool.utils.CollectionUtil;
import org.springblade.core.tool.utils.Func;
import org.springblade.system.feign.ISysClient;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service; import org.springframework.stereotype.Service;
import java.util.Comparator;
import java.util.List; import java.util.List;
import java.util.Optional;
import java.util.stream.Collectors; import java.util.stream.Collectors;
/** /**
@ -26,6 +32,8 @@ public class ImsDutyClassServiceImpl extends BaseServiceImpl<ImsDutyClassMapper,
@Autowired @Autowired
private ImsDutyMainMapper imsDutyMainMapper; private ImsDutyMainMapper imsDutyMainMapper;
@Autowired
private ISysClient sysClient;
@Override @Override
public R saveOrUpdateImsDutyClass(ImsDutyClassEntity imsDutyClass) { public R saveOrUpdateImsDutyClass(ImsDutyClassEntity imsDutyClass) {
if (null == imsDutyClass.getClassTypeId()) { if (null == imsDutyClass.getClassTypeId()) {
@ -104,4 +112,13 @@ public class ImsDutyClassServiceImpl extends BaseServiceImpl<ImsDutyClassMapper,
return R.status(bool); return R.status(bool);
} }
@Override
public List<DutyClassTypeTree> getDutyClassTree(Long deptId) {
List<DutyClassTypeTree> dutyClassTrees = this.baseMapper.getDutyClassTree(deptId);
List<DutyClassTypeTree> result = dutyClassTrees.stream().peek(node -> node.setName(Optional.ofNullable(sysClient.getDeptName(node.getId())).map(R::getData).orElse(null)))
.filter(t -> Func.isNotEmpty(t.getName()))
.sorted(Comparator.comparing(DutyClassTypeTree::getName)).collect(Collectors.toList());
return result;
}
} }

24
hzims-service/operational/src/main/java/com/hnac/hzims/operational/fill/service/impl/GenerateServiceImpl.java

@ -284,20 +284,16 @@ public class GenerateServiceImpl extends BaseServiceImpl<GenerateMapper, Generat
*/ */
private List<String> days(Date date) { private List<String> days(Date date) {
List<String> list = new ArrayList<>(); List<String> list = new ArrayList<>();
// 结束日期 Calendar calendar = Calendar.getInstance();
Calendar endCal = Calendar.getInstance(); calendar.add(Calendar.MONTH, 1);
endCal.setTime(new Date()); calendar.add(Calendar.DAY_OF_MONTH, -calendar.get(Calendar.DAY_OF_MONTH) + 1);
endCal.add(Calendar.MONTH, -endCal.get(Calendar.MONTH) + 1); Date end = calendar.getTime();
endCal.add(Calendar.DATE, -endCal.get(Calendar.DATE) + 1); calendar.add(Calendar.MONTH, -1);
Date start = calendar.getTime();
// 开始日期 while (start.compareTo(end) < 0){
Calendar startCal = Calendar.getInstance(); list.add(DateUtil.format(start,DateUtil.PATTERN_DATE));
startCal.setTime(new Date()); calendar.add(Calendar.DAY_OF_MONTH, 1);
startCal.add(Calendar.DATE, -startCal.get(Calendar.DATE) + 1); start = calendar.getTime();
// 获取日期之间的月份
while (endCal.after(startCal)) {
list.add(DateUtil.format(startCal.getTime(),DateUtil.PATTERN_DATE));
startCal.add(Calendar.DAY_OF_MONTH, 1);
} }
return list; return list;
} }

2
hzims-service/operational/src/main/java/com/hnac/hzims/operational/maintenance/controller/MaintenanceController.java

@ -3,6 +3,7 @@ package com.hnac.hzims.operational.maintenance.controller;
import com.github.xiaoymin.knife4j.annotations.ApiOperationSupport; import com.github.xiaoymin.knife4j.annotations.ApiOperationSupport;
import com.hnac.hzims.middle.process.to.ProcessWorkFlowResponse; import com.hnac.hzims.middle.process.to.ProcessWorkFlowResponse;
import com.hnac.hzims.operational.maintenance.service.MaintenanceService; import com.hnac.hzims.operational.maintenance.service.MaintenanceService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation; import io.swagger.annotations.ApiOperation;
import io.swagger.annotations.ApiParam; import io.swagger.annotations.ApiParam;
import lombok.RequiredArgsConstructor; import lombok.RequiredArgsConstructor;
@ -25,6 +26,7 @@ import java.util.List;
@RequiredArgsConstructor @RequiredArgsConstructor
@RestController @RestController
@RequestMapping("/maintenance") @RequestMapping("/maintenance")
@Api(value = "日常维护管理",tags = "日常维护管理")
public class MaintenanceController { public class MaintenanceController {

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

@ -144,10 +144,10 @@ public class OperMaintenanceTaskServiceImpl extends BaseServiceImpl<OperMaintena
isNull(OperMaintenanceTaskEntity::getTicketId); isNull(OperMaintenanceTaskEntity::getTicketId);
} }
if (!StringUtil.isEmpty(req.getStartTime())) { if (!StringUtil.isEmpty(req.getStartTime())) {
gt(OperMaintenanceTaskEntity::getDisposeTime, req.getStartTime()); ge(OperMaintenanceTaskEntity::getDisposeTime, req.getStartTime());
} }
if (!StringUtil.isEmpty(req.getEndTime())) { if (!StringUtil.isEmpty(req.getEndTime())) {
lt(OperMaintenanceTaskEntity::getDisposeTime, req.getEndTime()); le(OperMaintenanceTaskEntity::getDisposeTime, req.getEndTime());
} }
if (!CollectionUtils.isEmpty(req.getDeptIds())) { if (!CollectionUtils.isEmpty(req.getDeptIds())) {
in(OperMaintenanceTaskEntity::getCreateDept, req.getDeptIds()); in(OperMaintenanceTaskEntity::getCreateDept, req.getDeptIds());

2
hzims-service/operational/src/main/resources/db/4.0.0 .sql.1

@ -31,3 +31,5 @@ CREATE TABLE `HZIMS_OPER_CONSTRUCTION` (
`UPDATE_TIME` DATETIME NULL DEFAULT NULL COMMENT '修改时间', `UPDATE_TIME` DATETIME NULL DEFAULT NULL COMMENT '修改时间',
PRIMARY KEY (`ID`) USING BTREE PRIMARY KEY (`ID`) USING BTREE
) ENGINE = INNODB CHARACTER SET = UTF8MB4 COLLATE = UTF8MB4_GENERAL_CI ROW_FORMAT = DYNAMIC; ) ENGINE = INNODB CHARACTER SET = UTF8MB4 COLLATE = UTF8MB4_GENERAL_CI ROW_FORMAT = DYNAMIC;
alter table `hzims_oper_maintenance_library` add column `duty_class_tree` VARCHAR(100) NULL COMMENT '班次树,机构/班次类型/班次';

3
hzims-service/safeproduct/src/main/java/com/hnac/hzims/safeproduct/service/impl/SystemFileServiceImpl.java

@ -73,6 +73,9 @@ public class SystemFileServiceImpl extends BaseServiceImpl<SystemFileMapper, Sys
if (null != req.getFileStatus()) { if (null != req.getFileStatus()) {
eq("file_status", req.getFileStatus()); eq("file_status", req.getFileStatus());
} }
if(Func.isNotEmpty(req.getStatus())) {
eq("status", req.getStatus());
}
if (StringUtil.isNotBlank(req.getFileName())) { if (StringUtil.isNotBlank(req.getFileName())) {
like("file_name", req.getFileName()); like("file_name", req.getFileName());
} }

19
hzims-service/safeproduct/src/main/resources/file/体系文件审批.bpmn20.xml

@ -6,8 +6,11 @@
<flowable:formProperty id="assignee" name="assignee" type="string" required="true"></flowable:formProperty> <flowable:formProperty id="assignee" name="assignee" type="string" required="true"></flowable:formProperty>
</extensionElements> </extensionElements>
</startEvent> </startEvent>
<userTask id="sid-71423AA7-A1EF-4F95-BB7B-1E97FCC9164C" name="审核人审批 <userTask id="sid-71423AA7-A1EF-4F95-BB7B-1E97FCC9164C" name="审核人审批 " flowable:candidateGroups="SystemFileApprover" flowable:formFieldValidation="true">
" flowable:formFieldValidation="true" flowable:candidateUsers="${approver}"></userTask> <extensionElements>
<flowable:taskListener event="create" class="org.springblade.flow.engine.listener.DynamicTaskUserListener"></flowable:taskListener>
</extensionElements>
</userTask>
<exclusiveGateway id="sid-4AF1B2EB-29BE-4505-9295-D28FAEA3D998" name="审批"></exclusiveGateway> <exclusiveGateway id="sid-4AF1B2EB-29BE-4505-9295-D28FAEA3D998" name="审批"></exclusiveGateway>
<endEvent id="sid-A9D2F619-A88E-44F1-A1C7-03C75B3C6B14" name="结束"></endEvent> <endEvent id="sid-A9D2F619-A88E-44F1-A1C7-03C75B3C6B14" name="结束"></endEvent>
<endEvent id="sid-FEF7443A-B328-4BBD-9A84-180D335F498E" name="结束"></endEvent> <endEvent id="sid-FEF7443A-B328-4BBD-9A84-180D335F498E" name="结束"></endEvent>
@ -38,16 +41,16 @@
<omgdc:Bounds height="28.0" width="28.0" x="381.0" y="495.0"></omgdc:Bounds> <omgdc:Bounds height="28.0" width="28.0" x="381.0" y="495.0"></omgdc:Bounds>
</bpmndi:BPMNShape> </bpmndi:BPMNShape>
<bpmndi:BPMNEdge bpmnElement="sid-C2DD2501-6266-4819-9BC4-36148F90FCAD" id="BPMNEdge_sid-C2DD2501-6266-4819-9BC4-36148F90FCAD"> <bpmndi:BPMNEdge bpmnElement="sid-C2DD2501-6266-4819-9BC4-36148F90FCAD" id="BPMNEdge_sid-C2DD2501-6266-4819-9BC4-36148F90FCAD">
<omgdi:waypoint x="309.9499999999926" y="330.1843173431734"></omgdi:waypoint> <omgdi:waypoint x="309.9499999998759" y="330.0"></omgdi:waypoint>
<omgdi:waypoint x="375.42592592592536" y="330.4259259259259"></omgdi:waypoint> <omgdi:waypoint x="375.0" y="330.0"></omgdi:waypoint>
</bpmndi:BPMNEdge> </bpmndi:BPMNEdge>
<bpmndi:BPMNEdge bpmnElement="sid-C7178FEF-98F6-44A5-A354-7BB83575C565" id="BPMNEdge_sid-C7178FEF-98F6-44A5-A354-7BB83575C565"> <bpmndi:BPMNEdge bpmnElement="sid-C7178FEF-98F6-44A5-A354-7BB83575C565" id="BPMNEdge_sid-C7178FEF-98F6-44A5-A354-7BB83575C565">
<omgdi:waypoint x="414.50393738140417" y="330.43987341772157"></omgdi:waypoint> <omgdi:waypoint x="414.9437303581345" y="330.0"></omgdi:waypoint>
<omgdi:waypoint x="540.0000670136147" y="330.0440062513792"></omgdi:waypoint> <omgdi:waypoint x="540.0" y="330.0"></omgdi:waypoint>
</bpmndi:BPMNEdge> </bpmndi:BPMNEdge>
<bpmndi:BPMNEdge bpmnElement="sid-FACD1E29-B375-4110-B885-E73251B3ED09" id="BPMNEdge_sid-FACD1E29-B375-4110-B885-E73251B3ED09"> <bpmndi:BPMNEdge bpmnElement="sid-FACD1E29-B375-4110-B885-E73251B3ED09" id="BPMNEdge_sid-FACD1E29-B375-4110-B885-E73251B3ED09">
<omgdi:waypoint x="395.44662921348316" y="349.4978804042673"></omgdi:waypoint> <omgdi:waypoint x="395.0" y="349.94443048576215"></omgdi:waypoint>
<omgdi:waypoint x="395.03907547698566" y="495.00005488730324"></omgdi:waypoint> <omgdi:waypoint x="395.0" y="495.0"></omgdi:waypoint>
</bpmndi:BPMNEdge> </bpmndi:BPMNEdge>
<bpmndi:BPMNEdge bpmnElement="sid-7B129759-4330-4970-B29A-8C28FB138B9E" id="BPMNEdge_sid-7B129759-4330-4970-B29A-8C28FB138B9E"> <bpmndi:BPMNEdge bpmnElement="sid-7B129759-4330-4970-B29A-8C28FB138B9E" id="BPMNEdge_sid-7B129759-4330-4970-B29A-8C28FB138B9E">
<omgdi:waypoint x="134.9499990675947" y="330.0"></omgdi:waypoint> <omgdi:waypoint x="134.9499990675947" y="330.0"></omgdi:waypoint>

2
hzims-service/ticket/src/main/java/com/hnac/hzims/ticket/workTicket/controller/WorkTicketInfoController.java

@ -258,7 +258,7 @@ public class WorkTicketInfoController {
} }
/** /**
* 获取工作票台账 * 获取工作票台账
*/ */
@ApiLog @ApiLog
@GetMapping("/getWorkTicketBill") @GetMapping("/getWorkTicketBill")

Loading…
Cancel
Save