段飞宇
2 years ago
84 changed files with 1747 additions and 1616 deletions
@ -1,4 +1,4 @@
|
||||
package com.hnac.hzims.vo.process; |
||||
package com.hnac.hzims.common.to.process; |
||||
|
||||
import lombok.Data; |
||||
import lombok.EqualsAndHashCode; |
@ -1,48 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?> |
||||
<project xmlns="http://maven.apache.org/POM/4.0.0" |
||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
||||
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> |
||||
<modelVersion>4.0.0</modelVersion> |
||||
<parent> |
||||
<groupId>com.hnac.hzims</groupId> |
||||
<artifactId>hzims-back</artifactId> |
||||
<version>4.0.0-SNAPSHOT</version> |
||||
</parent> |
||||
|
||||
<artifactId>hzims-model</artifactId> |
||||
|
||||
<properties> |
||||
<maven.compiler.source>8</maven.compiler.source> |
||||
<maven.compiler.target>8</maven.compiler.target> |
||||
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> |
||||
</properties> |
||||
|
||||
|
||||
<dependencies> |
||||
<dependency> |
||||
<groupId>org.projectlombok</groupId> |
||||
<artifactId>lombok</artifactId> |
||||
</dependency> |
||||
<dependency> |
||||
<groupId>org.springblade</groupId> |
||||
<artifactId>blade-starter-swagger</artifactId> |
||||
<scope>provided</scope> |
||||
</dependency> |
||||
|
||||
</dependencies> |
||||
|
||||
|
||||
|
||||
<build> |
||||
<plugins> |
||||
<plugin> |
||||
<groupId>org.springframework.boot</groupId> |
||||
<artifactId>spring-boot-maven-plugin</artifactId> |
||||
<configuration> |
||||
<skip>true</skip> |
||||
<finalName>${project.name}</finalName> |
||||
</configuration> |
||||
</plugin> |
||||
</plugins> |
||||
</build> |
||||
</project> |
@ -0,0 +1,27 @@
|
||||
package com.hnac.hzims.ticket.ticketprocess.fallback; |
||||
|
||||
import com.hnac.hzims.common.to.process.ProcessWorkFlowResponse; |
||||
import com.hnac.hzims.ticket.ticketprocess.feign.OperationTicketFeignClient; |
||||
import lombok.extern.slf4j.Slf4j; |
||||
import org.springframework.stereotype.Component; |
||||
|
||||
/** |
||||
* @Author WL |
||||
* @Version v1.0 |
||||
* @Serial 1.0 |
||||
* @Date 2023/6/15 11:41 |
||||
*/ |
||||
@Slf4j |
||||
@Component |
||||
public class OperationTicketFeignClientFallback implements OperationTicketFeignClient { |
||||
/** |
||||
* 操作票待处理 |
||||
* |
||||
* @param response |
||||
*/ |
||||
@Override |
||||
public Boolean findPending(ProcessWorkFlowResponse response) { |
||||
log.error("操作票流程出现异常呢"); |
||||
return false; |
||||
} |
||||
} |
@ -0,0 +1,27 @@
|
||||
package com.hnac.hzims.ticket.ticketprocess.fallback; |
||||
|
||||
import com.hnac.hzims.common.to.process.ProcessWorkFlowResponse; |
||||
import com.hnac.hzims.ticket.ticketprocess.feign.TicketProcessFeignClient; |
||||
import lombok.extern.slf4j.Slf4j; |
||||
import org.springframework.stereotype.Component; |
||||
|
||||
/** |
||||
* @Author WL |
||||
* @Version v1.0 |
||||
* @Serial 1.0 |
||||
* @Date 2023/6/15 11:44 |
||||
*/ |
||||
@Slf4j |
||||
@Component |
||||
public class TicketProcessFeignClientFallback implements TicketProcessFeignClient { |
||||
/** |
||||
* 工作票待处理 |
||||
* |
||||
* @param response |
||||
*/ |
||||
@Override |
||||
public Boolean findPending(ProcessWorkFlowResponse response) { |
||||
log.error("工作票出现异常呢"); |
||||
return false; |
||||
} |
||||
} |
@ -0,0 +1,34 @@
|
||||
package com.hnac.hzims.ticket.ticketprocess.feign; |
||||
|
||||
import com.hnac.hzims.common.to.process.ProcessWorkFlowResponse; |
||||
import com.hnac.hzims.ticket.constants.TicketConstants; |
||||
import com.hnac.hzims.ticket.ticketprocess.fallback.OperationTicketFeignClientFallback; |
||||
import io.swagger.annotations.ApiOperation; |
||||
import org.springframework.cloud.openfeign.FeignClient; |
||||
import org.springframework.web.bind.annotation.PostMapping; |
||||
import org.springframework.web.bind.annotation.RequestBody; |
||||
|
||||
/** |
||||
* @Author WL |
||||
* @Version v1.0 |
||||
* @Serial 1.0 |
||||
* @Date 2023/6/15 11:39 |
||||
*/ |
||||
@FeignClient( |
||||
value = TicketConstants.APP_NAME, |
||||
fallback = OperationTicketFeignClientFallback.class |
||||
) |
||||
public interface OperationTicketFeignClient { |
||||
|
||||
|
||||
/** |
||||
* 操作票待处理 |
||||
* @param response |
||||
*/ |
||||
@PostMapping("/operation-ticket/findPending") |
||||
@ApiOperation(value = "操作票待处理") |
||||
public Boolean findPending(@RequestBody ProcessWorkFlowResponse response); |
||||
|
||||
|
||||
|
||||
} |
@ -0,0 +1,33 @@
|
||||
package com.hnac.hzims.ticket.ticketprocess.feign; |
||||
|
||||
import com.hnac.hzims.common.to.process.ProcessWorkFlowResponse; |
||||
import com.hnac.hzims.ticket.constants.TicketConstants; |
||||
import com.hnac.hzims.ticket.ticketprocess.fallback.TicketProcessFeignClientFallback; |
||||
import io.swagger.annotations.ApiOperation; |
||||
import org.springframework.cloud.openfeign.FeignClient; |
||||
import org.springframework.web.bind.annotation.PostMapping; |
||||
import org.springframework.web.bind.annotation.RequestBody; |
||||
|
||||
/** |
||||
* @Author WL |
||||
* @Version v1.0 |
||||
* @Serial 1.0 |
||||
* @Date 2023/6/15 11:35 |
||||
*/ |
||||
@FeignClient( |
||||
value = TicketConstants.APP_NAME, |
||||
fallback = TicketProcessFeignClientFallback.class |
||||
) |
||||
public interface TicketProcessFeignClient { |
||||
|
||||
|
||||
/** |
||||
* 工作票待处理 |
||||
* |
||||
* @param response |
||||
*/ |
||||
@PostMapping("/ticket-process/findPending") |
||||
@ApiOperation(value = "工作票待处理") |
||||
public Boolean findPending(@RequestBody ProcessWorkFlowResponse response); |
||||
|
||||
} |
@ -1,4 +1,4 @@
|
||||
// package com.hnac.hzims.ticket.processflow;
|
||||
package com.hnac.hzims.middle.processflow;// package com.hnac.hzims.ticket.processflow;
|
||||
//
|
||||
// import com.baomidou.mybatisplus.generator.AutoGenerator;
|
||||
// import com.baomidou.mybatisplus.generator.InjectionConfig;
|
@ -1,4 +1,4 @@
|
||||
package com.hnac.hzims.ticket.processflow.constant; |
||||
package com.hnac.hzims.middle.processflow.constant; |
||||
|
||||
/** |
||||
* 开票常量类 |
@ -1,12 +1,12 @@
|
||||
package com.hnac.hzims.ticket.processflow.consumer; |
||||
package com.hnac.hzims.middle.processflow.consumer; |
||||
|
||||
import com.alibaba.fastjson.JSONObject; |
||||
import com.baomidou.mybatisplus.core.toolkit.ObjectUtils; |
||||
import com.hnac.hzims.ticket.processflow.entity.WorkflowOperationLog; |
||||
import com.hnac.hzims.ticket.processflow.service.WorkflowOperationLogService; |
||||
import com.hnac.hzims.ticket.processflow.strategy.entity.WorkflowQueue; |
||||
import com.hnac.hzims.ticket.processflow.strategy.service.ProcessService; |
||||
import com.hnac.hzims.vo.process.ProcessWorkFlowResponse; |
||||
import com.hnac.hzims.middle.processflow.entity.WorkflowOperationLog; |
||||
import com.hnac.hzims.middle.processflow.service.WorkflowOperationLogService; |
||||
import com.hnac.hzims.middle.processflow.strategy.entity.WorkflowQueue; |
||||
import com.hnac.hzims.middle.processflow.strategy.service.ProcessService; |
||||
import com.hnac.hzims.common.to.process.ProcessWorkFlowResponse; |
||||
import lombok.extern.slf4j.Slf4j; |
||||
import org.springblade.queue.annotation.RedisQueue; |
||||
import org.springblade.queue.consume.IQueueConsume; |
@ -1,9 +1,10 @@
|
||||
package com.hnac.hzims.ticket.processflow.controller; |
||||
package com.hnac.hzims.middle.processflow.controller; |
||||
|
||||
import com.hnac.hzims.ticket.processflow.entity.ProcessDict; |
||||
import com.hnac.hzims.ticket.processflow.service.ProcessDictService; |
||||
import groovy.util.logging.Slf4j; |
||||
|
||||
import com.hnac.hzims.middle.processflow.entity.ProcessDict; |
||||
import com.hnac.hzims.middle.processflow.service.ProcessDictService; |
||||
import lombok.RequiredArgsConstructor; |
||||
import lombok.extern.slf4j.Slf4j; |
||||
import org.springframework.web.bind.annotation.GetMapping; |
||||
import org.springframework.web.bind.annotation.RequestMapping; |
||||
import org.springframework.web.bind.annotation.RestController; |
@ -1,17 +1,17 @@
|
||||
package com.hnac.hzims.ticket.processflow.controller; |
||||
package com.hnac.hzims.middle.processflow.controller; |
||||
|
||||
|
||||
import com.alibaba.fastjson.JSON; |
||||
import com.hnac.hzims.common.logs.annotation.OperationAnnotation; |
||||
import com.hnac.hzims.common.logs.enums.BusinessType; |
||||
import com.hnac.hzims.common.logs.enums.OperatorType; |
||||
import com.hnac.hzims.ticket.processflow.entity.ProcessType; |
||||
import com.hnac.hzims.ticket.processflow.properties.TicketProperties; |
||||
import com.hnac.hzims.ticket.processflow.properties.WorkTicketProperties; |
||||
import com.hnac.hzims.ticket.processflow.service.ProcessTypeService; |
||||
import com.hnac.hzims.ticket.processflow.strategy.entity.WorkflowQueue; |
||||
import com.hnac.hzims.ticket.processflow.strategy.service.ProcessService; |
||||
import com.hnac.hzims.vo.process.ProcessWorkFlowResponse; |
||||
import com.hnac.hzims.middle.processflow.entity.ProcessType; |
||||
import com.hnac.hzims.middle.processflow.properties.TicketProperties; |
||||
import com.hnac.hzims.middle.processflow.properties.WorkTicketProperties; |
||||
import com.hnac.hzims.middle.processflow.service.ProcessTypeService; |
||||
import com.hnac.hzims.middle.processflow.strategy.entity.WorkflowQueue; |
||||
import com.hnac.hzims.middle.processflow.strategy.service.ProcessService; |
||||
import com.hnac.hzims.common.to.process.ProcessWorkFlowResponse; |
||||
import lombok.RequiredArgsConstructor; |
||||
import org.springblade.core.tool.api.R; |
||||
import org.springblade.core.tool.jackson.JsonUtil; |
@ -1,4 +1,4 @@
|
||||
package com.hnac.hzims.ticket.processflow.controller; |
||||
package com.hnac.hzims.middle.processflow.controller; |
||||
|
||||
|
||||
import org.springframework.web.bind.annotation.RequestMapping; |
@ -1,4 +1,4 @@
|
||||
package com.hnac.hzims.ticket.processflow.entity; |
||||
package com.hnac.hzims.middle.processflow.entity; |
||||
|
||||
import com.baomidou.mybatisplus.annotation.IdType; |
||||
import com.baomidou.mybatisplus.annotation.TableId; |
@ -1,4 +1,4 @@
|
||||
package com.hnac.hzims.ticket.processflow.entity; |
||||
package com.hnac.hzims.middle.processflow.entity; |
||||
|
||||
import com.baomidou.mybatisplus.annotation.TableName; |
||||
import com.baomidou.mybatisplus.annotation.IdType; |
@ -1,6 +1,6 @@
|
||||
package com.hnac.hzims.ticket.processflow.mapper; |
||||
package com.hnac.hzims.middle.processflow.mapper; |
||||
|
||||
import com.hnac.hzims.ticket.processflow.entity.ProcessDict; |
||||
import com.hnac.hzims.middle.processflow.entity.ProcessDict; |
||||
import org.springblade.core.datascope.mapper.UserDataScopeBaseMapper; |
||||
|
||||
/** |
@ -1,7 +1,7 @@
|
||||
package com.hnac.hzims.ticket.processflow.mapper; |
||||
package com.hnac.hzims.middle.processflow.mapper; |
||||
|
||||
import com.hnac.hzims.ticket.processflow.entity.ProcessType; |
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
||||
import com.hnac.hzims.middle.processflow.entity.ProcessType; |
||||
|
||||
/** |
||||
* <p> |
@ -1,7 +1,7 @@
|
||||
package com.hnac.hzims.ticket.processflow.mapper; |
||||
package com.hnac.hzims.middle.processflow.mapper; |
||||
|
||||
import com.hnac.hzims.ticket.processflow.entity.WorkflowOperationLog; |
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
||||
import com.hnac.hzims.middle.processflow.entity.WorkflowOperationLog; |
||||
|
||||
/** |
||||
* <p> |
@ -1,4 +1,4 @@
|
||||
package com.hnac.hzims.ticket.processflow.properties; |
||||
package com.hnac.hzims.middle.processflow.properties; |
||||
|
||||
|
||||
import lombok.Data; |
@ -1,4 +1,4 @@
|
||||
package com.hnac.hzims.ticket.processflow.properties; |
||||
package com.hnac.hzims.middle.processflow.properties; |
||||
|
||||
import lombok.Data; |
||||
import lombok.Getter; |
@ -1,7 +1,7 @@
|
||||
package com.hnac.hzims.ticket.processflow.service; |
||||
package com.hnac.hzims.middle.processflow.service; |
||||
|
||||
import com.baomidou.mybatisplus.extension.service.IService; |
||||
import com.hnac.hzims.ticket.processflow.entity.ProcessDict; |
||||
import com.hnac.hzims.middle.processflow.entity.ProcessDict; |
||||
|
||||
/** |
||||
* @Author WL |
@ -1,7 +1,7 @@
|
||||
package com.hnac.hzims.ticket.processflow.service; |
||||
package com.hnac.hzims.middle.processflow.service; |
||||
|
||||
import com.hnac.hzims.ticket.processflow.entity.ProcessType; |
||||
import com.baomidou.mybatisplus.extension.service.IService; |
||||
import com.hnac.hzims.middle.processflow.entity.ProcessType; |
||||
|
||||
/** |
||||
* <p> |
@ -1,7 +1,7 @@
|
||||
package com.hnac.hzims.ticket.processflow.service; |
||||
package com.hnac.hzims.middle.processflow.service; |
||||
|
||||
import com.hnac.hzims.ticket.processflow.entity.WorkflowOperationLog; |
||||
import com.baomidou.mybatisplus.extension.service.IService; |
||||
import com.hnac.hzims.middle.processflow.entity.WorkflowOperationLog; |
||||
|
||||
/** |
||||
* <p> |
@ -1,8 +1,8 @@
|
||||
package com.hnac.hzims.ticket.processflow.service.impl; |
||||
package com.hnac.hzims.middle.processflow.service.impl; |
||||
|
||||
import com.hnac.hzims.ticket.processflow.entity.ProcessType; |
||||
import com.hnac.hzims.ticket.processflow.mapper.ProcessTypeMapper; |
||||
import com.hnac.hzims.ticket.processflow.service.ProcessTypeService; |
||||
import com.hnac.hzims.middle.processflow.entity.ProcessType; |
||||
import com.hnac.hzims.middle.processflow.mapper.ProcessTypeMapper; |
||||
import com.hnac.hzims.middle.processflow.service.ProcessTypeService; |
||||
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
||||
import org.springframework.stereotype.Service; |
||||
|
@ -1,9 +1,9 @@
|
||||
package com.hnac.hzims.ticket.processflow.service.impl; |
||||
package com.hnac.hzims.middle.processflow.service.impl; |
||||
|
||||
import com.hnac.hzims.ticket.processflow.entity.WorkflowOperationLog; |
||||
import com.hnac.hzims.ticket.processflow.mapper.WorkflowOperationLogMapper; |
||||
import com.hnac.hzims.ticket.processflow.service.WorkflowOperationLogService; |
||||
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
||||
import com.hnac.hzims.middle.processflow.entity.WorkflowOperationLog; |
||||
import com.hnac.hzims.middle.processflow.mapper.WorkflowOperationLogMapper; |
||||
import com.hnac.hzims.middle.processflow.service.WorkflowOperationLogService; |
||||
import org.springframework.stereotype.Service; |
||||
|
||||
/** |
@ -1,8 +1,8 @@
|
||||
package com.hnac.hzims.ticket.processflow.strategy.abstracts; |
||||
package com.hnac.hzims.middle.processflow.strategy.abstracts; |
||||
|
||||
import com.hnac.hzims.ticket.processflow.entity.ProcessType; |
||||
import com.hnac.hzims.ticket.processflow.service.ProcessTypeService; |
||||
import com.hnac.hzims.ticket.processflow.strategy.service.ProcessService; |
||||
import com.hnac.hzims.middle.processflow.entity.ProcessType; |
||||
import com.hnac.hzims.middle.processflow.service.ProcessTypeService; |
||||
import com.hnac.hzims.middle.processflow.strategy.service.ProcessService; |
||||
import lombok.extern.slf4j.Slf4j; |
||||
import org.springframework.beans.factory.annotation.Autowired; |
||||
|
@ -1,4 +1,4 @@
|
||||
package com.hnac.hzims.ticket.processflow.strategy.core; |
||||
package com.hnac.hzims.middle.processflow.strategy.core; |
||||
|
||||
import com.alibaba.fastjson.JSON; |
||||
import com.baomidou.mybatisplus.core.toolkit.StringUtils; |
@ -1,4 +1,4 @@
|
||||
package com.hnac.hzims.ticket.processflow.strategy.entity; |
||||
package com.hnac.hzims.middle.processflow.strategy.entity; |
||||
|
||||
import lombok.Data; |
||||
import lombok.experimental.Accessors; |
@ -1,7 +1,7 @@
|
||||
package com.hnac.hzims.ticket.processflow.strategy.service; |
||||
package com.hnac.hzims.middle.processflow.strategy.service; |
||||
|
||||
import com.hnac.hzims.ticket.processflow.strategy.entity.WorkflowQueue; |
||||
import com.hnac.hzims.vo.process.ProcessWorkFlowResponse; |
||||
import com.hnac.hzims.middle.processflow.strategy.entity.WorkflowQueue; |
||||
import com.hnac.hzims.common.to.process.ProcessWorkFlowResponse; |
||||
|
||||
/** |
||||
* @Author dfy |
@ -1,16 +1,18 @@
|
||||
package com.hnac.hzims.ticket.processflow.strategy.serviceimpl; |
||||
package com.hnac.hzims.middle.processflow.strategy.serviceimpl; |
||||
|
||||
|
||||
import com.hnac.hzims.middle.processflow.service.ProcessDictService; |
||||
import com.hnac.hzims.middle.processflow.strategy.abstracts.ProcessAbstractService; |
||||
import com.hnac.hzims.middle.processflow.strategy.entity.WorkflowQueue; |
||||
import com.hnac.hzims.operational.maintenance.feign.MaintenanceFeignClient; |
||||
import com.hnac.hzims.ticket.processflow.service.ProcessDictService; |
||||
import com.hnac.hzims.ticket.processflow.strategy.abstracts.ProcessAbstractService; |
||||
import com.hnac.hzims.ticket.processflow.strategy.entity.WorkflowQueue; |
||||
import com.hnac.hzims.vo.process.ProcessWorkFlowResponse; |
||||
import com.hnac.hzims.common.to.process.ProcessWorkFlowResponse; |
||||
import lombok.RequiredArgsConstructor; |
||||
import lombok.extern.slf4j.Slf4j; |
||||
import org.springblade.core.log.exception.ServiceException; |
||||
import org.springframework.stereotype.Service; |
||||
|
||||
import static com.hnac.hzims.ticket.processflow.constant.TicketProcessConstant.MAINTENANCE_KEY; |
||||
import static com.hnac.hzims.middle.processflow.constant.TicketProcessConstant.MAINTENANCE_KEY; |
||||
|
||||
|
||||
/** |
||||
* 日常维护实现类 |
Binary file not shown.
Binary file not shown.
Loading…
Reference in new issue