|
@@ -7,7 +7,8 @@ import com.baomidou.mybatisplus.core.toolkit.CollectionUtils;
|
|
|
import com.baomidou.mybatisplus.core.toolkit.ObjectUtils;
|
|
|
import com.fjhx.common.constant.SourceConstant;
|
|
|
import com.fjhx.flow.core.FlowDelegate;
|
|
|
-import com.fjhx.purchase.entity.pay.enums.PayStatusEnum;
|
|
|
+import com.fjhx.flow.enums.FlowStatusEnum;
|
|
|
+import com.fjhx.purchase.entity.pay.enums.PayStatusEnum1;
|
|
|
import com.fjhx.purchase.entity.refund.po.Refund;
|
|
|
import com.fjhx.purchase.entity.refund.po.RefundDetail;
|
|
|
import com.fjhx.purchase.service.refund.RefundDetailService;
|
|
@@ -44,7 +45,7 @@ public class RefundFlow extends FlowDelegate {
|
|
|
RefundService refundService = SpringUtil.getBean(RefundService.class);
|
|
|
RefundDetailService refundDetailService = SpringUtil.getBean(RefundDetailService.class);
|
|
|
Refund refund = submitData.toJavaObject(Refund.class);
|
|
|
- refund.setStatus(PayStatusEnum.UNDER_REVIEW.getKey());
|
|
|
+ refund.setStatus(PayStatusEnum1.UNDER_REVIEW.getKey());
|
|
|
refundService.save(refund);
|
|
|
List<RefundDetail> refundDetailList = refund.getRefundDetailList();
|
|
|
if(CollectionUtils.isNotEmpty(refundDetailList)){
|
|
@@ -71,8 +72,13 @@ public class RefundFlow extends FlowDelegate {
|
|
|
throw new ServiceException("退款单不存在");
|
|
|
}
|
|
|
|
|
|
- refund.setStatus(PayStatusEnum.PASS.getKey());
|
|
|
+ refund.setStatus(PayStatusEnum1.PASS.getKey());
|
|
|
refund.setApprovedDate(new Date());
|
|
|
refundService.updateById(refund);
|
|
|
}
|
|
|
+
|
|
|
+ @Override
|
|
|
+ public void defaultMethod(Long flowId, Long businessId, FlowStatusEnum flowStatusEnum, JSONObject submitData) {
|
|
|
+
|
|
|
+ }
|
|
|
}
|