<?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.grid.mapper.GridWorkLogMapper">
|
|
<!-- 通用查询映射结果 -->
|
<resultMap id="gridWorkLogResultMap" type="org.springblade.modules.grid.entity.GridWorkLogEntity">
|
<result column="id" property="id"/>
|
<result column="house_code" property="houseCode"/>
|
<result column="name" property="name"/>
|
<result column="phone" property="phone"/>
|
<result column="context" property="context"/>
|
<result column="url" property="url"/>
|
<result column="create_time" property="createTime"/>
|
<result column="create_user" property="createUser"/>
|
<result column="is_deleted" property="isDeleted"/>
|
</resultMap>
|
|
|
<select id="selectGridWorkLogPage" resultMap="gridWorkLogResultMap">
|
select * from jczz_grid_work_log where is_deleted = 0
|
<if test="gridWorkLog.name !=null and gridWorkLog.name!=''">
|
and name like concat('%',#{gridWorkLog.name},'%')
|
</if>
|
<if test="gridWorkLog.phone !=null and gridWorkLog.phone!=''">
|
and phone like concat('%',#{gridWorkLog.phone},'%')
|
</if>
|
</select>
|
|
|
</mapper>
|