7 changed files with 110 additions and 0 deletions
@ -0,0 +1,20 @@
|
||||
package com.biutag.supervisiondata.mapper.wdpc2; |
||||
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
||||
import com.biutag.supervisiondata.pojo.entity.wdpc2.WdpcJZJLB; |
||||
import org.apache.ibatis.annotations.Select; |
||||
|
||||
import java.util.List; |
||||
|
||||
/** |
||||
* @author kami on 2024-12-06 10:23:13 |
||||
* @version 0.0.1 |
||||
* @since 1.8 |
||||
*/ |
||||
public interface WdpcJZJLBMapper extends BaseMapper<WdpcJZJLB> { |
||||
@Select("select id_code, disease_name from wdpc_grjd_jzjlb " |
||||
+ "where (disease_name like '%恶性肿瘤%' or disease_name like '%移植%' or disease_name like '%帕金森%' " |
||||
+ "or disease_name like '%精神病%' or disease_name like '%严重%' or disease_name like '%脑中风%' " |
||||
+ "or disease_name like '%急性心肌梗塞%' or (disease_name like '%脑损伤%' and '%重%'))") |
||||
List<WdpcJZJLB> selectSeriousIllness(); |
||||
} |
||||
@ -0,0 +1,24 @@
|
||||
package com.biutag.supervisiondata.pojo.entity.wdpc2; |
||||
|
||||
import com.baomidou.mybatisplus.annotation.TableField; |
||||
import com.baomidou.mybatisplus.annotation.TableName; |
||||
import lombok.Data; |
||||
|
||||
import java.io.Serializable; |
||||
|
||||
@Data |
||||
@TableName("`wdpc_grjd_jzjlb`") |
||||
public class WdpcJZJLB implements Serializable { |
||||
// 身份证
|
||||
@TableField("id_code") |
||||
String idCode; |
||||
|
||||
// 姓名
|
||||
@TableField("name") |
||||
String name; |
||||
|
||||
// 诊断病名
|
||||
@TableField("disease_name") |
||||
String diseaseName; |
||||
|
||||
} |
||||
@ -0,0 +1,15 @@
|
||||
package com.biutag.supervisiondata.repository; |
||||
|
||||
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
||||
import com.biutag.supervisiondata.mapper.wdpc2.WdpcJZJLBMapper; |
||||
import com.biutag.supervisiondata.pojo.entity.wdpc2.WdpcJZJLB; |
||||
import org.springframework.stereotype.Service; |
||||
|
||||
/** |
||||
* @author kami on 2024-12-04 16:18:26 |
||||
* @version 0.0.1 |
||||
* @since 1.8 |
||||
*/ |
||||
@Service |
||||
public class WdpcJZJLBRepository extends ServiceImpl<WdpcJZJLBMapper, WdpcJZJLB> { |
||||
} |
||||
Loading…
Reference in new issue