|
@@ -17,6 +17,7 @@
|
|
|
<result property="content" column="content_" />
|
|
|
<result property="appendix" column="appendix_" />
|
|
|
<result property="contentAttachment" column="content_attachment" />
|
|
|
+ <result property="allotedDate" column="alloted_date" />
|
|
|
<result property="delFlag" column="del_flag" />
|
|
|
<result property="createTime" column="create_time" />
|
|
|
<result property="createBy" column="create_by" />
|
|
@@ -25,7 +26,6 @@
|
|
|
|
|
|
<result property="areaId" column="area_id" />
|
|
|
<result property="stationName" column="station_name" />
|
|
|
- <result property="allotedDate" column="alloted_date" />
|
|
|
<result property="stepStatusId" column="step_status_id" />
|
|
|
</resultMap>
|
|
|
<insert id="insert" parameterType="com.jpsoft.excellent.modules.base.entity.FeedbackOpinion">
|
|
@@ -36,7 +36,7 @@
|
|
|
-->
|
|
|
<![CDATA[
|
|
|
insert into base_feedback_opinion
|
|
|
- (id_,sort_,connect_,connect_phone,work_station_id,window_,is_satisfied,opinion_status,confirm_status,cause_,content_,appendix_,content_attachment,del_flag,create_time,create_by,update_time,update_by)
|
|
|
+ (id_,sort_,connect_,connect_phone,work_station_id,window_,is_satisfied,opinion_status,confirm_status,cause_,content_,appendix_,content_attachment,del_flag,create_time,create_by,update_time,update_by,alloted_date)
|
|
|
values
|
|
|
(
|
|
|
#{id,jdbcType=VARCHAR}
|
|
@@ -57,6 +57,7 @@
|
|
|
,#{createBy,jdbcType=VARCHAR}
|
|
|
,#{updateTime,jdbcType= TIMESTAMP }
|
|
|
,#{updateBy,jdbcType=VARCHAR}
|
|
|
+,#{allotedDate,jdbcType=VARCHAR}
|
|
|
)
|
|
|
]]>
|
|
|
</insert>
|
|
@@ -117,6 +118,9 @@
|
|
|
<if test="updateBy!=null">
|
|
|
update_by=#{updateBy,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
+ <if test="allotedDate!=null">
|
|
|
+ alloted_date=#{allotedDate,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
</set>
|
|
|
where id_=#{id}
|
|
|
</update>
|
|
@@ -184,6 +188,16 @@
|
|
|
and a.create_time < #{searchParams.reportDateEnd}
|
|
|
]]>
|
|
|
</if>
|
|
|
+ <if test="searchParams.timeout != null">
|
|
|
+ <![CDATA[
|
|
|
+ and a.alloted_date < #{searchParams.timeout}
|
|
|
+ ]]>
|
|
|
+ </if>
|
|
|
+ <if test="searchParams.noTimeout != null">
|
|
|
+ <![CDATA[
|
|
|
+ and (a.alloted_date is null or a.alloted_date >= #{searchParams.noTimeout})
|
|
|
+ ]]>
|
|
|
+ </if>
|
|
|
<if test="searchParams.year != null">
|
|
|
and a.sort_ like #{searchParams.year}
|
|
|
</if>
|
|
@@ -201,7 +215,7 @@
|
|
|
</select>
|
|
|
<select id="searchTodo" parameterType="hashmap" resultMap="FeedbackOpinionMap">
|
|
|
<![CDATA[
|
|
|
- SELECT c.*,a.alloted_date,a.id_ AS step_status_id,d.station_name FROM base_feedback_step_status a
|
|
|
+ SELECT c.*,a.id_ AS step_status_id,d.station_name FROM base_feedback_step_status a
|
|
|
LEFT JOIN base_feedback_step b ON a.feedback_step_id = b.id_
|
|
|
LEFT JOIN base_feedback_opinion c ON b.feedback_opinion_id = c.id_
|
|
|
LEFT JOIN base_work_station d on c.work_station_id = d.id_
|