技师充值奖励配置
This commit is contained in:
parent
b1d5cd31af
commit
1a1965bd82
|
@ -133,8 +133,16 @@ public class Artificer implements Serializable {
|
|||
*/
|
||||
private Date upTime;
|
||||
|
||||
/**
|
||||
* 是否是优选
|
||||
*/
|
||||
private BigDecimal rate;
|
||||
|
||||
/**
|
||||
* 最大在线时长(小时)
|
||||
*/
|
||||
private Integer durationOnline;
|
||||
|
||||
/**
|
||||
* 技师类型 3新手 4专家 5资深
|
||||
*/
|
||||
|
|
|
@ -0,0 +1,49 @@
|
|||
package com.sqx.modules.bl.artificer.controller;
|
||||
|
||||
import com.sqx.common.utils.Result;
|
||||
import com.sqx.modules.bl.artificer.entity.ArtificerRechargeReward;
|
||||
import com.sqx.modules.bl.artificer.service.ArtificerRechargeRewardService;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.PostMapping;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
|
||||
@RestController
|
||||
@RequestMapping("/artificer/artificerRechargeReward")
|
||||
@Api(value = "技师充值奖励", tags = {"技师充值奖励配置"})
|
||||
public class ArtificerRechargeRewardController {
|
||||
|
||||
@Autowired
|
||||
private ArtificerRechargeRewardService service;
|
||||
|
||||
@GetMapping("/findList")
|
||||
@ApiOperation("查询列表")
|
||||
public Result findList(){
|
||||
return Result.success().put("data",service.list());
|
||||
}
|
||||
|
||||
@PostMapping("/add")
|
||||
@ApiOperation("添加")
|
||||
public Result add(ArtificerRechargeReward artificerRechargeReward){
|
||||
service.save(artificerRechargeReward);
|
||||
return Result.success();
|
||||
}
|
||||
|
||||
@PostMapping("/update")
|
||||
@ApiOperation("修改")
|
||||
public Result update(ArtificerRechargeReward artificerRechargeReward){
|
||||
service.updateById(artificerRechargeReward);
|
||||
return Result.success();
|
||||
}
|
||||
|
||||
@PostMapping("/delete")
|
||||
@ApiOperation("删除")
|
||||
public Result delete(ArtificerRechargeReward artificerRechargeReward){
|
||||
service.removeById(artificerRechargeReward.getId());
|
||||
return Result.success();
|
||||
}
|
||||
|
||||
}
|
|
@ -0,0 +1,10 @@
|
|||
package com.sqx.modules.bl.artificer.dao;
|
||||
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.sqx.modules.bl.artificer.entity.ArtificerRechargeReward;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
|
||||
@Mapper
|
||||
public interface ArtificerRechargeRewardDao extends BaseMapper<ArtificerRechargeReward> {
|
||||
|
||||
}
|
|
@ -9,11 +9,6 @@ import java.math.BigDecimal;
|
|||
|
||||
/**
|
||||
* @description:分成明细规则
|
||||
* @author:zc.
|
||||
* @createData:2024-1-24 下午 4:04
|
||||
* @projectName:anmo
|
||||
* @className:ArtificerPartitioningDetails
|
||||
* @packageName:com.sqx.modules.common.entity
|
||||
*/
|
||||
@Data
|
||||
@TableName("artificer_partitioning_details")
|
||||
|
|
|
@ -0,0 +1,33 @@
|
|||
package com.sqx.modules.bl.artificer.entity;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.math.BigDecimal;
|
||||
|
||||
/**
|
||||
* @description:技师充值奖励表
|
||||
*/
|
||||
@Data
|
||||
@TableName("bl_artificer_recharge_reward")
|
||||
|
||||
public class ArtificerRechargeReward implements Serializable {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
@ApiModelProperty("id")
|
||||
private Long id;
|
||||
|
||||
@ApiModelProperty("充值金额")
|
||||
private BigDecimal money;
|
||||
|
||||
@ApiModelProperty("奖励金额")
|
||||
private BigDecimal rewardMoney;
|
||||
|
||||
@ApiModelProperty("享受N倍积分")
|
||||
private BigDecimal integralRate;
|
||||
|
||||
|
||||
}
|
|
@ -0,0 +1,8 @@
|
|||
package com.sqx.modules.bl.artificer.service;
|
||||
|
||||
import com.baomidou.mybatisplus.extension.service.IService;
|
||||
import com.sqx.modules.bl.artificer.entity.ArtificerRechargeReward;
|
||||
|
||||
public interface ArtificerRechargeRewardService extends IService<ArtificerRechargeReward> {
|
||||
|
||||
}
|
|
@ -0,0 +1,12 @@
|
|||
package com.sqx.modules.bl.artificer.service.impl;
|
||||
|
||||
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
||||
import com.sqx.modules.bl.artificer.dao.ArtificerRechargeRewardDao;
|
||||
import com.sqx.modules.bl.artificer.entity.ArtificerRechargeReward;
|
||||
import com.sqx.modules.bl.artificer.service.ArtificerRechargeRewardService;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
@Service
|
||||
public class ArtificerRechargeRewardServiceImpl extends ServiceImpl<ArtificerRechargeRewardDao, ArtificerRechargeReward> implements ArtificerRechargeRewardService {
|
||||
|
||||
}
|
|
@ -0,0 +1,6 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
|
||||
<mapper namespace="com.sqx.modules.bl.artificer.dao.ArtificerRechargeRewardDao">
|
||||
|
||||
</mapper>
|
Loading…
Reference in New Issue