wl
2022-10-24 9969bea2a8c1eab64c12a51a2d24d65e5b6c0dd0
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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
<?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.ycl.mapper.zf.EnforcelawReportMapper">
 
    <!-- 通用查询映射结果 -->
    <resultMap id="BaseResultMap" type="com.ycl.entity.zf.EnforceLawReport">
        <id column="id" property="id" />
        <result column="infoResoure" property="infoResoure" />
        <result column="acceptor" property="acceptor" />
        <result column="problemTypes" property="problemTypes" />
        <result column="category" property="category" />
        <result column="county" property="county" />
        <result column="street" property="street" />
        <result column="address" property="address" />
        <result column="informer" property="informer" />
        <result column="contact" property="contact" />
        <result column="reason" property="reason" />
        <result column="problemDesc" property="problemDesc" />
        <result column="lawOfficer" property="lawOfficer" />
        <result column="partiesName" property="partiesName" />
        <result column="partiesID" property="partiesID" />
        <result column="partiesPhone" property="partiesPhone" />
        <result column="idPositiveImage" property="idPositiveImage" />
        <result column="idNegativeImage" property="idNegativeImage" />
        <result column="illegalBuildLocation" property="illegalBuildLocation" />
        <result column="illegalBuildLength" property="illegalBuildLength" />
        <result column="illegalBuildWidth" property="illegalBuildWidth" />
        <result column="illegalBuildHigh" property="illegalBuildHigh" />
        <result column="illegalBuildMaterials" property="illegalBuildMaterials" />
        <result column="illegalPhotos" property="illegalPhotos" />
        <result column="rectifidPhotos" property="rectifidPhotos" />
        <result column="accessory" property="accessory" />
        <result column="disposeRemark" property="disposeRemark" />
        <result column="inspectors" property="inspectors" />
        <result column="status" property="status" />
        <result column="cTime" property="cTime" />
        <result column="community" property="community" />
    </resultMap>
 
    <!-- 通用查询结果列 -->
    <sql id="Base_Column_List">
        id, infoResoure, acceptor, problemTypes, category, county, street, address, informer, contact, reason, problemDesc, lawOfficer, partiesName, partiesID, partiesPhone, idPositiveImage, idNegativeImage, illegalBuildLocation, illegalBuildLength, illegalBuildWidth, illegalBuildHigh, illegalBuildMaterials, IllegalPhotos, rectifidPhotos, accessory, disposeRemark, inspectors, status, cTime, community
    </sql>
 
    <select id="selectPageVo" resultType="com.ycl.entity.zf.EnforceLawReport">
        SELECT * FROM ums_enforcelaw_report
            <where>
                <if test="community!=null and community!=''" >
                    community=#{community}
                </if>
                <if test="status!=null and status!=''" >
                    status=#{status}
                </if>
                <if test="partiesName!=null and partiesName!=''" >
                    partiesName=#{partiesName}
                </if>
                <if test="partiesID!=null and partiesID!=''" >
                    partiesID=#{partiesID}
                </if>
                <if test="startTime!=null and startTime!=''and endTime!=null and endTime!=''" >
                    ctime between #{startTime} and #{endTime}
                </if>
            </where>
    </select>
 
</mapper>