|
@@ -35,13 +35,14 @@ public class ReimbursementService {
|
|
|
* @return
|
|
|
* @throws Exception
|
|
|
*/
|
|
|
- public WorkReimbursement getReimbursementById(String id) throws Exception{
|
|
|
+ public WorkReimbursement getReimbursementById(String id, String processDefKey) throws Exception{
|
|
|
WorkReimbursement workReimbursement = new WorkReimbursement();
|
|
|
if (StringUtils.isNotBlank(id)) {
|
|
|
- Object res = reimbursementRequest.getById(id);
|
|
|
+ Object res = reimbursementRequest.getById(id, processDefKey);
|
|
|
if(Objects.nonNull(res)) {
|
|
|
Map<String,Object> reim = JSONObject.parseObject(JSON.toJSONString(res));
|
|
|
workReimbursement = convertReimbursement(reim); // 格式转换
|
|
|
+ workReimbursement.setType(processDefKey);
|
|
|
}
|
|
|
}
|
|
|
return workReimbursement;
|
|
@@ -222,9 +223,9 @@ public class ReimbursementService {
|
|
|
* 报销审核
|
|
|
* @return
|
|
|
*/
|
|
|
- public Map<String,Object> auditFunc(String id,String flag,String comment) {
|
|
|
+ public Map<String,Object> auditFunc(String id,String flag,String comment, String processDefKey) {
|
|
|
Map<String,Object> res = new HashMap<>();
|
|
|
- Object o = reimbursementRequest.auditFunc(id, flag, comment);
|
|
|
+ Object o = reimbursementRequest.auditFunc(id, flag, comment, processDefKey);
|
|
|
if (Objects.nonNull(o)) {
|
|
|
res.putAll(JSONObject.parseObject(JSON.toJSONString(o)));
|
|
|
}
|