|
|
@@ -23,6 +23,7 @@
|
|
|
<result column="task_start_time" jdbcType="TIMESTAMP" property="taskStartTime" />
|
|
|
<result column="task_end_time" jdbcType="TIMESTAMP" property="taskEndTime" />
|
|
|
<result column="project_status" jdbcType="INTEGER" property="projectStatus" />
|
|
|
+ <result column="main" jdbcType="INTEGER" property="main" />
|
|
|
<result column="accept_time" jdbcType="DATE" property="acceptTime" />
|
|
|
<result column="review_time" jdbcType="DATE" property="reviewTime" />
|
|
|
<result column="publicity_time" jdbcType="DATE" property="publicityTime" />
|
|
|
@@ -113,7 +114,7 @@
|
|
|
id, order_no, super_id, commodity_id, commodity_name, commodity_quantity, commodity_mode,
|
|
|
commodity_price, task_status, task_distribution_time, task_allocator, task_receiver,
|
|
|
task_comment, task_start_time, task_end_time, project_status, accept_time, review_time,
|
|
|
- publicity_time, licence_time
|
|
|
+ publicity_time, licence_time ,main
|
|
|
</sql>
|
|
|
<sql id="Blob_Column_List">
|
|
|
<!--
|
|
|
@@ -209,7 +210,7 @@
|
|
|
task_receiver, task_comment, task_start_time,
|
|
|
task_end_time, project_status, accept_time,
|
|
|
review_time, publicity_time, licence_time,
|
|
|
- attachment_url)
|
|
|
+ attachment_url,main)
|
|
|
values (#{id,jdbcType=INTEGER}, #{orderNo,jdbcType=VARCHAR}, #{superId,jdbcType=VARCHAR},
|
|
|
#{commodityId,jdbcType=VARCHAR}, #{commodityName,jdbcType=VARCHAR}, #{commodityQuantity,jdbcType=INTEGER},
|
|
|
#{commodityMode,jdbcType=VARCHAR}, #{commodityPrice,jdbcType=DECIMAL}, #{taskStatus,jdbcType=INTEGER},
|
|
|
@@ -217,7 +218,7 @@
|
|
|
#{taskReceiver,jdbcType=VARCHAR}, #{taskComment,jdbcType=VARCHAR}, #{taskStartTime,jdbcType=TIMESTAMP},
|
|
|
#{taskEndTime,jdbcType=TIMESTAMP}, #{projectStatus,jdbcType=INTEGER}, #{acceptTime,jdbcType=DATE},
|
|
|
#{reviewTime,jdbcType=DATE}, #{publicityTime,jdbcType=DATE}, #{licenceTime,jdbcType=DATE},
|
|
|
- #{attachmentUrl,jdbcType=LONGVARCHAR})
|
|
|
+ #{attachmentUrl,jdbcType=LONGVARCHAR},#{main,jdbcType=INTEGER})
|
|
|
</insert>
|
|
|
<insert id="insertSelective" parameterType="com.goafanti.common.model.TOrderTask">
|
|
|
<!--
|
|
|
@@ -290,6 +291,9 @@
|
|
|
<if test="attachmentUrl != null">
|
|
|
attachment_url,
|
|
|
</if>
|
|
|
+ <if test="main != null">
|
|
|
+ main,
|
|
|
+ </if>
|
|
|
</trim>
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
<if test="id != null">
|
|
|
@@ -355,6 +359,9 @@
|
|
|
<if test="attachmentUrl != null">
|
|
|
#{attachmentUrl,jdbcType=LONGVARCHAR},
|
|
|
</if>
|
|
|
+ <if test="main != null">
|
|
|
+ #{main,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
</trim>
|
|
|
</insert>
|
|
|
<select id="countByExample" parameterType="com.goafanti.common.model.TOrderTaskExample" resultType="java.lang.Long">
|
|
|
@@ -575,6 +582,9 @@
|
|
|
<if test="attachmentUrl != null">
|
|
|
attachment_url = #{attachmentUrl,jdbcType=LONGVARCHAR},
|
|
|
</if>
|
|
|
+ <if test="main != null">
|
|
|
+ main = #{main,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
</set>
|
|
|
where id = #{id,jdbcType=INTEGER}
|
|
|
</update>
|
|
|
@@ -604,7 +614,8 @@
|
|
|
review_time = #{reviewTime,jdbcType=DATE},
|
|
|
publicity_time = #{publicityTime,jdbcType=DATE},
|
|
|
licence_time = #{licenceTime,jdbcType=DATE},
|
|
|
- attachment_url = #{attachmentUrl,jdbcType=LONGVARCHAR}
|
|
|
+ attachment_url = #{attachmentUrl,jdbcType=LONGVARCHAR},
|
|
|
+ main = #{main,jdbcType=INTEGER}
|
|
|
where id = #{id,jdbcType=INTEGER}
|
|
|
</update>
|
|
|
<update id="updateByPrimaryKey" parameterType="com.goafanti.common.model.TOrderTask">
|
|
|
@@ -632,13 +643,18 @@
|
|
|
accept_time = #{acceptTime,jdbcType=DATE},
|
|
|
review_time = #{reviewTime,jdbcType=DATE},
|
|
|
publicity_time = #{publicityTime,jdbcType=DATE},
|
|
|
- licence_time = #{licenceTime,jdbcType=DATE}
|
|
|
+ licence_time = #{licenceTime,jdbcType=DATE},
|
|
|
+ main = #{main,jdbcType=INTEGER}
|
|
|
where id = #{id,jdbcType=INTEGER}
|
|
|
</update>
|
|
|
- <select id="selectOrderTask" resultMap="BaseResultMap">
|
|
|
+ <select id="selectOrderTask" resultType="com.goafanti.order.bo.TOrderTaskBo">
|
|
|
select
|
|
|
- <include refid="Base_Column_List" />
|
|
|
- from t_order_task
|
|
|
+ a.id,a.order_no as orderNo,a.commodity_name as commodityName,a.commodity_id as commodityId,
|
|
|
+ a.commodity_price as commodityPrice,a.task_comment as taskComment,a.task_status as taskStatus,
|
|
|
+ a.project_status as project_status,a.main,a.task_receiver as taskReceiver ,d.name as contacts,
|
|
|
+ d.contact_mobile as contactsMobile,c.cname
|
|
|
+ from t_order_task a left join business_project b on a.commodity_id=b.id
|
|
|
+ left join business_category c on b.cid=c.id left join admin d on a.task_receiver=d.id
|
|
|
where order_no= #{orderNo,jdbcType=VARCHAR}
|
|
|
</select>
|
|
|
</mapper>
|