<?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>
|