ruoyi-service/ruoyi-account/src/main/java/com/ruoyi/account/controller/AppUserController.java
@@ -34,6 +34,7 @@ import javax.annotation.Resource; import java.time.LocalDate; import java.time.LocalDateTime; import java.util.ArrayList; import java.util.List; @@ -516,6 +517,32 @@ } return R.ok(byId); } @Resource private UserChangeLogService userChangeLogService; @GetMapping("/change/vip") @ApiOperation(value = "用户列表-修改会员等级", tags = {"管理后台"}) public R<Page<AppUser>> changevip(Long id,Integer vipId) { AppUser byId = appUserService.getById(id); UserChangeLog userChangeLog = new UserChangeLog(); userChangeLog.setCreateTime(LocalDateTime.now()); userChangeLog.setAppUserId(byId.getId()); userChangeLog.setBeforeVipId(byId.getVipId()); userChangeLog.setAfterVipId(vipId); if (userChangeLog.getBeforeVipId()>userChangeLog.getAfterVipId()) { userChangeLog.setChangeType(0); }else { userChangeLog.setChangeType(1); } userChangeLogService.save(userChangeLog); byId.setVipId(vipId); appUserService.updateById(byId); return R.ok(); } @GetMapping("/bottom") @ApiOperation(value = "用户列表-绑定下级列表", tags = {"管理后台"}) public R<Page<AppUser>> bottom(Long id,Integer pageNum,Integer pageSize) ruoyi-service/ruoyi-other/src/main/java/com/ruoyi/other/service/impl/GoodsBargainPriceServiceImpl.java
@@ -101,6 +101,6 @@ @Override public IPage<GoodsBargainPrice> queryGoodsBargainPricePage(Page<GoodsBargainPrice> page, GoodsBargainPrice goodsBargainPrice) { return null; return this.baseMapper.queryGoodsBargainPricePage(page,goodsBargainPrice); } } ruoyi-service/ruoyi-other/src/main/java/com/ruoyi/other/service/impl/ShopBalanceStatementServiceImpl.java
@@ -10,6 +10,7 @@ import com.ruoyi.other.service.ShopService; import com.ruoyi.other.vo.ShopCommissionStatisticsVO; import org.springframework.stereotype.Service; import org.springframework.util.CollectionUtils; import javax.annotation.Resource; import java.util.List; @@ -54,6 +55,7 @@ IPage<ShopBalanceStatement> statementIPage = page(page, new LambdaQueryWrapper<ShopBalanceStatement>()); List<ShopBalanceStatement> records = statementIPage.getRecords(); if (!CollectionUtils.isEmpty(records)){ List<Integer> shopIds = records.stream().map(ShopBalanceStatement::getShopId).collect(Collectors.toList()); List<Shop> shopList = shopService.listByIds(shopIds); records.forEach(st -> { @@ -63,6 +65,7 @@ st.setPhone(shop.getPhone()); }); }); } shopCommissionStatisticsVO.setStatementIPage(statementIPage); return shopCommissionStatisticsVO; } ruoyi-service/ruoyi-other/src/main/java/com/ruoyi/other/vo/ShopCommissionStatisticsVO.java
@@ -16,25 +16,25 @@ * 总金额 */ @ApiModelProperty(value = "总金额") private BigDecimal totalAmount; private BigDecimal totalAmount = BigDecimal.ZERO; /** * 分佣总金额 */ @ApiModelProperty(value = "分佣总金额") private BigDecimal totalCommission; private BigDecimal totalCommission = BigDecimal.ZERO; /** * 服务费总计 */ @ApiModelProperty(value = "服务费总计") private BigDecimal totalServiceCharge; private BigDecimal totalServiceCharge = BigDecimal.ZERO; /** * 下级门店分佣总金额 */ @ApiModelProperty(value = "下级门店分佣总金额") private BigDecimal totalSubordinateCommission; private BigDecimal totalSubordinateCommission = BigDecimal.ZERO; private IPage<ShopBalanceStatement> statementIPage; } ruoyi-service/ruoyi-other/src/main/resources/mapper/other/ShopBalanceStatementMapper.xml
@@ -29,5 +29,7 @@ FROM t_shop_balance_statement ) AS subquery WHERE rn = 1 </select> </mapper>