parent
e8b488e943
commit
b79c281394
4 changed files with 79 additions and 0 deletions
@ -0,0 +1,9 @@ |
||||
package com.teaching.mapper; |
||||
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
||||
import com.teaching.model.entity.Know; |
||||
import org.apache.ibatis.annotations.Mapper; |
||||
|
||||
@Mapper |
||||
public interface KnowMapper extends BaseMapper<Know> { |
||||
} |
@ -0,0 +1,48 @@ |
||||
package com.teaching.model.entity; |
||||
|
||||
import io.swagger.annotations.Api; |
||||
import lombok.AllArgsConstructor; |
||||
import lombok.Data; |
||||
import lombok.NoArgsConstructor; |
||||
|
||||
|
||||
import javax.persistence.Table; |
||||
import java.io.Serializable; |
||||
import java.time.LocalDateTime; |
||||
|
||||
@Data |
||||
public class Know { |
||||
|
||||
//内部编号
|
||||
private Long id ; |
||||
|
||||
//知识点名称
|
||||
private String name; |
||||
|
||||
//知识点代码
|
||||
private String code; |
||||
|
||||
//简介
|
||||
private String info; |
||||
|
||||
//定义
|
||||
private String miaoshu; |
||||
|
||||
//添加人真实姓名
|
||||
private String inrealname; |
||||
|
||||
//创建人
|
||||
private String createBy; |
||||
|
||||
//创建时间
|
||||
private LocalDateTime createTime; |
||||
|
||||
//修改人
|
||||
private String updateBy; |
||||
|
||||
//修改时间
|
||||
private LocalDateTime updateTime; |
||||
|
||||
//所属部门
|
||||
private String sysOrgCode; |
||||
} |
@ -0,0 +1,10 @@ |
||||
package com.teaching.service; |
||||
|
||||
import com.baomidou.mybatisplus.extension.service.IService; |
||||
import com.teaching.model.entity.Know; |
||||
import org.springframework.stereotype.Service; |
||||
|
||||
|
||||
public interface IknowService extends IService<Know> { |
||||
|
||||
} |
@ -0,0 +1,12 @@ |
||||
package com.teaching.service.impl; |
||||
|
||||
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
||||
import com.teaching.mapper.KnowMapper; |
||||
import com.teaching.model.entity.Know; |
||||
import com.teaching.service.IknowService; |
||||
import org.springframework.stereotype.Service; |
||||
|
||||
@Service |
||||
public class IknowServiceimpl extends ServiceImpl<KnowMapper,Know> implements IknowService { |
||||
|
||||
} |
Loading…
Reference in new issue