提交修改
This commit is contained in:
parent
e4406348cb
commit
02a31b224f
@ -41,6 +41,9 @@ public interface VvCommentDao extends BaseMapper<VvCommentEntity> {
|
|||||||
|
|
||||||
@OrderBy(VvCommentEntity.id_)
|
@OrderBy(VvCommentEntity.id_)
|
||||||
List<VvCommentEntity> selectVvCommentByCondition(IPage page,
|
List<VvCommentEntity> selectVvCommentByCondition(IPage page,
|
||||||
|
@IF Long buyerId,
|
||||||
|
@IF @LIKE String buyerName,
|
||||||
|
@IF @LIKE String buyerPhone,
|
||||||
@IF Long productId,
|
@IF Long productId,
|
||||||
@IF @LIKE Long productName,
|
@IF @LIKE Long productName,
|
||||||
@IF Long skuId,
|
@IF Long skuId,
|
||||||
|
|||||||
@ -37,6 +37,9 @@ private static final long serialVersionUID = 1L;
|
|||||||
public final static String seller_service = CLASS_NAME + "seller_service"; // 卖家服务
|
public final static String seller_service = CLASS_NAME + "seller_service"; // 卖家服务
|
||||||
public final static String logistics_service = CLASS_NAME + "logistics_service"; // 物流服务
|
public final static String logistics_service = CLASS_NAME + "logistics_service"; // 物流服务
|
||||||
public final static String useful_count = CLASS_NAME + "useful_count"; // 有用数
|
public final static String useful_count = CLASS_NAME + "useful_count"; // 有用数
|
||||||
|
public final static String buyer_id = CLASS_NAME + "buyer_id"; // 买家id
|
||||||
|
public final static String buyer_name = CLASS_NAME + "buyer_name"; // 买家名称
|
||||||
|
public final static String buyer_phone = CLASS_NAME + "buyer_phone"; // 买家手机号
|
||||||
//
|
//
|
||||||
@TableId(value = "id", type = IdType.AUTO)
|
@TableId(value = "id", type = IdType.AUTO)
|
||||||
private Long id;
|
private Long id;
|
||||||
@ -46,7 +49,8 @@ private static final long serialVersionUID = 1L;
|
|||||||
private Date createTime;
|
private Date createTime;
|
||||||
//修改时间
|
//修改时间
|
||||||
private Date modifyTime;
|
private Date modifyTime;
|
||||||
|
//商品评论的内容
|
||||||
|
private String productComment;
|
||||||
//订单id
|
//订单id
|
||||||
private Long tradeOrderId;
|
private Long tradeOrderId;
|
||||||
//sku_id
|
//sku_id
|
||||||
@ -61,9 +65,6 @@ private static final long serialVersionUID = 1L;
|
|||||||
private String status;
|
private String status;
|
||||||
//创建时间
|
//创建时间
|
||||||
private Long createTimestamp;
|
private Long createTimestamp;
|
||||||
|
|
||||||
//商品评论的内容
|
|
||||||
private String productComment;
|
|
||||||
//服务评论内容
|
//服务评论内容
|
||||||
private String serviceComment;
|
private String serviceComment;
|
||||||
//描述相符
|
//描述相符
|
||||||
@ -74,6 +75,12 @@ private static final long serialVersionUID = 1L;
|
|||||||
private Integer logisticsService;
|
private Integer logisticsService;
|
||||||
//有用数
|
//有用数
|
||||||
private Integer usefulCount;
|
private Integer usefulCount;
|
||||||
|
//买家id
|
||||||
|
private Long buyerId;
|
||||||
|
//买家名称
|
||||||
|
private String buyerName;
|
||||||
|
//买家手机号
|
||||||
|
private String buyerPhone;
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @return
|
* @return
|
||||||
@ -329,6 +336,51 @@ private static final long serialVersionUID = 1L;
|
|||||||
this.usefulCount = usefulCount;
|
this.usefulCount = usefulCount;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 买家id
|
||||||
|
* @return
|
||||||
|
*/
|
||||||
|
public Long getBuyerId() {
|
||||||
|
return buyerId;
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* 买家id
|
||||||
|
* @param buyerId
|
||||||
|
*/
|
||||||
|
public void setBuyerId(Long buyerId) {
|
||||||
|
this.buyerId = buyerId;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 买家名称
|
||||||
|
* @return
|
||||||
|
*/
|
||||||
|
public String getBuyerName() {
|
||||||
|
return buyerName;
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* 买家名称
|
||||||
|
* @param buyerName
|
||||||
|
*/
|
||||||
|
public void setBuyerName(String buyerName) {
|
||||||
|
this.buyerName = buyerName;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 买家手机号
|
||||||
|
* @return
|
||||||
|
*/
|
||||||
|
public String getBuyerPhone() {
|
||||||
|
return buyerPhone;
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* 买家手机号
|
||||||
|
* @param buyerPhone
|
||||||
|
*/
|
||||||
|
public void setBuyerPhone(String buyerPhone) {
|
||||||
|
this.buyerPhone = buyerPhone;
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String toString() {
|
public String toString() {
|
||||||
return "VvCommentEntity{" +
|
return "VvCommentEntity{" +
|
||||||
@ -349,6 +401,9 @@ private static final long serialVersionUID = 1L;
|
|||||||
",sellerService=" + sellerService +
|
",sellerService=" + sellerService +
|
||||||
",logisticsService=" + logisticsService +
|
",logisticsService=" + logisticsService +
|
||||||
",usefulCount=" + usefulCount +
|
",usefulCount=" + usefulCount +
|
||||||
|
",buyerId=" + buyerId +
|
||||||
|
",buyerName=" + buyerName +
|
||||||
|
",buyerPhone=" + buyerPhone +
|
||||||
"}";
|
"}";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -65,6 +65,14 @@ public class VVCommentRequest {
|
|||||||
//有用数
|
//有用数
|
||||||
private Integer maxUsefulCount;
|
private Integer maxUsefulCount;
|
||||||
|
|
||||||
|
//买家id
|
||||||
|
private Long buyerId;
|
||||||
|
//买家名称
|
||||||
|
private String buyerName;
|
||||||
|
//买家手机号
|
||||||
|
private String buyerPhone;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -33,7 +33,6 @@ public class CommentController {
|
|||||||
|
|
||||||
@Autowired
|
@Autowired
|
||||||
private VvCommentDetailDao vvCommentDetailDao;
|
private VvCommentDetailDao vvCommentDetailDao;
|
||||||
|
|
||||||
/***
|
/***
|
||||||
* 列表
|
* 列表
|
||||||
*/
|
*/
|
||||||
@ -44,6 +43,9 @@ public class CommentController {
|
|||||||
@Override
|
@Override
|
||||||
public List doSelect(IPage page) {
|
public List doSelect(IPage page) {
|
||||||
return vvCommentDao.selectVvCommentByCondition(page,
|
return vvCommentDao.selectVvCommentByCondition(page,
|
||||||
|
vvCommentRequest.getBuyerId(),
|
||||||
|
vvCommentRequest.getBuyerName(),
|
||||||
|
vvCommentRequest.getBuyerPhone(),
|
||||||
vvCommentRequest.getProductId(),
|
vvCommentRequest.getProductId(),
|
||||||
vvCommentRequest.getProductName(),
|
vvCommentRequest.getProductName(),
|
||||||
vvCommentRequest.getSkuId(),
|
vvCommentRequest.getSkuId(),
|
||||||
@ -64,6 +66,7 @@ public class CommentController {
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
List<VvCommentEntity> vvCommentEntities = pageUtils.getRows();
|
List<VvCommentEntity> vvCommentEntities = pageUtils.getRows();
|
||||||
List<VvCommentDTO> commentDTOS = new ArrayList<>();
|
List<VvCommentDTO> commentDTOS = new ArrayList<>();
|
||||||
for (VvCommentEntity vvCommentEntity : vvCommentEntities) {
|
for (VvCommentEntity vvCommentEntity : vvCommentEntities) {
|
||||||
@ -77,7 +80,6 @@ public class CommentController {
|
|||||||
|
|
||||||
return R.ok().setData(pageUtils);
|
return R.ok().setData(pageUtils);
|
||||||
}
|
}
|
||||||
|
|
||||||
/***
|
/***
|
||||||
* 列表
|
* 列表
|
||||||
*/
|
*/
|
||||||
@ -103,6 +105,7 @@ public class CommentController {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (CollectionUtils.isNotEmpty(vvCommentDTO.getVvCommentDetailEntities())) {
|
if (CollectionUtils.isNotEmpty(vvCommentDTO.getVvCommentDetailEntities())) {
|
||||||
for (VvCommentDetailEntity vvCommentDetailEntity : vvCommentDTO.getVvCommentDetailEntities()) {
|
for (VvCommentDetailEntity vvCommentDetailEntity : vvCommentDTO.getVvCommentDetailEntities()) {
|
||||||
vvCommentDetailEntity.setCommentId(vvCommentEntity.getId());
|
vvCommentDetailEntity.setCommentId(vvCommentEntity.getId());
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user