|
@@ -9,6 +9,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<result property="reqTime" column="req_time" />
|
|
|
<result property="updateTime" column="update_time" />
|
|
|
<result property="startTime" column="start_time" />
|
|
|
+ <result property="source" column="source" />
|
|
|
<result property="feedbackXsy" column="feedback_xsy" />
|
|
|
<result property="hyNh3" column="hy_nh3" />
|
|
|
<result property="warnings" column="warnings" />
|
|
@@ -19,29 +20,12 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
</resultMap>
|
|
|
|
|
|
<sql id="selectXsyFeedbackVo">
|
|
|
- select id, req_time, update_time, start_time, feedback_xsy, hy_nh3, warnings, history, times, flag, ext from xsy_feedback
|
|
|
+ select id, req_time, update_time, start_time, source, feedback_xsy, hy_nh3, warnings, history, times, flag, ext from xsy_feedback
|
|
|
</sql>
|
|
|
|
|
|
- <select id="selectXsyFeedbackList" parameterType="XsyFeedback" resultMap="XsyFeedbackResult">
|
|
|
- <include refid="selectXsyFeedbackVo"/>
|
|
|
- <where>
|
|
|
- 1 = 1
|
|
|
- <if test="reqTime != null and reqTime != ''"> and req_time = #{reqTime}</if>
|
|
|
- <if test="startTime != null and startTime != ''"> and start_time = #{startTime}</if>
|
|
|
- <if test="feedbackXsy != null "> and feedback_xsy = #{feedbackXsy}</if>
|
|
|
- <if test="hyNh3 != null "> and hy_nh3 = #{hyNh3}</if>
|
|
|
- <if test="warnings != null and warnings != ''"> and warnings = #{warnings}</if>
|
|
|
- <if test="history != null and history != ''"> and history = #{history}</if>
|
|
|
- <if test="times != null "> and times = #{times}</if>
|
|
|
- <if test="flag != null "> and flag = #{flag}</if>
|
|
|
- <if test="ext != null and ext != ''"> and ext = #{ext}</if>
|
|
|
- </where>
|
|
|
- and del_flag = 0 order by id desc
|
|
|
- </select>
|
|
|
-
|
|
|
<select id="selectXsyFeedbackById" parameterType="Long" resultMap="XsyFeedbackResult">
|
|
|
<include refid="selectXsyFeedbackVo"/>
|
|
|
- where id = #{id} and del_flag = 0
|
|
|
+ where id = #{id}
|
|
|
</select>
|
|
|
|
|
|
<insert id="insertXsyFeedback" parameterType="XsyFeedback" useGeneratedKeys="true" keyProperty="id">
|
|
@@ -50,6 +34,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="reqTime != null">req_time,</if>
|
|
|
<if test="updateTime != null">update_time,</if>
|
|
|
<if test="startTime != null">start_time,</if>
|
|
|
+ <if test="source != null">source,</if>
|
|
|
<if test="feedbackXsy != null">feedback_xsy,</if>
|
|
|
<if test="hyNh3 != null">hy_nh3,</if>
|
|
|
<if test="warnings != null">warnings,</if>
|
|
@@ -62,6 +47,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="reqTime != null">#{reqTime},</if>
|
|
|
<if test="updateTime != null">#{updateTime},</if>
|
|
|
<if test="startTime != null">#{startTime},</if>
|
|
|
+ <if test="source != null">#{source},</if>
|
|
|
<if test="feedbackXsy != null">#{feedbackXsy},</if>
|
|
|
<if test="hyNh3 != null">#{hyNh3},</if>
|
|
|
<if test="warnings != null">#{warnings},</if>
|
|
@@ -78,6 +64,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="reqTime != null">req_time = #{reqTime},</if>
|
|
|
<if test="updateTime != null">update_time = #{updateTime},</if>
|
|
|
<if test="startTime != null">start_time = #{startTime},</if>
|
|
|
+ <if test="source != null">source = #{source},</if>
|
|
|
<if test="feedbackXsy != null">feedback_xsy = #{feedbackXsy},</if>
|
|
|
<if test="hyNh3 != null">hy_nh3 = #{hyNh3},</if>
|
|
|
<if test="warnings != null">warnings = #{warnings},</if>
|
|
@@ -86,25 +73,47 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="flag != null">flag = #{flag},</if>
|
|
|
<if test="ext != null">ext = #{ext},</if>
|
|
|
</trim>
|
|
|
- ,revision = revision + 1
|
|
|
where id = #{id}
|
|
|
</update>
|
|
|
|
|
|
|
|
|
|
|
|
<delete id="deleteXsyFeedbackById" parameterType="Long">
|
|
|
- delete from xsy_feedback whereid = #{id}
|
|
|
+ delete from xsy_feedback where id = #{id}
|
|
|
</delete>
|
|
|
|
|
|
<delete id="deleteXsyFeedbackByIds" parameterType="String">
|
|
|
- update xsy_feedback set del_flag = 2,revision = revision + 1 where del_flag = 0 and id in
|
|
|
+ delete from xsy_feedback where id in
|
|
|
<foreach item="id" collection="array" open="(" separator="," close=")">
|
|
|
#{id}
|
|
|
</foreach>
|
|
|
</delete>
|
|
|
|
|
|
+ <!-- 2025年05月16日10:26:38 新增或者调整的SQL,不允许删除或者覆盖 -->
|
|
|
+
|
|
|
<delete id="deleteAll" >
|
|
|
<!-- truncate table xsy_feedback -->
|
|
|
delete from xsy_feedback
|
|
|
</delete>
|
|
|
+
|
|
|
+ <select id="selectXsyFeedbackList" parameterType="XsyFeedback" resultMap="XsyFeedbackResult">
|
|
|
+ <include refid="selectXsyFeedbackVo"/>
|
|
|
+ <where>
|
|
|
+ 1 = 1
|
|
|
+ <if test="reqTime != null and reqTime != ''"> and req_time = #{reqTime}</if>
|
|
|
+ <if test="startTime != null and startTime != ''"> and start_time = #{startTime}</if>
|
|
|
+ <if test="source != null "> and source = #{source}</if>
|
|
|
+ <if test="feedbackXsy != null "> and feedback_xsy = #{feedbackXsy}</if>
|
|
|
+ <if test="hyNh3 != null "> and hy_nh3 = #{hyNh3}</if>
|
|
|
+ <if test="warnings != null and warnings != ''"> and warnings = #{warnings}</if>
|
|
|
+ <if test="history != null and history != ''"> and history = #{history}</if>
|
|
|
+ <if test="times != null "> and times = #{times}</if>
|
|
|
+ <if test="flag != null "> and flag = #{flag}</if>
|
|
|
+ <if test="ext != null and ext != ''"> and ext = #{ext}</if>
|
|
|
+ <!-- 2025年05月16日10:28:16 新增的筛选条件 -->
|
|
|
+ <if test="dateBegin != null "> and SUBSTRING(update_time, 1, 10) >= #{dateBegin}</if>
|
|
|
+ <if test="dateEnd != null "> and SUBSTRING(update_time, 1, 10) <= #{dateEnd}</if>
|
|
|
+ </where>
|
|
|
+ order by id desc
|
|
|
+ </select>
|
|
|
</mapper>
|