修改TBook各个层
This commit is contained in:
parent
c60d3bdc64
commit
4565daf668
|
@ -20,5 +20,6 @@ import java.util.Date;
|
||||||
@Schema(description = "查询")
|
@Schema(description = "查询")
|
||||||
public class TBookQuery extends Query {
|
public class TBookQuery extends Query {
|
||||||
private String author;
|
private String author;
|
||||||
|
private Integer category;
|
||||||
private String bookName;
|
private String bookName;
|
||||||
}
|
}
|
|
@ -40,6 +40,7 @@ public class TBookCommentServiceImpl extends BaseServiceImpl<TBookCommentDao, TB
|
||||||
wrapper.eq(ObjectUtil.isNotNull(query.getUserId()), TBookCommentEntity::getUserId, query.getUserId());
|
wrapper.eq(ObjectUtil.isNotNull(query.getUserId()), TBookCommentEntity::getUserId, query.getUserId());
|
||||||
wrapper.eq(ObjectUtil.isNotNull(query.getBookId()), TBookCommentEntity::getBookId, query.getBookId());
|
wrapper.eq(ObjectUtil.isNotNull(query.getBookId()), TBookCommentEntity::getBookId, query.getBookId());
|
||||||
|
|
||||||
|
|
||||||
return wrapper;
|
return wrapper;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -9,6 +9,7 @@ import net.maku.framework.common.exception.ServerException;
|
||||||
import net.maku.framework.common.utils.PageResult;
|
import net.maku.framework.common.utils.PageResult;
|
||||||
import net.maku.framework.mybatis.service.impl.BaseServiceImpl;
|
import net.maku.framework.mybatis.service.impl.BaseServiceImpl;
|
||||||
import net.maku.maku.convert.TBookConvert;
|
import net.maku.maku.convert.TBookConvert;
|
||||||
|
import net.maku.maku.entity.TBookCommentEntity;
|
||||||
import net.maku.maku.entity.TBookEntity;
|
import net.maku.maku.entity.TBookEntity;
|
||||||
import net.maku.maku.query.TBookQuery;
|
import net.maku.maku.query.TBookQuery;
|
||||||
import net.maku.maku.vo.TBookVO;
|
import net.maku.maku.vo.TBookVO;
|
||||||
|
@ -40,6 +41,7 @@ public class TBookServiceImpl extends BaseServiceImpl<TBookDao, TBookEntity> imp
|
||||||
LambdaQueryWrapper<TBookEntity> wrapper = Wrappers.lambdaQuery();
|
LambdaQueryWrapper<TBookEntity> wrapper = Wrappers.lambdaQuery();
|
||||||
wrapper.like(TBookEntity::getBookName, query.getBookName());
|
wrapper.like(TBookEntity::getBookName, query.getBookName());
|
||||||
wrapper.like(TBookEntity::getAuthor, query.getAuthor());
|
wrapper.like(TBookEntity::getAuthor, query.getAuthor());
|
||||||
|
wrapper.eq(ObjectUtil.isNotNull(query.getCategory()), TBookEntity::getCategory, query.getCategory());
|
||||||
return wrapper;
|
return wrapper;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -14,7 +14,7 @@ import java.util.Date;
|
||||||
* @since 1.0.0 2024-07-16
|
* @since 1.0.0 2024-07-16
|
||||||
*/
|
*/
|
||||||
@Data
|
@Data
|
||||||
@Schema(description = "")
|
@Schema(description = "书籍收藏表视图数据")
|
||||||
public class TBookCollectionVO implements Serializable {
|
public class TBookCollectionVO implements Serializable {
|
||||||
private static final long serialVersionUID = 1L;
|
private static final long serialVersionUID = 1L;
|
||||||
|
|
||||||
|
|
|
@ -14,7 +14,7 @@ import java.util.Date;
|
||||||
* @since 1.0.0 2024-07-16
|
* @since 1.0.0 2024-07-16
|
||||||
*/
|
*/
|
||||||
@Data
|
@Data
|
||||||
@Schema(description = "")
|
@Schema(description = "书籍评论表视图数据")
|
||||||
public class TBookCommentVO implements Serializable {
|
public class TBookCommentVO implements Serializable {
|
||||||
private static final long serialVersionUID = 1L;
|
private static final long serialVersionUID = 1L;
|
||||||
|
|
||||||
|
|
|
@ -15,11 +15,11 @@ import java.util.Date;
|
||||||
* @since 1.0.0 2024-07-16
|
* @since 1.0.0 2024-07-16
|
||||||
*/
|
*/
|
||||||
@Data
|
@Data
|
||||||
@Schema(description = "")
|
@Schema(description = "书本视图数据")
|
||||||
public class TBookVO implements Serializable {
|
public class TBookVO implements Serializable {
|
||||||
private static final long serialVersionUID = 1L;
|
private static final long serialVersionUID = 1L;
|
||||||
|
|
||||||
private Integer id;
|
private Long id;
|
||||||
|
|
||||||
private String bookName;
|
private String bookName;
|
||||||
|
|
||||||
|
|
|
@ -14,7 +14,7 @@ import java.math.BigDecimal;
|
||||||
* @since 1.0.0 2024-07-16
|
* @since 1.0.0 2024-07-16
|
||||||
*/
|
*/
|
||||||
@Data
|
@Data
|
||||||
@Schema(description = "")
|
@Schema(description = "订单详情表视图数据")
|
||||||
public class TPurchaseDetailsVO implements Serializable {
|
public class TPurchaseDetailsVO implements Serializable {
|
||||||
private static final long serialVersionUID = 1L;
|
private static final long serialVersionUID = 1L;
|
||||||
|
|
||||||
|
|
|
@ -15,7 +15,7 @@ import java.util.Date;
|
||||||
* @since 1.0.0 2024-07-16
|
* @since 1.0.0 2024-07-16
|
||||||
*/
|
*/
|
||||||
@Data
|
@Data
|
||||||
@Schema(description = "")
|
@Schema(description = "书籍订单表视图数据")
|
||||||
public class TPurchaseVO implements Serializable {
|
public class TPurchaseVO implements Serializable {
|
||||||
private static final long serialVersionUID = 1L;
|
private static final long serialVersionUID = 1L;
|
||||||
|
|
||||||
|
|
|
@ -14,7 +14,7 @@ import java.util.Date;
|
||||||
* @since 1.0.0 2024-07-16
|
* @since 1.0.0 2024-07-16
|
||||||
*/
|
*/
|
||||||
@Data
|
@Data
|
||||||
@Schema(description = "")
|
@Schema(description = "购物车视图数据")
|
||||||
public class TShoppingTrolleyVO implements Serializable {
|
public class TShoppingTrolleyVO implements Serializable {
|
||||||
private static final long serialVersionUID = 1L;
|
private static final long serialVersionUID = 1L;
|
||||||
|
|
||||||
|
|
|
@ -15,7 +15,7 @@ import java.util.Date;
|
||||||
* @since 1.0.0 2024-07-16
|
* @since 1.0.0 2024-07-16
|
||||||
*/
|
*/
|
||||||
@Data
|
@Data
|
||||||
@Schema(description = "")
|
@Schema(description = "用户视图数据")
|
||||||
public class TUserVO implements Serializable {
|
public class TUserVO implements Serializable {
|
||||||
private static final long serialVersionUID = 1L;
|
private static final long serialVersionUID = 1L;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user