|
@@ -4,6 +4,7 @@ import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
|
|
import com.baomidou.mybatisplus.core.metadata.IPage;
|
|
|
import com.huyi.service.base.entity.*;
|
|
|
import com.huyi.service.base.service.*;
|
|
|
+import com.huyi.service.common.flowable.service.ApprovalService;
|
|
|
import com.huyi.service.credit.service.OwnCreditService;
|
|
|
import com.huyi.service.util.FlowableService;
|
|
|
import com.keao.tianhu.starter.mybatis.plus.entity.QueryRequest;
|
|
@@ -76,7 +77,9 @@ public class OwnCreditController extends BaseController {
|
|
|
private IZcBillFileRelService billFileRelService;
|
|
|
@Autowired
|
|
|
private FlowableService flowableService;
|
|
|
-
|
|
|
+ //审批服务类
|
|
|
+ @Autowired
|
|
|
+ private ApprovalService approvalService;
|
|
|
|
|
|
/**
|
|
|
* 查询融信信息
|
|
@@ -118,7 +121,20 @@ public class OwnCreditController extends BaseController {
|
|
|
//融信编号
|
|
|
map.put("zfiNumber", zfiNumber);
|
|
|
//状态
|
|
|
- map.put("zfiStatus", zfiStatus);
|
|
|
+ if(!CommonUtil.isEmpty(zfiStatus)){
|
|
|
+ List<String> stateList = new ArrayList<>();
|
|
|
+ if(!zfiStatus.contains(",")){
|
|
|
+ stateList.add(zfiStatus);
|
|
|
+ }else{
|
|
|
+ String arr [] = zfiStatus.split(",");
|
|
|
+ for(int i = 0 ; i < arr.length;i++){
|
|
|
+ if(!CommonUtil.isEmpty(arr[i])){
|
|
|
+ stateList.add(arr[i]);
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ map.put("stateList",CommonUtil.listToStr4InSql(stateList));
|
|
|
+ }
|
|
|
//开立企业
|
|
|
map.put("openCompany", openCompany);
|
|
|
//接收企业
|
|
@@ -755,6 +771,13 @@ public class OwnCreditController extends BaseController {
|
|
|
}
|
|
|
//插入数据
|
|
|
financeInfService.createZcFinanceInf(inf);
|
|
|
+ //核心开立
|
|
|
+ if("1".equals(type)){
|
|
|
+ map.put("zfiId",id);
|
|
|
+ map.put("zfiCoreId",companyId);
|
|
|
+ //调用核心开立审批流
|
|
|
+ approvalService.coreApproval(CommonUtil.entityToMap(inf));
|
|
|
+ }
|
|
|
return AjaxResult.success();
|
|
|
}
|
|
|
|