|
|
@@ -3,7 +3,6 @@
|
|
|
<mapper namespace="com.goafanti.common.dao.PublicReleaseMapper">
|
|
|
<resultMap id="BaseResultMap" type="com.goafanti.common.model.PublicRelease">
|
|
|
<id column="id" jdbcType="INTEGER" property="id" />
|
|
|
- <result column="uid" jdbcType="VARCHAR" property="uid" />
|
|
|
<result column="aid" jdbcType="VARCHAR" property="aid" />
|
|
|
<result column="release_start" jdbcType="TIMESTAMP" property="releaseStart" />
|
|
|
<result column="release_end" jdbcType="TIMESTAMP" property="releaseEnd" />
|
|
|
@@ -19,11 +18,8 @@
|
|
|
<result column="photo_url" jdbcType="VARCHAR" property="photoUrl" />
|
|
|
<result column="pid" jdbcType="VARCHAR" property="pid" />
|
|
|
<result column="pname" jdbcType="VARCHAR" property="pname" />
|
|
|
- <result column="ufid" jdbcType="VARCHAR" property="ufid" />
|
|
|
<result column="duration" jdbcType="DOUBLE" property="duration" />
|
|
|
<result column="valid_date" jdbcType="VARCHAR" property="validDate" />
|
|
|
- <result column="new_user" jdbcType="INTEGER" property="newUser" />
|
|
|
- <result column="sign_sum" jdbcType="INTEGER" property="signSum" />
|
|
|
<result column="main_status" jdbcType="INTEGER" property="mainStatus" />
|
|
|
<result column="supplement" jdbcType="VARCHAR" property="supplement" />
|
|
|
<result column="audit_info" jdbcType="VARCHAR" property="auditInfo" />
|
|
|
@@ -45,14 +41,19 @@
|
|
|
<result column="assistant_name" jdbcType="VARCHAR" property="assistantName" />
|
|
|
<result column="public_again" jdbcType="INTEGER" property="publicAgain" />
|
|
|
<result column="audit_time" jdbcType="TIMESTAMP" property="auditTime" />
|
|
|
+ <result column="uid" jdbcType="INTEGER" property="uid" />
|
|
|
+ <result column="ufid" jdbcType="VARCHAR" property="ufid" />
|
|
|
+ <result column="new_user" jdbcType="VARCHAR" property="newUser" />
|
|
|
+ <result column="sign_sum" jdbcType="VARCHAR" property="signSum" />
|
|
|
+ <result column="user_names" jdbcType="VARCHAR" property="userNames" />
|
|
|
</resultMap>
|
|
|
<sql id="Base_Column_List">
|
|
|
- id, `uid`, aid, release_start, release_end, remarks, annex_url, user_name, longitude,
|
|
|
- latitude, `status`, create_time, clock_in, clock_in_time, photo_url, pid, pname,
|
|
|
- ufid, duration, valid_date, new_user, sign_sum, main_status, supplement, audit_info,
|
|
|
- `plan`, expected_effect, next_plan, `type`, order_no, update_time, update_status,
|
|
|
- assist, assist_aid, assist_aid_name, main_id, main_name, clock_in_remarks, reject_name,
|
|
|
- assistant_aid, assistant_name, public_again, audit_time
|
|
|
+ id, aid, release_start, release_end, remarks, annex_url, user_name, longitude, latitude,
|
|
|
+ `status`, create_time, clock_in, clock_in_time, photo_url, pid, pname, duration,
|
|
|
+ valid_date, main_status, supplement, audit_info, `plan`, expected_effect, next_plan,
|
|
|
+ `type`, order_no, update_time, update_status, assist, assist_aid, assist_aid_name,
|
|
|
+ main_id, main_name, clock_in_remarks, reject_name, assistant_aid, assistant_name,
|
|
|
+ public_again, audit_time, `uid`, ufid, new_user, sign_sum, user_names
|
|
|
</sql>
|
|
|
<select id="selectByPrimaryKey" parameterType="java.lang.Integer" resultMap="BaseResultMap">
|
|
|
select
|
|
|
@@ -65,43 +66,40 @@
|
|
|
where id = #{id,jdbcType=INTEGER}
|
|
|
</delete>
|
|
|
<insert id="insert" keyColumn="id" keyProperty="id" parameterType="com.goafanti.common.model.PublicRelease" useGeneratedKeys="true">
|
|
|
- insert into public_release (`uid`, aid, release_start,
|
|
|
- release_end, remarks, annex_url,
|
|
|
- user_name, longitude, latitude,
|
|
|
- `status`, create_time, clock_in,
|
|
|
- clock_in_time, photo_url, pid,
|
|
|
- pname, ufid, duration,
|
|
|
- valid_date, new_user, sign_sum,
|
|
|
- main_status, supplement, audit_info,
|
|
|
- `plan`, expected_effect, next_plan,
|
|
|
- `type`, order_no, update_time,
|
|
|
- update_status, assist, assist_aid,
|
|
|
- assist_aid_name, main_id, main_name,
|
|
|
- clock_in_remarks, reject_name, assistant_aid,
|
|
|
- assistant_name, public_again, audit_time
|
|
|
- )
|
|
|
- values (#{uid,jdbcType=VARCHAR}, #{aid,jdbcType=VARCHAR}, #{releaseStart,jdbcType=TIMESTAMP},
|
|
|
- #{releaseEnd,jdbcType=TIMESTAMP}, #{remarks,jdbcType=VARCHAR}, #{annexUrl,jdbcType=VARCHAR},
|
|
|
- #{userName,jdbcType=VARCHAR}, #{longitude,jdbcType=VARCHAR}, #{latitude,jdbcType=VARCHAR},
|
|
|
- #{status,jdbcType=INTEGER}, #{createTime,jdbcType=TIMESTAMP}, #{clockIn,jdbcType=INTEGER},
|
|
|
- #{clockInTime,jdbcType=TIMESTAMP}, #{photoUrl,jdbcType=VARCHAR}, #{pid,jdbcType=VARCHAR},
|
|
|
- #{pname,jdbcType=VARCHAR}, #{ufid,jdbcType=VARCHAR}, #{duration,jdbcType=DOUBLE},
|
|
|
- #{validDate,jdbcType=VARCHAR}, #{newUser,jdbcType=INTEGER}, #{signSum,jdbcType=INTEGER},
|
|
|
- #{mainStatus,jdbcType=INTEGER}, #{supplement,jdbcType=VARCHAR}, #{auditInfo,jdbcType=VARCHAR},
|
|
|
- #{plan,jdbcType=VARCHAR}, #{expectedEffect,jdbcType=VARCHAR}, #{nextPlan,jdbcType=VARCHAR},
|
|
|
- #{type,jdbcType=INTEGER}, #{orderNo,jdbcType=VARCHAR}, #{updateTime,jdbcType=TIMESTAMP},
|
|
|
- #{updateStatus,jdbcType=INTEGER}, #{assist,jdbcType=INTEGER}, #{assistAid,jdbcType=VARCHAR},
|
|
|
- #{assistAidName,jdbcType=VARCHAR}, #{mainId,jdbcType=INTEGER}, #{mainName,jdbcType=VARCHAR},
|
|
|
- #{clockInRemarks,jdbcType=VARCHAR}, #{rejectName,jdbcType=VARCHAR}, #{assistantAid,jdbcType=VARCHAR},
|
|
|
- #{assistantName,jdbcType=VARCHAR}, #{publicAgain,jdbcType=INTEGER}, #{auditTime,jdbcType=TIMESTAMP}
|
|
|
- )
|
|
|
+ insert into public_release (aid, release_start, release_end,
|
|
|
+ remarks, annex_url, user_name,
|
|
|
+ longitude, latitude, `status`,
|
|
|
+ create_time, clock_in, clock_in_time,
|
|
|
+ photo_url, pid, pname,
|
|
|
+ duration, valid_date, main_status,
|
|
|
+ supplement, audit_info, `plan`,
|
|
|
+ expected_effect, next_plan, `type`,
|
|
|
+ order_no, update_time, update_status,
|
|
|
+ assist, assist_aid, assist_aid_name,
|
|
|
+ main_id, main_name, clock_in_remarks,
|
|
|
+ reject_name, assistant_aid, assistant_name,
|
|
|
+ public_again, audit_time, `uid`,
|
|
|
+ ufid, new_user, sign_sum,
|
|
|
+ user_names)
|
|
|
+ values (#{aid,jdbcType=VARCHAR}, #{releaseStart,jdbcType=TIMESTAMP}, #{releaseEnd,jdbcType=TIMESTAMP},
|
|
|
+ #{remarks,jdbcType=VARCHAR}, #{annexUrl,jdbcType=VARCHAR}, #{userName,jdbcType=VARCHAR},
|
|
|
+ #{longitude,jdbcType=VARCHAR}, #{latitude,jdbcType=VARCHAR}, #{status,jdbcType=INTEGER},
|
|
|
+ #{createTime,jdbcType=TIMESTAMP}, #{clockIn,jdbcType=INTEGER}, #{clockInTime,jdbcType=TIMESTAMP},
|
|
|
+ #{photoUrl,jdbcType=VARCHAR}, #{pid,jdbcType=VARCHAR}, #{pname,jdbcType=VARCHAR},
|
|
|
+ #{duration,jdbcType=DOUBLE}, #{validDate,jdbcType=VARCHAR}, #{mainStatus,jdbcType=INTEGER},
|
|
|
+ #{supplement,jdbcType=VARCHAR}, #{auditInfo,jdbcType=VARCHAR}, #{plan,jdbcType=VARCHAR},
|
|
|
+ #{expectedEffect,jdbcType=VARCHAR}, #{nextPlan,jdbcType=VARCHAR}, #{type,jdbcType=INTEGER},
|
|
|
+ #{orderNo,jdbcType=VARCHAR}, #{updateTime,jdbcType=TIMESTAMP}, #{updateStatus,jdbcType=INTEGER},
|
|
|
+ #{assist,jdbcType=INTEGER}, #{assistAid,jdbcType=VARCHAR}, #{assistAidName,jdbcType=VARCHAR},
|
|
|
+ #{mainId,jdbcType=INTEGER}, #{mainName,jdbcType=VARCHAR}, #{clockInRemarks,jdbcType=VARCHAR},
|
|
|
+ #{rejectName,jdbcType=VARCHAR}, #{assistantAid,jdbcType=VARCHAR}, #{assistantName,jdbcType=VARCHAR},
|
|
|
+ #{publicAgain,jdbcType=INTEGER}, #{auditTime,jdbcType=TIMESTAMP}, #{uid,jdbcType=INTEGER},
|
|
|
+ #{ufid,jdbcType=VARCHAR}, #{newUser,jdbcType=VARCHAR}, #{signSum,jdbcType=VARCHAR},
|
|
|
+ #{userNames,jdbcType=VARCHAR})
|
|
|
</insert>
|
|
|
<insert id="insertSelective" keyColumn="id" keyProperty="id" parameterType="com.goafanti.common.model.PublicRelease" useGeneratedKeys="true">
|
|
|
insert into public_release
|
|
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
|
|
- <if test="uid != null">
|
|
|
- `uid`,
|
|
|
- </if>
|
|
|
<if test="aid != null">
|
|
|
aid,
|
|
|
</if>
|
|
|
@@ -147,21 +145,12 @@
|
|
|
<if test="pname != null">
|
|
|
pname,
|
|
|
</if>
|
|
|
- <if test="ufid != null">
|
|
|
- ufid,
|
|
|
- </if>
|
|
|
<if test="duration != null">
|
|
|
duration,
|
|
|
</if>
|
|
|
<if test="validDate != null">
|
|
|
valid_date,
|
|
|
</if>
|
|
|
- <if test="newUser != null">
|
|
|
- new_user,
|
|
|
- </if>
|
|
|
- <if test="signSum != null">
|
|
|
- sign_sum,
|
|
|
- </if>
|
|
|
<if test="mainStatus != null">
|
|
|
main_status,
|
|
|
</if>
|
|
|
@@ -225,11 +214,23 @@
|
|
|
<if test="auditTime != null">
|
|
|
audit_time,
|
|
|
</if>
|
|
|
- </trim>
|
|
|
- <trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
<if test="uid != null">
|
|
|
- #{uid,jdbcType=VARCHAR},
|
|
|
+ `uid`,
|
|
|
</if>
|
|
|
+ <if test="ufid != null">
|
|
|
+ ufid,
|
|
|
+ </if>
|
|
|
+ <if test="newUser != null">
|
|
|
+ new_user,
|
|
|
+ </if>
|
|
|
+ <if test="signSum != null">
|
|
|
+ sign_sum,
|
|
|
+ </if>
|
|
|
+ <if test="userNames != null">
|
|
|
+ user_names,
|
|
|
+ </if>
|
|
|
+ </trim>
|
|
|
+ <trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
<if test="aid != null">
|
|
|
#{aid,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
@@ -275,21 +276,12 @@
|
|
|
<if test="pname != null">
|
|
|
#{pname,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
- <if test="ufid != null">
|
|
|
- #{ufid,jdbcType=VARCHAR},
|
|
|
- </if>
|
|
|
<if test="duration != null">
|
|
|
#{duration,jdbcType=DOUBLE},
|
|
|
</if>
|
|
|
<if test="validDate != null">
|
|
|
#{validDate,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
- <if test="newUser != null">
|
|
|
- #{newUser,jdbcType=INTEGER},
|
|
|
- </if>
|
|
|
- <if test="signSum != null">
|
|
|
- #{signSum,jdbcType=INTEGER},
|
|
|
- </if>
|
|
|
<if test="mainStatus != null">
|
|
|
#{mainStatus,jdbcType=INTEGER},
|
|
|
</if>
|
|
|
@@ -353,14 +345,26 @@
|
|
|
<if test="auditTime != null">
|
|
|
#{auditTime,jdbcType=TIMESTAMP},
|
|
|
</if>
|
|
|
+ <if test="uid != null">
|
|
|
+ #{uid,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
+ <if test="ufid != null">
|
|
|
+ #{ufid,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="newUser != null">
|
|
|
+ #{newUser,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="signSum != null">
|
|
|
+ #{signSum,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="userNames != null">
|
|
|
+ #{userNames,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
</trim>
|
|
|
</insert>
|
|
|
<update id="updateByPrimaryKeySelective" parameterType="com.goafanti.common.model.PublicRelease">
|
|
|
update public_release
|
|
|
<set>
|
|
|
- <if test="uid != null">
|
|
|
- `uid` = #{uid,jdbcType=VARCHAR},
|
|
|
- </if>
|
|
|
<if test="aid != null">
|
|
|
aid = #{aid,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
@@ -406,21 +410,12 @@
|
|
|
<if test="pname != null">
|
|
|
pname = #{pname,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
- <if test="ufid != null">
|
|
|
- ufid = #{ufid,jdbcType=VARCHAR},
|
|
|
- </if>
|
|
|
<if test="duration != null">
|
|
|
duration = #{duration,jdbcType=DOUBLE},
|
|
|
</if>
|
|
|
<if test="validDate != null">
|
|
|
valid_date = #{validDate,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
- <if test="newUser != null">
|
|
|
- new_user = #{newUser,jdbcType=INTEGER},
|
|
|
- </if>
|
|
|
- <if test="signSum != null">
|
|
|
- sign_sum = #{signSum,jdbcType=INTEGER},
|
|
|
- </if>
|
|
|
<if test="mainStatus != null">
|
|
|
main_status = #{mainStatus,jdbcType=INTEGER},
|
|
|
</if>
|
|
|
@@ -484,13 +479,27 @@
|
|
|
<if test="auditTime != null">
|
|
|
audit_time = #{auditTime,jdbcType=TIMESTAMP},
|
|
|
</if>
|
|
|
+ <if test="uid != null">
|
|
|
+ `uid` = #{uid,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
+ <if test="ufid != null">
|
|
|
+ ufid = #{ufid,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="newUser != null">
|
|
|
+ new_user = #{newUser,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="signSum != null">
|
|
|
+ sign_sum = #{signSum,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="userNames != null">
|
|
|
+ user_names = #{userNames,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
</set>
|
|
|
where id = #{id,jdbcType=INTEGER}
|
|
|
</update>
|
|
|
<update id="updateByPrimaryKey" parameterType="com.goafanti.common.model.PublicRelease">
|
|
|
update public_release
|
|
|
- set `uid` = #{uid,jdbcType=VARCHAR},
|
|
|
- aid = #{aid,jdbcType=VARCHAR},
|
|
|
+ set aid = #{aid,jdbcType=VARCHAR},
|
|
|
release_start = #{releaseStart,jdbcType=TIMESTAMP},
|
|
|
release_end = #{releaseEnd,jdbcType=TIMESTAMP},
|
|
|
remarks = #{remarks,jdbcType=VARCHAR},
|
|
|
@@ -505,11 +514,8 @@
|
|
|
photo_url = #{photoUrl,jdbcType=VARCHAR},
|
|
|
pid = #{pid,jdbcType=VARCHAR},
|
|
|
pname = #{pname,jdbcType=VARCHAR},
|
|
|
- ufid = #{ufid,jdbcType=VARCHAR},
|
|
|
duration = #{duration,jdbcType=DOUBLE},
|
|
|
valid_date = #{validDate,jdbcType=VARCHAR},
|
|
|
- new_user = #{newUser,jdbcType=INTEGER},
|
|
|
- sign_sum = #{signSum,jdbcType=INTEGER},
|
|
|
main_status = #{mainStatus,jdbcType=INTEGER},
|
|
|
supplement = #{supplement,jdbcType=VARCHAR},
|
|
|
audit_info = #{auditInfo,jdbcType=VARCHAR},
|
|
|
@@ -530,7 +536,12 @@
|
|
|
assistant_aid = #{assistantAid,jdbcType=VARCHAR},
|
|
|
assistant_name = #{assistantName,jdbcType=VARCHAR},
|
|
|
public_again = #{publicAgain,jdbcType=INTEGER},
|
|
|
- audit_time = #{auditTime,jdbcType=TIMESTAMP}
|
|
|
+ audit_time = #{auditTime,jdbcType=TIMESTAMP},
|
|
|
+ `uid` = #{uid,jdbcType=INTEGER},
|
|
|
+ ufid = #{ufid,jdbcType=VARCHAR},
|
|
|
+ new_user = #{newUser,jdbcType=VARCHAR},
|
|
|
+ sign_sum = #{signSum,jdbcType=VARCHAR},
|
|
|
+ user_names = #{userNames,jdbcType=VARCHAR}
|
|
|
where id = #{id,jdbcType=INTEGER}
|
|
|
</update>
|
|
|
|