|
|
@@ -103,6 +103,12 @@ public class OwnMessageController extends BaseController {
|
|
|
//待办服务类
|
|
|
@Autowired
|
|
|
private ISysNoticeService sysNoticeService;
|
|
|
+ //融信往来账款关系服务类
|
|
|
+ @Autowired
|
|
|
+ private IZcFinanceBillRelService financeBillRelService;
|
|
|
+ //往来账款服务类
|
|
|
+ @Autowired
|
|
|
+ private IZcBillInfService billInfService;
|
|
|
|
|
|
/**
|
|
|
* 发送短信
|
|
|
@@ -724,6 +730,23 @@ public class OwnMessageController extends BaseController {
|
|
|
|
|
|
/**融信操作日志*/
|
|
|
financeLog.addFinanceLog(zfiId, "融信签收【已签收】,融信生效", tokenService.getLoginUser().getSysUser().getUserId(), FinanceLog.STATUS_THREE);
|
|
|
+
|
|
|
+ //融信生效之后,将对应的收付账状态改为已质押
|
|
|
+ //查询该融信对应的应收付账款
|
|
|
+ LambdaQueryWrapper<ZcFinanceBillRel> financeBillRelLambdaQueryWrapper = new LambdaQueryWrapper<>();
|
|
|
+ financeBillRelLambdaQueryWrapper.eq(ZcFinanceBillRel::getZfbrFinanceId,zfiId);
|
|
|
+ List<ZcFinanceBillRel> billRelList = financeBillRelService.findZcFinanceBillRels(financeBillRelLambdaQueryWrapper);
|
|
|
+ if(billRelList.size() > 0){//有关联的往来账款
|
|
|
+ //提取往来账款编号
|
|
|
+ List<String> billIdList = CommonUtil.getIdFromList(billRelList,"zfbrBillId");
|
|
|
+ LambdaQueryWrapper<ZcBillInf> billInfLambdaQueryWrapper = new LambdaQueryWrapper<>();
|
|
|
+ billInfLambdaQueryWrapper.in(ZcBillInf::getZbiId,billIdList);
|
|
|
+ //更改为已质押
|
|
|
+ ZcBillInf billInf = new ZcBillInf();
|
|
|
+ //已质押
|
|
|
+ billInf.setZbiStatus("01");
|
|
|
+ billInfService.update(billInf,billInfLambdaQueryWrapper);
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
}
|
|
|
@@ -776,6 +799,22 @@ public class OwnMessageController extends BaseController {
|
|
|
|
|
|
/**融信操作日志*/
|
|
|
financeLog.addFinanceLog(zfiId, "融信签收【已签收】,融信生效", tokenService.getLoginUser().getSysUser().getUserId(), FinanceLog.STATUS_THREE);
|
|
|
+ //融信生效之后,将对应的收付账状态改为已质押
|
|
|
+ //查询该融信对应的应收付账款
|
|
|
+ LambdaQueryWrapper<ZcFinanceBillRel> financeBillRelLambdaQueryWrapper = new LambdaQueryWrapper<>();
|
|
|
+ financeBillRelLambdaQueryWrapper.eq(ZcFinanceBillRel::getZfbrFinanceId,zfiId);
|
|
|
+ List<ZcFinanceBillRel> billRelList = financeBillRelService.findZcFinanceBillRels(financeBillRelLambdaQueryWrapper);
|
|
|
+ if(billRelList.size() > 0){//有关联的往来账款
|
|
|
+ //提取往来账款编号
|
|
|
+ List<String> billIdList = CommonUtil.getIdFromList(billRelList,"zfbrBillId");
|
|
|
+ LambdaQueryWrapper<ZcBillInf> billInfLambdaQueryWrapper = new LambdaQueryWrapper<>();
|
|
|
+ billInfLambdaQueryWrapper.in(ZcBillInf::getZbiId,billIdList);
|
|
|
+ //更改为已质押
|
|
|
+ ZcBillInf billInf = new ZcBillInf();
|
|
|
+ //已质押
|
|
|
+ billInf.setZbiStatus("01");
|
|
|
+ billInfService.update(billInf,billInfLambdaQueryWrapper);
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
}
|
|
|
@@ -805,6 +844,22 @@ public class OwnMessageController extends BaseController {
|
|
|
|
|
|
/**融信操作日志*/
|
|
|
financeLog.addFinanceLog(zfiId, "融信确权【通过】,融信生效", null, FinanceLog.STATUS_TWO);
|
|
|
+ //融信生效之后,将对应的收付账状态改为已质押
|
|
|
+ //查询该融信对应的应收付账款
|
|
|
+ LambdaQueryWrapper<ZcFinanceBillRel> financeBillRelLambdaQueryWrapper = new LambdaQueryWrapper<>();
|
|
|
+ financeBillRelLambdaQueryWrapper.eq(ZcFinanceBillRel::getZfbrFinanceId,zfiId);
|
|
|
+ List<ZcFinanceBillRel> billRelList = financeBillRelService.findZcFinanceBillRels(financeBillRelLambdaQueryWrapper);
|
|
|
+ if(billRelList.size() > 0){//有关联的往来账款
|
|
|
+ //提取往来账款编号
|
|
|
+ List<String> billIdList = CommonUtil.getIdFromList(billRelList,"zfbrBillId");
|
|
|
+ LambdaQueryWrapper<ZcBillInf> billInfLambdaQueryWrapper = new LambdaQueryWrapper<>();
|
|
|
+ billInfLambdaQueryWrapper.in(ZcBillInf::getZbiId,billIdList);
|
|
|
+ //更改为已质押
|
|
|
+ ZcBillInf billInf = new ZcBillInf();
|
|
|
+ //已质押
|
|
|
+ billInf.setZbiStatus("01");
|
|
|
+ billInfService.update(billInf,billInfLambdaQueryWrapper);
|
|
|
+ }
|
|
|
}else if("02".equals(companyType)){
|
|
|
//融资企业
|
|
|
//修改融信状态
|