|
|
|
@ -11,7 +11,11 @@ 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.TicketService; |
|
|
|
|
import lombok.RequiredArgsConstructor; |
|
|
|
|
import org.springblade.core.secure.utils.AuthUtil; |
|
|
|
|
import org.springblade.core.tool.api.R; |
|
|
|
|
import org.springblade.flow.core.entity.BladeFlow; |
|
|
|
|
import org.springblade.flow.core.feign.IFlowClient; |
|
|
|
|
import org.springframework.beans.factory.annotation.Autowired; |
|
|
|
|
import org.springframework.data.redis.core.RedisTemplate; |
|
|
|
|
import org.springframework.web.bind.annotation.GetMapping; |
|
|
|
@ -19,7 +23,9 @@ import org.springframework.web.bind.annotation.PathVariable;
|
|
|
|
|
import org.springframework.web.bind.annotation.RequestMapping; |
|
|
|
|
import org.springframework.web.bind.annotation.RestController; |
|
|
|
|
|
|
|
|
|
import java.util.HashMap; |
|
|
|
|
import java.util.List; |
|
|
|
|
import java.util.Map; |
|
|
|
|
import java.util.stream.Collectors; |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
@ -30,23 +36,27 @@ import java.util.stream.Collectors;
|
|
|
|
|
* @author dfy |
|
|
|
|
* @since 2023-03-29 |
|
|
|
|
*/ |
|
|
|
|
@RequiredArgsConstructor |
|
|
|
|
@RestController |
|
|
|
|
@RequestMapping("/processflow/process-type") |
|
|
|
|
public class ProcessTypeController { |
|
|
|
|
|
|
|
|
|
@Autowired |
|
|
|
|
private TicketProperties ticketProperties; |
|
|
|
|
|
|
|
|
|
private final TicketProperties ticketProperties; |
|
|
|
|
|
|
|
|
|
@Autowired |
|
|
|
|
private ProcessTypeService processTypeService; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@Autowired |
|
|
|
|
private List<TicketService> ticketServiceList; |
|
|
|
|
private final ProcessTypeService processTypeService; |
|
|
|
|
|
|
|
|
|
@Autowired |
|
|
|
|
private RedisTemplate redisTemplate; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
private final List<TicketService> ticketServiceList; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
private final RedisTemplate redisTemplate; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
private final IFlowClient flowClient; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@GetMapping("/add") |
|
|
|
@ -93,5 +103,24 @@ public class ProcessTypeController {
|
|
|
|
|
System.out.println(1/0); |
|
|
|
|
return R.data(list); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@OperationAnnotation(title = "工作流审批类型", operatorType = OperatorType.MOBILE, businessType = BusinessType.GENCODE, |
|
|
|
|
action ="审批流处理") |
|
|
|
|
@GetMapping("/build") |
|
|
|
|
public void addList() { |
|
|
|
|
Map<String,Object> params = new HashMap<String, Object>(2) {{ |
|
|
|
|
put("taskId", "1"); |
|
|
|
|
put("signUserIds", "admin"); |
|
|
|
|
}}; |
|
|
|
|
R<BladeFlow> result = flowClient |
|
|
|
|
.startProcessInstanceContainNameByKey( |
|
|
|
|
"newFirstWorkTicket","workTicket:task:" + "11", |
|
|
|
|
"工作流处理业务", |
|
|
|
|
params); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
System.out.println(result.getData()); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|