zhongrj
2023-11-16 41583127f55f91d91d53f3b31d75cf6eabffb603
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
<?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>