123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400 |
- <?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.hz.employmentsite.mapper.PcSiteMapper">
- <resultMap id="BaseResultMap" type="com.hz.employmentsite.model.PcSite">
- <id column="SiteID" jdbcType="VARCHAR" property="siteID"/>
- <result column="SiteCode" jdbcType="VARCHAR" property="siteCode"/>
- <result column="RegionCode" jdbcType="VARCHAR" property="regionCode"/>
- <result column="StreetCode" jdbcType="VARCHAR" property="streetCode"/>
- <result column="DetailAddress" jdbcType="VARCHAR" property="detailAddress"/>
- <result column="SiteX" jdbcType="VARCHAR" property="siteX"/>
- <result column="SiteY" jdbcType="VARCHAR" property="siteY"/>
- <result column="SiteLongitude" jdbcType="DOUBLE" property="siteLongitude"/>
- <result column="SiteLatitude" jdbcType="DOUBLE" property="siteLatitude"/>
- <result column="SiteName" jdbcType="VARCHAR" property="siteName"/>
- <result column="FzrName" jdbcType="VARCHAR" property="fzrName"/>
- <result column="FzrMobile" jdbcType="VARCHAR" property="fzrMobile"/>
- <result column="CreateUserID" jdbcType="VARCHAR" property="createUserID"/>
- <result column="CreateTime" jdbcType="TIMESTAMP" property="createTime"/>
- <result column="ModifyUserID" jdbcType="VARCHAR" property="modifyUserID"/>
- <result column="ModifyTime" jdbcType="TIMESTAMP" property="modifyTime"/>
- <result column="Remark" jdbcType="VARCHAR" property="remark"/>
- </resultMap>
- <sql id="Example_Where_Clause">
- <where>
- <foreach collection="oredCriteria" item="criteria" separator="or">
- <if test="criteria.valid">
- <trim prefix="(" prefixOverrides="and" suffix=")">
- <foreach collection="criteria.criteria" item="criterion">
- <choose>
- <when test="criterion.noValue">
- and ${criterion.condition}
- </when>
- <when test="criterion.singleValue">
- and ${criterion.condition} #{criterion.value}
- </when>
- <when test="criterion.betweenValue">
- and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
- </when>
- <when test="criterion.listValue">
- and ${criterion.condition}
- <foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
- #{listItem}
- </foreach>
- </when>
- </choose>
- </foreach>
- </trim>
- </if>
- </foreach>
- </where>
- </sql>
- <sql id="Update_By_Example_Where_Clause">
- <where>
- <foreach collection="example.oredCriteria" item="criteria" separator="or">
- <if test="criteria.valid">
- <trim prefix="(" prefixOverrides="and" suffix=")">
- <foreach collection="criteria.criteria" item="criterion">
- <choose>
- <when test="criterion.noValue">
- and ${criterion.condition}
- </when>
- <when test="criterion.singleValue">
- and ${criterion.condition} #{criterion.value}
- </when>
- <when test="criterion.betweenValue">
- and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
- </when>
- <when test="criterion.listValue">
- and ${criterion.condition}
- <foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
- #{listItem}
- </foreach>
- </when>
- </choose>
- </foreach>
- </trim>
- </if>
- </foreach>
- </where>
- </sql>
- <sql id="Base_Column_List">
- SiteID, SiteCode, RegionCode, StreetCode, DetailAddress, SiteX, SiteY, SiteName,
- FzrName, FzrMobile, CreateUserID, CreateTime, ModifyUserID, ModifyTime, Remark
- </sql>
- <select id="selectByExample" parameterType="com.hz.employmentsite.model.PcSiteExample" resultMap="BaseResultMap">
- select
- <if test="distinct">
- distinct
- </if>
- <include refid="Base_Column_List" />
- from pc_site
- <if test="_parameter != null">
- <include refid="Example_Where_Clause" />
- </if>
- <if test="orderByClause != null">
- order by ${orderByClause}
- </if>
- </select>
- <select id="selectByPrimaryKey" parameterType="java.lang.String" resultMap="BaseResultMap">
- select
- <include refid="Base_Column_List" />
- from pc_site
- where SiteID = #{siteID,jdbcType=VARCHAR}
- </select>
- <delete id="deleteByPrimaryKey" parameterType="java.lang.String">
- delete from pc_site
- where SiteID = #{siteID,jdbcType=VARCHAR}
- </delete>
- <delete id="deleteByExample" parameterType="com.hz.employmentsite.model.PcSiteExample">
- delete from pc_site
- <if test="_parameter != null">
- <include refid="Example_Where_Clause" />
- </if>
- </delete>
- <insert id="insert" parameterType="com.hz.employmentsite.model.PcSite">
- insert into pc_site (SiteID, SiteCode, RegionCode,
- StreetCode, DetailAddress, SiteX,
- SiteY, SiteLongitude, SiteLatitude,
- SiteName, FzrName, FzrMobile,
- CreateUserID, CreateTime, ModifyUserID,
- ModifyTime, Remark)
- values (#{siteID,jdbcType=VARCHAR}, #{siteCode,jdbcType=VARCHAR}, #{regionCode,jdbcType=VARCHAR},
- #{streetCode,jdbcType=VARCHAR}, #{detailAddress,jdbcType=VARCHAR}, #{siteX,jdbcType=VARCHAR},
- #{siteY,jdbcType=VARCHAR}, #{siteLongitude,jdbcType=DOUBLE}, #{siteLatitude,jdbcType=DOUBLE},
- #{siteName,jdbcType=VARCHAR}, #{fzrName,jdbcType=VARCHAR},
- #{fzrMobile,jdbcType=VARCHAR}, #{createUserID,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP},
- #{modifyUserID,jdbcType=VARCHAR}, #{modifyTime,jdbcType=TIMESTAMP}, #{remark,jdbcType=VARCHAR})
- </insert>
- <insert id="insertSelective" parameterType="com.hz.employmentsite.model.PcSite">
- insert into pc_site
- <trim prefix="(" suffix=")" suffixOverrides=",">
- <if test="siteID != null">
- SiteID,
- </if>
- <if test="siteCode != null">
- SiteCode,
- </if>
- <if test="regionCode != null">
- RegionCode,
- </if>
- <if test="streetCode != null">
- StreetCode,
- </if>
- <if test="detailAddress != null">
- DetailAddress,
- </if>
- <if test="siteX != null">
- SiteX,
- </if>
- <if test="siteY != null">
- SiteY,
- </if>
- <if test="siteLongitude != null">
- SiteLongitude,
- </if>
- <if test="siteLatitude != null">
- SiteLatitude,
- </if>
- <if test="siteName != null">
- SiteName,
- </if>
- <if test="fzrName != null">
- FzrName,
- </if>
- <if test="fzrMobile != null">
- FzrMobile,
- </if>
- <if test="createUserID != null">
- CreateUserID,
- </if>
- <if test="createTime != null">
- CreateTime,
- </if>
- <if test="modifyUserID != null">
- ModifyUserID,
- </if>
- <if test="modifyTime != null">
- ModifyTime,
- </if>
- <if test="remark != null">
- Remark,
- </if>
- </trim>
- <trim prefix="values (" suffix=")" suffixOverrides=",">
- <if test="siteID != null">
- #{siteID,jdbcType=VARCHAR},
- </if>
- <if test="siteCode != null">
- #{siteCode,jdbcType=VARCHAR},
- </if>
- <if test="regionCode != null">
- #{regionCode,jdbcType=VARCHAR},
- </if>
- <if test="streetCode != null">
- #{streetCode,jdbcType=VARCHAR},
- </if>
- <if test="detailAddress != null">
- #{detailAddress,jdbcType=VARCHAR},
- </if>
- <if test="siteX != null">
- #{siteX,jdbcType=VARCHAR},
- </if>
- <if test="siteY != null">
- #{siteY,jdbcType=VARCHAR},
- </if>
- <if test="siteLongitude != null">
- #{siteLongitude,jdbcType=DOUBLE},
- </if>
- <if test="siteLatitude != null">
- #{siteLatitude,jdbcType=DOUBLE},
- </if>
- <if test="siteName != null">
- #{siteName,jdbcType=VARCHAR},
- </if>
- <if test="fzrName != null">
- #{fzrName,jdbcType=VARCHAR},
- </if>
- <if test="fzrMobile != null">
- #{fzrMobile,jdbcType=VARCHAR},
- </if>
- <if test="createUserID != null">
- #{createUserID,jdbcType=VARCHAR},
- </if>
- <if test="createTime != null">
- #{createTime,jdbcType=TIMESTAMP},
- </if>
- <if test="modifyUserID != null">
- #{modifyUserID,jdbcType=VARCHAR},
- </if>
- <if test="modifyTime != null">
- #{modifyTime,jdbcType=TIMESTAMP},
- </if>
- <if test="remark != null">
- #{remark,jdbcType=VARCHAR},
- </if>
- </trim>
- </insert>
- <select id="countByExample" parameterType="com.hz.employmentsite.model.PcSiteExample" resultType="java.lang.Long">
- select count(*) from pc_site
- <if test="_parameter != null">
- <include refid="Example_Where_Clause" />
- </if>
- </select>
- <update id="updateByExampleSelective" parameterType="map">
- update pc_site
- <set>
- <if test="row.siteID != null">
- SiteID = #{row.siteID,jdbcType=VARCHAR},
- </if>
- <if test="row.siteCode != null">
- SiteCode = #{row.siteCode,jdbcType=VARCHAR},
- </if>
- <if test="row.regionCode != null">
- RegionCode = #{row.regionCode,jdbcType=VARCHAR},
- </if>
- <if test="row.streetCode != null">
- StreetCode = #{row.streetCode,jdbcType=VARCHAR},
- </if>
- <if test="row.detailAddress != null">
- DetailAddress = #{row.detailAddress,jdbcType=VARCHAR},
- </if>
- <if test="row.siteX != null">
- SiteX = #{row.siteX,jdbcType=VARCHAR},
- </if>
- <if test="row.siteY != null">
- SiteY = #{row.siteY,jdbcType=VARCHAR},
- </if>
- <if test="row.siteLongitude != null">
- SiteLongitude = #{row.siteLongitude,jdbcType=DOUBLE},
- </if>
- <if test="row.siteLatitude != null">
- SiteLatitude = #{row.siteLatitude,jdbcType=DOUBLE},
- </if>
- <if test="row.siteName != null">
- SiteName = #{row.siteName,jdbcType=VARCHAR},
- </if>
- <if test="row.fzrName != null">
- FzrName = #{row.fzrName,jdbcType=VARCHAR},
- </if>
- <if test="row.fzrMobile != null">
- FzrMobile = #{row.fzrMobile,jdbcType=VARCHAR},
- </if>
- <if test="row.createUserID != null">
- CreateUserID = #{row.createUserID,jdbcType=VARCHAR},
- </if>
- <if test="row.createTime != null">
- CreateTime = #{row.createTime,jdbcType=TIMESTAMP},
- </if>
- <if test="row.modifyUserID != null">
- ModifyUserID = #{row.modifyUserID,jdbcType=VARCHAR},
- </if>
- <if test="row.modifyTime != null">
- ModifyTime = #{row.modifyTime,jdbcType=TIMESTAMP},
- </if>
- <if test="row.remark != null">
- Remark = #{row.remark,jdbcType=VARCHAR},
- </if>
- </set>
- <if test="example != null">
- <include refid="Update_By_Example_Where_Clause" />
- </if>
- </update>
- <update id="updateByExample" parameterType="map">
- update pc_site
- set SiteID = #{row.siteID,jdbcType=VARCHAR},
- SiteCode = #{row.siteCode,jdbcType=VARCHAR},
- RegionCode = #{row.regionCode,jdbcType=VARCHAR},
- StreetCode = #{row.streetCode,jdbcType=VARCHAR},
- DetailAddress = #{row.detailAddress,jdbcType=VARCHAR},
- SiteX = #{row.siteX,jdbcType=VARCHAR},
- SiteY = #{row.siteY,jdbcType=VARCHAR},
- SiteLongitude = #{siteLongitude,jdbcType=DOUBLE},
- SiteLatitude = #{siteLatitude,jdbcType=DOUBLE},
- SiteName = #{row.siteName,jdbcType=VARCHAR},
- FzrName = #{row.fzrName,jdbcType=VARCHAR},
- FzrMobile = #{row.fzrMobile,jdbcType=VARCHAR},
- CreateUserID = #{row.createUserID,jdbcType=VARCHAR},
- CreateTime = #{row.createTime,jdbcType=TIMESTAMP},
- ModifyUserID = #{row.modifyUserID,jdbcType=VARCHAR},
- ModifyTime = #{row.modifyTime,jdbcType=TIMESTAMP},
- Remark = #{row.remark,jdbcType=VARCHAR}
- <if test="example != null">
- <include refid="Update_By_Example_Where_Clause" />
- </if>
- </update>
- <update id="updateByPrimaryKeySelective" parameterType="com.hz.employmentsite.model.PcSite">
- update pc_site
- <set>
- <if test="siteCode != null">
- SiteCode = #{siteCode,jdbcType=VARCHAR},
- </if>
- <if test="regionCode != null">
- RegionCode = #{regionCode,jdbcType=VARCHAR},
- </if>
- <if test="streetCode != null">
- StreetCode = #{streetCode,jdbcType=VARCHAR},
- </if>
- <if test="detailAddress != null">
- DetailAddress = #{detailAddress,jdbcType=VARCHAR},
- </if>
- <if test="siteX != null">
- SiteX = #{siteX,jdbcType=VARCHAR},
- </if>
- <if test="siteY != null">
- SiteY = #{siteY,jdbcType=VARCHAR},
- </if>
- <if test="row.siteLongitude != null">
- SiteLongitude = #{row.siteLongitude,jdbcType=DOUBLE},
- </if>
- <if test="row.siteLatitude != null">
- SiteLatitude = #{row.siteLatitude,jdbcType=DOUBLE},
- </if>
- <if test="siteName != null">
- SiteName = #{siteName,jdbcType=VARCHAR},
- </if>
- <if test="fzrName != null">
- FzrName = #{fzrName,jdbcType=VARCHAR},
- </if>
- <if test="fzrMobile != null">
- FzrMobile = #{fzrMobile,jdbcType=VARCHAR},
- </if>
- <if test="createUserID != null">
- CreateUserID = #{createUserID,jdbcType=VARCHAR},
- </if>
- <if test="createTime != null">
- CreateTime = #{createTime,jdbcType=TIMESTAMP},
- </if>
- <if test="modifyUserID != null">
- ModifyUserID = #{modifyUserID,jdbcType=VARCHAR},
- </if>
- <if test="modifyTime != null">
- ModifyTime = #{modifyTime,jdbcType=TIMESTAMP},
- </if>
- <if test="remark != null">
- Remark = #{remark,jdbcType=VARCHAR},
- </if>
- </set>
- where SiteID = #{siteID,jdbcType=VARCHAR}
- </update>
- <update id="updateByPrimaryKey" parameterType="com.hz.employmentsite.model.PcSite">
- update pc_site
- set SiteCode = #{siteCode,jdbcType=VARCHAR},
- RegionCode = #{regionCode,jdbcType=VARCHAR},
- StreetCode = #{streetCode,jdbcType=VARCHAR},
- DetailAddress = #{detailAddress,jdbcType=VARCHAR},
- SiteX = #{siteX,jdbcType=VARCHAR},
- SiteY = #{siteY,jdbcType=VARCHAR},
- SiteLongitude = #{siteLongitude,jdbcType=DOUBLE},
- SiteLatitude = #{siteLatitude,jdbcType=DOUBLE},
- SiteName = #{siteName,jdbcType=VARCHAR},
- FzrName = #{fzrName,jdbcType=VARCHAR},
- FzrMobile = #{fzrMobile,jdbcType=VARCHAR},
- CreateUserID = #{createUserID,jdbcType=VARCHAR},
- CreateTime = #{createTime,jdbcType=TIMESTAMP},
- ModifyUserID = #{modifyUserID,jdbcType=VARCHAR},
- ModifyTime = #{modifyTime,jdbcType=TIMESTAMP},
- Remark = #{remark,jdbcType=VARCHAR}
- where SiteID = #{siteID,jdbcType=VARCHAR}
- </update>
- </mapper>
|