|
@@ -0,0 +1,411 @@
|
|
|
+<?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.PcSigninMapper">
|
|
|
+ <resultMap id="BaseResultMap" type="com.hz.employmentsite.model.PcSignin">
|
|
|
+ <id column="SigninId" jdbcType="VARCHAR" property="signinId" />
|
|
|
+ <result column="SiteID" jdbcType="VARCHAR" property="siteID" />
|
|
|
+ <result column="SigninType" jdbcType="INTEGER" property="signinType" />
|
|
|
+ <result column="CompanyID" jdbcType="VARCHAR" property="companyID" />
|
|
|
+ <result column="JobuserID" jdbcType="VARCHAR" property="jobuserID" />
|
|
|
+ <result column="SigninTime" jdbcType="TIMESTAMP" property="signinTime" />
|
|
|
+ <result column="Longitude" jdbcType="VARCHAR" property="longitude" />
|
|
|
+ <result column="Latitude" jdbcType="VARCHAR" property="latitude" />
|
|
|
+ <result column="RecordStatus" jdbcType="INTEGER" property="recordStatus" />
|
|
|
+ <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" />
|
|
|
+ </resultMap>
|
|
|
+ <resultMap extends="BaseResultMap" id="ResultMapWithBLOBs" type="com.hz.employmentsite.model.PcSignin">
|
|
|
+ <result column="Content" jdbcType="LONGVARCHAR" property="content" />
|
|
|
+ </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">
|
|
|
+ SigninId, SiteID, SigninType, CompanyID, JobuserID, SigninTime, Longitude, Latitude,
|
|
|
+ RecordStatus, CreateUserID, CreateTime, ModifyUserID, ModifyTime
|
|
|
+ </sql>
|
|
|
+ <sql id="Blob_Column_List">
|
|
|
+ Content
|
|
|
+ </sql>
|
|
|
+ <select id="selectByExampleWithBLOBs" parameterType="com.hz.employmentsite.model.PcSigninExample" resultMap="ResultMapWithBLOBs">
|
|
|
+ select
|
|
|
+ <if test="distinct">
|
|
|
+ distinct
|
|
|
+ </if>
|
|
|
+ <include refid="Base_Column_List" />
|
|
|
+ ,
|
|
|
+ <include refid="Blob_Column_List" />
|
|
|
+ from pc_signin
|
|
|
+ <if test="_parameter != null">
|
|
|
+ <include refid="Example_Where_Clause" />
|
|
|
+ </if>
|
|
|
+ <if test="orderByClause != null">
|
|
|
+ order by ${orderByClause}
|
|
|
+ </if>
|
|
|
+ </select>
|
|
|
+ <select id="selectByExample" parameterType="com.hz.employmentsite.model.PcSigninExample" resultMap="BaseResultMap">
|
|
|
+ select
|
|
|
+ <if test="distinct">
|
|
|
+ distinct
|
|
|
+ </if>
|
|
|
+ <include refid="Base_Column_List" />
|
|
|
+ from pc_signin
|
|
|
+ <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="ResultMapWithBLOBs">
|
|
|
+ select
|
|
|
+ <include refid="Base_Column_List" />
|
|
|
+ ,
|
|
|
+ <include refid="Blob_Column_List" />
|
|
|
+ from pc_signin
|
|
|
+ where SigninId = #{signinId,jdbcType=VARCHAR}
|
|
|
+ </select>
|
|
|
+ <delete id="deleteByPrimaryKey" parameterType="java.lang.String">
|
|
|
+ delete from pc_signin
|
|
|
+ where SigninId = #{signinId,jdbcType=VARCHAR}
|
|
|
+ </delete>
|
|
|
+ <delete id="deleteByExample" parameterType="com.hz.employmentsite.model.PcSigninExample">
|
|
|
+ delete from pc_signin
|
|
|
+ <if test="_parameter != null">
|
|
|
+ <include refid="Example_Where_Clause" />
|
|
|
+ </if>
|
|
|
+ </delete>
|
|
|
+ <insert id="insert" parameterType="com.hz.employmentsite.model.PcSignin">
|
|
|
+ insert into pc_signin (SigninId, SiteID, SigninType,
|
|
|
+ CompanyID, JobuserID, SigninTime,
|
|
|
+ Longitude, Latitude, RecordStatus,
|
|
|
+ CreateUserID, CreateTime, ModifyUserID,
|
|
|
+ ModifyTime, Content)
|
|
|
+ values (#{signinId,jdbcType=VARCHAR}, #{siteID,jdbcType=VARCHAR}, #{signinType,jdbcType=INTEGER},
|
|
|
+ #{companyID,jdbcType=VARCHAR}, #{jobuserID,jdbcType=VARCHAR}, #{signinTime,jdbcType=TIMESTAMP},
|
|
|
+ #{longitude,jdbcType=VARCHAR}, #{latitude,jdbcType=VARCHAR}, #{recordStatus,jdbcType=INTEGER},
|
|
|
+ #{createUserID,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP}, #{modifyUserID,jdbcType=VARCHAR},
|
|
|
+ #{modifyTime,jdbcType=TIMESTAMP}, #{content,jdbcType=LONGVARCHAR})
|
|
|
+ </insert>
|
|
|
+ <insert id="insertSelective" parameterType="com.hz.employmentsite.model.PcSignin">
|
|
|
+ insert into pc_signin
|
|
|
+ <trim prefix="(" suffix=")" suffixOverrides=",">
|
|
|
+ <if test="signinId != null">
|
|
|
+ SigninId,
|
|
|
+ </if>
|
|
|
+ <if test="siteID != null">
|
|
|
+ SiteID,
|
|
|
+ </if>
|
|
|
+ <if test="signinType != null">
|
|
|
+ SigninType,
|
|
|
+ </if>
|
|
|
+ <if test="companyID != null">
|
|
|
+ CompanyID,
|
|
|
+ </if>
|
|
|
+ <if test="jobuserID != null">
|
|
|
+ JobuserID,
|
|
|
+ </if>
|
|
|
+ <if test="signinTime != null">
|
|
|
+ SigninTime,
|
|
|
+ </if>
|
|
|
+ <if test="longitude != null">
|
|
|
+ Longitude,
|
|
|
+ </if>
|
|
|
+ <if test="latitude != null">
|
|
|
+ Latitude,
|
|
|
+ </if>
|
|
|
+ <if test="recordStatus != null">
|
|
|
+ RecordStatus,
|
|
|
+ </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="content != null">
|
|
|
+ Content,
|
|
|
+ </if>
|
|
|
+ </trim>
|
|
|
+ <trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
+ <if test="signinId != null">
|
|
|
+ #{signinId,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="siteID != null">
|
|
|
+ #{siteID,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="signinType != null">
|
|
|
+ #{signinType,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
+ <if test="companyID != null">
|
|
|
+ #{companyID,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="jobuserID != null">
|
|
|
+ #{jobuserID,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="signinTime != null">
|
|
|
+ #{signinTime,jdbcType=TIMESTAMP},
|
|
|
+ </if>
|
|
|
+ <if test="longitude != null">
|
|
|
+ #{longitude,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="latitude != null">
|
|
|
+ #{latitude,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="recordStatus != null">
|
|
|
+ #{recordStatus,jdbcType=INTEGER},
|
|
|
+ </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="content != null">
|
|
|
+ #{content,jdbcType=LONGVARCHAR},
|
|
|
+ </if>
|
|
|
+ </trim>
|
|
|
+ </insert>
|
|
|
+ <select id="countByExample" parameterType="com.hz.employmentsite.model.PcSigninExample" resultType="java.lang.Long">
|
|
|
+ select count(*) from pc_signin
|
|
|
+ <if test="_parameter != null">
|
|
|
+ <include refid="Example_Where_Clause" />
|
|
|
+ </if>
|
|
|
+ </select>
|
|
|
+ <update id="updateByExampleSelective" parameterType="map">
|
|
|
+ update pc_signin
|
|
|
+ <set>
|
|
|
+ <if test="row.signinId != null">
|
|
|
+ SigninId = #{row.signinId,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="row.siteID != null">
|
|
|
+ SiteID = #{row.siteID,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="row.signinType != null">
|
|
|
+ SigninType = #{row.signinType,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
+ <if test="row.companyID != null">
|
|
|
+ CompanyID = #{row.companyID,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="row.jobuserID != null">
|
|
|
+ JobuserID = #{row.jobuserID,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="row.signinTime != null">
|
|
|
+ SigninTime = #{row.signinTime,jdbcType=TIMESTAMP},
|
|
|
+ </if>
|
|
|
+ <if test="row.longitude != null">
|
|
|
+ Longitude = #{row.longitude,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="row.latitude != null">
|
|
|
+ Latitude = #{row.latitude,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="row.recordStatus != null">
|
|
|
+ RecordStatus = #{row.recordStatus,jdbcType=INTEGER},
|
|
|
+ </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.content != null">
|
|
|
+ Content = #{row.content,jdbcType=LONGVARCHAR},
|
|
|
+ </if>
|
|
|
+ </set>
|
|
|
+ <if test="example != null">
|
|
|
+ <include refid="Update_By_Example_Where_Clause" />
|
|
|
+ </if>
|
|
|
+ </update>
|
|
|
+ <update id="updateByExampleWithBLOBs" parameterType="map">
|
|
|
+ update pc_signin
|
|
|
+ set SigninId = #{row.signinId,jdbcType=VARCHAR},
|
|
|
+ SiteID = #{row.siteID,jdbcType=VARCHAR},
|
|
|
+ SigninType = #{row.signinType,jdbcType=INTEGER},
|
|
|
+ CompanyID = #{row.companyID,jdbcType=VARCHAR},
|
|
|
+ JobuserID = #{row.jobuserID,jdbcType=VARCHAR},
|
|
|
+ SigninTime = #{row.signinTime,jdbcType=TIMESTAMP},
|
|
|
+ Longitude = #{row.longitude,jdbcType=VARCHAR},
|
|
|
+ Latitude = #{row.latitude,jdbcType=VARCHAR},
|
|
|
+ RecordStatus = #{row.recordStatus,jdbcType=INTEGER},
|
|
|
+ CreateUserID = #{row.createUserID,jdbcType=VARCHAR},
|
|
|
+ CreateTime = #{row.createTime,jdbcType=TIMESTAMP},
|
|
|
+ ModifyUserID = #{row.modifyUserID,jdbcType=VARCHAR},
|
|
|
+ ModifyTime = #{row.modifyTime,jdbcType=TIMESTAMP},
|
|
|
+ Content = #{row.content,jdbcType=LONGVARCHAR}
|
|
|
+ <if test="example != null">
|
|
|
+ <include refid="Update_By_Example_Where_Clause" />
|
|
|
+ </if>
|
|
|
+ </update>
|
|
|
+ <update id="updateByExample" parameterType="map">
|
|
|
+ update pc_signin
|
|
|
+ set SigninId = #{row.signinId,jdbcType=VARCHAR},
|
|
|
+ SiteID = #{row.siteID,jdbcType=VARCHAR},
|
|
|
+ SigninType = #{row.signinType,jdbcType=INTEGER},
|
|
|
+ CompanyID = #{row.companyID,jdbcType=VARCHAR},
|
|
|
+ JobuserID = #{row.jobuserID,jdbcType=VARCHAR},
|
|
|
+ SigninTime = #{row.signinTime,jdbcType=TIMESTAMP},
|
|
|
+ Longitude = #{row.longitude,jdbcType=VARCHAR},
|
|
|
+ Latitude = #{row.latitude,jdbcType=VARCHAR},
|
|
|
+ RecordStatus = #{row.recordStatus,jdbcType=INTEGER},
|
|
|
+ CreateUserID = #{row.createUserID,jdbcType=VARCHAR},
|
|
|
+ CreateTime = #{row.createTime,jdbcType=TIMESTAMP},
|
|
|
+ ModifyUserID = #{row.modifyUserID,jdbcType=VARCHAR},
|
|
|
+ ModifyTime = #{row.modifyTime,jdbcType=TIMESTAMP}
|
|
|
+ <if test="example != null">
|
|
|
+ <include refid="Update_By_Example_Where_Clause" />
|
|
|
+ </if>
|
|
|
+ </update>
|
|
|
+ <update id="updateByPrimaryKeySelective" parameterType="com.hz.employmentsite.model.PcSignin">
|
|
|
+ update pc_signin
|
|
|
+ <set>
|
|
|
+ <if test="siteID != null">
|
|
|
+ SiteID = #{siteID,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="signinType != null">
|
|
|
+ SigninType = #{signinType,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
+ <if test="companyID != null">
|
|
|
+ CompanyID = #{companyID,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="jobuserID != null">
|
|
|
+ JobuserID = #{jobuserID,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="signinTime != null">
|
|
|
+ SigninTime = #{signinTime,jdbcType=TIMESTAMP},
|
|
|
+ </if>
|
|
|
+ <if test="longitude != null">
|
|
|
+ Longitude = #{longitude,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="latitude != null">
|
|
|
+ Latitude = #{latitude,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="recordStatus != null">
|
|
|
+ RecordStatus = #{recordStatus,jdbcType=INTEGER},
|
|
|
+ </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="content != null">
|
|
|
+ Content = #{content,jdbcType=LONGVARCHAR},
|
|
|
+ </if>
|
|
|
+ </set>
|
|
|
+ where SigninId = #{signinId,jdbcType=VARCHAR}
|
|
|
+ </update>
|
|
|
+ <update id="updateByPrimaryKeyWithBLOBs" parameterType="com.hz.employmentsite.model.PcSignin">
|
|
|
+ update pc_signin
|
|
|
+ set SiteID = #{siteID,jdbcType=VARCHAR},
|
|
|
+ SigninType = #{signinType,jdbcType=INTEGER},
|
|
|
+ CompanyID = #{companyID,jdbcType=VARCHAR},
|
|
|
+ JobuserID = #{jobuserID,jdbcType=VARCHAR},
|
|
|
+ SigninTime = #{signinTime,jdbcType=TIMESTAMP},
|
|
|
+ Longitude = #{longitude,jdbcType=VARCHAR},
|
|
|
+ Latitude = #{latitude,jdbcType=VARCHAR},
|
|
|
+ RecordStatus = #{recordStatus,jdbcType=INTEGER},
|
|
|
+ CreateUserID = #{createUserID,jdbcType=VARCHAR},
|
|
|
+ CreateTime = #{createTime,jdbcType=TIMESTAMP},
|
|
|
+ ModifyUserID = #{modifyUserID,jdbcType=VARCHAR},
|
|
|
+ ModifyTime = #{modifyTime,jdbcType=TIMESTAMP},
|
|
|
+ Content = #{content,jdbcType=LONGVARCHAR}
|
|
|
+ where SigninId = #{signinId,jdbcType=VARCHAR}
|
|
|
+ </update>
|
|
|
+ <update id="updateByPrimaryKey" parameterType="com.hz.employmentsite.model.PcSignin">
|
|
|
+ update pc_signin
|
|
|
+ set SiteID = #{siteID,jdbcType=VARCHAR},
|
|
|
+ SigninType = #{signinType,jdbcType=INTEGER},
|
|
|
+ CompanyID = #{companyID,jdbcType=VARCHAR},
|
|
|
+ JobuserID = #{jobuserID,jdbcType=VARCHAR},
|
|
|
+ SigninTime = #{signinTime,jdbcType=TIMESTAMP},
|
|
|
+ Longitude = #{longitude,jdbcType=VARCHAR},
|
|
|
+ Latitude = #{latitude,jdbcType=VARCHAR},
|
|
|
+ RecordStatus = #{recordStatus,jdbcType=INTEGER},
|
|
|
+ CreateUserID = #{createUserID,jdbcType=VARCHAR},
|
|
|
+ CreateTime = #{createTime,jdbcType=TIMESTAMP},
|
|
|
+ ModifyUserID = #{modifyUserID,jdbcType=VARCHAR},
|
|
|
+ ModifyTime = #{modifyTime,jdbcType=TIMESTAMP}
|
|
|
+ where SigninId = #{signinId,jdbcType=VARCHAR}
|
|
|
+ </update>
|
|
|
+</mapper>
|