From 3450525681e6e290d80ee5d27d0aaca395b62c8f Mon Sep 17 00:00:00 2001 From: zf <1603559716@qq.com> Date: 星期四, 01 二月 2024 14:42:14 +0800 Subject: [PATCH] Merge branch 'master' of https://sinanoaq.cn:8888/r/swspkmas into zf1 --- exam-system/src/main/resources/mapper/noncoalmine/IdentificationRecordMapper.xml | 31 +++++++++++++++++++++++++++++++ 1 files changed, 31 insertions(+), 0 deletions(-) diff --git a/exam-system/src/main/resources/mapper/noncoalmine/IdentificationRecordMapper.xml b/exam-system/src/main/resources/mapper/noncoalmine/IdentificationRecordMapper.xml new file mode 100644 index 0000000..f5831e5 --- /dev/null +++ b/exam-system/src/main/resources/mapper/noncoalmine/IdentificationRecordMapper.xml @@ -0,0 +1,31 @@ +<?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.gkhy.exam.noncoalmine.mapper.IdentificationRecordMapper"> + <select id="getList" resultType="com.gkhy.exam.noncoalmine.entity.IdentificationRecord"> + SELECT + * + FROM + identification_record + WHERE + del_flag = 0 + <if test="query.name != null and query.name != ''"> + and name like concat('%', #{query.name}, '%') + </if> + <if test="query.idCard != null and query.idCard != ''"> + and id_card = #{query.idCard} + </if> + <if test="query.isCm != null"> + and is_cm = #{query.isCm} + </if> + <if test="query.startTime != null"><!-- 开始时间检索 --> + and date_format(compare_time,'%y-%m-%d') >= date_format(#{query.startTime},'%y-%m-%d') + </if> + <if test="query.endTime != null"><!-- 结束时间检索 --> + and date_format(compare_time,'%y-%m-%d') <= date_format(#{query.endTime},'%y-%m-%d') + </if> + order by compare_time desc + + </select> +</mapper> \ No newline at end of file -- Gitblit v1.9.2