Ver código fonte

modify:

1. 增加流程实例编码;
tags/24080901^0
WendyYang 3 meses atrás
pai
commit
492332ceb6
2 arquivos alterados com 13 adições e 4 exclusões
  1. +12
    -4
      hz-pm-api/src/main/java/com/hz/pm/api/external/controller/MhSyncController.java
  2. +1
    -0
      hz-pm-api/src/main/java/com/hz/pm/api/sys/manage/ProcessModelManage.java

+ 12
- 4
hz-pm-api/src/main/java/com/hz/pm/api/external/controller/MhSyncController.java Ver arquivo

@@ -1,13 +1,14 @@
package com.hz.pm.api.external.controller;

import com.hz.pm.api.common.enumeration.ProjectProcessType;
import com.hz.pm.api.sys.manage.ProcessModelManage;
import com.hz.pm.api.user.manage.SyncMhUserOrgManage;
import com.hz.pm.api.user.util.LoginUserUtil;
import com.wflow.bean.entity.WflowModels;
import io.swagger.annotations.Api;
import lombok.RequiredArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.bind.annotation.*;

import java.time.LocalDateTime;

@@ -26,6 +27,13 @@ import java.time.LocalDateTime;
public class MhSyncController {

private final SyncMhUserOrgManage syncMhUserOrgManage;
private final ProcessModelManage processModelManage;

@GetMapping("/wflow/{type}")
public WflowModels syncWflow(@PathVariable Integer type) {
return processModelManage.getWflowModelsNoNull(ProjectProcessType.getNoNull(type),
LoginUserUtil.loginUserDetail().getMhUnitId());
}

@GetMapping("/users")
public void getUsers(@RequestParam(value = "syncTime", required = false)


+ 1
- 0
hz-pm-api/src/main/java/com/hz/pm/api/sys/manage/ProcessModelManage.java Ver arquivo

@@ -46,6 +46,7 @@ public class ProcessModelManage {
List<String> unitIdPathsStr = CollUtils.convert(unitIdPaths, String::valueOf);
String orderSql = String.format(" order by field(region_code, %s) desc limit 1",
CollUtils.join(unitIdPaths, w -> "'" + w + "'", StrUtil.COMMA));
log.info("单位ID路径:{}", unitIdPathsStr);
return processModelService.getOne(Wrappers.lambdaQuery(WflowModels.class)
.eq(WflowModels::getProcessType, processStage.getCode())
.in(WflowModels::getRegionCode, unitIdPathsStr)


Carregando…
Cancelar
Salvar