|
@ -1,9 +1,64 @@ |
|
|
package com.yxt.anrui.riskcenter.biz.loansecondarysalesapply; |
|
|
package com.yxt.anrui.riskcenter.biz.loansecondarysalesapply; |
|
|
|
|
|
|
|
|
import com.yxt.anrui.riskcenter.api.loansecondarysalesapply.LoanSecondarySalesApply; |
|
|
import cn.hutool.core.bean.BeanUtil; |
|
|
|
|
|
import cn.hutool.core.date.DateUtil; |
|
|
|
|
|
import com.alibaba.fastjson.JSON; |
|
|
|
|
|
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; |
|
|
|
|
|
import com.baomidou.mybatisplus.core.metadata.IPage; |
|
|
|
|
|
import com.google.common.util.concurrent.ThreadFactoryBuilder; |
|
|
|
|
|
import com.yxt.anrui.base.api.basevehmodelconfig.BaseVehmodelVo; |
|
|
|
|
|
import com.yxt.anrui.buscenter.api.bussalesorder.BusSalesOrder; |
|
|
|
|
|
import com.yxt.anrui.flowable.api.flow.FlowableFeign; |
|
|
|
|
|
import com.yxt.anrui.flowable.api.flow.UpdateFlowFieldVo; |
|
|
|
|
|
import com.yxt.anrui.flowable.api.flow2.FlowDelegateQuery; |
|
|
|
|
|
import com.yxt.anrui.flowable.api.flow2.FlowFeign; |
|
|
|
|
|
import com.yxt.anrui.flowable.api.flowtask.FlowTaskFeign; |
|
|
|
|
|
import com.yxt.anrui.flowable.api.flowtask.FlowTaskVo; |
|
|
|
|
|
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.sysorganization.SysOrganizationFeign; |
|
|
|
|
|
import com.yxt.anrui.portal.api.sysorganization.SysOrganizationVo; |
|
|
|
|
|
import com.yxt.anrui.portal.api.sysstafforg.SysStaffOrgFeign; |
|
|
|
|
|
import com.yxt.anrui.portal.api.sysuser.PrivilegeQuery; |
|
|
|
|
|
import com.yxt.anrui.portal.api.sysuser.SysUserFeign; |
|
|
|
|
|
import com.yxt.anrui.portal.api.sysuser.SysUserVo; |
|
|
|
|
|
import com.yxt.anrui.riskcenter.api.loanoverduefin.UrlQuery; |
|
|
|
|
|
import com.yxt.anrui.riskcenter.api.loanrestorereportapply.AlrepaidAndArrVo; |
|
|
|
|
|
import com.yxt.anrui.riskcenter.api.loanreturninboundapply.LoanReturnInboundApply; |
|
|
|
|
|
import com.yxt.anrui.riskcenter.api.loanreturninboundapply.LoanReturnInboundApplyDetailsVo; |
|
|
|
|
|
import com.yxt.anrui.riskcenter.api.loanreturninboundapply.LoanReturnInboundApplyQuery; |
|
|
|
|
|
import com.yxt.anrui.riskcenter.api.loanreturninboundapply.LoanReturnInboundApplyVo; |
|
|
|
|
|
import com.yxt.anrui.riskcenter.api.loanreturninboundapply.flowable.ReturnInboundApplyNodeVo; |
|
|
|
|
|
import com.yxt.anrui.riskcenter.api.loanreturninboundtrailer.LoanReturnInboundTrailer; |
|
|
|
|
|
import com.yxt.anrui.riskcenter.api.loanreturninboundtrailer.LoanReturnInboundTrailerDto; |
|
|
|
|
|
import com.yxt.anrui.riskcenter.api.loanreturnvehledger.LoanReturnVehLedger; |
|
|
|
|
|
import com.yxt.anrui.riskcenter.api.loansecondarysalesapply.*; |
|
|
|
|
|
import com.yxt.anrui.riskcenter.api.loansecondarysalesapply.flowable.*; |
|
|
|
|
|
import com.yxt.anrui.riskcenter.api.loansecondarysalescost.LoanSecondarySalesCostVo; |
|
|
|
|
|
import com.yxt.anrui.riskcenter.api.loansecondarysalesveh.LoanSecondarySalesVeh; |
|
|
|
|
|
import com.yxt.anrui.riskcenter.api.loansecondarysalesveh.LoanSecondarySalesVehVo; |
|
|
|
|
|
import com.yxt.anrui.riskcenter.biz.loanreturnvehledger.LoanReturnVehLedgerService; |
|
|
|
|
|
import com.yxt.anrui.riskcenter.biz.loansecondarysalescost.LoanSecondarySalesCostService; |
|
|
|
|
|
import com.yxt.anrui.riskcenter.biz.loansecondarysalesveh.LoanSecondarySalesVehService; |
|
|
|
|
|
import com.yxt.common.base.config.component.FileUploadComponent; |
|
|
import com.yxt.common.base.service.MybatisBaseService; |
|
|
import com.yxt.common.base.service.MybatisBaseService; |
|
|
|
|
|
import com.yxt.common.base.utils.PagerUtil; |
|
|
|
|
|
import com.yxt.common.core.query.PagerQuery; |
|
|
|
|
|
import com.yxt.common.core.result.ResultBean; |
|
|
|
|
|
import com.yxt.common.core.vo.PagerVo; |
|
|
|
|
|
import com.yxt.messagecenter.api.message.MessageFeign; |
|
|
|
|
|
import com.yxt.messagecenter.api.message.MessageFlowVo; |
|
|
|
|
|
import com.yxt.messagecenter.api.message.MessageFlowableQuery; |
|
|
|
|
|
import org.apache.commons.lang3.StringUtils; |
|
|
|
|
|
import org.apache.tomcat.util.threads.ThreadPoolExecutor; |
|
|
|
|
|
import org.springframework.beans.factory.annotation.Autowired; |
|
|
import org.springframework.stereotype.Service; |
|
|
import org.springframework.stereotype.Service; |
|
|
|
|
|
|
|
|
|
|
|
import java.util.*; |
|
|
|
|
|
import java.util.concurrent.*; |
|
|
|
|
|
import java.util.stream.Collectors; |
|
|
|
|
|
|
|
|
/** |
|
|
/** |
|
|
* @description: |
|
|
* @description: |
|
|
* @author: dimengzhe |
|
|
* @author: dimengzhe |
|
@ -11,4 +66,555 @@ import org.springframework.stereotype.Service; |
|
|
**/ |
|
|
**/ |
|
|
@Service |
|
|
@Service |
|
|
public class LoanSecondarySalesApplyService extends MybatisBaseService<LoanSecondarySalesApplyMapper, LoanSecondarySalesApply> { |
|
|
public class LoanSecondarySalesApplyService extends MybatisBaseService<LoanSecondarySalesApplyMapper, LoanSecondarySalesApply> { |
|
|
|
|
|
|
|
|
|
|
|
@Autowired |
|
|
|
|
|
private SysUserFeign sysUserFeign; |
|
|
|
|
|
@Autowired |
|
|
|
|
|
private FlowFeign flowFeign; |
|
|
|
|
|
@Autowired |
|
|
|
|
|
private FlowableFeign flowableFeign; |
|
|
|
|
|
@Autowired |
|
|
|
|
|
private FlowTaskFeign flowTaskFeign; |
|
|
|
|
|
@Autowired |
|
|
|
|
|
private MessageFeign messageFeign; |
|
|
|
|
|
@Autowired |
|
|
|
|
|
private LoanSecondarySalesCostService loanSecondarySalesCostService; |
|
|
|
|
|
@Autowired |
|
|
|
|
|
private LoanSecondarySalesVehService loanSecondarySalesVehService; |
|
|
|
|
|
@Autowired |
|
|
|
|
|
private SysOrganizationFeign sysOrganizationFeign; |
|
|
|
|
|
@Autowired |
|
|
|
|
|
private SysStaffOrgFeign sysStaffOrgFeign; |
|
|
|
|
|
@Autowired |
|
|
|
|
|
private FileUploadComponent fileUploadComponent; |
|
|
|
|
|
@Autowired |
|
|
|
|
|
private LoanReturnVehLedgerService loanReturnVehLedgerService; |
|
|
|
|
|
|
|
|
|
|
|
public PagerVo<LoanSecondarySalesApplyVo> listPageVo(PagerQuery<LoanSecondarySalesApplyQuery> pq) { |
|
|
|
|
|
LoanSecondarySalesApplyQuery query = pq.getParams(); |
|
|
|
|
|
QueryWrapper<LoanSecondarySalesApply> qw = new QueryWrapper<>(); |
|
|
|
|
|
if (query != null) { |
|
|
|
|
|
//分公司
|
|
|
|
|
|
if (StringUtils.isNotBlank(query.getUseOrgName())) { |
|
|
|
|
|
qw.like("la.useOrgName", query.getUseOrgName()); |
|
|
|
|
|
} |
|
|
|
|
|
//申请人
|
|
|
|
|
|
if (StringUtils.isNotBlank(query.getCreateByName())) { |
|
|
|
|
|
qw.like("la.createByName", query.getCreateByName()); |
|
|
|
|
|
} |
|
|
|
|
|
//申请部门
|
|
|
|
|
|
if (StringUtils.isNotBlank(query.getCreateDept())) { |
|
|
|
|
|
qw.like("la.createDept", query.getCreateDept()); |
|
|
|
|
|
} |
|
|
|
|
|
//贷款合同编号
|
|
|
|
|
|
if (StringUtils.isNotBlank(query.getLoanContractNo())) { |
|
|
|
|
|
qw.like("la.loanContractNo", query.getLoanContractNo()); |
|
|
|
|
|
} |
|
|
|
|
|
//ToDo:车架号
|
|
|
|
|
|
if (StringUtils.isNotBlank(query.getVinNo())) { |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
//车牌号
|
|
|
|
|
|
if (StringUtils.isNotBlank(query.getVehMark())) { |
|
|
|
|
|
} |
|
|
|
|
|
//贷款人
|
|
|
|
|
|
if (StringUtils.isNotBlank(query.getLoanName())) { |
|
|
|
|
|
qw.like("la.loanName", query.getLoanName()); |
|
|
|
|
|
} |
|
|
|
|
|
//资方
|
|
|
|
|
|
if (StringUtils.isNotBlank(query.getBankName())) { |
|
|
|
|
|
qw.like("la.bankName", query.getBankName()); |
|
|
|
|
|
} |
|
|
|
|
|
//资方合同编号
|
|
|
|
|
|
if (StringUtils.isNotBlank(query.getBankContractNo())) { |
|
|
|
|
|
qw.like("la.bankContractNo", query.getBankContractNo()); |
|
|
|
|
|
} |
|
|
|
|
|
//客户名称
|
|
|
|
|
|
if (StringUtils.isNotBlank(query.getCustomerName())) { |
|
|
|
|
|
qw.like("la.customerName", query.getCustomerName()); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
//办结日期
|
|
|
|
|
|
qw.apply(StringUtils.isNotBlank(query.getCloseDateStart()), "date_format (la.closeDate,'%Y-%m-%d') >= date_format('" + query.getCloseDateStart() + "','%Y-%m-%d')"). |
|
|
|
|
|
apply(StringUtils.isNotBlank(query.getCloseDateEnd()), "date_format (la.closeDate,'%Y-%m-%d') <= date_format('" + query.getCloseDateEnd() + "','%Y-%m-%d')" |
|
|
|
|
|
); |
|
|
|
|
|
//申请日期
|
|
|
|
|
|
qw.apply(StringUtils.isNotBlank(query.getCreateTimeStart()), "date_format (la.createTime,'%Y-%m-%d') >= date_format('" + query.getCreateTimeStart() + "','%Y-%m-%d')"). |
|
|
|
|
|
apply(StringUtils.isNotBlank(query.getCreateTimeEnd()), "date_format (la.createTime,'%Y-%m-%d') <= date_format('" + query.getCreateTimeEnd() + "','%Y-%m-%d')" |
|
|
|
|
|
); |
|
|
|
|
|
//========================================数据授权开始
|
|
|
|
|
|
if (StringUtils.isNotBlank(query.getMenuUrl())) { |
|
|
|
|
|
//=======================
|
|
|
|
|
|
PrivilegeQuery privilegeQuery = new PrivilegeQuery(); |
|
|
|
|
|
privilegeQuery.setOrgPath(query.getOrgPath()); |
|
|
|
|
|
privilegeQuery.setMenuUrl(query.getMenuUrl()); |
|
|
|
|
|
privilegeQuery.setUserSid(query.getUserSid()); |
|
|
|
|
|
ResultBean<String> defaultIdReltBean = sysUserFeign.selectPrivilegeLevel(privilegeQuery); |
|
|
|
|
|
if (StringUtils.isNotBlank(defaultIdReltBean.getData())) { |
|
|
|
|
|
//数据权限ID(1集团、2事业部、3分公司、4部门、5个人)
|
|
|
|
|
|
String orgSidPath = query.getOrgPath(); |
|
|
|
|
|
orgSidPath = orgSidPath + "/"; |
|
|
|
|
|
int i1 = orgSidPath.indexOf("/"); |
|
|
|
|
|
int i2 = orgSidPath.indexOf("/", i1 + 1); |
|
|
|
|
|
int i3 = orgSidPath.indexOf("/", i2 + 1); |
|
|
|
|
|
int i4 = orgSidPath.indexOf("/", i3 + 1); |
|
|
|
|
|
String orgLevelKey = defaultIdReltBean.getData(); |
|
|
|
|
|
if ("1".equals(orgLevelKey)) { |
|
|
|
|
|
orgSidPath = orgSidPath.substring(0, i1); |
|
|
|
|
|
qw.like("la.orgSidPath", orgSidPath); |
|
|
|
|
|
} else if ("2".equals(orgLevelKey)) { |
|
|
|
|
|
orgSidPath = orgSidPath.substring(0, i2); |
|
|
|
|
|
qw.like("la.orgSidPath", orgSidPath); |
|
|
|
|
|
} else if ("3".equals(orgLevelKey)) { |
|
|
|
|
|
orgSidPath = orgSidPath.substring(0, i3); |
|
|
|
|
|
qw.like("la.orgSidPath", orgSidPath); |
|
|
|
|
|
} else if ("4".equals(orgLevelKey)) { |
|
|
|
|
|
orgSidPath = orgSidPath.substring(0, i4); |
|
|
|
|
|
qw.like("la.orgSidPath", orgSidPath); |
|
|
|
|
|
} else if ("5".equals(orgLevelKey)) { |
|
|
|
|
|
qw.eq("la.createBySid", query.getUserSid()); |
|
|
|
|
|
} else { |
|
|
|
|
|
PagerVo<LoanSecondarySalesApplyVo> p = new PagerVo<>(); |
|
|
|
|
|
return p; |
|
|
|
|
|
} |
|
|
|
|
|
} else { |
|
|
|
|
|
PagerVo<LoanSecondarySalesApplyVo> p = new PagerVo<>(); |
|
|
|
|
|
return p; |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
qw.orderByDesc("la.createTime"); |
|
|
|
|
|
IPage<LoanSecondarySalesApply> page = PagerUtil.queryToPage(pq); |
|
|
|
|
|
IPage<LoanSecondarySalesApplyVo> pagging = baseMapper.selectPageVo(page, qw); |
|
|
|
|
|
List<LoanSecondarySalesApplyVo> paggingRecords = pagging.getRecords(); |
|
|
|
|
|
paggingRecords.removeAll(Collections.singleton(null)); |
|
|
|
|
|
if (!paggingRecords.isEmpty()) { |
|
|
|
|
|
for (LoanSecondarySalesApplyVo record : pagging.getRecords()) { |
|
|
|
|
|
if (query.getUserSid().equals(record.getCreateBySid())) { |
|
|
|
|
|
record.setAllowModify(true); |
|
|
|
|
|
} else { |
|
|
|
|
|
record.setAllowModify(false); |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
PagerVo<LoanSecondarySalesApplyVo> p = PagerUtil.pageToVo(pagging, null); |
|
|
|
|
|
return p; |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public ResultBean<List<LoanSecondarySalesApplyNodeVo>> getPreviousNodesForReject(LoanSecondarySalesApplyNodeQuery query) { |
|
|
|
|
|
ResultBean<List<LoanSecondarySalesApplyNodeVo>> rb = ResultBean.fireFail(); |
|
|
|
|
|
BusinessVariables bv = new BusinessVariables(); |
|
|
|
|
|
BeanUtil.copyProperties(query, bv); |
|
|
|
|
|
LoanSecondarySalesApply loanSecondarySalesApply = fetchBySid(query.getBusinessSid()); |
|
|
|
|
|
bv.setModelId(loanSecondarySalesApply.getProcDefId()); |
|
|
|
|
|
ResultBean<List<Map<String, Object>>> resultBean = flowTaskFeign.getPreviousNodesForReject(bv); |
|
|
|
|
|
//判断数组是否为空,若为空则赋值,若不为空,则遍历循环将map中的数据赋值给TemplateApplyNodeVo
|
|
|
|
|
|
List<LoanSecondarySalesApplyNodeVo> voList = Optional.ofNullable(resultBean.getData()).orElse(new ArrayList<>()).stream().map(m -> JSON.parseObject(JSON.toJSONString(m), LoanSecondarySalesApplyNodeVo.class)).collect(Collectors.toList()); |
|
|
|
|
|
return rb.success().setData(voList); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public ResultBean<List<LoanSecondarySalesApplyNodeVo>> getNextNodesForSubmit(LoanSecondarySalesApplyNodeQuery query) { |
|
|
|
|
|
ResultBean<List<LoanSecondarySalesApplyNodeVo>> rb = ResultBean.fireFail(); |
|
|
|
|
|
BusinessVariables bv = new BusinessVariables(); |
|
|
|
|
|
BeanUtil.copyProperties(query, bv); |
|
|
|
|
|
LoanSecondarySalesApply loanSecondarySalesApply = fetchBySid(query.getBusinessSid()); |
|
|
|
|
|
bv.setModelId(loanSecondarySalesApply.getProcDefId()); |
|
|
|
|
|
ResultBean<List<Map<String, Object>>> resultBean = flowTaskFeign.getNextNodesForSubmit(bv); |
|
|
|
|
|
//判断数组是否为空,若为空则赋值,若不为空,则遍历循环将map中的数据赋值给TemplateApplyNodeVo
|
|
|
|
|
|
List<LoanSecondarySalesApplyNodeVo> voList = Optional.ofNullable(resultBean.getData()).orElse(new ArrayList<>()).stream().map(m -> JSON.parseObject(JSON.toJSONString(m), LoanSecondarySalesApplyNodeVo.class)).collect(Collectors.toList()); |
|
|
|
|
|
return rb.success().setData(voList); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public ResultBean taskReject(LoanSecondarySalesApplyTaskQuery query) { |
|
|
|
|
|
ResultBean rb = ResultBean.fireFail(); |
|
|
|
|
|
String businessSid = query.getBusinessSid(); |
|
|
|
|
|
LoanSecondarySalesApply loanSecondarySalesApply = fetchBySid(businessSid); |
|
|
|
|
|
if (loanSecondarySalesApply == null) { |
|
|
|
|
|
return rb.setMsg("该申请不存在"); |
|
|
|
|
|
} |
|
|
|
|
|
String businessTaskId = loanSecondarySalesApply.getTaskId(); |
|
|
|
|
|
if (StringUtils.isNotBlank(businessTaskId)) { |
|
|
|
|
|
if (businessTaskId.equals(query.getTaskId())) { |
|
|
|
|
|
if (StringUtils.isBlank(query.getComment())) { |
|
|
|
|
|
return rb.setMsg("请填写意见"); |
|
|
|
|
|
} |
|
|
|
|
|
if (StringUtils.isBlank(query.getUserSid())) { |
|
|
|
|
|
return rb.setMsg("参数错误:userSid"); |
|
|
|
|
|
} |
|
|
|
|
|
FlowTaskVo flowTaskVo = new FlowTaskVo(); |
|
|
|
|
|
BeanUtil.copyProperties(query, flowTaskVo); |
|
|
|
|
|
Map<String, Object> variables = new HashMap<>(); |
|
|
|
|
|
Map<String, Object> appMap = new HashMap<>(); |
|
|
|
|
|
appMap.put("sid", businessSid); |
|
|
|
|
|
variables.put("app", appMap); |
|
|
|
|
|
ResultBean<UpdateFlowFieldVo> resultBean = flowableFeign.taskReject(flowTaskVo); |
|
|
|
|
|
if (!resultBean.getSuccess()) { |
|
|
|
|
|
return rb.setMsg(resultBean.getMsg()); |
|
|
|
|
|
} |
|
|
|
|
|
UpdateFlowFieldVo ufVo = resultBean.getData(); |
|
|
|
|
|
Map<String, Object> map = BeanUtil.beanToMap(ufVo); |
|
|
|
|
|
//更新业务中的流程相关的参数
|
|
|
|
|
|
updateFlowFiled(map); |
|
|
|
|
|
//极光推送
|
|
|
|
|
|
loanSecondarySalesApply = fetchBySid(businessSid); |
|
|
|
|
|
MessageFlowableQuery messageFlowableQuery = new MessageFlowableQuery(); |
|
|
|
|
|
MessageFlowVo messageFlowVo = new MessageFlowVo(); |
|
|
|
|
|
BeanUtil.copyProperties(ufVo, messageFlowVo); |
|
|
|
|
|
String procId = loanSecondarySalesApply.getProcInstId(); |
|
|
|
|
|
messageFlowVo.setProcInsId(procId); |
|
|
|
|
|
messageFlowVo.setProcDefId(loanSecondarySalesApply.getProcDefId()); |
|
|
|
|
|
messageFlowableQuery.setUfVo(messageFlowVo); |
|
|
|
|
|
messageFlowableQuery.setAppMap(appMap); |
|
|
|
|
|
messageFlowableQuery.setBusinessSid(businessSid); |
|
|
|
|
|
messageFlowableQuery.setModuleName("交回车辆二次销售申请"); |
|
|
|
|
|
ResultBean<List<LatestTaskVo>> listResultBean = flowTaskFeign.getLatestTasks(procId); |
|
|
|
|
|
String nextName = listResultBean.getData().get(0).getName_(); |
|
|
|
|
|
String nextNodeUserSids = listResultBean.getData().get(0).getASSIGNEE_(); |
|
|
|
|
|
if ("发起申请".equals(nextName)) { |
|
|
|
|
|
messageFlowableQuery.setMsgContent("您提交的" + messageFlowableQuery.getModuleName() + "已被驳回,请重新提交"); |
|
|
|
|
|
} else { |
|
|
|
|
|
messageFlowableQuery.setMsgContent(loanSecondarySalesApply.getCreateByName() + "提交的" + messageFlowableQuery.getModuleName() + ",请审批"); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
messageFlowableQuery.setMsgTitle("交回车辆二次销售申请"); |
|
|
|
|
|
ResultBean<String> stringResultBean = messageFeign.pushMessage(messageFlowableQuery); |
|
|
|
|
|
return rb.success(); |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
return rb.setMsg("操作失败!提交的数据不一致!"); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public ResultBean revokeProcess(LoanSecondarySalesApplyTaskQuery query) { |
|
|
|
|
|
ResultBean rb = ResultBean.fireFail(); |
|
|
|
|
|
if (StringUtils.isBlank(query.getUserSid())) { |
|
|
|
|
|
return rb.setMsg("参数错误:userSid"); |
|
|
|
|
|
} |
|
|
|
|
|
LoanSecondarySalesApply loanSecondarySalesApply = fetchBySid(query.getBusinessSid()); |
|
|
|
|
|
String businessTaskId = loanSecondarySalesApply.getTaskId(); |
|
|
|
|
|
if (StringUtils.isNotBlank(businessTaskId)) { |
|
|
|
|
|
if (businessTaskId.equals(query.getTaskId())) { |
|
|
|
|
|
FlowTaskVo flowTaskVo = new FlowTaskVo(); |
|
|
|
|
|
BeanUtil.copyProperties(query, flowTaskVo); |
|
|
|
|
|
ResultBean<UpdateFlowFieldVo> resultBean = flowableFeign.revokeProcess(flowTaskVo); |
|
|
|
|
|
if (!resultBean.getSuccess()) { |
|
|
|
|
|
return rb.setMsg(resultBean.getMsg()); |
|
|
|
|
|
} |
|
|
|
|
|
updateFlowFiled(BeanUtil.beanToMap(resultBean.getData())); |
|
|
|
|
|
return rb.success().setData(resultBean.getData()); |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
return rb.setMsg("操作失败,提交的数据不一致!"); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
private int updateFlowFiled(Map<String, Object> beanToMap) { |
|
|
|
|
|
return baseMapper.updateFlowFiled(beanToMap); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public ResultBean breakProcess(LoanSecondarySalesApplyTaskQuery query) { |
|
|
|
|
|
ResultBean rb = ResultBean.fireFail(); |
|
|
|
|
|
if (StringUtils.isBlank(query.getInstanceId())) { |
|
|
|
|
|
return rb.setMsg("参数错误:instanceId"); |
|
|
|
|
|
} |
|
|
|
|
|
if (StringUtils.isBlank(query.getUserSid())) { |
|
|
|
|
|
return rb.setMsg("参数错误:userSid"); |
|
|
|
|
|
} |
|
|
|
|
|
if (StringUtils.isBlank(query.getComment())) { |
|
|
|
|
|
return rb.setMsg("请填写意见"); |
|
|
|
|
|
} |
|
|
|
|
|
LoanSecondarySalesApply loanSecondarySalesApply = fetchBySid(query.getBusinessSid()); |
|
|
|
|
|
String businessTaskId = loanSecondarySalesApply.getTaskId(); |
|
|
|
|
|
if (query.getUserSid().equals(loanSecondarySalesApply.getCreateBySid())) { |
|
|
|
|
|
FlowTaskVo flowTaskVo = new FlowTaskVo(); |
|
|
|
|
|
BeanUtil.copyProperties(query, flowTaskVo); |
|
|
|
|
|
ResultBean<UpdateFlowFieldVo> resultBean = flowableFeign.breakProcess(flowTaskVo); |
|
|
|
|
|
if (!resultBean.getSuccess()) { |
|
|
|
|
|
return rb.setMsg(resultBean.getMsg()); |
|
|
|
|
|
} |
|
|
|
|
|
Map<String, Object> map = BeanUtil.beanToMap(resultBean.getData()); |
|
|
|
|
|
updateFlowFiled(map); |
|
|
|
|
|
return rb.success().setData(resultBean.getData()); |
|
|
|
|
|
} else { |
|
|
|
|
|
if (StringUtils.isNotBlank(businessTaskId)) { |
|
|
|
|
|
if (businessTaskId.equals(query.getTaskId())) { |
|
|
|
|
|
FlowTaskVo flowTaskVo = new FlowTaskVo(); |
|
|
|
|
|
BeanUtil.copyProperties(query, flowTaskVo); |
|
|
|
|
|
ResultBean<UpdateFlowFieldVo> resultBean = flowableFeign.breakProcess(flowTaskVo); |
|
|
|
|
|
if (!resultBean.getSuccess()) { |
|
|
|
|
|
return rb.setMsg(resultBean.getMsg()); |
|
|
|
|
|
} |
|
|
|
|
|
Map<String, Object> map = BeanUtil.beanToMap(resultBean.getData()); |
|
|
|
|
|
updateFlowFiled(map); |
|
|
|
|
|
return rb.success().setData(resultBean.getData()); |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
return rb.setMsg("操作失败!提交的数据不一致!"); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public ResultBean delegate(LoanSecondarySalesApplyDelegateQuery query) { |
|
|
|
|
|
ResultBean rb = ResultBean.fireFail(); |
|
|
|
|
|
FlowDelegateQuery delegateQuery = new FlowDelegateQuery(); |
|
|
|
|
|
BeanUtil.copyProperties(query, delegateQuery); |
|
|
|
|
|
flowFeign.delegate(delegateQuery); |
|
|
|
|
|
return rb.success(); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public ResultBean complete(BusinessVariables bv) { |
|
|
|
|
|
ResultBean rb = ResultBean.fireFail(); |
|
|
|
|
|
String businessSid = bv.getBusinessSid(); |
|
|
|
|
|
LoanSecondarySalesApply loanSecondarySalesApply = fetchBySid(businessSid); |
|
|
|
|
|
Map<String, Object> variables = new HashMap<>(); |
|
|
|
|
|
Map<String, Object> appMap = new HashMap<>(); |
|
|
|
|
|
appMap.put("sid", businessSid); |
|
|
|
|
|
variables.put("app", appMap); |
|
|
|
|
|
bv.setFormVariables(variables); |
|
|
|
|
|
bv.setOrgSidPath(loanSecondarySalesApply.getOrgSidPath()); |
|
|
|
|
|
bv.setModelId(loanSecondarySalesApply.getProcDefId()); |
|
|
|
|
|
if (bv.getTaskId().equals(loanSecondarySalesApply.getTaskId())) { |
|
|
|
|
|
ResultBean<UpdateFlowFieldVo> resultBean = flowFeign.handleProsess(bv); |
|
|
|
|
|
if (!resultBean.getSuccess()) { |
|
|
|
|
|
return rb.setMsg(resultBean.getMsg()); |
|
|
|
|
|
} |
|
|
|
|
|
UpdateFlowFieldVo ufVo = resultBean.getData(); |
|
|
|
|
|
updateFlowFiled(BeanUtil.beanToMap(resultBean.getData())); |
|
|
|
|
|
if ("Event_end".equals(resultBean.getData().getTaskDefKey())) { |
|
|
|
|
|
loanSecondarySalesApply = fetchBySid(businessSid); |
|
|
|
|
|
loanSecondarySalesApply.setCloseDate(DateUtil.today()); |
|
|
|
|
|
baseMapper.updateById(loanSecondarySalesApply); |
|
|
|
|
|
|
|
|
|
|
|
} else { |
|
|
|
|
|
//极光推送
|
|
|
|
|
|
loanSecondarySalesApply = fetchBySid(businessSid); |
|
|
|
|
|
MessageFlowableQuery messageFlowableQuery = new MessageFlowableQuery(); |
|
|
|
|
|
MessageFlowVo messageFlowVo = new MessageFlowVo(); |
|
|
|
|
|
BeanUtil.copyProperties(ufVo, messageFlowVo); |
|
|
|
|
|
messageFlowVo.setProcDefId(loanSecondarySalesApply.getProcDefId()); |
|
|
|
|
|
messageFlowVo.setProcInsId(loanSecondarySalesApply.getProcInstId()); |
|
|
|
|
|
messageFlowableQuery.setUfVo(messageFlowVo); |
|
|
|
|
|
messageFlowableQuery.setAppMap(appMap); |
|
|
|
|
|
messageFlowableQuery.setBusinessSid(businessSid); |
|
|
|
|
|
messageFlowableQuery.setModuleName("交回车辆二次销售申请"); |
|
|
|
|
|
messageFlowableQuery.setMsgContent(loanSecondarySalesApply.getCreateByName() + "提交的" + messageFlowableQuery.getModuleName() + ",请审批"); |
|
|
|
|
|
messageFlowableQuery.setMsgTitle("交回车辆二次销售申请"); |
|
|
|
|
|
ResultBean<String> stringResultBean = messageFeign.pushMessage(messageFlowableQuery); |
|
|
|
|
|
} |
|
|
|
|
|
return rb.success().setData(resultBean.getData()); |
|
|
|
|
|
} else { |
|
|
|
|
|
return rb.setMsg("操作失败!提交的数据不一致"); |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public ResultBean submitApply(SubmitLoanSecondarySalesApplyDto dto) { |
|
|
|
|
|
ResultBean rb = ResultBean.fireFail(); |
|
|
|
|
|
LoanSecondarySalesApply loanSecondarySalesApply = fetchBySid(dto.getSid()); |
|
|
|
|
|
int r = submitBusinessData(dto, loanSecondarySalesApply); |
|
|
|
|
|
if (r == 3) { |
|
|
|
|
|
return rb.setMsg("该申请不存在"); |
|
|
|
|
|
} |
|
|
|
|
|
if (r == 0) { |
|
|
|
|
|
return rb.setMsg("操作失败!提交的数据不一致"); |
|
|
|
|
|
} |
|
|
|
|
|
//ToDo:验证车辆是否已处置
|
|
|
|
|
|
|
|
|
|
|
|
ResultBean<String> resultBean = saveOrUpdateSecondarySales(dto); |
|
|
|
|
|
if (!resultBean.getSuccess()) { |
|
|
|
|
|
return rb.setMsg(resultBean.getMsg()); |
|
|
|
|
|
} |
|
|
|
|
|
String businessSid = resultBean.getData(); |
|
|
|
|
|
loanSecondarySalesApply = fetchBySid(businessSid); |
|
|
|
|
|
//创建BusinessVariables实体对象
|
|
|
|
|
|
BusinessVariables bv = new BusinessVariables(); |
|
|
|
|
|
//流程中的参数赋值、若有网关,则赋值网关中判断的字段。
|
|
|
|
|
|
Map<String, Object> variables = new HashMap<>(); |
|
|
|
|
|
Map<String, Object> appMap = new HashMap<>(); |
|
|
|
|
|
appMap.put("sid", businessSid); |
|
|
|
|
|
variables.put("app", appMap); |
|
|
|
|
|
//用户的部门全路径sid
|
|
|
|
|
|
bv.setOrgSidPath(loanSecondarySalesApply.getOrgSidPath()); |
|
|
|
|
|
bv.setBusinessSid(businessSid); |
|
|
|
|
|
bv.setUserSid(dto.getUserSid()); |
|
|
|
|
|
bv.setFormVariables(variables); |
|
|
|
|
|
if (r == 1) { |
|
|
|
|
|
//ToDo:流程定义id
|
|
|
|
|
|
bv.setModelId(ProcDefEnum.LOANRETUENINBOUNDAPPLY.getProDefId()); |
|
|
|
|
|
ResultBean<UpdateFlowFieldVo> voResultBean = flowFeign.startProcess(bv); |
|
|
|
|
|
if (!voResultBean.getSuccess()) { |
|
|
|
|
|
return rb.setMsg(voResultBean.getMsg()); |
|
|
|
|
|
} |
|
|
|
|
|
UpdateFlowFieldVo ufVo = voResultBean.getData(); |
|
|
|
|
|
updateFlowFiled(BeanUtil.beanToMap(ufVo)); |
|
|
|
|
|
loanSecondarySalesApply = fetchBySid(businessSid); |
|
|
|
|
|
//==================================添加线程
|
|
|
|
|
|
try { |
|
|
|
|
|
ThreadFactory namedThreadFactory = new ThreadFactoryBuilder() |
|
|
|
|
|
.setNameFormat("demo-pool-%d").build(); |
|
|
|
|
|
ExecutorService pool = new ThreadPoolExecutor(2, 100, |
|
|
|
|
|
0L, TimeUnit.MILLISECONDS, |
|
|
|
|
|
new LinkedBlockingQueue<Runnable>(1024), namedThreadFactory, new ThreadPoolExecutor.AbortPolicy()); |
|
|
|
|
|
LoanSecondarySalesApply finalLoanSecondarySalesApply = loanSecondarySalesApply; |
|
|
|
|
|
Future future1 = pool.submit(() -> { |
|
|
|
|
|
//极光推送
|
|
|
|
|
|
MessageFlowableQuery messageFlowableQuery = new MessageFlowableQuery(); |
|
|
|
|
|
MessageFlowVo messageFlowVo = new MessageFlowVo(); |
|
|
|
|
|
BeanUtil.copyProperties(ufVo, messageFlowVo); |
|
|
|
|
|
messageFlowableQuery.setUfVo(messageFlowVo); |
|
|
|
|
|
messageFlowableQuery.setAppMap(appMap); |
|
|
|
|
|
messageFlowableQuery.setBusinessSid(businessSid); |
|
|
|
|
|
messageFlowableQuery.setModuleName("交回车辆二次销售申请"); |
|
|
|
|
|
messageFlowableQuery.setMsgContent(finalLoanSecondarySalesApply.getCreateByName() + "提交的" + messageFlowableQuery.getModuleName() + ",请审批"); |
|
|
|
|
|
messageFlowableQuery.setMsgTitle("交回车辆二次销售申请"); |
|
|
|
|
|
ResultBean<String> stringResultBean = messageFeign.pushMessage(messageFlowableQuery); |
|
|
|
|
|
}); |
|
|
|
|
|
} catch (Exception e) { |
|
|
|
|
|
e.printStackTrace(); |
|
|
|
|
|
} |
|
|
|
|
|
//==================================添加线程
|
|
|
|
|
|
return voResultBean; |
|
|
|
|
|
} |
|
|
|
|
|
if (r == 2) { |
|
|
|
|
|
// ToDo:驳回到发起人后再次提交
|
|
|
|
|
|
if (StringUtils.isBlank(dto.getInstanceId())) { |
|
|
|
|
|
return rb.setMsg("参数错误:instanceId"); |
|
|
|
|
|
} |
|
|
|
|
|
bv.setTaskId(loanSecondarySalesApply.getTaskId()); |
|
|
|
|
|
bv.setTaskDefKey(loanSecondarySalesApply.getTaskDefKey()); |
|
|
|
|
|
bv.setComment("重新提交"); |
|
|
|
|
|
bv.setInstanceId(dto.getInstanceId()); |
|
|
|
|
|
return complete(bv); |
|
|
|
|
|
} |
|
|
|
|
|
return rb; |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public ResultBean<String> saveOrUpdateSecondarySales(LoanSecondarySalesApplyDto dto) { |
|
|
|
|
|
return null; |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
private int submitBusinessData(SubmitLoanSecondarySalesApplyDto dto, LoanSecondarySalesApply loanSecondarySalesApply) { |
|
|
|
|
|
int r = 0; |
|
|
|
|
|
if (StringUtils.isBlank(dto.getSid())) { |
|
|
|
|
|
r = 1; |
|
|
|
|
|
} else { |
|
|
|
|
|
if (loanSecondarySalesApply != null) { |
|
|
|
|
|
String businessTaskId = loanSecondarySalesApply.getTaskId(); |
|
|
|
|
|
if (StringUtils.isBlank(businessTaskId) && StringUtils.isBlank(dto.getTaskId())) { |
|
|
|
|
|
//新提交
|
|
|
|
|
|
r = 1; |
|
|
|
|
|
} else if (StringUtils.isNotBlank(businessTaskId) && businessTaskId.equals(dto.getTaskId())) { |
|
|
|
|
|
//二次提交//只有数据一致的时候才能进行下一步
|
|
|
|
|
|
r = 2; |
|
|
|
|
|
} |
|
|
|
|
|
} else { |
|
|
|
|
|
r = 3; |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
return r; |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public ResultBean delAllBySids(String[] sids) { |
|
|
|
|
|
ResultBean rb = ResultBean.fireFail(); |
|
|
|
|
|
//查询该sid中是否有流程不是待提交的
|
|
|
|
|
|
int count = baseMapper.selectBySid(StringUtils.join(sids, ",")); |
|
|
|
|
|
if (count > 0) { |
|
|
|
|
|
return rb.setMsg("删除的数据中包含已经提交审批的数据,删除失败"); |
|
|
|
|
|
} |
|
|
|
|
|
List<String> sidss = Arrays.asList(sids); |
|
|
|
|
|
for (int i = 0; i < sidss.size(); i++) { |
|
|
|
|
|
loanSecondarySalesVehService.deleteByMainSid(sidss.get(i)); |
|
|
|
|
|
loanSecondarySalesCostService.deleteByMainSid(sidss.get(i)); |
|
|
|
|
|
} |
|
|
|
|
|
delBySids(sids); |
|
|
|
|
|
return rb.success().setMsg("删除成功"); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public ResultBean<LoanSecondarySalesApplyDetailsVo> details(LoanSecondarySalesApplyDetailsQuery query) { |
|
|
|
|
|
ResultBean<LoanSecondarySalesApplyDetailsVo> rb = ResultBean.fireFail(); |
|
|
|
|
|
LoanSecondarySalesApplyDetailsVo loanSecondarySalesApplyDetailsVo = new LoanSecondarySalesApplyDetailsVo(); |
|
|
|
|
|
String sid = query.getSid(); |
|
|
|
|
|
String userSid = query.getUserSid(); |
|
|
|
|
|
String orgPath = query.getOrgPath(); |
|
|
|
|
|
List<String> chooseSidList = query.getChooseSidList(); |
|
|
|
|
|
chooseSidList.removeAll(Collections.singleton(null)); |
|
|
|
|
|
if (StringUtils.isBlank(sid)) {//新增初始化
|
|
|
|
|
|
if (chooseSidList.isEmpty()) { |
|
|
|
|
|
return rb.setMsg("请选择车辆"); |
|
|
|
|
|
} |
|
|
|
|
|
String busVinSid = ""; |
|
|
|
|
|
String vinNo = ""; |
|
|
|
|
|
for (int i = 0; i < chooseSidList.size(); i++) { |
|
|
|
|
|
String s = chooseSidList.get(i); |
|
|
|
|
|
LoanReturnVehLedger loanReturnVehLedger = loanReturnVehLedgerService.fetchBySid(s); |
|
|
|
|
|
if ("未处置".equals(loanReturnVehLedger.getDisposal())) { |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
//根据用户查询发起人、发起部门、发起日期为当前日期
|
|
|
|
|
|
String deptName = ""; |
|
|
|
|
|
String deptSid = ""; |
|
|
|
|
|
String useOrgSid = ""; |
|
|
|
|
|
if (StringUtils.isNotBlank(orgPath)) { |
|
|
|
|
|
List<String> split = Arrays.asList(orgPath.split("/")); |
|
|
|
|
|
if (split.size() > 1) { |
|
|
|
|
|
//获取本级sid获取本级部门信息
|
|
|
|
|
|
SysOrganizationVo sysOrganization = sysOrganizationFeign.fetchBySid(split.get(split.size() - 2)).getData(); |
|
|
|
|
|
SysOrganizationVo sysOrganization1 = sysOrganizationFeign.fetchBySid(split.get(split.size() - 1)).getData(); |
|
|
|
|
|
deptName = sysOrganization.getName() + "/" + sysOrganization1.getName(); |
|
|
|
|
|
deptName = sysOrganization1.getName(); |
|
|
|
|
|
deptSid = sysOrganization1.getSid(); |
|
|
|
|
|
} else { |
|
|
|
|
|
SysOrganizationVo sysOrganization = sysOrganizationFeign.fetchBySid(split.get(0)).getData(); |
|
|
|
|
|
deptName = sysOrganization.getName(); |
|
|
|
|
|
deptName = sysOrganization.getName(); |
|
|
|
|
|
deptSid = sysOrganization.getSid(); |
|
|
|
|
|
} |
|
|
|
|
|
useOrgSid = sysStaffOrgFeign.getOrgSidByPath(orgPath).getData(); |
|
|
|
|
|
} |
|
|
|
|
|
//根据用户sid查询人员姓名
|
|
|
|
|
|
ResultBean<SysUserVo> userVoResultBean = sysUserFeign.fetchBySid(userSid); |
|
|
|
|
|
if (!userVoResultBean.getSuccess()) { |
|
|
|
|
|
return rb.setMsg(userVoResultBean.getMsg()); |
|
|
|
|
|
} |
|
|
|
|
|
loanSecondarySalesApplyDetailsVo.setCreateDept(deptName); |
|
|
|
|
|
loanSecondarySalesApplyDetailsVo.setCreateDeptSid(deptSid); |
|
|
|
|
|
loanSecondarySalesApplyDetailsVo.setCreateByName(userVoResultBean.getData().getName()); |
|
|
|
|
|
loanSecondarySalesApplyDetailsVo.setCreateDate(DateUtil.today()); |
|
|
|
|
|
loanSecondarySalesApplyDetailsVo.setOrgPath(query.getOrgPath()); |
|
|
|
|
|
loanSecondarySalesApplyDetailsVo.setUserSid(query.getUserSid()); |
|
|
|
|
|
loanSecondarySalesApplyDetailsVo.setUseOrgSid(useOrgSid); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
} else {//编辑初始化
|
|
|
|
|
|
LoanSecondarySalesApply loanSecondarySalesApply = fetchBySid(sid); |
|
|
|
|
|
if (loanSecondarySalesApply == null) { |
|
|
|
|
|
return rb.setMsg("该申请不存在"); |
|
|
|
|
|
} |
|
|
|
|
|
loanSecondarySalesApplyDetailsVo = baseMapper.selectDetails(sid); |
|
|
|
|
|
String files = loanSecondarySalesApplyDetailsVo.getFiles(); |
|
|
|
|
|
List<UrlQuery> list = new ArrayList<>(); |
|
|
|
|
|
if (StringUtils.isNotBlank(files)) { |
|
|
|
|
|
List<String> fileList = Arrays.asList(files.split(",")).stream().map(c -> fileUploadComponent.getUrlPrefix() + c).collect(Collectors.toList()); |
|
|
|
|
|
for (int i = 0; i < fileList.size(); i++) { |
|
|
|
|
|
UrlQuery urlQuery = new UrlQuery(); |
|
|
|
|
|
urlQuery.setUrl(fileList.get(i)); |
|
|
|
|
|
list.add(urlQuery); |
|
|
|
|
|
} |
|
|
|
|
|
loanSecondarySalesApplyDetailsVo.setFilesList(list); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
loanSecondarySalesApplyDetailsVo.setOrgPath(loanSecondarySalesApply.getOrgSidPath()); |
|
|
|
|
|
loanSecondarySalesApplyDetailsVo.setUserSid(loanSecondarySalesApply.getCreateBySid()); |
|
|
|
|
|
loanSecondarySalesApplyDetailsVo.setSid(sid); |
|
|
|
|
|
loanSecondarySalesApplyDetailsVo.setProcInstId(loanSecondarySalesApply.getProcInstId()); |
|
|
|
|
|
loanSecondarySalesApplyDetailsVo.setTaskId(loanSecondarySalesApply.getTaskId()); |
|
|
|
|
|
List<LoanSecondarySalesVehVo> loanSecondarySalesVehVoList = loanSecondarySalesVehService.selectByMainSid(sid); |
|
|
|
|
|
loanSecondarySalesVehVoList.removeAll(Collections.singleton(null)); |
|
|
|
|
|
if (!loanSecondarySalesVehVoList.isEmpty()) { |
|
|
|
|
|
loanSecondarySalesApplyDetailsVo.setLoanSecondarySalesVehVoList(loanSecondarySalesVehVoList); |
|
|
|
|
|
} |
|
|
|
|
|
LoanSecondarySalesCostVo loanSecondarySalesCost = loanSecondarySalesCostService.selectByMainSid(sid); |
|
|
|
|
|
loanSecondarySalesApplyDetailsVo.setLoanSecondarySalesCost(loanSecondarySalesCost); |
|
|
|
|
|
} |
|
|
|
|
|
return rb.success().setData(loanSecondarySalesApplyDetailsVo); |
|
|
|
|
|
} |
|
|
} |
|
|
} |
|
|