|
@@ -13,6 +13,7 @@
|
|
|
<result column="RegionCode" jdbcType="VARCHAR" property="regionCode" />
|
|
|
<result column="StreetCode" jdbcType="VARCHAR" property="streetCode" />
|
|
|
<result column="WorkTime" jdbcType="TIMESTAMP" property="workTime" />
|
|
|
+ <result column="SiteID" jdbcType="VARCHAR" property="siteID"/>
|
|
|
</resultMap>
|
|
|
|
|
|
<resultMap id="RecordsCountMap" type="com.hz.employmentsite.vo.taskAndLog.RecordsCountVo">
|
|
@@ -81,7 +82,7 @@
|
|
|
</sql>
|
|
|
<sql id="Base_Column_List">
|
|
|
DoworkID, SiteUserID, DoTypeID, WorkContent, CreateUserID, CreateTime, ModifyUserID,
|
|
|
- ModifyTime, RegionCode, StreetCode, WorkTime
|
|
|
+ ModifyTime, RegionCode, StreetCode, WorkTime, SiteID
|
|
|
</sql>
|
|
|
<select id="selectByExample" parameterType="com.hz.employmentsite.model.PcDoworkExample" resultMap="BaseResultMap">
|
|
|
select
|
|
@@ -114,14 +115,14 @@
|
|
|
</if>
|
|
|
</delete>
|
|
|
<insert id="insert" parameterType="com.hz.employmentsite.model.PcDowork">
|
|
|
- insert into pc_dowork (DoworkID, SiteUserID, DoTypeID,
|
|
|
- WorkContent, CreateUserID, CreateTime,
|
|
|
- ModifyUserID, ModifyTime, RegionCode,
|
|
|
- StreetCode, WorkTime)
|
|
|
- values (#{doworkID,jdbcType=VARCHAR}, #{siteUserID,jdbcType=VARCHAR}, #{doTypeID,jdbcType=INTEGER},
|
|
|
- #{workContent,jdbcType=VARCHAR}, #{createUserID,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP},
|
|
|
- #{modifyUserID,jdbcType=VARCHAR}, #{modifyTime,jdbcType=TIMESTAMP}, #{regionCode,jdbcType=VARCHAR},
|
|
|
- #{streetCode,jdbcType=VARCHAR}, #{workTime,jdbcType=TIMESTAMP})
|
|
|
+ insert into pc_dowork (DoworkID, SiteUserID, DoTypeID,
|
|
|
+ WorkContent, CreateUserID, CreateTime,
|
|
|
+ ModifyUserID, ModifyTime, RegionCode,
|
|
|
+ StreetCode, WorkTime, SiteID)
|
|
|
+ values (#{doworkID,jdbcType=VARCHAR}, #{siteUserID,jdbcType=VARCHAR}, #{doTypeID,jdbcType=INTEGER},
|
|
|
+ #{workContent,jdbcType=VARCHAR}, #{createUserID,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP},
|
|
|
+ #{modifyUserID,jdbcType=VARCHAR}, #{modifyTime,jdbcType=TIMESTAMP}, #{regionCode,jdbcType=VARCHAR},
|
|
|
+ #{streetCode,jdbcType=VARCHAR}, #{workTime,jdbcType=TIMESTAMP}, #{siteID,jdbcType=VARCHAR})
|
|
|
</insert>
|
|
|
<insert id="insertSelective" parameterType="com.hz.employmentsite.model.PcDowork">
|
|
|
insert into pc_dowork
|
|
@@ -159,6 +160,9 @@
|
|
|
<if test="workTime != null">
|
|
|
WorkTime,
|
|
|
</if>
|
|
|
+ <if test="siteID != null">
|
|
|
+ SiteID,
|
|
|
+ </if>
|
|
|
</trim>
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
<if test="doworkID != null">
|
|
@@ -194,6 +198,9 @@
|
|
|
<if test="workTime != null">
|
|
|
#{workTime,jdbcType=TIMESTAMP},
|
|
|
</if>
|
|
|
+ <if test="siteID != null">
|
|
|
+ #{siteID,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
</trim>
|
|
|
</insert>
|
|
|
<select id="countByExample" parameterType="com.hz.employmentsite.model.PcDoworkExample" resultType="java.lang.Long">
|
|
@@ -238,6 +245,9 @@
|
|
|
<if test="row.workTime != null">
|
|
|
WorkTime = #{row.workTime,jdbcType=TIMESTAMP},
|
|
|
</if>
|
|
|
+ <if test="row.siteID != null">
|
|
|
+ SiteID = #{row.siteID,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
</set>
|
|
|
<if test="example != null">
|
|
|
<include refid="Update_By_Example_Where_Clause" />
|
|
@@ -246,16 +256,17 @@
|
|
|
<update id="updateByExample" parameterType="map">
|
|
|
update pc_dowork
|
|
|
set DoworkID = #{row.doworkID,jdbcType=VARCHAR},
|
|
|
- SiteUserID = #{row.siteUserID,jdbcType=VARCHAR},
|
|
|
- DoTypeID = #{row.doTypeID,jdbcType=INTEGER},
|
|
|
- WorkContent = #{row.workContent,jdbcType=VARCHAR},
|
|
|
- CreateUserID = #{row.createUserID,jdbcType=VARCHAR},
|
|
|
- CreateTime = #{row.createTime,jdbcType=TIMESTAMP},
|
|
|
- ModifyUserID = #{row.modifyUserID,jdbcType=VARCHAR},
|
|
|
- ModifyTime = #{row.modifyTime,jdbcType=TIMESTAMP},
|
|
|
- RegionCode = #{row.regionCode,jdbcType=VARCHAR},
|
|
|
- StreetCode = #{row.streetCode,jdbcType=VARCHAR},
|
|
|
- WorkTime = #{row.workTime,jdbcType=TIMESTAMP}
|
|
|
+ SiteUserID = #{row.siteUserID,jdbcType=VARCHAR},
|
|
|
+ DoTypeID = #{row.doTypeID,jdbcType=INTEGER},
|
|
|
+ WorkContent = #{row.workContent,jdbcType=VARCHAR},
|
|
|
+ CreateUserID = #{row.createUserID,jdbcType=VARCHAR},
|
|
|
+ CreateTime = #{row.createTime,jdbcType=TIMESTAMP},
|
|
|
+ ModifyUserID = #{row.modifyUserID,jdbcType=VARCHAR},
|
|
|
+ ModifyTime = #{row.modifyTime,jdbcType=TIMESTAMP},
|
|
|
+ RegionCode = #{row.regionCode,jdbcType=VARCHAR},
|
|
|
+ StreetCode = #{row.streetCode,jdbcType=VARCHAR},
|
|
|
+ WorkTime = #{row.workTime,jdbcType=TIMESTAMP},
|
|
|
+ SiteID = #{row.siteID,jdbcType=TIMESTAMP}
|
|
|
<if test="example != null">
|
|
|
<include refid="Update_By_Example_Where_Clause" />
|
|
|
</if>
|
|
@@ -293,21 +304,25 @@
|
|
|
<if test="workTime != null">
|
|
|
WorkTime = #{workTime,jdbcType=TIMESTAMP},
|
|
|
</if>
|
|
|
+ <if test="siteID != null">
|
|
|
+ SiteID = #{siteID,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
</set>
|
|
|
where DoworkID = #{doworkID,jdbcType=VARCHAR}
|
|
|
</update>
|
|
|
<update id="updateByPrimaryKey" parameterType="com.hz.employmentsite.model.PcDowork">
|
|
|
update pc_dowork
|
|
|
- set SiteUserID = #{siteUserID,jdbcType=VARCHAR},
|
|
|
- DoTypeID = #{doTypeID,jdbcType=INTEGER},
|
|
|
- WorkContent = #{workContent,jdbcType=VARCHAR},
|
|
|
- CreateUserID = #{createUserID,jdbcType=VARCHAR},
|
|
|
- CreateTime = #{createTime,jdbcType=TIMESTAMP},
|
|
|
- ModifyUserID = #{modifyUserID,jdbcType=VARCHAR},
|
|
|
- ModifyTime = #{modifyTime,jdbcType=TIMESTAMP},
|
|
|
- RegionCode = #{regionCode,jdbcType=VARCHAR},
|
|
|
- StreetCode = #{streetCode,jdbcType=VARCHAR},
|
|
|
- WorkTime = #{workTime,jdbcType=TIMESTAMP}
|
|
|
+ set SiteUserID = #{siteUserID,jdbcType=VARCHAR},
|
|
|
+ DoTypeID = #{doTypeID,jdbcType=INTEGER},
|
|
|
+ WorkContent = #{workContent,jdbcType=VARCHAR},
|
|
|
+ CreateUserID = #{createUserID,jdbcType=VARCHAR},
|
|
|
+ CreateTime = #{createTime,jdbcType=TIMESTAMP},
|
|
|
+ ModifyUserID = #{modifyUserID,jdbcType=VARCHAR},
|
|
|
+ ModifyTime = #{modifyTime,jdbcType=TIMESTAMP},
|
|
|
+ RegionCode = #{regionCode,jdbcType=VARCHAR},
|
|
|
+ StreetCode = #{streetCode,jdbcType=VARCHAR},
|
|
|
+ WorkTime = #{workTime,jdbcType=TIMESTAMP},
|
|
|
+ SiteID = #{siteID,jdbcType=VARCHAR}
|
|
|
where DoworkID = #{doworkID,jdbcType=VARCHAR}
|
|
|
</update>
|
|
|
|