名医精彩标签
This commit is contained in:
@@ -0,0 +1,9 @@
|
|||||||
|
package com.peanut.modules.common.dao;
|
||||||
|
|
||||||
|
import com.github.yulichang.base.MPJBaseMapper;
|
||||||
|
import com.peanut.modules.common.entity.CourseTaihumed;
|
||||||
|
import org.apache.ibatis.annotations.Mapper;
|
||||||
|
|
||||||
|
@Mapper
|
||||||
|
public interface CourseTaihumedDao extends MPJBaseMapper<CourseTaihumed> {
|
||||||
|
}
|
||||||
@@ -0,0 +1,10 @@
|
|||||||
|
package com.peanut.modules.common.dao;
|
||||||
|
|
||||||
|
import com.github.yulichang.base.MPJBaseMapper;
|
||||||
|
import com.peanut.modules.common.entity.CoursePsyche;
|
||||||
|
import com.peanut.modules.common.entity.CourseToTaihumed;
|
||||||
|
import org.apache.ibatis.annotations.Mapper;
|
||||||
|
|
||||||
|
@Mapper
|
||||||
|
public interface CourseToTaihumedDao extends MPJBaseMapper<CourseToTaihumed> {
|
||||||
|
}
|
||||||
@@ -60,4 +60,8 @@ public class CourseEntity {
|
|||||||
private Integer isBuy;
|
private Integer isBuy;
|
||||||
@TableField(exist = false)
|
@TableField(exist = false)
|
||||||
private Integer isStudying;
|
private Integer isStudying;
|
||||||
|
@TableField(exist = false)
|
||||||
|
private Integer taihuTalentId;
|
||||||
|
@TableField(exist = false)
|
||||||
|
private TaihuTalent taihuTalent;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -0,0 +1,45 @@
|
|||||||
|
package com.peanut.modules.common.entity;
|
||||||
|
|
||||||
|
import com.baomidou.mybatisplus.annotation.TableField;
|
||||||
|
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;
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
@Data
|
||||||
|
@TableName("course_taihumed")
|
||||||
|
public class CourseTaihumed {
|
||||||
|
|
||||||
|
@TableId
|
||||||
|
private Integer id;
|
||||||
|
|
||||||
|
private Integer pid;
|
||||||
|
|
||||||
|
private Integer isLast;
|
||||||
|
|
||||||
|
private String title;
|
||||||
|
|
||||||
|
private Integer sort;
|
||||||
|
|
||||||
|
private String icon;
|
||||||
|
|
||||||
|
private String content;
|
||||||
|
|
||||||
|
private String media;
|
||||||
|
|
||||||
|
//0空1视频2音频
|
||||||
|
private Integer mediaType;
|
||||||
|
|
||||||
|
private Date createTime;
|
||||||
|
|
||||||
|
@TableLogic
|
||||||
|
private Integer delFlag;
|
||||||
|
|
||||||
|
@TableField(exist = false)
|
||||||
|
private List<CourseTaihumed> children;
|
||||||
|
@TableField(exist = false)
|
||||||
|
private List<CourseEntity> courseList;
|
||||||
|
}
|
||||||
@@ -0,0 +1,32 @@
|
|||||||
|
package com.peanut.modules.common.entity;
|
||||||
|
|
||||||
|
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("course_to_taihumed")
|
||||||
|
public class CourseToTaihumed {
|
||||||
|
@TableId
|
||||||
|
private Integer id;
|
||||||
|
|
||||||
|
private Integer courseId;
|
||||||
|
|
||||||
|
private Integer medicalId;
|
||||||
|
|
||||||
|
private Integer sort;
|
||||||
|
|
||||||
|
//0隐藏1初级2高级
|
||||||
|
private Integer level;
|
||||||
|
|
||||||
|
//0隐藏1必修2选修
|
||||||
|
private Integer selective;
|
||||||
|
|
||||||
|
private Date createTime;
|
||||||
|
|
||||||
|
@TableLogic
|
||||||
|
private Integer delFlag;
|
||||||
|
}
|
||||||
@@ -0,0 +1,7 @@
|
|||||||
|
package com.peanut.modules.common.service;
|
||||||
|
|
||||||
|
import com.baomidou.mybatisplus.extension.service.IService;
|
||||||
|
import com.peanut.modules.common.entity.CourseTaihumed;
|
||||||
|
|
||||||
|
public interface CourseTaihumedService extends IService<CourseTaihumed> {
|
||||||
|
}
|
||||||
@@ -0,0 +1,7 @@
|
|||||||
|
package com.peanut.modules.common.service;
|
||||||
|
|
||||||
|
import com.baomidou.mybatisplus.extension.service.IService;
|
||||||
|
import com.peanut.modules.common.entity.CourseToTaihumed;
|
||||||
|
|
||||||
|
public interface CourseToTaihumedService extends IService<CourseToTaihumed> {
|
||||||
|
}
|
||||||
@@ -0,0 +1,13 @@
|
|||||||
|
package com.peanut.modules.common.service.impl;
|
||||||
|
|
||||||
|
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
||||||
|
import com.peanut.modules.common.dao.CourseTaihumedDao;
|
||||||
|
import com.peanut.modules.common.entity.CourseTaihumed;
|
||||||
|
import com.peanut.modules.common.service.CourseTaihumedService;
|
||||||
|
import lombok.extern.slf4j.Slf4j;
|
||||||
|
import org.springframework.stereotype.Service;
|
||||||
|
|
||||||
|
@Slf4j
|
||||||
|
@Service("commonCourseTaihumedService")
|
||||||
|
public class CourseTaihumedServiceImpl extends ServiceImpl<CourseTaihumedDao, CourseTaihumed> implements CourseTaihumedService {
|
||||||
|
}
|
||||||
@@ -0,0 +1,13 @@
|
|||||||
|
package com.peanut.modules.common.service.impl;
|
||||||
|
|
||||||
|
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
||||||
|
import com.peanut.modules.common.dao.CourseToTaihumedDao;
|
||||||
|
import com.peanut.modules.common.entity.CourseToTaihumed;
|
||||||
|
import com.peanut.modules.common.service.CourseToTaihumedService;
|
||||||
|
import lombok.extern.slf4j.Slf4j;
|
||||||
|
import org.springframework.stereotype.Service;
|
||||||
|
|
||||||
|
@Slf4j
|
||||||
|
@Service("commonCourseToTaihumedService")
|
||||||
|
public class CourseToTaihumedServiceImpl extends ServiceImpl<CourseToTaihumedDao, CourseToTaihumed> implements CourseToTaihumedService {
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user