<?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.newfiber.api.pc.dao.WaterQuality.SiteInfoBasisDao" > <resultMap id="baseMap" type="com.newfiber.api.pc.model.WaterQuality.SiteInfoBasis"> <id column="siteNO" property="siteNO" jdbcType="VARCHAR"/> <result column="siteName" property="siteName" jdbcType="VARCHAR" /> <result column="type" property="type" jdbcType="INTEGER"/> <result column="typeZN" property="typeZN" jdbcType="VARCHAR"/> <result column="createDate" property="createDate" jdbcType="TIMESTAMP"/> <result column="updateDate" property="updateDate" jdbcType="TIMESTAMP"/> <result column="siteState" property="siteState" jdbcType="VARCHAR"/> <result column="PointX" property="pointX" jdbcType="VARCHAR"/> <result column="PointY" property="pointY" jdbcType="VARCHAR"/> <collection property="dataList" ofType="com.newfiber.api.pc.model.WaterQuality.WaterQualityData" > <id column="Serial" property="serial" jdbcType="INTEGER" /> <result column="Data_No" property="dataNo" jdbcType="VARCHAR" /> <result column="Field_Name_ZN" property="fieldNameZn" jdbcType="VARCHAR" /> <result column="Field_Name" property="fieldName" jdbcType="VARCHAR" /> <result column="Field_Type" property="fieldType" jdbcType="VARCHAR" /> <result column="Field_Value" property="fieldValue" jdbcType="VARCHAR" /> <result column="SampPoint_Type" property="sampPointType" jdbcType="INTEGER" /> <result column="SampPoint_ID" property="sampPointID" jdbcType="VARCHAR" /> <result column="Sampling_Date" property="samplingDate" jdbcType="TIMESTAMP" /> <result column="Create_User_No" property="createUserNo" jdbcType="VARCHAR" /> <result column="Create_Time" property="createTime" jdbcType="TIMESTAMP" /> <result column="Update_Time" property="updateTime" jdbcType="TIMESTAMP" /> <result column="Update_User_No" property="updateUserNo" jdbcType="VARCHAR" /> <result column="ProjectType" property="projectType" jdbcType="INTEGER" /> </collection> </resultMap> <select id="selectAll" resultType="com.newfiber.api.pc.model.WaterQuality.SiteInfoBasis"> SELECT * FROM site_info_basis WHERE type=2 order by createDate </select> </mapper>