1
0
Ciallo преди 9 месеца
родител
ревизия
e185263ac3
променени са 1 файла, в които са добавени 21 реда и са изтрити 0 реда
  1. 21 0
      ruoyi-admin/src/main/resources/mapper/work/NkMapper.xml

+ 21 - 0
ruoyi-admin/src/main/resources/mapper/work/NkMapper.xml

@@ -0,0 +1,21 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+<!DOCTYPE mapper
+PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
+"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
+<mapper namespace="com.ruoyi.web.work.mapper.NkMapper">
+    
+    <select id="selectList" resultType="com.ruoyi.web.work.domain.Nk">
+        select * from tb_nk
+        <where>  
+            <if test="name != null  and name != ''"> and name like concat('%', #{name}, '%')</if>
+            <if test="patientId != null "> and patient_id = #{patientId}</if>
+            <if test="nkNumber != null "> and nk_number = #{nkNumber}</if>
+            <if test="kinship != null  and kinship != ''"> and kinship = #{kinship}</if>
+            <if test="address != null  and address != ''"> and address = #{address}</if>
+            <if test="phone != null  and phone != ''"> and phone = #{phone}</if>
+            <if test="workName != null  and workName != ''"> and work_name like concat('%', #{workName}, '%')</if>
+            <if test="workCode != null  and workCode != ''"> and work_code = #{workCode}</if>
+        </where>
+    </select>
+
+</mapper>