|
@@ -4,8 +4,10 @@ import com.alibaba.fastjson.JSON;
|
|
import com.jeeplus.common.web.BaseController;
|
|
import com.jeeplus.common.web.BaseController;
|
|
import com.jeeplus.modules.act.entity.Act;
|
|
import com.jeeplus.modules.act.entity.Act;
|
|
import com.jeeplus.modules.act.service.ActTaskService;
|
|
import com.jeeplus.modules.act.service.ActTaskService;
|
|
|
|
+import com.jeeplus.modules.centerservice.enums.TaskAliasEnum;
|
|
import com.jeeplus.modules.sys.utils.UserUtils;
|
|
import com.jeeplus.modules.sys.utils.UserUtils;
|
|
import com.jeeplus.modules.workreimbursement.entity.WorkReimbursement;
|
|
import com.jeeplus.modules.workreimbursement.entity.WorkReimbursement;
|
|
|
|
+import com.jeeplus.modules.workreimbursement.service.WorkReimbursementService;
|
|
import com.jeeplus.modules.workreimbursement.web.WorkReimbursementController;
|
|
import com.jeeplus.modules.workreimbursement.web.WorkReimbursementController;
|
|
import org.activiti.engine.HistoryService;
|
|
import org.activiti.engine.HistoryService;
|
|
import org.activiti.engine.history.HistoricProcessInstance;
|
|
import org.activiti.engine.history.HistoricProcessInstance;
|
|
@@ -15,10 +17,7 @@ import org.springframework.beans.factory.annotation.Autowired;
|
|
import org.springframework.stereotype.Controller;
|
|
import org.springframework.stereotype.Controller;
|
|
import org.springframework.ui.Model;
|
|
import org.springframework.ui.Model;
|
|
import org.springframework.validation.support.BindingAwareModelMap;
|
|
import org.springframework.validation.support.BindingAwareModelMap;
|
|
-import org.springframework.web.bind.annotation.RequestBody;
|
|
|
|
-import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
|
-import org.springframework.web.bind.annotation.RequestMethod;
|
|
|
|
-import org.springframework.web.bind.annotation.ResponseBody;
|
|
|
|
|
|
+import org.springframework.web.bind.annotation.*;
|
|
import org.springframework.web.servlet.mvc.support.RedirectAttributes;
|
|
import org.springframework.web.servlet.mvc.support.RedirectAttributes;
|
|
import org.springframework.web.servlet.mvc.support.RedirectAttributesModelMap;
|
|
import org.springframework.web.servlet.mvc.support.RedirectAttributesModelMap;
|
|
|
|
|
|
@@ -41,6 +40,20 @@ public class TranspondController extends BaseController {
|
|
private ActTaskService actTaskService;
|
|
private ActTaskService actTaskService;
|
|
@Autowired
|
|
@Autowired
|
|
private WorkReimbursementController workReimbursementController;
|
|
private WorkReimbursementController workReimbursementController;
|
|
|
|
+ @Autowired
|
|
|
|
+ private WorkReimbursementService workReimbursementService;
|
|
|
|
+
|
|
|
|
+ @RequestMapping(value = "getById", method = RequestMethod.GET)
|
|
|
|
+ @ResponseBody
|
|
|
|
+ public Object getById(@RequestParam String id, @RequestParam String processDefKey) {
|
|
|
|
+ TaskAliasEnum taskAliasEnum = TaskAliasEnum.getByCcpmContains(processDefKey);
|
|
|
|
+ // 报销
|
|
|
|
+ if (taskAliasEnum.getCcpmTaskAlias().equals(TaskAliasEnum.REIMBURSEMENT.getCcpmTaskAlias())) {
|
|
|
|
+ WorkReimbursement workReimbursement = workReimbursementService.get(id);
|
|
|
|
+ return workReimbursement;
|
|
|
|
+ }
|
|
|
|
+ return null;
|
|
|
|
+ }
|
|
|
|
|
|
/**
|
|
/**
|
|
* 审核分发操作
|
|
* 审核分发操作
|