From 764d883b5ea3bdc06abbec548b6df0511e567978 Mon Sep 17 00:00:00 2001
From: linwe <872216996@qq.com>
Date: Tue, 03 Sep 2024 09:46:05 +0800
Subject: [PATCH] Merge remote-tracking branch 'origin/binlog' into binlog

---
 src/main/java/org/springblade/modules/nursingCheckIn/mapper/NursingCheckInMapper.xml |   78 +++++++++++++++++++++++++++++++++++++++
 1 files changed, 78 insertions(+), 0 deletions(-)

diff --git a/src/main/java/org/springblade/modules/nursingCheckIn/mapper/NursingCheckInMapper.xml b/src/main/java/org/springblade/modules/nursingCheckIn/mapper/NursingCheckInMapper.xml
new file mode 100644
index 0000000..c2f774a
--- /dev/null
+++ b/src/main/java/org/springblade/modules/nursingCheckIn/mapper/NursingCheckInMapper.xml
@@ -0,0 +1,78 @@
+<?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="org.springblade.modules.nursingCheckIn.mapper.NursingCheckInMapper">
+
+    <!-- 通用查询映射结果 -->
+    <resultMap id="nursingCheckInResultMap" type="org.springblade.modules.nursingCheckIn.entity.NursingCheckInEntity">
+    </resultMap>
+
+
+    <select id="selectNursingCheckInPage" resultMap="nursingCheckInResultMap">
+        select * from jczz_nursing_check_in
+        <where>
+            <if test="nursingCheckIn.id != null ">and id = #{nursingCheckIn.id}</if>
+            <if test="nursingCheckIn.createUser != null ">and create_user = #{nursingCheckIn.createUser}</if>
+            <if test="nursingCheckIn.location != null  and nursingCheckIn.location != ''">and location = #{nursingCheckIn.location}</if>
+            <if test="nursingCheckIn.name != null  and nursingCheckIn.name != ''">and name like concat('%',#{nursingCheckIn.name},'%')</if>
+            <if test="nursingCheckIn.phone != null  and nursingCheckIn.phone != ''">and phone like concat('%',#{nursingCheckIn.phone},'%')</if>
+            <if test="nursingCheckIn.gradeAndClass != null  and nursingCheckIn.gradeAndClass != ''">and grade_and_class = #{nursingCheckIn.gradeAndClass}</if>
+            <if test="nursingCheckIn.images != null  and nursingCheckIn.images != ''">and images = #{nursingCheckIn.images}</if>
+            <if test="nursingCheckIn.placeId != null ">and place_id = #{nursingCheckIn.placeId}</if>
+            <if test="nursingCheckIn.type != null  and nursingCheckIn.type != ''">and type = #{nursingCheckIn.type}</if>
+            <if test="nursingCheckIn.startTime != null and nursingCheckIn.startTime != '' and nursingCheckIn.endTime != null and nursingCheckIn.endTime != '' ">
+                AND create_time BETWEEN #{nursingCheckIn.startTime} and #{nursingCheckIn.endTime}
+            </if>
+        </where>
+        order by id desc
+    </select>
+
+
+    <resultMap type="org.springblade.modules.nursingCheckIn.dto.NursingCheckInDTO" id="NursingCheckInDTOResult">
+        <result property="id"    column="id"    />
+        <result property="createUser"    column="create_user"    />
+        <result property="location"    column="location"    />
+        <result property="name"    column="name"    />
+        <result property="phone"    column="phone"    />
+        <result property="gradeAndClass"    column="grade_and_class"    />
+        <result property="images"    column="images"    />
+        <result property="placeId"    column="place_id"    />
+        <result property="type"    column="type"    />
+    </resultMap>
+
+    <sql id="selectNursingCheckIn">
+        select
+            id,
+            create_user,
+            location,
+            name,
+            phone,
+            grade_and_class,
+            images,
+            place_id,
+            type
+        from
+            jczz_nursing_check_in
+    </sql>
+
+<!--    <select id="selectNursingCheckInById" parameterType="long" resultMap="NursingCheckInDTOResult">-->
+<!--        <include refid="selectNursingCheckIn"/>-->
+<!--        where-->
+<!--        id = #{id}-->
+<!--    </select>-->
+
+<!--    <select id="selectNursingCheckInList" parameterType="org.springblade.modules..dto.NursingCheckInDTO" resultMap="NursingCheckInDTOResult">-->
+<!--        <include refid="selectNursingCheckIn"/>-->
+<!--        <where>-->
+<!--            <if test="id != null "> and id = #{id}</if>-->
+<!--            <if test="createUser != null "> and create_user = #{createUser}</if>-->
+<!--            <if test="location != null  and location != ''"> and location = #{location}</if>-->
+<!--            <if test="name != null  and name != ''"> and name = #{name}</if>-->
+<!--            <if test="phone != null  and phone != ''"> and phone = #{phone}</if>-->
+<!--            <if test="gradeAndClass != null  and gradeAndClass != ''"> and grade_and_class = #{gradeAndClass}</if>-->
+<!--            <if test="images != null  and images != ''"> and images = #{images}</if>-->
+<!--            <if test="placeId != null "> and place_id = #{placeId}</if>-->
+<!--            <if test="type != null  and type != ''"> and type = #{type}</if>-->
+<!--        </where>-->
+<!--    </select>-->
+
+</mapper>

--
Gitblit v1.9.3