...
This commit is contained in:
parent
4638a6ad94
commit
80cb1b7570
|
@ -5,13 +5,13 @@ import com.google.gson.Gson;
|
||||||
import com.google.gson.JsonElement;
|
import com.google.gson.JsonElement;
|
||||||
import io.renren.modules.processForm.service.ApiGatewayService;
|
import io.renren.modules.processForm.service.ApiGatewayService;
|
||||||
import io.renren.modules.resource.dto.ResourceDTO;
|
import io.renren.modules.resource.dto.ResourceDTO;
|
||||||
|
import io.renren.modules.resource.service.ResourceService;
|
||||||
import io.renren.modules.resourceMountApply.dto.TResourceMountApplyDTO;
|
import io.renren.modules.resourceMountApply.dto.TResourceMountApplyDTO;
|
||||||
import io.renren.modules.sys.dto.SysDeptDTO;
|
import io.renren.modules.sys.dto.SysDeptDTO;
|
||||||
import io.renren.modules.sys.dto.SysRoleDTO;
|
import io.renren.modules.sys.dto.SysRoleDTO;
|
||||||
import io.renren.modules.sys.dto.SysUserDTO;
|
import io.renren.modules.sys.dto.SysUserDTO;
|
||||||
import io.renren.modules.sys.service.SysDeptService;
|
import io.renren.modules.sys.service.SysDeptService;
|
||||||
import io.renren.modules.sys.service.SysRoleService;
|
import io.renren.modules.sys.service.SysRoleService;
|
||||||
import io.renren.modules.sys.service.SysRoleUserService;
|
|
||||||
import io.renren.modules.sys.service.SysUserService;
|
import io.renren.modules.sys.service.SysUserService;
|
||||||
import org.activiti.engine.TaskService;
|
import org.activiti.engine.TaskService;
|
||||||
import org.activiti.engine.delegate.*;
|
import org.activiti.engine.delegate.*;
|
||||||
|
@ -47,6 +47,8 @@ public class ResourceOwnerListener implements TaskListener, ExecutionListener, A
|
||||||
private ApiGatewayService apiGatewayService;
|
private ApiGatewayService apiGatewayService;
|
||||||
@Autowired
|
@Autowired
|
||||||
private SysDeptService sysDeptService;
|
private SysDeptService sysDeptService;
|
||||||
|
@Autowired
|
||||||
|
private ResourceService resourceService;
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void notify(DelegateExecution execution) throws Exception {
|
public void notify(DelegateExecution execution) throws Exception {
|
||||||
|
@ -108,8 +110,15 @@ public class ResourceOwnerListener implements TaskListener, ExecutionListener, A
|
||||||
TResourceMountApplyDTO resourceMountApplyDTO = gson.fromJson(jsonElement, TResourceMountApplyDTO.class);
|
TResourceMountApplyDTO resourceMountApplyDTO = gson.fromJson(jsonElement, TResourceMountApplyDTO.class);
|
||||||
Long resourceID = resourceMountApplyDTO.getResourceDTO().getId();
|
Long resourceID = resourceMountApplyDTO.getResourceDTO().getId();
|
||||||
apiGatewayService.registerApi2Gateway(String.valueOf(resourceID));
|
apiGatewayService.registerApi2Gateway(String.valueOf(resourceID));
|
||||||
|
|
||||||
|
ResourceDTO re = resourceMountApplyDTO.getResourceDTO();
|
||||||
|
if (re != null) {
|
||||||
|
re.setDelFlag(0);
|
||||||
|
resourceService.update(re);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 节点创建时动态分配资源部门审核人
|
* 节点创建时动态分配资源部门审核人
|
||||||
*
|
*
|
||||||
|
|
Loading…
Reference in New Issue