1
2
3
4
5
6
7
8
9
10
11
12
13
| <?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.Log.TbFzlogMapper">
| <select id="FindFzLogInfo" resultType="com.hxzk.gps.entity.Log.TbFzlog">
| SELECT t.nameandid,t.tagId,t.tagName,t.sosdis,t.ponit,t.addtime FROM tb_fzlog t INNER JOIN tb_person p on p.p_tagid = t.tagId where p.company = #{company}
| <if test="tagId!= null and tagId!= ''">
| AND t.tagId LIKE CONCAT('%', #{tagId}, '%')
| </if>
| <if test="tagName!= null and tagName!= ''">
| AND t.tagName LIKE CONCAT('%', #{tagName}, '%')
| </if>
| </select>
| </mapper>
|
|