跟新海上商城mall会员模块添加了分销模块定义启动项

pull/160/head
Tpj 2024-12-11 14:08:36 +08:00
parent 35b8e48088
commit 25c888df75
25 changed files with 2197 additions and 38 deletions

View File

@ -0,0 +1,63 @@
package cn.iocoder.yudao.module.hshy.controller.admin.userconfig;
import cn.iocoder.yudao.framework.common.pojo.CommonResult;
import cn.iocoder.yudao.framework.common.util.object.BeanUtils;
import cn.iocoder.yudao.module.hshy.controller.admin.userconfig.vo.UserConfigBalanceRespVO;
import cn.iocoder.yudao.module.hshy.dal.dataobject.userconfig.UserConfigDO;
import cn.iocoder.yudao.module.hshy.service.userconfig.UserConfigService;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.Parameter;
import io.swagger.v3.oas.annotations.tags.Tag;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.*;
import javax.annotation.Resource;
import javax.validation.Valid;
import static cn.iocoder.yudao.framework.common.pojo.CommonResult.success;
@Tag(name = "管理后台 - 会员消费返余额")
@RestController
@RequestMapping("/hshy/user-config-Balance")
@Validated
public class UserConfigBalanceController {
@Resource
private UserConfigService userConfigService;
@PostMapping("/create")
@Operation(summary = "创建会员消费返余额")
@PreAuthorize("@ss.hasPermission('hshy:user-config:create')")
public CommonResult<Integer> creatBalance(@Valid @RequestBody UserConfigBalanceRespVO createReqVO) {
return success(userConfigService.creatBalance(createReqVO));
}
@PutMapping("/update")
@Operation(summary = "更新会员消费返余额")
@PreAuthorize("@ss.hasPermission('hshy:user-config:update')")
public CommonResult<Boolean> updateBalance(@Valid @RequestBody UserConfigBalanceRespVO updateReqVO) {
userConfigService.updateBalance(updateReqVO);
return success(true);
}
@DeleteMapping("/delete")
@Operation(summary = "删除会员消费返余额")
@Parameter(name = "id", description = "编号", required = true)
@PreAuthorize("@ss.hasPermission('hshy:user-config:delete')")
public CommonResult<Boolean> deleteUserConfig(@RequestParam("id") Integer id) {
userConfigService.deleteUserConfig(id);
return success(true);
}
@GetMapping("/get")
@Operation(summary = "获得会员消费返余额")
@Parameter(name = "id", description = "编号", required = true, example = "1024")
@PreAuthorize("@ss.hasPermission('hshy:user-config:query')")
public CommonResult<UserConfigBalanceRespVO> getUserConfig(@RequestParam("id") Integer id) {
UserConfigDO userConfig = userConfigService.getUserConfig(id);
return success(BeanUtils.toBean(userConfig, UserConfigBalanceRespVO.class));
}
}

View File

@ -0,0 +1,61 @@
package cn.iocoder.yudao.module.hshy.controller.admin.userconfig;
import cn.iocoder.yudao.framework.common.pojo.CommonResult;
import cn.iocoder.yudao.framework.common.util.object.BeanUtils;
import cn.iocoder.yudao.module.hshy.controller.admin.userconfig.vo.UserConfigBonusRespVO;
import cn.iocoder.yudao.module.hshy.dal.dataobject.userconfig.UserConfigDO;
import cn.iocoder.yudao.module.hshy.service.userconfig.UserConfigService;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.Parameter;
import io.swagger.v3.oas.annotations.tags.Tag;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.*;
import javax.annotation.Resource;
import javax.validation.Valid;
import static cn.iocoder.yudao.framework.common.pojo.CommonResult.success;
@Tag(name = "管理后台 - 会员充值奖励")
@RestController
@RequestMapping("/hshy/user-config-Bonus")
@Validated
public class UserConfigBonusController {
@Resource
private UserConfigService userConfigService;
@PostMapping("/create")
@Operation(summary = "创建会员充值奖励")
@PreAuthorize("@ss.hasPermission('hshy:user-config:create')")
public CommonResult<Integer> creatBonus(@Valid @RequestBody UserConfigBonusRespVO createReqVO) {
return success(userConfigService.creatBonus(createReqVO));
}
@PutMapping("/update")
@Operation(summary = "更新会员充值奖励")
@PreAuthorize("@ss.hasPermission('hshy:user-config:update')")
public CommonResult<Boolean> updateBonus(@Valid @RequestBody UserConfigBonusRespVO updateReqVO) {
userConfigService.updateBonus(updateReqVO);
return success(true);
}
@DeleteMapping("/delete")
@Operation(summary = "删除会员充值奖励")
@Parameter(name = "id", description = "编号", required = true)
@PreAuthorize("@ss.hasPermission('hshy:user-config:delete')")
public CommonResult<Boolean> deleteUserConfig(@RequestParam("id") Integer id) {
userConfigService.deleteUserConfig(id);
return success(true);
}
@GetMapping("/get")
@Operation(summary = "获得会员充值奖励")
@Parameter(name = "id", description = "编号", required = true, example = "1024")
@PreAuthorize("@ss.hasPermission('hshy:user-config:query')")
public CommonResult<UserConfigBonusRespVO> getUserConfig(@RequestParam("id") Integer id) {
UserConfigDO userConfig = userConfigService.getUserConfig(id);
return success(BeanUtils.toBean(userConfig, UserConfigBonusRespVO.class));
}
}

View File

@ -0,0 +1,60 @@
package cn.iocoder.yudao.module.hshy.controller.admin.userconfig;
import cn.iocoder.yudao.framework.common.pojo.CommonResult;
import cn.iocoder.yudao.framework.common.util.object.BeanUtils;
import cn.iocoder.yudao.module.hshy.controller.admin.userconfig.vo.UserConfigCycleRespVO;
import cn.iocoder.yudao.module.hshy.dal.dataobject.userconfig.UserConfigDO;
import cn.iocoder.yudao.module.hshy.service.userconfig.UserConfigService;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.Parameter;
import io.swagger.v3.oas.annotations.tags.Tag;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.*;
import javax.annotation.Resource;
import javax.validation.Valid;
import static cn.iocoder.yudao.framework.common.pojo.CommonResult.success;
@Tag(name = "管理后台 - 会员周期奖励")
@RestController
@RequestMapping("/hshy/user-config-Cycle")
@Validated
public class UserConfigCycleController {
@Resource
private UserConfigService userConfigService;
@PostMapping("/create")
@Operation(summary = "创建会员周期奖励")
@PreAuthorize("@ss.hasPermission('hshy:user-config:create')")
public CommonResult<Integer> creatCycle(@Valid @RequestBody UserConfigCycleRespVO createReqVO) {
return success(userConfigService.creatCycle(createReqVO));
}
@PutMapping("/update")
@Operation(summary = "更新会员周期奖励")
@PreAuthorize("@ss.hasPermission('hshy:user-config:update')")
public CommonResult<Boolean> updateCycle(@Valid @RequestBody UserConfigCycleRespVO updateReqVO) {
userConfigService.updateCycle(updateReqVO);
return success(true);
}
@DeleteMapping("/delete")
@Operation(summary = "删除会员周期奖励")
@Parameter(name = "id", description = "编号", required = true)
@PreAuthorize("@ss.hasPermission('hshy:user-config:delete')")
public CommonResult<Boolean> deleteUserConfig(@RequestParam("id") Integer id) {
userConfigService.deleteUserConfig(id);
return success(true);
}
@GetMapping("/get")
@Operation(summary = "获得会员周期奖励")
@Parameter(name = "id", description = "编号", required = true, example = "1024")
@PreAuthorize("@ss.hasPermission('hshy:user-config:query')")
public CommonResult<UserConfigCycleRespVO> getUserConfig(@RequestParam("id") Integer id) {
UserConfigDO userConfig = userConfigService.getUserConfig(id);
return success(BeanUtils.toBean(userConfig, UserConfigCycleRespVO.class));
}
}

View File

@ -0,0 +1,60 @@
package cn.iocoder.yudao.module.hshy.controller.admin.userconfig;
import cn.iocoder.yudao.framework.common.pojo.CommonResult;
import cn.iocoder.yudao.framework.common.util.object.BeanUtils;
import cn.iocoder.yudao.module.hshy.controller.admin.userconfig.vo.UserConfigFreeRespVO;
import cn.iocoder.yudao.module.hshy.dal.dataobject.userconfig.UserConfigDO;
import cn.iocoder.yudao.module.hshy.service.userconfig.UserConfigService;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.Parameter;
import io.swagger.v3.oas.annotations.tags.Tag;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.*;
import javax.annotation.Resource;
import javax.validation.Valid;
import static cn.iocoder.yudao.framework.common.pojo.CommonResult.success;
@Tag(name = "管理后台 - 会员降级")
@RestController
@RequestMapping("/hshy/user-config-Down")
@Validated
public class UserConfigDownController {
@Resource
private UserConfigService userConfigService;
@PostMapping("/create")
@Operation(summary = "创建会员包邮")
@PreAuthorize("@ss.hasPermission('hshy:user-config:create')")
public CommonResult<Integer> creatFree(@Valid @RequestBody UserConfigFreeRespVO createReqVO) {
return success(userConfigService.creatFree(createReqVO));
}
@PutMapping("/update")
@Operation(summary = "更新会员包邮")
@PreAuthorize("@ss.hasPermission('hshy:user-config:update')")
public CommonResult<Boolean> updateFree(@Valid @RequestBody UserConfigFreeRespVO updateReqVO) {
userConfigService.updateFree(updateReqVO);
return success(true);
}
@DeleteMapping("/delete")
@Operation(summary = "删除会员包邮")
@Parameter(name = "id", description = "编号", required = true)
@PreAuthorize("@ss.hasPermission('hshy:user-config:delete')")
public CommonResult<Boolean> deleteUserConfig(@RequestParam("id") Integer id) {
userConfigService.deleteUserConfig(id);
return success(true);
}
@GetMapping("/get")
@Operation(summary = "获得会员包邮")
@Parameter(name = "id", description = "编号", required = true, example = "1024")
@PreAuthorize("@ss.hasPermission('hshy:user-config:query')")
public CommonResult<UserConfigFreeRespVO> getUserConfig(@RequestParam("id") Integer id) {
UserConfigDO userConfig = userConfigService.getUserConfig(id);
return success(BeanUtils.toBean(userConfig, UserConfigFreeRespVO.class));
}
}

View File

@ -0,0 +1,61 @@
package cn.iocoder.yudao.module.hshy.controller.admin.userconfig;
import cn.iocoder.yudao.framework.common.pojo.CommonResult;
import cn.iocoder.yudao.framework.common.util.object.BeanUtils;
import cn.iocoder.yudao.module.hshy.controller.admin.userconfig.vo.UserConfigFreeRespVO;
import cn.iocoder.yudao.module.hshy.dal.dataobject.userconfig.UserConfigDO;
import cn.iocoder.yudao.module.hshy.service.userconfig.UserConfigService;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.Parameter;
import io.swagger.v3.oas.annotations.tags.Tag;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.*;
import javax.annotation.Resource;
import javax.validation.Valid;
import static cn.iocoder.yudao.framework.common.pojo.CommonResult.success;
@Tag(name = "管理后台 - 会员包邮")
@RestController
@RequestMapping("/hshy/user-config-Free")
@Validated
public class UserConfigFreeController {
@Resource
private UserConfigService userConfigService;
@PostMapping("/create")
@Operation(summary = "创建会员包邮")
@PreAuthorize("@ss.hasPermission('hshy:user-config:create')")
public CommonResult<Integer> creatFree(@Valid @RequestBody UserConfigFreeRespVO createReqVO) {
return success(userConfigService.creatFree(createReqVO));
}
@PutMapping("/update")
@Operation(summary = "更新会员包邮")
@PreAuthorize("@ss.hasPermission('hshy:user-config:update')")
public CommonResult<Boolean> updateFree(@Valid @RequestBody UserConfigFreeRespVO updateReqVO) {
userConfigService.updateFree(updateReqVO);
return success(true);
}
@DeleteMapping("/delete")
@Operation(summary = "删除会员包邮")
@Parameter(name = "id", description = "编号", required = true)
@PreAuthorize("@ss.hasPermission('hshy:user-config:delete')")
public CommonResult<Boolean> deleteUserConfig(@RequestParam("id") Integer id) {
userConfigService.deleteUserConfig(id);
return success(true);
}
@GetMapping("/get")
@Operation(summary = "获得会员包邮")
@Parameter(name = "id", description = "编号", required = true, example = "1024")
@PreAuthorize("@ss.hasPermission('hshy:user-config:query')")
public CommonResult<UserConfigFreeRespVO> getUserConfig(@RequestParam("id") Integer id) {
UserConfigDO userConfig = userConfigService.getUserConfig(id);
return success(BeanUtils.toBean(userConfig, UserConfigFreeRespVO.class));
}
}

View File

@ -0,0 +1,61 @@
package cn.iocoder.yudao.module.hshy.controller.admin.userconfig;
import cn.iocoder.yudao.framework.common.pojo.CommonResult;
import cn.iocoder.yudao.framework.common.util.object.BeanUtils;
import cn.iocoder.yudao.module.hshy.controller.admin.userconfig.vo.UserConfigGradeRespVO;
import cn.iocoder.yudao.module.hshy.dal.dataobject.userconfig.UserConfigDO;
import cn.iocoder.yudao.module.hshy.service.userconfig.UserConfigService;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.Parameter;
import io.swagger.v3.oas.annotations.tags.Tag;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.*;
import javax.annotation.Resource;
import javax.validation.Valid;
import static cn.iocoder.yudao.framework.common.pojo.CommonResult.success;
@Tag(name = "管理后台 - 会员升级")
@RestController
@RequestMapping("/hshy/user-config-Grade")
@Validated
public class UserConfigGradeController {
@Resource
private UserConfigService userConfigService;
@PostMapping("/create")
@Operation(summary = "创建会员升级")
@PreAuthorize("@ss.hasPermission('hshy:user-config:create')")
public CommonResult<Integer> creatGrade(@Valid @RequestBody UserConfigGradeRespVO createReqVO) {
return success(userConfigService.creatGrade(createReqVO));
}
@PutMapping("/update")
@Operation(summary = "更新会员升级")
@PreAuthorize("@ss.hasPermission('hshy:user-config:update')")
public CommonResult<Boolean> updateGrade(@Valid @RequestBody UserConfigGradeRespVO updateReqVO) {
userConfigService.updateGrade(updateReqVO);
return success(true);
}
@DeleteMapping("/delete")
@Operation(summary = "删除会员升级")
@Parameter(name = "id", description = "编号", required = true)
@PreAuthorize("@ss.hasPermission('hshy:user-config:delete')")
public CommonResult<Boolean> deleteUserConfig(@RequestParam("id") Integer id) {
userConfigService.deleteUserConfig(id);
return success(true);
}
@GetMapping("/get")
@Operation(summary = "获得会员升级")
@Parameter(name = "id", description = "编号", required = true, example = "1024")
@PreAuthorize("@ss.hasPermission('hshy:user-config:query')")
public CommonResult<UserConfigGradeRespVO> getUserConfig(@RequestParam("id") Integer id) {
UserConfigDO userConfig = userConfigService.getUserConfig(id);
return success(BeanUtils.toBean(userConfig, UserConfigGradeRespVO.class));
}
}

View File

@ -0,0 +1,61 @@
package cn.iocoder.yudao.module.hshy.controller.admin.userconfig;
import cn.iocoder.yudao.framework.common.pojo.CommonResult;
import cn.iocoder.yudao.framework.common.util.object.BeanUtils;
import cn.iocoder.yudao.module.hshy.controller.admin.userconfig.vo.UserConfigOnlyRespVO;
import cn.iocoder.yudao.module.hshy.dal.dataobject.userconfig.UserConfigDO;
import cn.iocoder.yudao.module.hshy.service.userconfig.UserConfigService;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.Parameter;
import io.swagger.v3.oas.annotations.tags.Tag;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.*;
import javax.annotation.Resource;
import javax.validation.Valid;
import static cn.iocoder.yudao.framework.common.pojo.CommonResult.success;
@Tag(name = "管理后台 - 会员升级礼包")
@RestController
@RequestMapping("/hshy/user-config-Level")
@Validated
public class UserConfigLevelController {
@Resource
private UserConfigService userConfigService;
@PostMapping("/create")
@Operation(summary = "创建会员专享客服")
@PreAuthorize("@ss.hasPermission('hshy:user-config:create')")
public CommonResult<Integer> creatOnly(@Valid @RequestBody UserConfigOnlyRespVO createReqVO) {
return success(userConfigService.creatOnly(createReqVO));
}
@PutMapping("/update")
@Operation(summary = "更新会员专享客服")
@PreAuthorize("@ss.hasPermission('hshy:user-config:update')")
public CommonResult<Boolean> updateOnly(@Valid @RequestBody UserConfigOnlyRespVO updateReqVO) {
userConfigService.updateOnly(updateReqVO);
return success(true);
}
@DeleteMapping("/delete")
@Operation(summary = "删除会员专享客服")
@Parameter(name = "id", description = "编号", required = true)
@PreAuthorize("@ss.hasPermission('hshy:user-config:delete')")
public CommonResult<Boolean> deleteUserConfig(@RequestParam("id") Integer id) {
userConfigService.deleteUserConfig(id);
return success(true);
}
@GetMapping("/get")
@Operation(summary = "获得会员专享客服")
@Parameter(name = "id", description = "编号", required = true, example = "1024")
@PreAuthorize("@ss.hasPermission('hshy:user-config:query')")
public CommonResult<UserConfigOnlyRespVO> getUserConfig(@RequestParam("id") Integer id) {
UserConfigDO userConfig = userConfigService.getUserConfig(id);
return success(BeanUtils.toBean(userConfig, UserConfigOnlyRespVO.class));
}
}

View File

@ -0,0 +1,63 @@
package cn.iocoder.yudao.module.hshy.controller.admin.userconfig;
import cn.iocoder.yudao.framework.common.pojo.CommonResult;
import cn.iocoder.yudao.framework.common.util.object.BeanUtils;
import cn.iocoder.yudao.module.hshy.controller.admin.userconfig.vo.UserConfigOnlyRespVO;
import cn.iocoder.yudao.module.hshy.dal.dataobject.userconfig.UserConfigDO;
import cn.iocoder.yudao.module.hshy.service.userconfig.UserConfigService;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.Parameter;
import io.swagger.v3.oas.annotations.tags.Tag;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.*;
import javax.annotation.Resource;
import javax.validation.Valid;
import static cn.iocoder.yudao.framework.common.pojo.CommonResult.success;
@Tag(name = "管理后台 - 会员专享客服")
@RestController
@RequestMapping("/hshy/user-config-Only")
@Validated
public class UserConfigOnlyController {
@Resource
private UserConfigService userConfigService;
@PostMapping("/create")
@Operation(summary = "创建会员专享客服")
@PreAuthorize("@ss.hasPermission('hshy:user-config:create')")
public CommonResult<Integer> creatOnly(@Valid @RequestBody UserConfigOnlyRespVO createReqVO) {
return success(userConfigService.creatOnly(createReqVO));
}
@PutMapping("/update")
@Operation(summary = "更新会员专享客服")
@PreAuthorize("@ss.hasPermission('hshy:user-config:update')")
public CommonResult<Boolean> updateOnly(@Valid @RequestBody UserConfigOnlyRespVO updateReqVO) {
userConfigService.updateOnly(updateReqVO);
return success(true);
}
@DeleteMapping("/delete")
@Operation(summary = "删除会员专享客服")
@Parameter(name = "id", description = "编号", required = true)
@PreAuthorize("@ss.hasPermission('hshy:user-config:delete')")
public CommonResult<Boolean> deleteUserConfig(@RequestParam("id") Integer id) {
userConfigService.deleteUserConfig(id);
return success(true);
}
@GetMapping("/get")
@Operation(summary = "获得会员专享客服")
@Parameter(name = "id", description = "编号", required = true, example = "1024")
@PreAuthorize("@ss.hasPermission('hshy:user-config:query')")
public CommonResult<UserConfigOnlyRespVO> getUserConfig(@RequestParam("id") Integer id) {
UserConfigDO userConfig = userConfigService.getUserConfig(id);
return success(BeanUtils.toBean(userConfig, UserConfigOnlyRespVO.class));
}
}

View File

@ -0,0 +1,74 @@
package cn.iocoder.yudao.module.hshy.controller.admin.userconfig;
import cn.iocoder.yudao.framework.apilog.core.annotation.ApiAccessLog;
import cn.iocoder.yudao.framework.common.pojo.CommonResult;
import cn.iocoder.yudao.framework.common.pojo.PageParam;
import cn.iocoder.yudao.framework.common.pojo.PageResult;
import cn.iocoder.yudao.framework.common.util.object.BeanUtils;
import cn.iocoder.yudao.framework.excel.core.util.ExcelUtils;
import cn.iocoder.yudao.module.hshy.controller.admin.userconfig.vo.UserConfigPageReqVO;
import cn.iocoder.yudao.module.hshy.controller.admin.userconfig.vo.UserConfigPontsRespVO;
import cn.iocoder.yudao.module.hshy.controller.admin.userconfig.vo.UserConfigRespVO;
import cn.iocoder.yudao.module.hshy.controller.admin.userconfig.vo.UserConfigSaveReqVO;
import cn.iocoder.yudao.module.hshy.dal.dataobject.userconfig.UserConfigDO;
import cn.iocoder.yudao.module.hshy.service.userconfig.UserConfigService;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.Parameter;
import io.swagger.v3.oas.annotations.tags.Tag;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.*;
import javax.annotation.Resource;
import javax.servlet.http.HttpServletResponse;
import javax.validation.Valid;
import java.io.IOException;
import java.util.List;
import static cn.iocoder.yudao.framework.apilog.core.enums.OperateTypeEnum.EXPORT;
import static cn.iocoder.yudao.framework.common.pojo.CommonResult.success;
@Tag(name = "管理后台 - 会员消费返积分")
@RestController
@RequestMapping("/hshy/user-config-Ponts")
@Validated
public class UserConfigPontsController {
@Resource
private UserConfigService userConfigService;
@PostMapping("/create")
@Operation(summary = "创建会员消费返积分")
@PreAuthorize("@ss.hasPermission('hshy:user-config:create')")
public CommonResult<Integer> creatPonts(@Valid @RequestBody UserConfigPontsRespVO createReqVO) {
return success(userConfigService.creatPonts(createReqVO));
}
@PutMapping("/update")
@Operation(summary = "更新会员消费返积分")
@PreAuthorize("@ss.hasPermission('hshy:user-config:update')")
public CommonResult<Boolean> updatePonts(@Valid @RequestBody UserConfigPontsRespVO updateReqVO) {
userConfigService.updatePonts(updateReqVO);
return success(true);
}
@DeleteMapping("/delete")
@Operation(summary = "删除会员消费返积分")
@Parameter(name = "id", description = "编号", required = true)
@PreAuthorize("@ss.hasPermission('hshy:user-config:delete')")
public CommonResult<Boolean> deleteUserConfig(@RequestParam("id") Integer id) {
userConfigService.deleteUserConfig(id);
return success(true);
}
@GetMapping("/get")
@Operation(summary = "获得会员消费返积分")
@Parameter(name = "id", description = "编号", required = true, example = "1024")
@PreAuthorize("@ss.hasPermission('hshy:user-config:query')")
public CommonResult<UserConfigPontsRespVO> getUserConfig(@RequestParam("id") Integer id) {
UserConfigDO userConfig = userConfigService.getUserConfig(id);
return success(BeanUtils.toBean(userConfig, UserConfigPontsRespVO.class));
}
}

View File

@ -0,0 +1,82 @@
package cn.iocoder.yudao.module.hshy.controller.admin.userconfig.vo;
import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.alibaba.excel.annotation.ExcelProperty;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import java.math.BigDecimal;
import java.time.LocalDateTime;
@Schema(description = "管理后台 - 会员余额 Response VO")
@Data
@ExcelIgnoreUnannotated
public class UserConfigBalanceRespVO {
@Schema(description = "编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "13162")
@ExcelProperty("编号")
private Integer id;
@Schema(description = "会员等级编号", example = "9045")
private Long levelId;
@Schema(description = "业务类型", example = "1")
@ExcelProperty("业务类型")
private String bizType;
@Schema(description = "业务规格", example = "1")
@ExcelProperty("业务规格")
private String proType;
@Schema(description = "返余额比例")
@ExcelProperty("返余额比例")
private BigDecimal yBalanceRatio;
@Schema(description = "消费余额")
@ExcelProperty("消费余额")
private Boolean yIsBalance;
@Schema(description = "可提现余额")
@ExcelProperty("可提现余额")
private Boolean yIsFundsBalance;
@Schema(description = "订单支付成功后")
@ExcelProperty("订单支付成功后")
private Boolean isOrderSuccessful;
@Schema(description = "订单发货后")
@ExcelProperty("订单发货后")
private Boolean isOrderShipped;
@Schema(description = "订单发货并已过维权期")
@ExcelProperty("订单发货并已过维权期")
private Boolean isOrderLaw;
@Schema(description = "全部商品")
@ExcelProperty("全部商品")
private Boolean isFull;
@Schema(description = "部分商品")
@ExcelProperty("部分商品")
private Boolean isPortion;
@Schema(description = "部分不参与商品")
@ExcelProperty("部分不参与商品")
private Boolean isNoPortion;
@Schema(description = "门店参与")
@ExcelProperty("门店参与")
private Boolean isStore;
@Schema(description = "门店不参与")
@ExcelProperty("门店不参与")
private Boolean isNoStore;
@Schema(description = "商品spuid", example = "15740")
@ExcelProperty("商品spuid")
private Long spuId;
@Schema(description = "商品skuid", example = "17464")
@ExcelProperty("商品skuid")
private Long skuId;
}

View File

@ -0,0 +1,65 @@
package cn.iocoder.yudao.module.hshy.controller.admin.userconfig.vo;
import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.alibaba.excel.annotation.ExcelProperty;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import java.math.BigDecimal;
import java.time.LocalDateTime;
@Schema(description = "管理后台 - 会员充值 Response VO")
@Data
@ExcelIgnoreUnannotated
public class UserConfigBonusRespVO {
@Schema(description = "编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "13162")
@ExcelProperty("编号")
private Integer id;
@Schema(description = "会员等级编号", example = "9045")
private Long levelId;
@Schema(description = "业务类型", example = "1")
@ExcelProperty("业务类型")
private String bizType;
@Schema(description = "业务规格", example = "1")
@ExcelProperty("业务规格")
private String proType;
@Schema(description = "是否满充值奖励")
private Boolean cIsRechargeBonus;
@Schema(description = "满充值奖励(元)")
@ExcelProperty("满充值奖励(元)")
private BigDecimal cRechargeBonus;
@Schema(description = "积分")
@ExcelProperty("积分")
private Boolean isPoints;
@Schema(description = "积分")
@ExcelProperty("积分")
private Integer points;
@Schema(description = "余额")
@ExcelProperty("余额")
private Boolean isBalance;
@Schema(description = "余额")
@ExcelProperty("余额")
private Integer balance;
@Schema(description = "余额类型", example = "1")
@ExcelProperty("余额类型")
private String balanceType;
@Schema(description = "优惠券")
@ExcelProperty("优惠券")
private Boolean isCoupon;
@Schema(description = "优惠券集合")
@ExcelProperty("优惠券集合")
private String couponJson;
}

View File

@ -0,0 +1,65 @@
package cn.iocoder.yudao.module.hshy.controller.admin.userconfig.vo;
import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.alibaba.excel.annotation.ExcelProperty;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import java.math.BigDecimal;
import java.time.LocalDateTime;
@Schema(description = "管理后台 - 会员充值 Response VO")
@Data
@ExcelIgnoreUnannotated
public class UserConfigCycleRespVO {
@Schema(description = "编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "13162")
@ExcelProperty("编号")
private Integer id;
@Schema(description = "会员等级编号", example = "9045")
private Long levelId;
@Schema(description = "周期奖励")
@ExcelProperty("周期奖励")
private Integer zCycle;
@Schema(description = "积分")
@ExcelProperty("积分")
private Boolean isPoints;
@Schema(description = "积分")
@ExcelProperty("积分")
private Integer points;
@Schema(description = "余额")
@ExcelProperty("余额")
private Boolean isBalance;
@Schema(description = "余额")
@ExcelProperty("余额")
private Integer balance;
@Schema(description = "礼品卡")
@ExcelProperty("礼品卡")
private Boolean isCard;
@Schema(description = "礼品卡集合")
@ExcelProperty("礼品卡集合")
private String cardJson;
@Schema(description = "商品")
@ExcelProperty("商品")
private Boolean isPro;
@Schema(description = "商品spuid", example = "15740")
@ExcelProperty("商品spuid")
private Long spuId;
@Schema(description = "商品skuid", example = "17464")
@ExcelProperty("商品skuid")
private Long skuId;
}

View File

@ -0,0 +1,104 @@
package cn.iocoder.yudao.module.hshy.controller.admin.userconfig.vo;
import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.alibaba.excel.annotation.ExcelProperty;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import java.math.BigDecimal;
import java.time.LocalDateTime;
@Schema(description = "管理后台 - 会员充值 Response VO")
@Data
@ExcelIgnoreUnannotated
public class UserConfigDownRespVO {
@Schema(description = "编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "13162")
@ExcelProperty("编号")
private Integer id;
@Schema(description = "会员等级编号", example = "9045")
private Long levelId;
@Schema(description = "业务类型", example = "1")
@ExcelProperty("业务类型")
private String bizType;
@Schema(description = "业务规格", example = "1")
@ExcelProperty("业务规格")
private String proType;
@Schema(description = "是否开启降级策略")
@ExcelProperty("是否开启降级策略")
private Boolean dIsStrategy;
@Schema(description = "策略类型", example = "1")
@ExcelProperty("策略类型")
private String dStrategyType;
@Schema(description = "降级时间")
@ExcelProperty("降级时间")
private LocalDateTime dStrategyTime;
@Schema(description = "等级保护期", example = "15123")
@ExcelProperty("等级保护期")
private Integer dStrategyCount;
@Schema(description = "满足以下任意条件")
@ExcelProperty("满足以下任意条件")
private Boolean dIsAnyCondition;
@Schema(description = "满足以下任意条件天数", example = "14555")
@ExcelProperty("满足以下任意条件天数")
private Integer dAnyConditionCount;
@Schema(description = "单笔消费")
@ExcelProperty("单笔消费")
private Boolean dIsSingle;
@Schema(description = "消费")
@ExcelProperty("消费")
private Integer dSingle;
@Schema(description = "累积消费")
@ExcelProperty("累积消费")
private Boolean dIsAddSingle;
@Schema(description = "消费")
@ExcelProperty("消费")
private Integer dAddSingle;
@Schema(description = "单笔充值")
@ExcelProperty("单笔充值")
private Boolean dIsRecharge;
@Schema(description = "充值")
@ExcelProperty("充值")
private Integer dRecharge;
@Schema(description = "累积充值")
@ExcelProperty("累积充值")
private Boolean dIsAddRecharge;
@Schema(description = "充值")
@ExcelProperty("充值")
private Integer dAddRecharge;
@Schema(description = "指定商品")
@ExcelProperty("指定商品")
private Boolean dIsPro;
@Schema(description = "商品spuid", example = "15740")
@ExcelProperty("商品spuid")
private Long spuId;
@Schema(description = "商品skuid", example = "17464")
@ExcelProperty("商品skuid")
private Long skuId;
@Schema(description = "降级类型", example = "1")
@ExcelProperty("降级类型")
private Boolean dType;
@Schema(description = "指定等级")
@ExcelProperty("指定等级")
private String dTypeLevel;
}

View File

@ -0,0 +1,70 @@
package cn.iocoder.yudao.module.hshy.controller.admin.userconfig.vo;
import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.alibaba.excel.annotation.ExcelProperty;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import java.math.BigDecimal;
import java.time.LocalDateTime;
@Schema(description = "管理后台 - 会员包邮 Response VO")
@Data
@ExcelIgnoreUnannotated
public class UserConfigFreeRespVO {
@Schema(description = "编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "13162")
@ExcelProperty("编号")
private Integer id;
@Schema(description = "会员等级编号", example = "9045")
private Long levelId;
@Schema(description = "业务类型", example = "1")
@ExcelProperty("业务类型")
private String bizType;
@Schema(description = "业务规格", example = "1")
@ExcelProperty("业务规格")
private String proType;
@Schema(description = "无门槛包邮")
@ExcelProperty("无门槛包邮")
private Boolean bIsFreeShipping;
@Schema(description = "有门槛包邮")
@ExcelProperty("有门槛包邮")
private Boolean bIsNoFreeShipping;
@Schema(description = "有门槛包邮(元)")
@ExcelProperty("有门槛包邮(元)")
private Integer bNoFreeShipping;
@Schema(description = "全部商品")
@ExcelProperty("全部商品")
private Boolean isFull;
@Schema(description = "部分商品")
@ExcelProperty("部分商品")
private Boolean isPortion;
@Schema(description = "部分不参与商品")
@ExcelProperty("部分不参与商品")
private Boolean isNoPortion;
@Schema(description = "门店参与")
@ExcelProperty("门店参与")
private Boolean isStore;
@Schema(description = "门店不参与")
@ExcelProperty("门店不参与")
private Boolean isNoStore;
@Schema(description = "商品spuid", example = "15740")
@ExcelProperty("商品spuid")
private Long spuId;
@Schema(description = "商品skuid", example = "17464")
@ExcelProperty("商品skuid")
private Long skuId;
}

View File

@ -0,0 +1,79 @@
package cn.iocoder.yudao.module.hshy.controller.admin.userconfig.vo;
import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.alibaba.excel.annotation.ExcelProperty;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
@Schema(description = "管理后台 - 会员条件配置 Response VO")
@Data
@ExcelIgnoreUnannotated
public class UserConfigGradeRespVO {
@Schema(description = "编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "13162")
@ExcelProperty("编号")
private Integer id;
@Schema(description = "会员等级编号", example = "9045")
private Long levelId;
@Schema(description = "业务类型", example = "1")
@ExcelProperty("业务类型")
private String bizType;
@Schema(description = "业务规格", example = "1")
@ExcelProperty("业务规格")
private String proType;
@Schema(description = "满足以下任意条件")
@ExcelProperty("满足以下任意条件")
private Boolean gAnyCondition;
@Schema(description = "满足以下全部条件")
@ExcelProperty("满足以下全部条件")
private Boolean gAllCondition;
@Schema(description = "商品spuid", example = "15740")
@ExcelProperty("商品spuid")
private Long spuId;
@Schema(description = "商品skuid", example = "17464")
@ExcelProperty("商品skuid")
private Long skuId;
@Schema(description = "商品")
@ExcelProperty("商品")
private Boolean isPro;
@Schema(description = "单笔消费")
@ExcelProperty("单笔消费")
private Boolean dIsSingle;
@Schema(description = "消费")
@ExcelProperty("消费")
private Integer dSingle;
@Schema(description = "累积消费")
@ExcelProperty("累积消费")
private Boolean dIsAddSingle;
@Schema(description = "消费")
@ExcelProperty("消费")
private Integer dAddSingle;
@Schema(description = "单笔充值")
@ExcelProperty("单笔充值")
private Boolean dIsRecharge;
@Schema(description = "充值")
@ExcelProperty("充值")
private Integer dRecharge;
@Schema(description = "累积充值")
@ExcelProperty("累积充值")
private Boolean dIsAddRecharge;
@Schema(description = "充值")
@ExcelProperty("充值")
private Integer dAddRecharge;
}

View File

@ -0,0 +1,57 @@
package cn.iocoder.yudao.module.hshy.controller.admin.userconfig.vo;
import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.alibaba.excel.annotation.ExcelProperty;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
@Schema(description = "管理后台 - 会员充值 Response VO")
@Data
@ExcelIgnoreUnannotated
public class UserConfigLevelRespVO {
@Schema(description = "编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "13162")
@ExcelProperty("编号")
private Integer id;
@Schema(description = "会员等级编号", example = "9045")
private Long levelId;
@Schema(description = "积分")
@ExcelProperty("积分")
private Boolean isPoints;
@Schema(description = "积分")
@ExcelProperty("积分")
private Integer points;
@Schema(description = "余额")
@ExcelProperty("余额")
private Boolean isBalance;
@Schema(description = "余额")
@ExcelProperty("余额")
private Integer balance;
@Schema(description = "礼品卡")
@ExcelProperty("礼品卡")
private Boolean isCard;
@Schema(description = "礼品卡集合")
@ExcelProperty("礼品卡集合")
private String cardJson;
@Schema(description = "商品")
@ExcelProperty("商品")
private Boolean isPro;
@Schema(description = "商品spuid", example = "15740")
@ExcelProperty("商品spuid")
private Long spuId;
@Schema(description = "商品skuid", example = "17464")
@ExcelProperty("商品skuid")
private Long skuId;
}

View File

@ -0,0 +1,26 @@
package cn.iocoder.yudao.module.hshy.controller.admin.userconfig.vo;
import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.alibaba.excel.annotation.ExcelProperty;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
@Schema(description = "管理后台 - 会员充值 Response VO")
@Data
@ExcelIgnoreUnannotated
public class UserConfigOnlyRespVO {
@Schema(description = "编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "13162")
@ExcelProperty("编号")
private Integer id;
@Schema(description = "会员等级编号", example = "9045")
private Long levelId;
@Schema(description = "业务类型", example = "1")
@ExcelProperty("业务类型")
private String bizType;
@Schema(description = "业务规格", example = "1")
@ExcelProperty("业务规格")
private String proType;
}

View File

@ -4,6 +4,7 @@ import lombok.*;
import java.util.*;
import io.swagger.v3.oas.annotations.media.Schema;
import cn.iocoder.yudao.framework.common.pojo.PageParam;
import java.math.BigDecimal;
import org.springframework.format.annotation.DateTimeFormat;
import java.time.LocalDateTime;
@ -15,20 +16,165 @@ import static cn.iocoder.yudao.framework.common.util.date.DateUtils.FORMAT_YEAR_
@ToString(callSuper = true)
public class UserConfigPageReqVO extends PageParam {
@Schema(description = "会员编码", example = "6413")
@Schema(description = "会员编码", example = "9045")
private Long memberUserId;
@Schema(description = "业务类型", example = "2")
@Schema(description = "会员等级编号", example = "9045")
private Long levelId;
@Schema(description = "业务类型", example = "1")
private String bizType;
@Schema(description = "前置条件")
private String beforeJson;
@Schema(description = "业务规格", example = "1")
private String proType;
@Schema(description = "后置条件")
private String afterJson;
@Schema(description = "满足以下任意条件")
private Boolean gAnyCondition;
@Schema(description = "业务值")
private String bizValue;
@Schema(description = "满足以下全部条件")
private Boolean gAllCondition;
@Schema(description = "是否开启降级策略")
private Boolean dIsStrategy;
@Schema(description = "策略类型", example = "1")
private String dStrategyType;
@Schema(description = "降级时间")
@DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
private LocalDateTime[] dStrategyTime;
@Schema(description = "等级保护期", example = "15123")
private Integer dStrategyCount;
@Schema(description = "满足以下任意条件")
private Boolean dIsAnyCondition;
@Schema(description = "满足以下任意条件天数", example = "14555")
private Integer dAnyConditionCount;
@Schema(description = "单笔消费")
private Boolean dIsSingle;
@Schema(description = "消费")
private Integer dSingle;
@Schema(description = "累积消费")
private Boolean dIsAddSingle;
@Schema(description = "消费")
private Integer dAddSingle;
@Schema(description = "单笔充值")
private Boolean dIsRecharge;
@Schema(description = "充值")
private Integer dRecharge;
@Schema(description = "累积充值")
private Boolean dIsAddRecharge;
@Schema(description = "充值")
private Integer dAddRecharge;
@Schema(description = "指定商品")
private Boolean dIsPro;
@Schema(description = "降级类型", example = "1")
private Boolean dType;
@Schema(description = "指定等级")
private String dTypeLevel;
@Schema(description = "商品折扣", example = "30326")
private BigDecimal pDiscount;
@Schema(description = "返积分比例")
private BigDecimal jPointsRatio;
@Schema(description = "返余额比例")
private BigDecimal yBalanceRatio;
@Schema(description = "消费余额")
private Boolean yIsBalance;
@Schema(description = "可提现余额")
private Boolean yIsFundsBalance;
@Schema(description = "订单支付成功后")
private Boolean isOrderSuccessful;
@Schema(description = "订单发货后")
private Boolean isOrderShipped;
@Schema(description = "订单发货并已过维权期")
private Boolean isOrderLaw;
@Schema(description = "满充值奖励(元)")
private BigDecimal cRechargeBonus;
@Schema(description = "积分")
private Boolean isPoints;
@Schema(description = "积分")
private Integer points;
@Schema(description = "余额")
private Boolean isBalance;
@Schema(description = "余额")
private Integer balance;
@Schema(description = "余额类型", example = "1")
private String balanceType;
@Schema(description = "优惠券")
private Boolean isCoupon;
@Schema(description = "优惠券集合")
private String couponJson;
@Schema(description = "无门槛包邮")
private Boolean bIsFreeShipping;
@Schema(description = "有门槛包邮")
private Boolean bIsNoFreeShipping;
@Schema(description = "有门槛包邮(元)")
private Integer bNoFreeShipping;
@Schema(description = "周期奖励")
private Integer zCycle;
@Schema(description = "礼品卡")
private Boolean isCard;
@Schema(description = "礼品卡集合")
private String cardJson;
@Schema(description = "全部商品")
private Boolean isFull;
@Schema(description = "部分商品")
private Boolean isPortion;
@Schema(description = "部分不参与商品")
private Boolean isNoPortion;
@Schema(description = "门店参与")
private Boolean isStore;
@Schema(description = "门店不参与")
private Boolean isNoStore;
@Schema(description = "商品spuid", example = "15740")
private Long spuId;
@Schema(description = "商品skuid", example = "17464")
private Long skuId;
@Schema(description = "商品")
private Boolean isPro;
@Schema(description = "创建时间")
@DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)

View File

@ -0,0 +1,62 @@
package cn.iocoder.yudao.module.hshy.controller.admin.userconfig.vo;
import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.alibaba.excel.annotation.ExcelProperty;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import java.math.BigDecimal;
import java.time.LocalDateTime;
@Schema(description = "管理后台 - 会员消费积分 Response VO")
@Data
@ExcelIgnoreUnannotated
public class UserConfigPontsRespVO {
@Schema(description = "编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "13162")
@ExcelProperty("编号")
private Integer id;
@Schema(description = "会员等级编号", example = "9045")
private Long levelId;
@Schema(description = "业务类型", example = "1")
@ExcelProperty("业务类型")
private String bizType;
@Schema(description = "业务规格", example = "1")
@ExcelProperty("业务规格")
private String proType;
@Schema(description = "返积分比例")
@ExcelProperty("返积分比例")
private BigDecimal jPointsRatio;
@Schema(description = "全部商品")
@ExcelProperty("全部商品")
private Boolean isFull;
@Schema(description = "部分商品")
@ExcelProperty("部分商品")
private Boolean isPortion;
@Schema(description = "部分不参与商品")
@ExcelProperty("部分不参与商品")
private Boolean isNoPortion;
@Schema(description = "门店参与")
@ExcelProperty("门店参与")
private Boolean isStore;
@Schema(description = "门店不参与")
@ExcelProperty("门店不参与")
private Boolean isNoStore;
@Schema(description = "商品spuid", example = "15740")
@ExcelProperty("商品spuid")
private Long spuId;
@Schema(description = "商品skuid", example = "17464")
@ExcelProperty("商品skuid")
private Long skuId;
}

View File

@ -3,6 +3,7 @@ package cn.iocoder.yudao.module.hshy.controller.admin.userconfig.vo;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;
import java.util.*;
import java.math.BigDecimal;
import org.springframework.format.annotation.DateTimeFormat;
import java.time.LocalDateTime;
import com.alibaba.excel.annotation.*;
@ -12,29 +13,220 @@ import com.alibaba.excel.annotation.*;
@ExcelIgnoreUnannotated
public class UserConfigRespVO {
@Schema(description = "编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "28791")
@Schema(description = "编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "13162")
@ExcelProperty("编号")
private Integer id;
@Schema(description = "会员编码", example = "6413")
@Schema(description = "会员等级编号", example = "9045")
private Long levelId;
@Schema(description = "会员编码", example = "9045")
@ExcelProperty("会员编码")
private Long memberUserId;
@Schema(description = "业务类型", example = "2")
@Schema(description = "业务类型", example = "1")
@ExcelProperty("业务类型")
private String bizType;
@Schema(description = "前置条件")
@ExcelProperty("前置条件")
private String beforeJson;
@Schema(description = "业务规格", example = "1")
@ExcelProperty("业务规格")
private String proType;
@Schema(description = "后置条件")
@ExcelProperty("后置条件")
private String afterJson;
@Schema(description = "满足以下任意条件")
@ExcelProperty("满足以下任意条件")
private Boolean gAnyCondition;
@Schema(description = "业务值")
@ExcelProperty("业务值")
private String bizValue;
@Schema(description = "满足以下全部条件")
@ExcelProperty("满足以下全部条件")
private Boolean gAllCondition;
@Schema(description = "是否开启降级策略")
@ExcelProperty("是否开启降级策略")
private Boolean dIsStrategy;
@Schema(description = "策略类型", example = "1")
@ExcelProperty("策略类型")
private String dStrategyType;
@Schema(description = "降级时间")
@ExcelProperty("降级时间")
private LocalDateTime dStrategyTime;
@Schema(description = "等级保护期", example = "15123")
@ExcelProperty("等级保护期")
private Integer dStrategyCount;
@Schema(description = "满足以下任意条件")
@ExcelProperty("满足以下任意条件")
private Boolean dIsAnyCondition;
@Schema(description = "满足以下任意条件天数", example = "14555")
@ExcelProperty("满足以下任意条件天数")
private Integer dAnyConditionCount;
@Schema(description = "单笔消费")
@ExcelProperty("单笔消费")
private Boolean dIsSingle;
@Schema(description = "消费")
@ExcelProperty("消费")
private Integer dSingle;
@Schema(description = "累积消费")
@ExcelProperty("累积消费")
private Boolean dIsAddSingle;
@Schema(description = "消费")
@ExcelProperty("消费")
private Integer dAddSingle;
@Schema(description = "单笔充值")
@ExcelProperty("单笔充值")
private Boolean dIsRecharge;
@Schema(description = "充值")
@ExcelProperty("充值")
private Integer dRecharge;
@Schema(description = "累积充值")
@ExcelProperty("累积充值")
private Boolean dIsAddRecharge;
@Schema(description = "充值")
@ExcelProperty("充值")
private Integer dAddRecharge;
@Schema(description = "指定商品")
@ExcelProperty("指定商品")
private Boolean dIsPro;
@Schema(description = "降级类型", example = "1")
@ExcelProperty("降级类型")
private Boolean dType;
@Schema(description = "指定等级")
@ExcelProperty("指定等级")
private String dTypeLevel;
@Schema(description = "商品折扣", example = "30326")
@ExcelProperty("商品折扣")
private BigDecimal pDiscount;
@Schema(description = "返积分比例")
@ExcelProperty("返积分比例")
private BigDecimal jPointsRatio;
@Schema(description = "返余额比例")
@ExcelProperty("返余额比例")
private BigDecimal yBalanceRatio;
@Schema(description = "消费余额")
@ExcelProperty("消费余额")
private Boolean yIsBalance;
@Schema(description = "可提现余额")
@ExcelProperty("可提现余额")
private Boolean yIsFundsBalance;
@Schema(description = "订单支付成功后")
@ExcelProperty("订单支付成功后")
private Boolean isOrderSuccessful;
@Schema(description = "订单发货后")
@ExcelProperty("订单发货后")
private Boolean isOrderShipped;
@Schema(description = "订单发货并已过维权期")
@ExcelProperty("订单发货并已过维权期")
private Boolean isOrderLaw;
@Schema(description = "满充值奖励(元)")
@ExcelProperty("满充值奖励(元)")
private BigDecimal cRechargeBonus;
@Schema(description = "积分")
@ExcelProperty("积分")
private Boolean isPoints;
@Schema(description = "积分")
@ExcelProperty("积分")
private Integer points;
@Schema(description = "余额")
@ExcelProperty("余额")
private Boolean isBalance;
@Schema(description = "余额")
@ExcelProperty("余额")
private Integer balance;
@Schema(description = "余额类型", example = "1")
@ExcelProperty("余额类型")
private String balanceType;
@Schema(description = "优惠券")
@ExcelProperty("优惠券")
private Boolean isCoupon;
@Schema(description = "优惠券集合")
@ExcelProperty("优惠券集合")
private String couponJson;
@Schema(description = "无门槛包邮")
@ExcelProperty("无门槛包邮")
private Boolean bIsFreeShipping;
@Schema(description = "有门槛包邮")
@ExcelProperty("有门槛包邮")
private Boolean bIsNoFreeShipping;
@Schema(description = "有门槛包邮(元)")
@ExcelProperty("有门槛包邮(元)")
private Integer bNoFreeShipping;
@Schema(description = "周期奖励")
@ExcelProperty("周期奖励")
private Integer zCycle;
@Schema(description = "礼品卡")
@ExcelProperty("礼品卡")
private Boolean isCard;
@Schema(description = "礼品卡集合")
@ExcelProperty("礼品卡集合")
private String cardJson;
@Schema(description = "全部商品")
@ExcelProperty("全部商品")
private Boolean isFull;
@Schema(description = "部分商品")
@ExcelProperty("部分商品")
private Boolean isPortion;
@Schema(description = "部分不参与商品")
@ExcelProperty("部分不参与商品")
private Boolean isNoPortion;
@Schema(description = "门店参与")
@ExcelProperty("门店参与")
private Boolean isStore;
@Schema(description = "门店不参与")
@ExcelProperty("门店不参与")
private Boolean isNoStore;
@Schema(description = "商品spuid", example = "15740")
@ExcelProperty("商品spuid")
private Long spuId;
@Schema(description = "商品skuid", example = "17464")
@ExcelProperty("商品skuid")
private Long skuId;
@Schema(description = "商品")
@ExcelProperty("商品")
private Boolean isPro;
@Schema(description = "创建时间", requiredMode = Schema.RequiredMode.REQUIRED)
@ExcelProperty("创建时间")

View File

@ -3,27 +3,174 @@ package cn.iocoder.yudao.module.hshy.controller.admin.userconfig.vo;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;
import java.util.*;
import java.math.BigDecimal;
import org.springframework.format.annotation.DateTimeFormat;
import java.time.LocalDateTime;
@Schema(description = "管理后台 - 会员条件配置新增/修改 Request VO")
@Data
public class UserConfigSaveReqVO {
@Schema(description = "编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "28791")
@Schema(description = "编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "13162")
private Integer id;
@Schema(description = "会员编码", example = "6413")
@Schema(description = "会员等级编号", example = "9045")
private Long levelId;
@Schema(description = "会员编码", example = "9045")
private Long memberUserId;
@Schema(description = "业务类型", example = "2")
@Schema(description = "业务类型", example = "1")
private String bizType;
@Schema(description = "前置条件")
private String beforeJson;
@Schema(description = "业务规格", example = "1")
private String proType;
@Schema(description = "后置条件")
private String afterJson;
@Schema(description = "满足以下任意条件")
private Boolean gAnyCondition;
@Schema(description = "业务值")
private String bizValue;
@Schema(description = "满足以下全部条件")
private Boolean gAllCondition;
@Schema(description = "是否开启降级策略")
private Boolean dIsStrategy;
@Schema(description = "策略类型", example = "1")
private String dStrategyType;
@Schema(description = "降级时间")
private LocalDateTime dStrategyTime;
@Schema(description = "等级保护期", example = "15123")
private Integer dStrategyCount;
@Schema(description = "满足以下任意条件")
private Boolean dIsAnyCondition;
@Schema(description = "满足以下任意条件天数", example = "14555")
private Integer dAnyConditionCount;
@Schema(description = "单笔消费")
private Boolean dIsSingle;
@Schema(description = "消费")
private Integer dSingle;
@Schema(description = "累积消费")
private Boolean dIsAddSingle;
@Schema(description = "消费")
private Integer dAddSingle;
@Schema(description = "单笔充值")
private Boolean dIsRecharge;
@Schema(description = "充值")
private Integer dRecharge;
@Schema(description = "累积充值")
private Boolean dIsAddRecharge;
@Schema(description = "充值")
private Integer dAddRecharge;
@Schema(description = "指定商品")
private Boolean dIsPro;
@Schema(description = "降级类型", example = "1")
private Boolean dType;
@Schema(description = "指定等级")
private String dTypeLevel;
@Schema(description = "商品折扣", example = "30326")
private BigDecimal pDiscount;
@Schema(description = "返积分比例")
private BigDecimal jPointsRatio;
@Schema(description = "返余额比例")
private BigDecimal yBalanceRatio;
@Schema(description = "消费余额")
private Boolean yIsBalance;
@Schema(description = "可提现余额")
private Boolean yIsFundsBalance;
@Schema(description = "订单支付成功后")
private Boolean isOrderSuccessful;
@Schema(description = "订单发货后")
private Boolean isOrderShipped;
@Schema(description = "订单发货并已过维权期")
private Boolean isOrderLaw;
@Schema(description = "满充值奖励(元)")
private BigDecimal cRechargeBonus;
@Schema(description = "积分")
private Boolean isPoints;
@Schema(description = "积分")
private Integer points;
@Schema(description = "余额")
private Boolean isBalance;
@Schema(description = "余额")
private Integer balance;
@Schema(description = "余额类型", example = "1")
private String balanceType;
@Schema(description = "优惠券")
private Boolean isCoupon;
@Schema(description = "优惠券集合")
private String couponJson;
@Schema(description = "无门槛包邮")
private Boolean bIsFreeShipping;
@Schema(description = "有门槛包邮")
private Boolean bIsNoFreeShipping;
@Schema(description = "有门槛包邮(元)")
private Integer bNoFreeShipping;
@Schema(description = "周期奖励")
private Integer zCycle;
@Schema(description = "礼品卡")
private Boolean isCard;
@Schema(description = "礼品卡集合")
private String cardJson;
@Schema(description = "全部商品")
private Boolean isFull;
@Schema(description = "部分商品")
private Boolean isPortion;
@Schema(description = "部分不参与商品")
private Boolean isNoPortion;
@Schema(description = "门店参与")
private Boolean isStore;
@Schema(description = "门店不参与")
private Boolean isNoStore;
@Schema(description = "商品spuid", example = "15740")
private Long spuId;
@Schema(description = "商品skuid", example = "17464")
private Long skuId;
@Schema(description = "商品")
private Boolean isPro;
}

View File

@ -3,6 +3,11 @@ package cn.iocoder.yudao.module.hshy.dal.dataobject.userconfig;
import lombok.*;
import java.util.*;
import java.time.LocalDateTime;
import java.math.BigDecimal;
import java.math.BigDecimal;
import java.math.BigDecimal;
import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.time.LocalDateTime;
import com.baomidou.mybatisplus.annotation.*;
import cn.iocoder.yudao.framework.mybatis.core.dataobject.BaseDO;
@ -27,6 +32,12 @@ public class UserConfigDO extends BaseDO {
*/
@TableId
private Integer id;
/**
*
*/
private Long levelId;
/**
*
*/
@ -36,16 +47,210 @@ public class UserConfigDO extends BaseDO {
*/
private String bizType;
/**
*
*
*/
private String beforeJson;
private String proType;
/**
*
*
*/
private String afterJson;
private Boolean gAnyCondition;
/**
*
*
*/
private String bizValue;
private Boolean gAllCondition;
/**
*
*/
private Boolean dIsStrategy;
/**
*
*/
private String dStrategyType;
/**
*
*/
private LocalDateTime dStrategyTime;
/**
*
*/
private Integer dStrategyCount;
/**
*
*/
private Boolean dIsAnyCondition;
/**
*
*/
private Integer dAnyConditionCount;
/**
*
*/
private Boolean dIsSingle;
/**
*
*/
private Integer dSingle;
/**
*
*/
private Boolean dIsAddSingle;
/**
*
*/
private Integer dAddSingle;
/**
*
*/
private Boolean dIsRecharge;
/**
*
*/
private Integer dRecharge;
/**
*
*/
private Boolean dIsAddRecharge;
/**
*
*/
private Integer dAddRecharge;
/**
*
*/
private Boolean dIsPro;
/**
*
*/
private Boolean dType;
/**
*
*/
private String dTypeLevel;
/**
*
*/
private BigDecimal pDiscount;
/**
*
*/
private BigDecimal jPointsRatio;
/**
*
*/
private BigDecimal yBalanceRatio;
/**
*
*/
private Boolean yIsBalance;
/**
*
*/
private Boolean yIsFundsBalance;
/**
*
*/
private Boolean isOrderSuccessful;
/**
*
*/
private Boolean isOrderShipped;
/**
*
*/
private Boolean isOrderLaw;
/**
*
*/
private Boolean cIsRechargeBonus;
/**
* ()
*/
private BigDecimal cRechargeBonus;
/**
*
*/
private Boolean isPoints;
/**
*
*/
private Integer points;
/**
*
*/
private Boolean isBalance;
/**
*
*/
private Integer balance;
/**
*
*/
private String balanceType;
/**
*
*/
private Boolean isCoupon;
/**
*
*/
private String couponJson;
/**
*
*/
private Boolean bIsFreeShipping;
/**
*
*/
private Boolean bIsNoFreeShipping;
/**
* ()
*/
private Integer bNoFreeShipping;
/**
*
*/
private Integer zCycle;
/**
*
*/
private Boolean isCard;
/**
*
*/
private String cardJson;
/**
*
*/
private Boolean isFull;
/**
*
*/
private Boolean isPortion;
/**
*
*/
private Boolean isNoPortion;
/**
*
*/
private Boolean isStore;
/**
*
*/
private Boolean isNoStore;
/**
* spuid
*/
private Long spuId;
/**
* skuid
*/
private Long skuId;
/**
*
*/
private Boolean isPro;
}

View File

@ -21,9 +21,56 @@ public interface UserConfigMapper extends BaseMapperX<UserConfigDO> {
return selectPage(reqVO, new LambdaQueryWrapperX<UserConfigDO>()
.eqIfPresent(UserConfigDO::getMemberUserId, reqVO.getMemberUserId())
.eqIfPresent(UserConfigDO::getBizType, reqVO.getBizType())
.eqIfPresent(UserConfigDO::getBeforeJson, reqVO.getBeforeJson())
.eqIfPresent(UserConfigDO::getAfterJson, reqVO.getAfterJson())
.eqIfPresent(UserConfigDO::getBizValue, reqVO.getBizValue())
.eqIfPresent(UserConfigDO::getProType, reqVO.getProType())
.eqIfPresent(UserConfigDO::getGAnyCondition, reqVO.getGAnyCondition())
.eqIfPresent(UserConfigDO::getGAllCondition, reqVO.getGAllCondition())
.eqIfPresent(UserConfigDO::getDIsStrategy, reqVO.getDIsStrategy())
.eqIfPresent(UserConfigDO::getDStrategyType, reqVO.getDStrategyType())
.betweenIfPresent(UserConfigDO::getDStrategyTime, reqVO.getDStrategyTime())
.eqIfPresent(UserConfigDO::getDStrategyCount, reqVO.getDStrategyCount())
.eqIfPresent(UserConfigDO::getDIsAnyCondition, reqVO.getDIsAnyCondition())
.eqIfPresent(UserConfigDO::getDAnyConditionCount, reqVO.getDAnyConditionCount())
.eqIfPresent(UserConfigDO::getDIsSingle, reqVO.getDIsSingle())
.eqIfPresent(UserConfigDO::getDSingle, reqVO.getDSingle())
.eqIfPresent(UserConfigDO::getDIsAddSingle, reqVO.getDIsAddSingle())
.eqIfPresent(UserConfigDO::getDAddSingle, reqVO.getDAddSingle())
.eqIfPresent(UserConfigDO::getDIsRecharge, reqVO.getDIsRecharge())
.eqIfPresent(UserConfigDO::getDRecharge, reqVO.getDRecharge())
.eqIfPresent(UserConfigDO::getDIsAddRecharge, reqVO.getDIsAddRecharge())
.eqIfPresent(UserConfigDO::getDAddRecharge, reqVO.getDAddRecharge())
.eqIfPresent(UserConfigDO::getDIsPro, reqVO.getDIsPro())
.eqIfPresent(UserConfigDO::getDType, reqVO.getDType())
.eqIfPresent(UserConfigDO::getDTypeLevel, reqVO.getDTypeLevel())
.eqIfPresent(UserConfigDO::getPDiscount, reqVO.getPDiscount())
.eqIfPresent(UserConfigDO::getJPointsRatio, reqVO.getJPointsRatio())
.eqIfPresent(UserConfigDO::getYBalanceRatio, reqVO.getYBalanceRatio())
.eqIfPresent(UserConfigDO::getYIsBalance, reqVO.getYIsBalance())
.eqIfPresent(UserConfigDO::getYIsFundsBalance, reqVO.getYIsFundsBalance())
.eqIfPresent(UserConfigDO::getIsOrderSuccessful, reqVO.getIsOrderSuccessful())
.eqIfPresent(UserConfigDO::getIsOrderShipped, reqVO.getIsOrderShipped())
.eqIfPresent(UserConfigDO::getIsOrderLaw, reqVO.getIsOrderLaw())
.eqIfPresent(UserConfigDO::getCRechargeBonus, reqVO.getCRechargeBonus())
.eqIfPresent(UserConfigDO::getIsPoints, reqVO.getIsPoints())
.eqIfPresent(UserConfigDO::getPoints, reqVO.getPoints())
.eqIfPresent(UserConfigDO::getIsBalance, reqVO.getIsBalance())
.eqIfPresent(UserConfigDO::getBalance, reqVO.getBalance())
.eqIfPresent(UserConfigDO::getBalanceType, reqVO.getBalanceType())
.eqIfPresent(UserConfigDO::getIsCoupon, reqVO.getIsCoupon())
.eqIfPresent(UserConfigDO::getCouponJson, reqVO.getCouponJson())
.eqIfPresent(UserConfigDO::getBIsFreeShipping, reqVO.getBIsFreeShipping())
.eqIfPresent(UserConfigDO::getBIsNoFreeShipping, reqVO.getBIsNoFreeShipping())
.eqIfPresent(UserConfigDO::getBNoFreeShipping, reqVO.getBNoFreeShipping())
.eqIfPresent(UserConfigDO::getZCycle, reqVO.getZCycle())
.eqIfPresent(UserConfigDO::getIsCard, reqVO.getIsCard())
.eqIfPresent(UserConfigDO::getCardJson, reqVO.getCardJson())
.eqIfPresent(UserConfigDO::getIsFull, reqVO.getIsFull())
.eqIfPresent(UserConfigDO::getIsPortion, reqVO.getIsPortion())
.eqIfPresent(UserConfigDO::getIsNoPortion, reqVO.getIsNoPortion())
.eqIfPresent(UserConfigDO::getIsStore, reqVO.getIsStore())
.eqIfPresent(UserConfigDO::getIsNoStore, reqVO.getIsNoStore())
.eqIfPresent(UserConfigDO::getSpuId, reqVO.getSpuId())
.eqIfPresent(UserConfigDO::getSkuId, reqVO.getSkuId())
.eqIfPresent(UserConfigDO::getIsPro, reqVO.getIsPro())
.betweenIfPresent(UserConfigDO::getCreateTime, reqVO.getCreateTime())
.orderByDesc(UserConfigDO::getId));
}

View File

@ -23,6 +23,128 @@ public interface UserConfigService {
*/
Integer createUserConfig(@Valid UserConfigSaveReqVO createReqVO);
/**
*
*
* @param createReqVO
* @return
*/
Integer creatPonts(@Valid UserConfigPontsRespVO createReqVO);
/**
*
*
* @param createReqVO
* @return
*/
Integer creatBalance(@Valid UserConfigBalanceRespVO createReqVO);
/**
*
*
* @param createReqVO
* @return
*/
Integer creatBonus(@Valid UserConfigBonusRespVO createReqVO);
/**
*
*
* @param createReqVO
* @return
*/
Integer creatFree(@Valid UserConfigFreeRespVO createReqVO);
/**
*
*
* @param createReqVO
* @return
*/
Integer creatGrade(@Valid UserConfigGradeRespVO createReqVO);
/**
*
*
* @param createReqVO
* @return
*/
Integer creatOnly(@Valid UserConfigOnlyRespVO createReqVO);
/**
*
*
* @param createReqVO
* @return
*/
Integer creatCycle(@Valid UserConfigCycleRespVO createReqVO);
/**
*
*
* @param updateReqVO
* @return
*/
void updatePonts(@Valid UserConfigPontsRespVO updateReqVO);
/**
*
*
* @param updateReqVO
* @return
*/
void updateBalance(@Valid UserConfigBalanceRespVO updateReqVO);
/**
*
*
* @param updateReqVO
* @return
*/
void updateBonus(@Valid UserConfigBonusRespVO updateReqVO);
/**
*
*
* @param updateReqVO
* @return
*/
void updateFree(@Valid UserConfigFreeRespVO updateReqVO);
/**
*
*
* @param updateReqVO
* @return
*/
void updateGrade(@Valid UserConfigGradeRespVO updateReqVO);
/**
*
*
* @param updateReqVO
* @return
*/
void updateOnly(@Valid UserConfigOnlyRespVO updateReqVO);
/**
*
*
* @param updateReqVO
* @return
*/
void updateCycle(@Valid UserConfigCycleRespVO updateReqVO);
/**
*
*

View File

@ -39,6 +39,132 @@ public class UserConfigServiceImpl implements UserConfigService {
return userConfig.getId();
}
@Override
public Integer creatPonts(UserConfigPontsRespVO createReqVO) {
// 插入
UserConfigDO userConfig = BeanUtils.toBean(createReqVO, UserConfigDO.class);
userConfigMapper.insert(userConfig);
// 返回
return userConfig.getId();
}
@Override
public Integer creatBalance(UserConfigBalanceRespVO createReqVO) {
// 插入
UserConfigDO userConfig = BeanUtils.toBean(createReqVO, UserConfigDO.class);
userConfigMapper.insert(userConfig);
// 返回
return userConfig.getId();
}
@Override
public Integer creatBonus(UserConfigBonusRespVO createReqVO) {
// 插入
UserConfigDO userConfig = BeanUtils.toBean(createReqVO, UserConfigDO.class);
userConfigMapper.insert(userConfig);
// 返回
return userConfig.getId();
}
@Override
public Integer creatFree(UserConfigFreeRespVO createReqVO) {
// 插入
UserConfigDO userConfig = BeanUtils.toBean(createReqVO, UserConfigDO.class);
userConfigMapper.insert(userConfig);
// 返回
return userConfig.getId();
}
@Override
public Integer creatGrade(UserConfigGradeRespVO createReqVO) {
// 插入
UserConfigDO userConfig = BeanUtils.toBean(createReqVO, UserConfigDO.class);
userConfigMapper.insert(userConfig);
// 返回
return userConfig.getId();
}
@Override
public Integer creatOnly(UserConfigOnlyRespVO createReqVO) {
// 插入
UserConfigDO userConfig = BeanUtils.toBean(createReqVO, UserConfigDO.class);
userConfigMapper.insert(userConfig);
// 返回
return userConfig.getId();
}
@Override
public Integer creatCycle(UserConfigCycleRespVO createReqVO) {
// 插入
UserConfigDO userConfig = BeanUtils.toBean(createReqVO, UserConfigDO.class);
userConfigMapper.insert(userConfig);
// 返回
return userConfig.getId();
}
@Override
public void updatePonts(UserConfigPontsRespVO updateReqVO) {
// 校验存在
validateUserConfigExists(updateReqVO.getId());
// 更新
UserConfigDO updateObj = BeanUtils.toBean(updateReqVO, UserConfigDO.class);
userConfigMapper.updateById(updateObj);
}
@Override
public void updateBalance(UserConfigBalanceRespVO updateReqVO) {
// 校验存在
validateUserConfigExists(updateReqVO.getId());
// 更新
UserConfigDO updateObj = BeanUtils.toBean(updateReqVO, UserConfigDO.class);
userConfigMapper.updateById(updateObj);
}
@Override
public void updateBonus(UserConfigBonusRespVO updateReqVO) {
// 校验存在
validateUserConfigExists(updateReqVO.getId());
// 更新
UserConfigDO updateObj = BeanUtils.toBean(updateReqVO, UserConfigDO.class);
userConfigMapper.updateById(updateObj);
}
@Override
public void updateFree(UserConfigFreeRespVO updateReqVO) {
// 校验存在
validateUserConfigExists(updateReqVO.getId());
// 更新
UserConfigDO updateObj = BeanUtils.toBean(updateReqVO, UserConfigDO.class);
userConfigMapper.updateById(updateObj);
}
@Override
public void updateGrade(UserConfigGradeRespVO updateReqVO) {
// 校验存在
validateUserConfigExists(updateReqVO.getId());
// 更新
UserConfigDO updateObj = BeanUtils.toBean(updateReqVO, UserConfigDO.class);
userConfigMapper.updateById(updateObj);
}
@Override
public void updateOnly(UserConfigOnlyRespVO updateReqVO) {
// 校验存在
validateUserConfigExists(updateReqVO.getId());
// 更新
UserConfigDO updateObj = BeanUtils.toBean(updateReqVO, UserConfigDO.class);
userConfigMapper.updateById(updateObj);
}
@Override
public void updateCycle(UserConfigCycleRespVO updateReqVO) {
// 校验存在
validateUserConfigExists(updateReqVO.getId());
// 更新
UserConfigDO updateObj = BeanUtils.toBean(updateReqVO, UserConfigDO.class);
userConfigMapper.updateById(updateObj);
}
@Override
public void updateUserConfig(UserConfigSaveReqVO updateReqVO) {
// 校验存在