|
|
@ -22,7 +22,6 @@ import com.yxt.anrui.fin.api.finuncollectedreceivablesdetailedjr.FinUncollectedR |
|
|
|
import com.yxt.anrui.fin.api.kingdee.FinKingDeeFeign; |
|
|
|
import com.yxt.anrui.fin.api.kingdee.bdcustomer.BdCustomer; |
|
|
|
import com.yxt.anrui.fin.api.kingdee.voucher.GeneralVoucher; |
|
|
|
import com.yxt.anrui.fin.api.kingdee.voucher.SceneCodeEnum; |
|
|
|
import com.yxt.anrui.flowable.api.flow.FlowableFeign; |
|
|
|
import com.yxt.anrui.flowable.api.flow.UpdateFlowFieldVo; |
|
|
|
import com.yxt.anrui.flowable.api.flow2.FlowDelegateQuery; |
|
|
@ -33,7 +32,8 @@ import com.yxt.anrui.flowable.api.flowtask.LatestTaskVo; |
|
|
|
import com.yxt.anrui.flowable.api.utils.ProcDefEnum; |
|
|
|
import com.yxt.anrui.flowable.sqloperationsymbol.BusinessVariables; |
|
|
|
import com.yxt.anrui.portal.api.flow.PCHistTaskListAndCommentList; |
|
|
|
import com.yxt.anrui.portal.api.sysorganization.*; |
|
|
|
import com.yxt.anrui.portal.api.sysorganization.SysOrganizationFeign; |
|
|
|
import com.yxt.anrui.portal.api.sysorganization.SysOrganizationVo; |
|
|
|
import com.yxt.anrui.portal.api.sysstafforg.SysStaffOrg; |
|
|
|
import com.yxt.anrui.portal.api.sysstafforg.SysStaffOrgFeign; |
|
|
|
import com.yxt.anrui.portal.api.sysuser.PrivilegeQuery; |
|
|
@ -1269,9 +1269,9 @@ public class LoanBuckleApplyService extends MybatisBaseService<LoanBuckleApplyMa |
|
|
|
List<Map<String, Object>> newList = new ArrayList<>(); |
|
|
|
LoanBuckleApply data = fetchBySid(sid); |
|
|
|
if (null != data) { |
|
|
|
if (!data.getNodeState().equals("已办结")) { |
|
|
|
return rb.setMsg("无法下载没有办结的审批记录。"); |
|
|
|
} |
|
|
|
// if (!data.getNodeState().equals("已办结")) {
|
|
|
|
// return rb.setMsg("无法下载没有办结的审批记录。");
|
|
|
|
// }
|
|
|
|
List<LoanFile> files = loanFileService.selectByLinkSid(data.getSid(), LoanFileEnum.BUCKLE_APPLY.getAttachType()); |
|
|
|
if (!files.isEmpty()) { |
|
|
|
List<String> stringList = new ArrayList<>(); |
|
|
@ -1306,6 +1306,7 @@ public class LoanBuckleApplyService extends MybatisBaseService<LoanBuckleApplyMa |
|
|
|
dataMap.put("filePath", filePath); |
|
|
|
} |
|
|
|
//获取审批记录
|
|
|
|
if (data.getNodeState().equals("已办结")) { |
|
|
|
if (StringUtils.isNotBlank(data.getProcInstId())) { |
|
|
|
List<PCHistTaskListAndCommentList> flowRecordVo = flowableFeignPro.flowRecordAndComment(data.getProcInstId(), "1").getData(); |
|
|
|
List<MonthlyAccrualSourceLCVo> sourceLCVos = new ArrayList<>(); |
|
|
@ -1350,6 +1351,11 @@ public class LoanBuckleApplyService extends MybatisBaseService<LoanBuckleApplyMa |
|
|
|
sourceLCVos.sort(comparing(MonthlyAccrualSourceLCVo::getSpsj)); |
|
|
|
dataMap.put("lcList", sourceLCVos); |
|
|
|
} |
|
|
|
} else { |
|
|
|
List<MonthlyAccrualSourceLCVo> sourceLCVos = new ArrayList<>(); |
|
|
|
dataMap.put("lcList", sourceLCVos); |
|
|
|
} |
|
|
|
|
|
|
|
List<LoanBuckleApplyRecord> records = loanBuckleApplyRecordService.selByMainSid(sid); |
|
|
|
if (!records.isEmpty()) { |
|
|
|
int sortNo = 1; |
|
|
|