Commit 6abbd302d68b2171f7635f1bb909dbefb263f35a
1 parent
3837aad448
Exists in
master
and in
1 other branch
患者关注基础类
Showing 5 changed files with 61 additions and 1 deletions
- talkonlineweb/src/main/java/com/lyms/talkonlineweb/controller/ArticleController.java
- talkonlineweb/src/main/java/com/lyms/talkonlineweb/mapper/LymsPatientAttentionMapper.java
- talkonlineweb/src/main/java/com/lyms/talkonlineweb/service/LymsPatientAttentionService.java
- talkonlineweb/src/main/java/com/lyms/talkonlineweb/service/impl/LymsPatientAttentionServiceImpl.java
- talkonlineweb/src/main/resources/mapper/LymsPatientAttentionMapper.xml
talkonlineweb/src/main/java/com/lyms/talkonlineweb/controller/ArticleController.java
View file @
6abbd30
| ... | ... | @@ -92,7 +92,6 @@ |
| 92 | 92 | * @return |
| 93 | 93 | */ |
| 94 | 94 | @GetMapping("showPic/{fileName}") |
| 95 | - @TokenRequired | |
| 96 | 95 | public void showPic(@PathVariable("fileName") String fileName, HttpServletResponse response) { |
| 97 | 96 | try(InputStream in=new FileInputStream(new File(uploadPath + File.separator +fileName)); |
| 98 | 97 | OutputStream out=response.getOutputStream(); |
talkonlineweb/src/main/java/com/lyms/talkonlineweb/mapper/LymsPatientAttentionMapper.java
View file @
6abbd30
| 1 | +package com.lyms.talkonlineweb.mapper; | |
| 2 | + | |
| 3 | +import com.lyms.talkonlineweb.domain.LymsPatientAttention; | |
| 4 | +import com.baomidou.mybatisplus.core.mapper.BaseMapper; | |
| 5 | + | |
| 6 | +/** | |
| 7 | + * @Entity com.lyms.talkonlineweb.domain.LymsPatientAttention | |
| 8 | + */ | |
| 9 | +public interface LymsPatientAttentionMapper extends BaseMapper<LymsPatientAttention> { | |
| 10 | + | |
| 11 | +} |
talkonlineweb/src/main/java/com/lyms/talkonlineweb/service/LymsPatientAttentionService.java
View file @
6abbd30
talkonlineweb/src/main/java/com/lyms/talkonlineweb/service/impl/LymsPatientAttentionServiceImpl.java
View file @
6abbd30
| 1 | +package com.lyms.talkonlineweb.service.impl; | |
| 2 | + | |
| 3 | +import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; | |
| 4 | +import com.lyms.talkonlineweb.domain.LymsPatientAttention; | |
| 5 | +import com.lyms.talkonlineweb.service.LymsPatientAttentionService; | |
| 6 | +import com.lyms.talkonlineweb.mapper.LymsPatientAttentionMapper; | |
| 7 | +import org.springframework.stereotype.Service; | |
| 8 | + | |
| 9 | +/** | |
| 10 | + * | |
| 11 | + */ | |
| 12 | +@Service | |
| 13 | +public class LymsPatientAttentionServiceImpl extends ServiceImpl<LymsPatientAttentionMapper, LymsPatientAttention> | |
| 14 | + implements LymsPatientAttentionService{ | |
| 15 | + | |
| 16 | +} |
talkonlineweb/src/main/resources/mapper/LymsPatientAttentionMapper.xml
View file @
6abbd30
| 1 | +<?xml version="1.0" encoding="UTF-8"?> | |
| 2 | +<!DOCTYPE mapper | |
| 3 | + PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" | |
| 4 | + "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> | |
| 5 | +<mapper namespace="com.lyms.talkonlineweb.mapper.LymsPatientAttentionMapper"> | |
| 6 | + | |
| 7 | + <resultMap id="BaseResultMap" type="com.lyms.talkonlineweb.domain.LymsPatientAttention"> | |
| 8 | + <result property="pid" column="pid" jdbcType="INTEGER"/> | |
| 9 | + <result property="attentionId" column="attention_id" jdbcType="INTEGER"/> | |
| 10 | + </resultMap> | |
| 11 | + | |
| 12 | + <sql id="Base_Column_List"> | |
| 13 | + pid,attention_id | |
| 14 | + </sql> | |
| 15 | +</mapper> |