|
@@ -10,6 +10,7 @@ import com.jzg.commons.entity.vo.AdjustAllRefundVo;
|
|
|
import com.jzg.commons.entity.vo.OrderAdjustInfoVo;
|
|
import com.jzg.commons.entity.vo.OrderAdjustInfoVo;
|
|
|
import com.jzg.commons.entity.vo.OrderAdjustVo;
|
|
import com.jzg.commons.entity.vo.OrderAdjustVo;
|
|
|
import com.jzg.commons.util.AssertionUtils;
|
|
import com.jzg.commons.util.AssertionUtils;
|
|
|
|
|
+import com.jzg.quotation.commons.client.OrgClient;
|
|
|
import com.jzg.quotation.summary.mapper.InsOrderAdjustInfoMapper;
|
|
import com.jzg.quotation.summary.mapper.InsOrderAdjustInfoMapper;
|
|
|
import com.jzg.quotation.summary.service.*;
|
|
import com.jzg.quotation.summary.service.*;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
@@ -49,6 +50,10 @@ public class InsOrderAdjustInfoServiceImpl extends ServiceImpl<InsOrderAdjustInf
|
|
|
@Autowired
|
|
@Autowired
|
|
|
private InsOrdersAccidentalDrivingService ordersAccidentalDrivingService;
|
|
private InsOrdersAccidentalDrivingService ordersAccidentalDrivingService;
|
|
|
|
|
|
|
|
|
|
+ @Autowired
|
|
|
|
|
+ private OrgClient orgClient;
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
@Override
|
|
@Override
|
|
|
public AdjustAllRefundVo adjustAllRefundGet(String id, String orderNo) {
|
|
public AdjustAllRefundVo adjustAllRefundGet(String id, String orderNo) {
|
|
|
|
|
|
|
@@ -497,6 +502,9 @@ public class InsOrderAdjustInfoServiceImpl extends ServiceImpl<InsOrderAdjustInf
|
|
|
public void verifyOrder(VerifyAdjustParam param) {
|
|
public void verifyOrder(VerifyAdjustParam param) {
|
|
|
InsOrderAdjust insOrderAdjust = orderAdjustService.getById(param.getId());
|
|
InsOrderAdjust insOrderAdjust = orderAdjustService.getById(param.getId());
|
|
|
AssertionUtils.isFail(insOrderAdjust.getStatus() > 1, "订单已审核,请刷新页面");
|
|
AssertionUtils.isFail(insOrderAdjust.getStatus() > 1, "订单已审核,请刷新页面");
|
|
|
|
|
+ if(param.getStatus().equals(2)){ // 审核通过
|
|
|
|
|
+ orgClient.restockInsPlyIncome(insOrderAdjust);
|
|
|
|
|
+ }
|
|
|
insOrderAdjust.setStatus(param.getStatus());
|
|
insOrderAdjust.setStatus(param.getStatus());
|
|
|
insOrderAdjust.setRefuse(param.getRefuse());
|
|
insOrderAdjust.setRefuse(param.getRefuse());
|
|
|
orderAdjustService.updateById(insOrderAdjust);
|
|
orderAdjustService.updateById(insOrderAdjust);
|