diff --git a/jeecg-boot-module/jeecg-module-service/src/main/java/org/jeecg/modules/service/controller/AuthUserController.java b/jeecg-boot-module/jeecg-module-service/src/main/java/org/jeecg/modules/service/controller/AuthUserController.java index 986f83f..5831720 100644 --- a/jeecg-boot-module/jeecg-module-service/src/main/java/org/jeecg/modules/service/controller/AuthUserController.java +++ b/jeecg-boot-module/jeecg-module-service/src/main/java/org/jeecg/modules/service/controller/AuthUserController.java @@ -13,12 +13,15 @@ import org.jeecg.modules.service.vo.*; import org.jeecg.modules.system.entity.CardApplicationCustomers; import org.jeecg.modules.system.entity.CardDeliveryPerson; +import org.jeecg.modules.system.entity.CommissionRefund; import org.jeecg.modules.system.service.ICardApplicationCustomersService; import org.jeecg.modules.system.service.ICardDeliveryPersonService; +import org.jeecg.modules.system.service.ICommissionRefundService; import org.springframework.beans.BeanUtils; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.web.bind.annotation.*; +import java.util.Date; import java.util.List; /** * @Description: 微信用户档案 @@ -40,6 +43,9 @@ @Autowired private ICardDeliveryPersonService cardDeliveryPersonService; + @Autowired + private ICommissionRefundService commissionRefundService; + /** *我的-推荐用户列表 */ @@ -140,6 +146,12 @@ cardApplicationCustomers.setTransactionPhone(cardApplicationDTO.getTransactionPhone()); cardApplicationCustomers.setAmount(cardApplicationDTO.getAmount()); cardApplicationCustomersService.updateById(cardApplicationCustomers); + //更新佣金返还 + QueryWrapper queryWrapper = new QueryWrapper<>(); + queryWrapper.eq("reservation_id", cardApplicationDTO.getId()); + CommissionRefund refund = commissionRefundService.getOne(queryWrapper); + refund.setCardApplicationTime(new Date()); + refund.setAmount(cardApplicationDTO.getAmount()); return Result.OK("提交办卡成功"); } }