|
@@ -6,6 +6,7 @@ import java.util.List;
|
|
|
import java.util.stream.Collectors;
|
|
import java.util.stream.Collectors;
|
|
|
|
|
|
|
|
import org.apache.commons.lang3.StringUtils;
|
|
import org.apache.commons.lang3.StringUtils;
|
|
|
|
|
+import org.apache.ibatis.annotations.Param;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.stereotype.Service;
|
|
import org.springframework.stereotype.Service;
|
|
|
|
|
|
|
@@ -125,7 +126,7 @@ public class ApprovalService extends BaseService<Approval> {
|
|
|
private List<Department> getPendingAuditDepts(Integer apply_id, List<String> userIdArr, List<Approval> approvals) {
|
|
private List<Department> getPendingAuditDepts(Integer apply_id, List<String> userIdArr, List<Approval> approvals) {
|
|
|
//总共需要审核的部门
|
|
//总共需要审核的部门
|
|
|
List<Department> allDepts = departmentService.getAllUserDepts(userIdArr);
|
|
List<Department> allDepts = departmentService.getAllUserDepts(userIdArr);
|
|
|
- if (approvals.size() == 0){
|
|
|
|
|
|
|
+ if (approvals.size() == 0) {
|
|
|
try {
|
|
try {
|
|
|
throw new Exception("没有审批流程");
|
|
throw new Exception("没有审批流程");
|
|
|
} catch (Exception e) {
|
|
} catch (Exception e) {
|
|
@@ -308,6 +309,21 @@ public class ApprovalService extends BaseService<Approval> {
|
|
|
return approvals;
|
|
return approvals;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+ //查询流程信息
|
|
|
|
|
+ public List<Approval> getApprovalList(Integer apply_id, String dictType, String approveStatusType) {
|
|
|
|
|
+ Example example = new Example(Approval.class);
|
|
|
|
|
+ Example.Criteria criteria = example.createCriteria();
|
|
|
|
|
+ criteria.andEqualTo("apply_id", apply_id);
|
|
|
|
|
+ criteria.andEqualTo("type", dictType);
|
|
|
|
|
+ List<Approval> approvals = this.selectByExample(example);
|
|
|
|
|
+ for (Approval approval : approvals) {
|
|
|
|
|
+ if (StringUtils.isNotBlank(approval.getBefore_approvalstatus())) {
|
|
|
|
|
+ approval.setBefore_approvalstatus_str(dictionaryItemService.findNameByTypeAndValue(approveStatusType, approval.getBefore_approvalstatus()));
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
|
|
+ return approvals;
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
public List<CenterBusiness> getCenterBusiness(BusinessSearchDto businessSearchDto) {
|
|
public List<CenterBusiness> getCenterBusiness(BusinessSearchDto businessSearchDto) {
|
|
|
return approvalDao.getCenterBusiness(businessSearchDto);
|
|
return approvalDao.getCenterBusiness(businessSearchDto);
|
|
|
}
|
|
}
|
|
@@ -355,6 +371,10 @@ public class ApprovalService extends BaseService<Approval> {
|
|
|
return approvalDao.getBusinessAcceptNum(businessSearchDto);
|
|
return approvalDao.getBusinessAcceptNum(businessSearchDto);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+ public List<Approval> selectAllApproval(String type) {
|
|
|
|
|
+ return approvalDao.selectAllApproval(type);
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
/**
|
|
/**
|
|
|
* 获取流程信息
|
|
* 获取流程信息
|
|
|
*
|
|
*
|