|
|
@@ -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) |
|
|
|