new prescript

This commit is contained in:
wangjinlei
2023-12-13 17:24:20 +08:00
parent 0376420aca
commit 75fb345328
8 changed files with 122 additions and 0 deletions

View File

@@ -0,0 +1,9 @@
package com.peanut.modules.book.dao;
import com.github.yulichang.base.MPJBaseMapper;
import com.peanut.modules.book.entity.PrescriptCategoryEntity;
import org.apache.ibatis.annotations.Mapper;
@Mapper
public interface PrescriptCategoryDao extends MPJBaseMapper<PrescriptCategoryEntity> {
}

View File

@@ -0,0 +1,9 @@
package com.peanut.modules.book.dao;
import com.github.yulichang.base.MPJBaseMapper;
import com.peanut.modules.book.entity.PrescriptEntity;
import org.apache.ibatis.annotations.Mapper;
@Mapper
public interface PrescriptDao extends MPJBaseMapper<PrescriptEntity> {
}

View File

@@ -0,0 +1,23 @@
package com.peanut.modules.book.entity;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
@Data
@TableName("prescript_category")
public class PrescriptCategoryEntity {
@TableId(type = IdType.AUTO)
private Integer prescriptCategoryId;
private String title;
private Integer pid;
private Integer sort;
private Integer delFlag;
}

View File

@@ -0,0 +1,41 @@
package com.peanut.modules.book.entity;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import java.util.Date;
@Data
@TableName("prescript")
public class PrescriptEntity {
@TableId(type = IdType.AUTO)
private Integer prescriptId;
private Integer prescriptCategoryId;
private String title;
private String images;
private String source;
private String doseOld;
private String doseNow;
private String usage;
private String preSong;
private String indications;
private Integer sort;
private Date createTime;
@TableLogic
private Integer delFlag;
}

View File

@@ -0,0 +1,7 @@
package com.peanut.modules.book.service;
import com.baomidou.mybatisplus.extension.service.IService;
import com.peanut.modules.book.entity.PrescriptCategoryEntity;
public interface PrescriptCategoryService extends IService<PrescriptCategoryEntity> {
}

View File

@@ -0,0 +1,7 @@
package com.peanut.modules.book.service;
import com.baomidou.mybatisplus.extension.service.IService;
import com.peanut.modules.book.entity.PrescriptEntity;
public interface PrescriptService extends IService<PrescriptEntity> {
}

View File

@@ -0,0 +1,13 @@
package com.peanut.modules.book.service.impl;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.peanut.modules.book.dao.PrescriptCategoryDao;
import com.peanut.modules.book.entity.PrescriptCategoryEntity;
import com.peanut.modules.book.service.PrescriptCategoryService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;
@Slf4j
@Service("prescriptCategoryService")
public class PrescriptCategoryServiceImpl extends ServiceImpl<PrescriptCategoryDao, PrescriptCategoryEntity> implements PrescriptCategoryService {
}

View File

@@ -0,0 +1,13 @@
package com.peanut.modules.book.service.impl;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.peanut.modules.book.dao.PrescriptDao;
import com.peanut.modules.book.entity.PrescriptEntity;
import com.peanut.modules.book.service.PrescriptService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;
@Slf4j
@Service("prescriptService")
public class PrescriptServiceImpl extends ServiceImpl<PrescriptDao, PrescriptEntity> implements PrescriptService {
}