|
@@ -1,6 +1,7 @@
|
|
|
package com.fjhx.purchase.service.pay.impl;
|
|
|
|
|
|
import cn.hutool.core.bean.BeanUtil;
|
|
|
+import cn.hutool.core.util.ObjectUtil;
|
|
|
import com.baomidou.dynamic.datasource.toolkit.DynamicDataSourceContextHolder;
|
|
|
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
|
|
import com.baomidou.mybatisplus.core.toolkit.Wrappers;
|
|
@@ -204,7 +205,9 @@ public class PayServiceImpl extends ServiceImpl<PayMapper, Pay> implements PaySe
|
|
|
DynamicDataSourceContextHolder.push(SourceConstant.BASE);
|
|
|
FlowExample flowExample = flowExampleService.getOne(Wrappers.<FlowExample>query().lambda().eq(FlowExample::getBusinessId, id));
|
|
|
// 赋值流程id
|
|
|
- result.setFlowExampleId(flowExample.getId());
|
|
|
+ if(ObjectUtil.isNotEmpty(flowExample)) {
|
|
|
+ result.setFlowExampleId(flowExample.getId());
|
|
|
+ }
|
|
|
|
|
|
return result;
|
|
|
}
|