提交修改

This commit is contained in:
quyixiao 2025-11-21 09:37:02 +08:00
parent 50fd31d8a8
commit 6d27e381b6
34 changed files with 562 additions and 620 deletions

View File

@ -46,7 +46,8 @@ public interface VvActivityDao extends BaseMapper<VvActivityEntity> {
@IF @LIKE String activityName, @IF @LIKE String activityName,
@IF @Column(VvActivityEntity.create_timestamp) Long minCreateTimestamp, @IF @Column(VvActivityEntity.create_timestamp) Long minCreateTimestamp,
@IF @Column(VvActivityEntity.create_timestamp) Long maxCreateTimestamp, @IF @Column(VvActivityEntity.create_timestamp) Long maxCreateTimestamp,
@OrderBy @IF @Column(VvActivityEntity.create_timestamp) String createTimestampSort); @OrderBy @IF @Column(VvActivityEntity.create_timestamp) String createTimestampSort
);

View File

@ -1,36 +0,0 @@
package com.heyu.api.data.dao.vv;
/**
* <p>
* 推广者获得奖品名细 服务类
* </p>
*
* @author quyixiao
* @since 2025-10-25
*/
import com.heyu.api.data.entity.vv.VvPromoterAwardEntity;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
@Mapper
public interface VvPromoterAwardDao extends BaseMapper<VvPromoterAwardEntity> {
VvPromoterAwardEntity selectVvPromoterAwardById(@Param("id")Long id);
Long insertVvPromoterAward(VvPromoterAwardEntity vvPromoterAward);
Long insertOrUpdateVvPromoterAward(VvPromoterAwardEntity vvPromoterAward);
int updateVvPromoterAwardById(VvPromoterAwardEntity vvPromoterAward);
int updateCoverVvPromoterAwardById(VvPromoterAwardEntity vvPromoterAward);
int deleteVvPromoterAwardById(@Param("id")Long id);
}

View File

@ -1,67 +0,0 @@
package com.heyu.api.data.dao.vv;
/**
* <p>
* 推广者获得奖品名细子单 服务类
* </p>
*
* @author quyixiao
* @since 2025-10-25
*/
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.heyu.api.data.entity.vv.VvPromoterAwardLineEntity;
import com.lz.mybatis.plugin.annotations.Column;
import com.lz.mybatis.plugin.annotations.IF;
import com.lz.mybatis.plugin.annotations.LIKE;
import com.lz.mybatis.plugin.annotations.OrderBy;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import java.util.List;
@Mapper
public interface VvPromoterAwardLineDao extends BaseMapper<VvPromoterAwardLineEntity> {
VvPromoterAwardLineEntity selectVvPromoterAwardLineById(@Param("id")Long id);
Long insertVvPromoterAwardLine(VvPromoterAwardLineEntity vvPromoterAwardLine);
Long insertOrUpdateVvPromoterAwardLine(VvPromoterAwardLineEntity vvPromoterAwardLine);
int updateVvPromoterAwardLineById(VvPromoterAwardLineEntity vvPromoterAwardLine);
int updateCoverVvPromoterAwardLineById(VvPromoterAwardLineEntity vvPromoterAwardLine);
int deleteVvPromoterAwardLineById(@Param("id")Long id);
@OrderBy(VvPromoterAwardLineEntity.id_)
List<VvPromoterAwardLineEntity> selectByCondition(IPage page,
@IF String promoterId,
@IF Long promoterBuyerId,
@IF @LIKE String promoterBuyerName,
@IF @LIKE String promoterBuyerWeixin,
@IF @LIKE String promoterBuyerPhone,
@IF @Column(VvPromoterAwardLineEntity.create_timestamp) Long minCreateTimestamp,
@IF @Column(VvPromoterAwardLineEntity.create_timestamp) Long maxCreateTimestamp,
@OrderBy @IF @Column(VvPromoterAwardLineEntity.create_timestamp) String createTimestampSort);
@OrderBy(VvPromoterAwardLineEntity.id_)
List<VvPromoterAwardLineEntity> selectByAppCondition(IPage page,
@IF Long promoterBuyerId,
@IF @Column(VvPromoterAwardLineEntity.create_timestamp) Long minCreateTimestamp,
@IF @Column(VvPromoterAwardLineEntity.create_timestamp) Long maxCreateTimestamp,
@OrderBy @IF @Column(VvPromoterAwardLineEntity.create_timestamp) String createTimestampSort);
}

View File

@ -0,0 +1,55 @@
package com.heyu.api.data.dao.vv;
/**
* <p>
* 推广者 服务类
* </p>
*
* @author quyixiao
* @since 2025-11-21
*/
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.heyu.api.data.entity.vv.VvPromoterBuyerEntity;
import com.lz.mybatis.plugin.annotations.Column;
import com.lz.mybatis.plugin.annotations.IF;
import com.lz.mybatis.plugin.annotations.OrderBy;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import java.util.List;
@Mapper
public interface VvPromoterBuyerDao extends BaseMapper<VvPromoterBuyerEntity> {
VvPromoterBuyerEntity selectVvPromoterBuyerById(@Param("id") Long id);
Long insertVvPromoterBuyer(VvPromoterBuyerEntity vvPromoterBuyer);
Long insertOrUpdateVvPromoterBuyer(VvPromoterBuyerEntity vvPromoterBuyer);
int updateVvPromoterBuyerById(VvPromoterBuyerEntity vvPromoterBuyer);
int updateCoverVvPromoterBuyerById(VvPromoterBuyerEntity vvPromoterBuyer);
int deleteVvPromoterBuyerById(@Param("id") Long id);
List<VvPromoterBuyerEntity> selectBuyerByCondition(IPage page,
@IF String promoterId,
@IF Long promoterBuyerId,
@IF String promoterBuyerName,
@IF String promoterBuyerWeixin,
@IF String promoterBuyerPhone,
@IF @Column(VvPromoterBuyerEntity.create_timestamp) Long minCreateTimestamp,
@IF @Column(VvPromoterBuyerEntity.create_timestamp) Long maxCreateTimestamp,
@OrderBy @IF @Column(VvPromoterBuyerEntity.create_timestamp) String createTimestampSort
);
}

View File

@ -1,68 +0,0 @@
package com.heyu.api.data.dao.vv;
/**
* <p>
* 推广者 服务类
* </p>
*
* @author quyixiao
* @since 2025-10-25
*/
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.heyu.api.data.entity.vv.VvBuyerEntity;
import com.heyu.api.data.entity.vv.VvPromoterEntity;
import com.lz.mybatis.plugin.annotations.*;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import java.util.List;
@Mapper
public interface VvPromoterDao extends BaseMapper<VvPromoterEntity> {
VvPromoterEntity selectVvPromoterById(@Param("id")Long id);
Long insertVvPromoter(VvPromoterEntity vvPromoter);
Long insertOrUpdateVvPromoter(VvPromoterEntity vvPromoter);
int updateVvPromoterById(VvPromoterEntity vvPromoter);
int updateCoverVvPromoterById(VvPromoterEntity vvPromoter);
int deleteVvPromoterById(@Param("id")Long id);
List<VvPromoterEntity> selectVvPromoterByPromoteIds(@IFNullReturnEmpty @IN List<String> promoterId);
@OrderBy(VvBuyerEntity.id_)
List<VvPromoterEntity> selectBuyerByCondition(IPage page,
@IF String promoterId,
@IF Long promoterBuyerId,
@IF @LIKE String promoterBuyerName,
@IF @LIKE String promoterBuyerWeixin,
@IF @LIKE String promoterBuyerPhone,
@IF @Column(VvPromoterEntity.create_timestamp) Long minCreateTimestamp,
@IF @Column(VvPromoterEntity.create_timestamp) Long maxCreateTimestamp,
@OrderBy @IF @Column(VvPromoterEntity.create_timestamp) String createTimestampSort);
@OrderBy(VvBuyerEntity.id_)
List<VvPromoterEntity> selectAppByCondition(IPage page,
@IF Long promoterBuyerId,
@IF @Column(VvPromoterEntity.create_timestamp) Long minCreateTimestamp,
@IF @Column(VvPromoterEntity.create_timestamp) Long maxCreateTimestamp,
@OrderBy @IF @Column(VvPromoterEntity.create_timestamp) String createTimestampSort);
}

View File

@ -0,0 +1,36 @@
package com.heyu.api.data.dao.vv;
/**
* <p>
* 推广者获得奖品名细 服务类
* </p>
*
* @author quyixiao
* @since 2025-11-21
*/
import com.heyu.api.data.entity.vv.VvPromoterTradeOrderAwardEntity;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
@Mapper
public interface VvPromoterTradeOrderAwardDao extends BaseMapper<VvPromoterTradeOrderAwardEntity> {
VvPromoterTradeOrderAwardEntity selectVvPromoterTradeOrderAwardById(@Param("id")Long id);
Long insertVvPromoterTradeOrderAward(VvPromoterTradeOrderAwardEntity vvPromoterTradeOrderAward);
Long insertOrUpdateVvPromoterTradeOrderAward(VvPromoterTradeOrderAwardEntity vvPromoterTradeOrderAward);
int updateVvPromoterTradeOrderAwardById(VvPromoterTradeOrderAwardEntity vvPromoterTradeOrderAward);
int updateCoverVvPromoterTradeOrderAwardById(VvPromoterTradeOrderAwardEntity vvPromoterTradeOrderAward);
int deleteVvPromoterTradeOrderAwardById(@Param("id")Long id);
}

View File

@ -0,0 +1,36 @@
package com.heyu.api.data.dao.vv;
/**
* <p>
* 推广者获得奖品名细子单 服务类
* </p>
*
* @author quyixiao
* @since 2025-11-21
*/
import com.heyu.api.data.entity.vv.VvPromoterTradeOrderLineAwardEntity;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
@Mapper
public interface VvPromoterTradeOrderLineAwardDao extends BaseMapper<VvPromoterTradeOrderLineAwardEntity> {
VvPromoterTradeOrderLineAwardEntity selectVvPromoterTradeOrderLineAwardById(@Param("id")Long id);
Long insertVvPromoterTradeOrderLineAward(VvPromoterTradeOrderLineAwardEntity vvPromoterTradeOrderLineAward);
Long insertOrUpdateVvPromoterTradeOrderLineAward(VvPromoterTradeOrderLineAwardEntity vvPromoterTradeOrderLineAward);
int updateVvPromoterTradeOrderLineAwardById(VvPromoterTradeOrderLineAwardEntity vvPromoterTradeOrderLineAward);
int updateCoverVvPromoterTradeOrderLineAwardById(VvPromoterTradeOrderLineAwardEntity vvPromoterTradeOrderLineAward);
int deleteVvPromoterTradeOrderLineAwardById(@Param("id")Long id);
}

View File

@ -10,21 +10,22 @@ import java.util.Date;import java.util.Date;
/** /**
*推广者 *推广者
* @author quyixiao * @author quyixiao
* @since 2025-10-25 * @since 2025-11-21
*/ */
@Data @Data
@TableName("vv_promoter") @TableName("vv_promoter_buyer")
public class VvPromoterEntity implements java.io.Serializable { public class VvPromoterBuyerEntity implements java.io.Serializable {
private static final long serialVersionUID = 1L; private static final long serialVersionUID = 1L;
public final static String CLASS_NAME ="com.heyu.api.data.entity.vv.VvPromoterEntity:"; public final static String CLASS_NAME ="com.heyu.api.data.entity.vv.VvPromoterBuyerEntity:";
public final static String all = CLASS_NAME + "*"; public final static String all = CLASS_NAME + "*";
public final static String id_ = CLASS_NAME + "id"; // public final static String id_ = CLASS_NAME + "id"; //
public final static String is_delete = CLASS_NAME + "is_delete"; // 是否删除0 1 删除 public final static String is_delete = CLASS_NAME + "is_delete"; // 是否删除0 1 删除
public final static String create_time = CLASS_NAME + "create_time"; // 创建时间 public final static String create_time = CLASS_NAME + "create_time"; // 创建时间
public final static String modify_time = CLASS_NAME + "modify_time"; // 修改时间 public final static String modify_time = CLASS_NAME + "modify_time"; // 修改时间
public final static String create_timestamp = CLASS_NAME + "create_timestamp"; // 时间毫秒值
public final static String promoter_id = CLASS_NAME + "promoter_id"; // 推广者id唯一值 public final static String promoter_id = CLASS_NAME + "promoter_id"; // 推广者id唯一值
public final static String promoter_buyer_name = CLASS_NAME + "promoter_buyer_name"; // 推广者买家名称 public final static String promoter_buyer_name = CLASS_NAME + "promoter_buyer_name"; // 推广者买家名称
public final static String promoter_buyer_weixin = CLASS_NAME + "promoter_buyer_weixin"; // 推广者买家微信 public final static String promoter_buyer_weixin = CLASS_NAME + "promoter_buyer_weixin"; // 推广者买家微信
@ -33,8 +34,7 @@ private static final long serialVersionUID = 1L;
public final static String was_buyer_name = CLASS_NAME + "was_buyer_name"; // 被推荐买家名称 public final static String was_buyer_name = CLASS_NAME + "was_buyer_name"; // 被推荐买家名称
public final static String was_buyer_weixin = CLASS_NAME + "was_buyer_weixin"; // 被推荐买家微信 public final static String was_buyer_weixin = CLASS_NAME + "was_buyer_weixin"; // 被推荐买家微信
public final static String was_buyer_phone = CLASS_NAME + "was_buyer_phone"; // 被推荐者手机号 public final static String was_buyer_phone = CLASS_NAME + "was_buyer_phone"; // 被推荐者手机号
public final static String was_promoter_buyer_id = CLASS_NAME + "was_promoter_buyer_id"; // 被推荐者买家id public final static String was_buyer_id = CLASS_NAME + "was_buyer_id"; // 被推荐者买家id
public final static String create_timestamp = CLASS_NAME + "create_timestamp"; // 时间毫秒值
// //
@TableId(value = "id", type = IdType.AUTO) @TableId(value = "id", type = IdType.AUTO)
private Long id; private Long id;
@ -44,6 +44,8 @@ private static final long serialVersionUID = 1L;
private Date createTime; private Date createTime;
//修改时间 //修改时间
private Date modifyTime; private Date modifyTime;
//时间毫秒值
private Long createTimestamp;
//推广者id唯一值 //推广者id唯一值
private String promoterId; private String promoterId;
//推广者买家名称 //推广者买家名称
@ -61,9 +63,7 @@ private static final long serialVersionUID = 1L;
//被推荐者手机号 //被推荐者手机号
private String wasBuyerPhone; private String wasBuyerPhone;
//被推荐者买家id //被推荐者买家id
private Long wasPromoterBuyerId; private Long wasBuyerId;
//时间毫秒值
private Long createTimestamp;
/** /**
* *
* @return * @return
@ -124,6 +124,21 @@ private static final long serialVersionUID = 1L;
this.modifyTime = modifyTime; this.modifyTime = modifyTime;
} }
/**
* 时间毫秒值
* @return
*/
public Long getCreateTimestamp() {
return createTimestamp;
}
/**
* 时间毫秒值
* @param createTimestamp
*/
public void setCreateTimestamp(Long createTimestamp) {
this.createTimestamp = createTimestamp;
}
/** /**
* 推广者id唯一值 * 推广者id唯一值
* @return * @return
@ -248,39 +263,25 @@ private static final long serialVersionUID = 1L;
* 被推荐者买家id * 被推荐者买家id
* @return * @return
*/ */
public Long getWasPromoterBuyerId() { public Long getWasBuyerId() {
return wasPromoterBuyerId; return wasBuyerId;
} }
/** /**
* 被推荐者买家id * 被推荐者买家id
* @param wasPromoterBuyerId * @param wasBuyerId
*/ */
public void setWasPromoterBuyerId(Long wasPromoterBuyerId) { public void setWasBuyerId(Long wasBuyerId) {
this.wasPromoterBuyerId = wasPromoterBuyerId; this.wasBuyerId = wasBuyerId;
}
/**
* 时间毫秒值
* @return
*/
public Long getCreateTimestamp() {
return createTimestamp;
}
/**
* 时间毫秒值
* @param createTimestamp
*/
public void setCreateTimestamp(Long createTimestamp) {
this.createTimestamp = createTimestamp;
} }
@Override @Override
public String toString() { public String toString() {
return "VvPromoterEntity{" + return "VvPromoterBuyerEntity{" +
",id=" + id + ",id=" + id +
",isDelete=" + isDelete + ",isDelete=" + isDelete +
",createTime=" + createTime + ",createTime=" + createTime +
",modifyTime=" + modifyTime + ",modifyTime=" + modifyTime +
",createTimestamp=" + createTimestamp +
",promoterId=" + promoterId + ",promoterId=" + promoterId +
",promoterBuyerName=" + promoterBuyerName + ",promoterBuyerName=" + promoterBuyerName +
",promoterBuyerWeixin=" + promoterBuyerWeixin + ",promoterBuyerWeixin=" + promoterBuyerWeixin +
@ -289,8 +290,7 @@ private static final long serialVersionUID = 1L;
",wasBuyerName=" + wasBuyerName + ",wasBuyerName=" + wasBuyerName +
",wasBuyerWeixin=" + wasBuyerWeixin + ",wasBuyerWeixin=" + wasBuyerWeixin +
",wasBuyerPhone=" + wasBuyerPhone + ",wasBuyerPhone=" + wasBuyerPhone +
",wasPromoterBuyerId=" + wasPromoterBuyerId + ",wasBuyerId=" + wasBuyerId +
",createTimestamp=" + createTimestamp +
"}"; "}";
} }
} }

View File

@ -10,27 +10,26 @@ import java.util.Date;import java.util.Date;
/** /**
*推广者获得奖品名细 *推广者获得奖品名细
* @author quyixiao * @author quyixiao
* @since 2025-10-25 * @since 2025-11-21
*/ */
@Data @Data
@TableName("vv_promoter_award") @TableName("vv_promoter_trade_order_award")
public class VvPromoterAwardEntity implements java.io.Serializable { public class VvPromoterTradeOrderAwardEntity implements java.io.Serializable {
private static final long serialVersionUID = 1L; private static final long serialVersionUID = 1L;
public final static String CLASS_NAME ="com.heyu.api.data.entity.vv.VvPromoterAwardEntity:"; public final static String CLASS_NAME ="com.heyu.api.data.entity.vv.VvPromoterTradeOrderAwardEntity:";
public final static String all = CLASS_NAME + "*"; public final static String all = CLASS_NAME + "*";
public final static String id_ = CLASS_NAME + "id"; // public final static String id_ = CLASS_NAME + "id"; //
public final static String is_delete = CLASS_NAME + "is_delete"; // 是否删除0 1 删除 public final static String is_delete = CLASS_NAME + "is_delete"; // 是否删除0 1 删除
public final static String create_time = CLASS_NAME + "create_time"; // 创建时间 public final static String create_time = CLASS_NAME + "create_time"; // 创建时间
public final static String modify_time = CLASS_NAME + "modify_time"; // 修改时间 public final static String modify_time = CLASS_NAME + "modify_time"; // 修改时间
public final static String promoter_id = CLASS_NAME + "promoter_id"; // 推广者id唯一值 public final static String promoter_id = CLASS_NAME + "promoter_id"; // 推广者id唯一值
public final static String award_amount = CLASS_NAME + "award_amount"; // 金额 public final static String award_amount = CLASS_NAME + "award_amount"; // 金额
public final static String activity_id = CLASS_NAME + "activity_id"; // 活动id public final static String activity_id = CLASS_NAME + "activity_id"; // 活动id
public final static String trade_order_id = CLASS_NAME + "trade_order_id"; // 订单id public final static String trade_order_id = CLASS_NAME + "trade_order_id"; // 订单id
public final static String trade_order_line_id = CLASS_NAME + "trade_order_line_id"; // 子订单id public final static String status_ = CLASS_NAME + "status"; // create 创建, canceled 取消 , arrive到账
public final static String status_ = CLASS_NAME + "status"; // create 创建, canceled 取消 , arrive到账
// //
@TableId(value = "id", type = IdType.AUTO) @TableId(value = "id", type = IdType.AUTO)
private Long id; private Long id;
@ -48,8 +47,6 @@ private static final long serialVersionUID = 1L;
private Long activityId; private Long activityId;
//订单id //订单id
private Long tradeOrderId; private Long tradeOrderId;
//子订单id
private Long tradeOrderLineId;
//create 创建, canceled 取消 , arrive到账 //create 创建, canceled 取消 , arrive到账
private String status; private String status;
/** /**
@ -172,21 +169,6 @@ private static final long serialVersionUID = 1L;
this.tradeOrderId = tradeOrderId; this.tradeOrderId = tradeOrderId;
} }
/**
* 子订单id
* @return
*/
public Long getTradeOrderLineId() {
return tradeOrderLineId;
}
/**
* 子订单id
* @param tradeOrderLineId
*/
public void setTradeOrderLineId(Long tradeOrderLineId) {
this.tradeOrderLineId = tradeOrderLineId;
}
/** /**
* create 创建, canceled 取消 , arrive到账 * create 创建, canceled 取消 , arrive到账
* @return * @return
@ -204,7 +186,7 @@ private static final long serialVersionUID = 1L;
@Override @Override
public String toString() { public String toString() {
return "VvPromoterAwardEntity{" + return "VvPromoterTradeOrderAwardEntity{" +
",id=" + id + ",id=" + id +
",isDelete=" + isDelete + ",isDelete=" + isDelete +
",createTime=" + createTime + ",createTime=" + createTime +
@ -213,7 +195,6 @@ private static final long serialVersionUID = 1L;
",awardAmount=" + awardAmount + ",awardAmount=" + awardAmount +
",activityId=" + activityId + ",activityId=" + activityId +
",tradeOrderId=" + tradeOrderId + ",tradeOrderId=" + tradeOrderId +
",tradeOrderLineId=" + tradeOrderLineId +
",status=" + status + ",status=" + status +
"}"; "}";
} }

View File

@ -10,15 +10,15 @@ import java.util.Date;import java.util.Date;
/** /**
*推广者获得奖品名细子单 *推广者获得奖品名细子单
* @author quyixiao * @author quyixiao
* @since 2025-10-28 * @since 2025-11-21
*/ */
@Data @Data
@TableName("vv_promoter_award_line") @TableName("vv_promoter_trade_order_line_award")
public class VvPromoterAwardLineEntity implements java.io.Serializable { public class VvPromoterTradeOrderLineAwardEntity implements java.io.Serializable {
private static final long serialVersionUID = 1L; private static final long serialVersionUID = 1L;
public final static String CLASS_NAME ="com.heyu.api.data.entity.vv.VvPromoterAwardLineEntity:"; public final static String CLASS_NAME ="com.heyu.api.data.entity.vv.VvPromoterTradeOrderLineAwardEntity:";
public final static String all = CLASS_NAME + "*"; public final static String all = CLASS_NAME + "*";
public final static String id_ = CLASS_NAME + "id"; // public final static String id_ = CLASS_NAME + "id"; //
@ -402,7 +402,7 @@ private static final long serialVersionUID = 1L;
@Override @Override
public String toString() { public String toString() {
return "VvPromoterAwardLineEntity{" + return "VvPromoterTradeOrderLineAwardEntity{" +
",id=" + id + ",id=" + id +
",isDelete=" + isDelete + ",isDelete=" + isDelete +
",createTime=" + createTime + ",createTime=" + createTime +

View File

@ -1,68 +0,0 @@
package com.heyu.api.data.service.impl.vv;
/**
* <p>
* 推广者获得奖品名细子单 服务类
* </p>
*
* @author quyixiao
* @since 2025-10-25
*/
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.heyu.api.data.dao.vv.VvPromoterAwardLineDao;
import com.heyu.api.data.entity.vv.VvPromoterAwardLineEntity;
import com.heyu.api.data.service.vv.VvPromoterAwardLineService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
@Service
public class VvPromoterAwardLineServiceImpl extends ServiceImpl<VvPromoterAwardLineDao, VvPromoterAwardLineEntity> implements VvPromoterAwardLineService {
@Autowired
private VvPromoterAwardLineDao vvPromoterAwardLineDao;
@Override
public VvPromoterAwardLineEntity selectVvPromoterAwardLineById(Long id){
return vvPromoterAwardLineDao.selectVvPromoterAwardLineById(id);
}
@Override
public Long insertVvPromoterAwardLine(VvPromoterAwardLineEntity vvPromoterAwardLine){
return vvPromoterAwardLineDao.insertVvPromoterAwardLine(vvPromoterAwardLine);
}
@Override
public Long insertOrUpdateVvPromoterAwardLine(VvPromoterAwardLineEntity vvPromoterAwardLine){
return vvPromoterAwardLineDao.insertOrUpdateVvPromoterAwardLine(vvPromoterAwardLine);
}
@Override
public int updateVvPromoterAwardLineById(VvPromoterAwardLineEntity vvPromoterAwardLine){
return vvPromoterAwardLineDao.updateVvPromoterAwardLineById(vvPromoterAwardLine);
}
@Override
public int updateCoverVvPromoterAwardLineById(VvPromoterAwardLineEntity vvPromoterAwardLine){
return vvPromoterAwardLineDao.updateCoverVvPromoterAwardLineById(vvPromoterAwardLine);
}
@Override
public int deleteVvPromoterAwardLineById(Long id){
return vvPromoterAwardLineDao.deleteVvPromoterAwardLineById(id);
}
}

View File

@ -1,68 +0,0 @@
package com.heyu.api.data.service.impl.vv;
/**
* <p>
* 推广者获得奖品名细 服务类
* </p>
*
* @author quyixiao
* @since 2025-10-25
*/
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.heyu.api.data.dao.vv.VvPromoterAwardDao;
import com.heyu.api.data.entity.vv.VvPromoterAwardEntity;
import com.heyu.api.data.service.vv.VvPromoterAwardService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
@Service
public class VvPromoterAwardServiceImpl extends ServiceImpl<VvPromoterAwardDao, VvPromoterAwardEntity> implements VvPromoterAwardService {
@Autowired
private VvPromoterAwardDao vvPromoterAwardDao;
@Override
public VvPromoterAwardEntity selectVvPromoterAwardById(Long id){
return vvPromoterAwardDao.selectVvPromoterAwardById(id);
}
@Override
public Long insertVvPromoterAward(VvPromoterAwardEntity vvPromoterAward){
return vvPromoterAwardDao.insertVvPromoterAward(vvPromoterAward);
}
@Override
public Long insertOrUpdateVvPromoterAward(VvPromoterAwardEntity vvPromoterAward){
return vvPromoterAwardDao.insertOrUpdateVvPromoterAward(vvPromoterAward);
}
@Override
public int updateVvPromoterAwardById(VvPromoterAwardEntity vvPromoterAward){
return vvPromoterAwardDao.updateVvPromoterAwardById(vvPromoterAward);
}
@Override
public int updateCoverVvPromoterAwardById(VvPromoterAwardEntity vvPromoterAward){
return vvPromoterAwardDao.updateCoverVvPromoterAwardById(vvPromoterAward);
}
@Override
public int deleteVvPromoterAwardById(Long id){
return vvPromoterAwardDao.deleteVvPromoterAwardById(id);
}
}

View File

@ -0,0 +1,68 @@
package com.heyu.api.data.service.impl.vv;
/**
* <p>
* 推广者 服务类
* </p>
*
* @author quyixiao
* @since 2025-11-21
*/
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.heyu.api.data.dao.vv.VvPromoterBuyerDao;
import com.heyu.api.data.entity.vv.VvPromoterBuyerEntity;
import com.heyu.api.data.service.vv.VvPromoterBuyerService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
@Service
public class VvPromoterBuyerServiceImpl extends ServiceImpl<VvPromoterBuyerDao, VvPromoterBuyerEntity> implements VvPromoterBuyerService {
@Autowired
private VvPromoterBuyerDao vvPromoterBuyerDao;
@Override
public VvPromoterBuyerEntity selectVvPromoterBuyerById(Long id){
return vvPromoterBuyerDao.selectVvPromoterBuyerById(id);
}
@Override
public Long insertVvPromoterBuyer(VvPromoterBuyerEntity vvPromoterBuyer){
return vvPromoterBuyerDao.insertVvPromoterBuyer(vvPromoterBuyer);
}
@Override
public Long insertOrUpdateVvPromoterBuyer(VvPromoterBuyerEntity vvPromoterBuyer){
return vvPromoterBuyerDao.insertOrUpdateVvPromoterBuyer(vvPromoterBuyer);
}
@Override
public int updateVvPromoterBuyerById(VvPromoterBuyerEntity vvPromoterBuyer){
return vvPromoterBuyerDao.updateVvPromoterBuyerById(vvPromoterBuyer);
}
@Override
public int updateCoverVvPromoterBuyerById(VvPromoterBuyerEntity vvPromoterBuyer){
return vvPromoterBuyerDao.updateCoverVvPromoterBuyerById(vvPromoterBuyer);
}
@Override
public int deleteVvPromoterBuyerById(Long id){
return vvPromoterBuyerDao.deleteVvPromoterBuyerById(id);
}
}

View File

@ -1,68 +0,0 @@
package com.heyu.api.data.service.impl.vv;
/**
* <p>
* 推广者 服务类
* </p>
*
* @author quyixiao
* @since 2025-10-25
*/
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.heyu.api.data.dao.vv.VvPromoterDao;
import com.heyu.api.data.entity.vv.VvPromoterEntity;
import com.heyu.api.data.service.vv.VvPromoterService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
@Service
public class VvPromoterServiceImpl extends ServiceImpl<VvPromoterDao, VvPromoterEntity> implements VvPromoterService {
@Autowired
private VvPromoterDao vvPromoterDao;
@Override
public VvPromoterEntity selectVvPromoterById(Long id){
return vvPromoterDao.selectVvPromoterById(id);
}
@Override
public Long insertVvPromoter(VvPromoterEntity vvPromoter){
return vvPromoterDao.insertVvPromoter(vvPromoter);
}
@Override
public Long insertOrUpdateVvPromoter(VvPromoterEntity vvPromoter){
return vvPromoterDao.insertOrUpdateVvPromoter(vvPromoter);
}
@Override
public int updateVvPromoterById(VvPromoterEntity vvPromoter){
return vvPromoterDao.updateVvPromoterById(vvPromoter);
}
@Override
public int updateCoverVvPromoterById(VvPromoterEntity vvPromoter){
return vvPromoterDao.updateCoverVvPromoterById(vvPromoter);
}
@Override
public int deleteVvPromoterById(Long id){
return vvPromoterDao.deleteVvPromoterById(id);
}
}

View File

@ -0,0 +1,68 @@
package com.heyu.api.data.service.impl.vv;
/**
* <p>
* 推广者获得奖品名细 服务类
* </p>
*
* @author quyixiao
* @since 2025-11-21
*/
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.heyu.api.data.dao.vv.VvPromoterTradeOrderAwardDao;
import com.heyu.api.data.entity.vv.VvPromoterTradeOrderAwardEntity;
import com.heyu.api.data.service.vv.VvPromoterTradeOrderAwardService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
@Service
public class VvPromoterTradeOrderAwardServiceImpl extends ServiceImpl<VvPromoterTradeOrderAwardDao, VvPromoterTradeOrderAwardEntity> implements VvPromoterTradeOrderAwardService {
@Autowired
private VvPromoterTradeOrderAwardDao vvPromoterTradeOrderAwardDao;
@Override
public VvPromoterTradeOrderAwardEntity selectVvPromoterTradeOrderAwardById(Long id){
return vvPromoterTradeOrderAwardDao.selectVvPromoterTradeOrderAwardById(id);
}
@Override
public Long insertVvPromoterTradeOrderAward(VvPromoterTradeOrderAwardEntity vvPromoterTradeOrderAward){
return vvPromoterTradeOrderAwardDao.insertVvPromoterTradeOrderAward(vvPromoterTradeOrderAward);
}
@Override
public Long insertOrUpdateVvPromoterTradeOrderAward(VvPromoterTradeOrderAwardEntity vvPromoterTradeOrderAward){
return vvPromoterTradeOrderAwardDao.insertOrUpdateVvPromoterTradeOrderAward(vvPromoterTradeOrderAward);
}
@Override
public int updateVvPromoterTradeOrderAwardById(VvPromoterTradeOrderAwardEntity vvPromoterTradeOrderAward){
return vvPromoterTradeOrderAwardDao.updateVvPromoterTradeOrderAwardById(vvPromoterTradeOrderAward);
}
@Override
public int updateCoverVvPromoterTradeOrderAwardById(VvPromoterTradeOrderAwardEntity vvPromoterTradeOrderAward){
return vvPromoterTradeOrderAwardDao.updateCoverVvPromoterTradeOrderAwardById(vvPromoterTradeOrderAward);
}
@Override
public int deleteVvPromoterTradeOrderAwardById(Long id){
return vvPromoterTradeOrderAwardDao.deleteVvPromoterTradeOrderAwardById(id);
}
}

View File

@ -0,0 +1,68 @@
package com.heyu.api.data.service.impl.vv;
/**
* <p>
* 推广者获得奖品名细子单 服务类
* </p>
*
* @author quyixiao
* @since 2025-11-21
*/
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.heyu.api.data.dao.vv.VvPromoterTradeOrderLineAwardDao;
import com.heyu.api.data.entity.vv.VvPromoterTradeOrderLineAwardEntity;
import com.heyu.api.data.service.vv.VvPromoterTradeOrderLineAwardService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
@Service
public class VvPromoterTradeOrderLineAwardServiceImpl extends ServiceImpl<VvPromoterTradeOrderLineAwardDao, VvPromoterTradeOrderLineAwardEntity> implements VvPromoterTradeOrderLineAwardService {
@Autowired
private VvPromoterTradeOrderLineAwardDao vvPromoterTradeOrderLineAwardDao;
@Override
public VvPromoterTradeOrderLineAwardEntity selectVvPromoterTradeOrderLineAwardById(Long id){
return vvPromoterTradeOrderLineAwardDao.selectVvPromoterTradeOrderLineAwardById(id);
}
@Override
public Long insertVvPromoterTradeOrderLineAward(VvPromoterTradeOrderLineAwardEntity vvPromoterTradeOrderLineAward){
return vvPromoterTradeOrderLineAwardDao.insertVvPromoterTradeOrderLineAward(vvPromoterTradeOrderLineAward);
}
@Override
public Long insertOrUpdateVvPromoterTradeOrderLineAward(VvPromoterTradeOrderLineAwardEntity vvPromoterTradeOrderLineAward){
return vvPromoterTradeOrderLineAwardDao.insertOrUpdateVvPromoterTradeOrderLineAward(vvPromoterTradeOrderLineAward);
}
@Override
public int updateVvPromoterTradeOrderLineAwardById(VvPromoterTradeOrderLineAwardEntity vvPromoterTradeOrderLineAward){
return vvPromoterTradeOrderLineAwardDao.updateVvPromoterTradeOrderLineAwardById(vvPromoterTradeOrderLineAward);
}
@Override
public int updateCoverVvPromoterTradeOrderLineAwardById(VvPromoterTradeOrderLineAwardEntity vvPromoterTradeOrderLineAward){
return vvPromoterTradeOrderLineAwardDao.updateCoverVvPromoterTradeOrderLineAwardById(vvPromoterTradeOrderLineAward);
}
@Override
public int deleteVvPromoterTradeOrderLineAwardById(Long id){
return vvPromoterTradeOrderLineAwardDao.deleteVvPromoterTradeOrderLineAwardById(id);
}
}

View File

@ -1,34 +0,0 @@
package com.heyu.api.data.service.vv;
/**
* <p>
* 推广者获得奖品名细子单 服务类
* </p>
*
* @author quyixiao
* @since 2025-10-25
*/
import com.baomidou.mybatisplus.extension.service.IService;
import com.heyu.api.data.entity.vv.VvPromoterAwardLineEntity;
public interface VvPromoterAwardLineService extends IService<VvPromoterAwardLineEntity> {
VvPromoterAwardLineEntity selectVvPromoterAwardLineById(Long id);
Long insertVvPromoterAwardLine(VvPromoterAwardLineEntity vvPromoterAwardLine);
Long insertOrUpdateVvPromoterAwardLine(VvPromoterAwardLineEntity vvPromoterAwardLine);
int updateVvPromoterAwardLineById(VvPromoterAwardLineEntity vvPromoterAwardLine);
int updateCoverVvPromoterAwardLineById(VvPromoterAwardLineEntity vvPromoterAwardLine);
int deleteVvPromoterAwardLineById(Long id);
}

View File

@ -1,34 +0,0 @@
package com.heyu.api.data.service.vv;
/**
* <p>
* 推广者获得奖品名细 服务类
* </p>
*
* @author quyixiao
* @since 2025-10-25
*/
import com.baomidou.mybatisplus.extension.service.IService;
import com.heyu.api.data.entity.vv.VvPromoterAwardEntity;
public interface VvPromoterAwardService extends IService<VvPromoterAwardEntity> {
VvPromoterAwardEntity selectVvPromoterAwardById(Long id);
Long insertVvPromoterAward(VvPromoterAwardEntity vvPromoterAward);
Long insertOrUpdateVvPromoterAward(VvPromoterAwardEntity vvPromoterAward);
int updateVvPromoterAwardById(VvPromoterAwardEntity vvPromoterAward);
int updateCoverVvPromoterAwardById(VvPromoterAwardEntity vvPromoterAward);
int deleteVvPromoterAwardById(Long id);
}

View File

@ -0,0 +1,34 @@
package com.heyu.api.data.service.vv;
/**
* <p>
* 推广者 服务类
* </p>
*
* @author quyixiao
* @since 2025-11-21
*/
import com.baomidou.mybatisplus.extension.service.IService;
import com.heyu.api.data.entity.vv.VvPromoterBuyerEntity;
public interface VvPromoterBuyerService extends IService<VvPromoterBuyerEntity> {
VvPromoterBuyerEntity selectVvPromoterBuyerById(Long id);
Long insertVvPromoterBuyer(VvPromoterBuyerEntity vvPromoterBuyer);
Long insertOrUpdateVvPromoterBuyer(VvPromoterBuyerEntity vvPromoterBuyer);
int updateVvPromoterBuyerById(VvPromoterBuyerEntity vvPromoterBuyer);
int updateCoverVvPromoterBuyerById(VvPromoterBuyerEntity vvPromoterBuyer);
int deleteVvPromoterBuyerById(Long id);
}

View File

@ -1,34 +0,0 @@
package com.heyu.api.data.service.vv;
/**
* <p>
* 推广者 服务类
* </p>
*
* @author quyixiao
* @since 2025-10-25
*/
import com.baomidou.mybatisplus.extension.service.IService;
import com.heyu.api.data.entity.vv.VvPromoterEntity;
public interface VvPromoterService extends IService<VvPromoterEntity> {
VvPromoterEntity selectVvPromoterById(Long id);
Long insertVvPromoter(VvPromoterEntity vvPromoter);
Long insertOrUpdateVvPromoter(VvPromoterEntity vvPromoter);
int updateVvPromoterById(VvPromoterEntity vvPromoter);
int updateCoverVvPromoterById(VvPromoterEntity vvPromoter);
int deleteVvPromoterById(Long id);
}

View File

@ -0,0 +1,34 @@
package com.heyu.api.data.service.vv;
/**
* <p>
* 推广者获得奖品名细 服务类
* </p>
*
* @author quyixiao
* @since 2025-11-21
*/
import com.baomidou.mybatisplus.extension.service.IService;
import com.heyu.api.data.entity.vv.VvPromoterTradeOrderAwardEntity;
public interface VvPromoterTradeOrderAwardService extends IService<VvPromoterTradeOrderAwardEntity> {
VvPromoterTradeOrderAwardEntity selectVvPromoterTradeOrderAwardById(Long id);
Long insertVvPromoterTradeOrderAward(VvPromoterTradeOrderAwardEntity vvPromoterTradeOrderAward);
Long insertOrUpdateVvPromoterTradeOrderAward(VvPromoterTradeOrderAwardEntity vvPromoterTradeOrderAward);
int updateVvPromoterTradeOrderAwardById(VvPromoterTradeOrderAwardEntity vvPromoterTradeOrderAward);
int updateCoverVvPromoterTradeOrderAwardById(VvPromoterTradeOrderAwardEntity vvPromoterTradeOrderAward);
int deleteVvPromoterTradeOrderAwardById(Long id);
}

View File

@ -0,0 +1,34 @@
package com.heyu.api.data.service.vv;
/**
* <p>
* 推广者获得奖品名细子单 服务类
* </p>
*
* @author quyixiao
* @since 2025-11-21
*/
import com.baomidou.mybatisplus.extension.service.IService;
import com.heyu.api.data.entity.vv.VvPromoterTradeOrderLineAwardEntity;
public interface VvPromoterTradeOrderLineAwardService extends IService<VvPromoterTradeOrderLineAwardEntity> {
VvPromoterTradeOrderLineAwardEntity selectVvPromoterTradeOrderLineAwardById(Long id);
Long insertVvPromoterTradeOrderLineAward(VvPromoterTradeOrderLineAwardEntity vvPromoterTradeOrderLineAward);
Long insertOrUpdateVvPromoterTradeOrderLineAward(VvPromoterTradeOrderLineAwardEntity vvPromoterTradeOrderLineAward);
int updateVvPromoterTradeOrderLineAwardById(VvPromoterTradeOrderLineAwardEntity vvPromoterTradeOrderLineAward);
int updateCoverVvPromoterTradeOrderLineAwardById(VvPromoterTradeOrderLineAwardEntity vvPromoterTradeOrderLineAward);
int deleteVvPromoterTradeOrderLineAwardById(Long id);
}

View File

@ -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.heyu.api.data.dao.vv.VvPromoterBuyerDao">
</mapper>

View File

@ -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.heyu.api.data.dao.vv.VvPromoterTradeOrderAwardDao">
</mapper>

View File

@ -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.heyu.api.data.dao.vv.VvPromoterTradeOrderLineAwardDao">
</mapper>

View File

@ -94,7 +94,9 @@ public class MysqlMain_insert {
List<TablesBean> list = new ArrayList<TablesBean>(); List<TablesBean> list = new ArrayList<TablesBean>();
list.add(new TablesBean("vv_trade_order_line_status_log")); list.add(new TablesBean("vv_promoter_buyer"));
list.add(new TablesBean("vv_promoter_trade_order_award"));
list.add(new TablesBean("vv_promoter_trade_order_line_award"));
List<TablesBean> list2 = new ArrayList<TablesBean>(); List<TablesBean> list2 = new ArrayList<TablesBean>();

View File

@ -4,7 +4,7 @@ package com.heyu.api.alibaba.request.mm;
import lombok.Data; import lombok.Data;
@Data @Data
public class VvPromoterRequest extends VVAdminBaseRequest { public class VvPromoterBuyerRequest extends VVAdminBaseRequest {
//推广者id唯一值 //推广者id唯一值
private String promoterId; private String promoterId;

View File

@ -2,7 +2,6 @@ package com.heyu.api.alibaba.request.mm.order;
import com.heyu.api.data.entity.vv.VvBuyerAddressEntity; import com.heyu.api.data.entity.vv.VvBuyerAddressEntity;
import com.heyu.api.data.entity.vv.VvBuyerEntity; import com.heyu.api.data.entity.vv.VvBuyerEntity;
import com.heyu.api.data.entity.vv.VvPromoterEntity;
import lombok.Data; import lombok.Data;
import java.util.List; import java.util.List;
@ -16,9 +15,6 @@ public class VvBuyerDTO extends VvBuyerEntity {
*/ */
private List<VvBuyerAddressEntity> vvBuyerAddressEntityList; private List<VvBuyerAddressEntity> vvBuyerAddressEntityList;
/***
* 推荐者信息
*/
private List<VvPromoterEntity> vvPromoterList;
} }

View File

@ -3,21 +3,17 @@ package com.heyu.api.controller.mm;
import com.baomidou.mybatisplus.core.metadata.IPage; import com.baomidou.mybatisplus.core.metadata.IPage;
import com.heyu.api.alibaba.request.mm.VvBuyerRequest; import com.heyu.api.alibaba.request.mm.VvBuyerRequest;
import com.heyu.api.alibaba.request.mm.order.VvBuyerDTO;
import com.heyu.api.common.annotation.Describe; import com.heyu.api.common.annotation.Describe;
import com.heyu.api.data.dao.vv.VvBuyerAddressDao; import com.heyu.api.data.dao.vv.VvBuyerAddressDao;
import com.heyu.api.data.dao.vv.VvBuyerDao; import com.heyu.api.data.dao.vv.VvBuyerDao;
import com.heyu.api.data.dao.vv.VvPromoterDao;
import com.heyu.api.data.entity.vv.VvBuyerAddressEntity; import com.heyu.api.data.entity.vv.VvBuyerAddressEntity;
import com.heyu.api.data.entity.vv.VvBuyerEntity; import com.heyu.api.data.entity.vv.VvBuyerEntity;
import com.heyu.api.data.entity.vv.VvPromoterEntity;
import com.heyu.api.data.utils.R; import com.heyu.api.data.utils.R;
import com.heyu.api.data.utils.SanUtils; import com.heyu.api.data.utils.SanUtils;
import com.heyu.api.data.utils.StringUtils; import com.heyu.api.data.utils.StringUtils;
import com.heyu.api.utils.ISelect; import com.heyu.api.utils.ISelect;
import com.heyu.api.utils.PPageUtils; import com.heyu.api.utils.PPageUtils;
import lombok.extern.slf4j.Slf4j; import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.BeanUtils;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestBody; import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RequestMapping;
@ -40,8 +36,8 @@ public class AdminBuyerController {
private VvBuyerAddressDao vvBuyerAddressDao; private VvBuyerAddressDao vvBuyerAddressDao;
@Autowired //@Autowired
private VvPromoterDao vvPromoterDao; //private VvPromoterDao vvPromoterDao;
/*** /***
* 列表 * 列表
@ -87,23 +83,23 @@ public class AdminBuyerController {
List<VvBuyerAddressEntity> vvBuyerAddressEntities = vvBuyerAddressDao.selectMapByBuyerIds(buyerIds); List<VvBuyerAddressEntity> vvBuyerAddressEntities = vvBuyerAddressDao.selectMapByBuyerIds(buyerIds);
Map<Long, List<VvBuyerAddressEntity>> listMap = SanUtils.groupByFiled2MapList(vvBuyerAddressEntities, VvBuyerAddressEntity::getBuyerId); Map<Long, List<VvBuyerAddressEntity>> listMap = SanUtils.groupByFiled2MapList(vvBuyerAddressEntities, VvBuyerAddressEntity::getBuyerId);
List<VvPromoterEntity> vvPromoterEntities = vvPromoterDao.selectVvPromoterByPromoteIds(promoterIds); //List<VvPromoterEntity> vvPromoterEntities = vvPromoterDao.selectVvPromoterByPromoteIds(promoterIds);
Map<String, List<VvPromoterEntity>> vvPromoterGroupBy = SanUtils.groupByFiled2MapList(vvPromoterEntities, VvPromoterEntity::getPromoterId); //Map<String, List<VvPromoterEntity>> vvPromoterGroupBy = SanUtils.groupByFiled2MapList(vvPromoterEntities, VvPromoterEntity::getPromoterId);
List<VvBuyerDTO> buyerDTOs = new ArrayList<>(); //List<VvBuyerDTO> buyerDTOs = new ArrayList<>();
for (VvBuyerEntity vvBuyerAddressEntity : vvBuyerEntities) { //for (VvBuyerEntity vvBuyerAddressEntity : vvBuyerEntities) {
VvBuyerDTO vvBuyerDTO = new VvBuyerDTO(); // VvBuyerDTO vvBuyerDTO = new VvBuyerDTO();
BeanUtils.copyProperties(vvBuyerAddressEntity, vvBuyerDTO); // BeanUtils.copyProperties(vvBuyerAddressEntity, vvBuyerDTO);
vvBuyerDTO.setVvBuyerAddressEntityList(listMap.get(vvBuyerDTO.getId())); // vvBuyerDTO.setVvBuyerAddressEntityList(listMap.get(vvBuyerDTO.getId()));
// 获取买家推荐者信息 // // 获取买家推荐者信息
if (StringUtils.isNotEmpty(vvBuyerDTO.getPromoterId())) { // if (StringUtils.isNotEmpty(vvBuyerDTO.getPromoterId())) {
vvBuyerDTO.setVvPromoterList(vvPromoterGroupBy.get(vvBuyerDTO.getPromoterId())); // vvBuyerDTO.setVvPromoterList(vvPromoterGroupBy.get(vvBuyerDTO.getPromoterId()));
} // }
buyerDTOs.add(vvBuyerDTO); // buyerDTOs.add(vvBuyerDTO);
} //}
pageUtils.setRows(buyerDTOs); //pageUtils.setRows(buyerDTOs);
return R.ok().setData(pageUtils); return R.ok().setData(pageUtils);
} }

View File

@ -9,7 +9,6 @@ import com.heyu.api.common.annotation.Describe;
import com.heyu.api.data.enums.ApprovalEnums; import com.heyu.api.data.enums.ApprovalEnums;
import com.heyu.api.data.dao.vv.VvBuyerDao; import com.heyu.api.data.dao.vv.VvBuyerDao;
import com.heyu.api.data.dao.vv.VvDrawCashRecordDao; import com.heyu.api.data.dao.vv.VvDrawCashRecordDao;
import com.heyu.api.data.dao.vv.VvPromoterAwardLineDao;
import com.heyu.api.data.entity.vv.VvDrawCashRecordEntity; import com.heyu.api.data.entity.vv.VvDrawCashRecordEntity;
import com.heyu.api.data.utils.R; import com.heyu.api.data.utils.R;
import com.heyu.api.data.utils.StringUtils; import com.heyu.api.data.utils.StringUtils;
@ -36,8 +35,8 @@ public class AdminDrawCashRecordController {
@Autowired @Autowired
private VvBuyerDao vvBuyerDao; private VvBuyerDao vvBuyerDao;
@Autowired //@Autowired
private VvPromoterAwardLineDao vvPromoterAwardLineDao; //private VvPromoterAwardLineDao vvPromoterAwardLineDao;
/*** /***
* 奖励 列表 * 奖励 列表

View File

@ -4,12 +4,10 @@ package com.heyu.api.controller.mm;
import com.baomidou.mybatisplus.core.metadata.IPage; import com.baomidou.mybatisplus.core.metadata.IPage;
import com.heyu.api.alibaba.request.mm.VvPromoterLineRequest; import com.heyu.api.alibaba.request.mm.VvPromoterLineRequest;
import com.heyu.api.common.annotation.Describe; import com.heyu.api.common.annotation.Describe;
import com.heyu.api.data.dao.vv.VvPromoterAwardLineDao;
import com.heyu.api.data.utils.R; import com.heyu.api.data.utils.R;
import com.heyu.api.utils.ISelect; import com.heyu.api.utils.ISelect;
import com.heyu.api.utils.PPageUtils; import com.heyu.api.utils.PPageUtils;
import lombok.extern.slf4j.Slf4j; import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestBody; import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController; import org.springframework.web.bind.annotation.RestController;
@ -22,8 +20,6 @@ import java.util.List;
public class AdminPromoterAwardLineController { public class AdminPromoterAwardLineController {
@Autowired
private VvPromoterAwardLineDao vvPromoterAwardLineDao;
/*** /***
* 奖励 列表 * 奖励 列表
@ -36,16 +32,17 @@ public class AdminPromoterAwardLineController {
.doSelect(new ISelect() { .doSelect(new ISelect() {
@Override @Override
public List doSelect(IPage page) { public List doSelect(IPage page) {
return vvPromoterAwardLineDao.selectByCondition(page, //return vvPromoterAwardLineDao.selectByCondition(page,
vvPromoterRequest.getPromoterId(), // vvPromoterRequest.getPromoterId(),
vvPromoterRequest.getPromoterBuyerId(), // vvPromoterRequest.getPromoterBuyerId(),
vvPromoterRequest.getPromoterBuyerName(), // vvPromoterRequest.getPromoterBuyerName(),
vvPromoterRequest.getPromoterBuyerWeixin(), // vvPromoterRequest.getPromoterBuyerWeixin(),
vvPromoterRequest.getPromoterBuyerPhone(), // vvPromoterRequest.getPromoterBuyerPhone(),
vvPromoterRequest.getMinCreateTimestamp(), // vvPromoterRequest.getMinCreateTimestamp(),
vvPromoterRequest.getMaxCreateTimestamp(), // vvPromoterRequest.getMaxCreateTimestamp(),
vvPromoterRequest.getCreateTimestampSort() // vvPromoterRequest.getCreateTimestampSort()
); //);
return null;
} }
}); });

View File

@ -3,9 +3,9 @@ package com.heyu.api.controller.mm;
import com.baomidou.mybatisplus.core.metadata.IPage; import com.baomidou.mybatisplus.core.metadata.IPage;
import com.heyu.api.alibaba.request.mm.VvPromoterRequest; import com.heyu.api.alibaba.request.mm.VvPromoterBuyerRequest;
import com.heyu.api.common.annotation.Describe; import com.heyu.api.common.annotation.Describe;
import com.heyu.api.data.dao.vv.VvPromoterDao; import com.heyu.api.data.dao.vv.VvPromoterBuyerDao;
import com.heyu.api.data.utils.R; import com.heyu.api.data.utils.R;
import com.heyu.api.utils.ISelect; import com.heyu.api.utils.ISelect;
import com.heyu.api.utils.PPageUtils; import com.heyu.api.utils.PPageUtils;
@ -19,25 +19,25 @@ import java.util.List;
@Slf4j @Slf4j
@RestController @RestController
@RequestMapping("/mm/promoter") @RequestMapping("/mm/promoter/buyer")
public class AdminPromoterController { public class AdminPromoterController {
@Autowired @Autowired
private VvPromoterDao vvPromoterDao; private VvPromoterBuyerDao vvPromoterBuyerDao;
/*** /***
* 列表 * 列表
* http://localhost:8888/mm/promoter/list * http://localhost:8888/mm/promoter/buyer/list
*/ */
@Describe("推广者列表") @Describe("推广者列表")
@RequestMapping("/list") @RequestMapping("/list")
public R list(@RequestBody VvPromoterRequest vvPromoterRequest) { public R list(@RequestBody VvPromoterBuyerRequest vvPromoterRequest) {
PPageUtils pageUtils = PPageUtils.startPage(vvPromoterRequest.getPageNum(), vvPromoterRequest.getPageSize()) PPageUtils pageUtils = PPageUtils.startPage(vvPromoterRequest.getPageNum(), vvPromoterRequest.getPageSize())
.doSelect(new ISelect() { .doSelect(new ISelect() {
@Override @Override
public List doSelect(IPage page) { public List doSelect(IPage page) {
return vvPromoterDao.selectBuyerByCondition(page, return vvPromoterBuyerDao.selectBuyerByCondition(page,
vvPromoterRequest.getPromoterId(), vvPromoterRequest.getPromoterId(),
vvPromoterRequest.getPromoterBuyerId(), vvPromoterRequest.getPromoterBuyerId(),
vvPromoterRequest.getPromoterBuyerName(), vvPromoterRequest.getPromoterBuyerName(),
@ -49,7 +49,6 @@ public class AdminPromoterController {
); );
} }
}); });
return R.ok().setData(pageUtils); return R.ok().setData(pageUtils);
} }
} }

View File

@ -5,12 +5,10 @@ import com.baomidou.mybatisplus.core.metadata.IPage;
import com.heyu.api.alibaba.request.mm.VvPromoterLineRequest; import com.heyu.api.alibaba.request.mm.VvPromoterLineRequest;
import com.heyu.api.common.annotation.AppLogin; import com.heyu.api.common.annotation.AppLogin;
import com.heyu.api.common.annotation.Describe; import com.heyu.api.common.annotation.Describe;
import com.heyu.api.data.dao.vv.VvPromoterAwardLineDao;
import com.heyu.api.data.utils.R; import com.heyu.api.data.utils.R;
import com.heyu.api.utils.ISelect; import com.heyu.api.utils.ISelect;
import com.heyu.api.utils.PPageUtils; import com.heyu.api.utils.PPageUtils;
import lombok.extern.slf4j.Slf4j; import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestBody; import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController; import org.springframework.web.bind.annotation.RestController;
@ -24,8 +22,7 @@ import java.util.List;
public class AppPromoterAwardLineController { public class AppPromoterAwardLineController {
@Autowired
private VvPromoterAwardLineDao vvPromoterAwardLineDao;
/*** /***
* 奖励 列表 * 奖励 列表
@ -38,12 +35,13 @@ public class AppPromoterAwardLineController {
.doSelect(new ISelect() { .doSelect(new ISelect() {
@Override @Override
public List doSelect(IPage page) { public List doSelect(IPage page) {
return vvPromoterAwardLineDao.selectByAppCondition(page, // return vvPromoterAwardLineDao.selectByAppCondition(page,
vvPromoterRequest.getPromoterBuyerId(), // vvPromoterRequest.getPromoterBuyerId(),
vvPromoterRequest.getMinCreateTimestamp(), // vvPromoterRequest.getMinCreateTimestamp(),
vvPromoterRequest.getMaxCreateTimestamp(), // vvPromoterRequest.getMaxCreateTimestamp(),
vvPromoterRequest.getCreateTimestampSort() // vvPromoterRequest.getCreateTimestampSort()
); // );
return null;
} }
}); });

View File

@ -6,12 +6,10 @@ import com.baomidou.mybatisplus.core.metadata.IPage;
import com.heyu.api.alibaba.request.vv.AppPromoterRequest; import com.heyu.api.alibaba.request.vv.AppPromoterRequest;
import com.heyu.api.common.annotation.AppLogin; import com.heyu.api.common.annotation.AppLogin;
import com.heyu.api.common.annotation.Describe; import com.heyu.api.common.annotation.Describe;
import com.heyu.api.data.dao.vv.VvPromoterDao;
import com.heyu.api.data.utils.R; import com.heyu.api.data.utils.R;
import com.heyu.api.utils.ISelect; import com.heyu.api.utils.ISelect;
import com.heyu.api.utils.PPageUtils; import com.heyu.api.utils.PPageUtils;
import lombok.extern.slf4j.Slf4j; import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestBody; import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController; import org.springframework.web.bind.annotation.RestController;
@ -25,8 +23,8 @@ import java.util.List;
public class AppPromoterController { public class AppPromoterController {
@Autowired //@Autowired
private VvPromoterDao vvPromoterDao; //private VvPromoterDao vvPromoterDao;
/*** /***
* 列表 * 列表
@ -39,12 +37,13 @@ public class AppPromoterController {
.doSelect(new ISelect() { .doSelect(new ISelect() {
@Override @Override
public List doSelect(IPage page) { public List doSelect(IPage page) {
return vvPromoterDao.selectAppByCondition(page, // return vvPromoterDao.selectAppByCondition(page,
request.getBuyerId(), // request.getBuyerId(),
request.getMinCreateTimestamp(), // request.getMinCreateTimestamp(),
request.getMaxCreateTimestamp(), // request.getMaxCreateTimestamp(),
request.getCreateTimestampSort() // request.getCreateTimestampSort()
); // );
return null;
} }
}); });
return R.ok().setData(pageUtils); return R.ok().setData(pageUtils);