|
@@ -679,6 +679,10 @@ public class PolicyOrderLogic {
|
|
|
@Transactional(rollbackFor = Exception.class)
|
|
|
public void refundAC(String id) {
|
|
|
PolicyOrder policyOrder = policyOrderService.getById(id);
|
|
|
+
|
|
|
+ if (policyOrder.getPolicyOrderStatus().equals(PolicyOrderStatusEnum.YSX.getKey()))
|
|
|
+ throw new RemoteServiceException("保险不属于有效状态");
|
|
|
+
|
|
|
Date date = new Date();
|
|
|
policyOrder.setPolicyOrderStatus(PolicyOrderStatusEnum.YSX.getKey());
|
|
|
policyOrder.setEndTime(date);
|
|
@@ -699,6 +703,9 @@ public class PolicyOrderLogic {
|
|
|
public void refundEM(String id) {
|
|
|
PolicyOrder policyOrder = policyOrderService.getById(id);
|
|
|
|
|
|
+ if (policyOrder.getPolicyOrderStatus().equals(PolicyOrderStatusEnum.YSX.getKey()))
|
|
|
+ throw new RemoteServiceException("保险不属于有效状态");
|
|
|
+
|
|
|
Date date = new Date();
|
|
|
policyOrder.setPolicyOrderStatus(PolicyOrderStatusEnum.YSX.getKey());
|
|
|
policyOrder.setEndTime(date);
|