1
2
3
4
5
6
7
8
9
10
11
12
13
14
| <?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.hxzk.gps.mapper.Attendance.TbKaoqingMapper">
| <select id="FindAttendanceInfo" resultType="com.hxzk.gps.entity.Attendance.TbKaoqing">
| SELECT t.area,t.name,t.bumen,t.tagid,t.intime,t.outtime,t.alltime FROM tb_kaoqing_${time} t INNER JOIN tb_person p on p.p_tagid = t.tagid where p.company = #{company}
| <if test="name!= null and name!= ''">
| AND t.name LIKE CONCAT('%', #{name}, '%')
| </if>
| <if test="tagid!= null and tagid!= ''">
| AND t.tagid LIKE CONCAT('%', #{tagid}, '%')
| </if>
|
| </select>
| </mapper>
|
|