|
|
|
@ -27,16 +27,21 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
|
<result property="updateBy" column="update_by" />
|
|
|
|
|
<result property="updateTime" column="update_time" />
|
|
|
|
|
<result property="remark" column="remark" />
|
|
|
|
|
<result property="sentimentReportType" column="sentiment_report_type" />
|
|
|
|
|
<result property="reminder" column="reminder"/>
|
|
|
|
|
|
|
|
|
|
</resultMap>
|
|
|
|
|
|
|
|
|
|
<sql id="selectTcNetworkSentimentVo">
|
|
|
|
|
select id, area_id, sentiment_name, sentiment_content, dep_name, publish_time, sentiment_state, media_type, event_type, sentiment_type, yuci_type, source, isturn, file_name, file_url, create_id, create_by, create_time, update_id, update_by, update_time, remark from tc_network_sentiment
|
|
|
|
|
select id, area_id, sentiment_name, reminder,sentiment_report_type,sentiment_content, dep_name, publish_time, sentiment_state, media_type, event_type, sentiment_type, yuci_type, source, isturn, file_name, file_url, create_id, create_by, create_time, update_id, update_by, update_time, remark from tc_network_sentiment
|
|
|
|
|
</sql>
|
|
|
|
|
|
|
|
|
|
<select id="selectTcNetworkSentimentList" parameterType="TcNetworkSentiment" resultMap="TcNetworkSentimentResult">
|
|
|
|
|
<include refid="selectTcNetworkSentimentVo"/>
|
|
|
|
|
<where>
|
|
|
|
|
<if test="areaId != null "> and area_id = #{areaId}</if>
|
|
|
|
|
<if test="reminder != null "> and reminder = #{reminder}</if>
|
|
|
|
|
<if test="sentimentReportType != null "> and sentiment_report_type = #{sentimentReportType}</if>
|
|
|
|
|
<if test="sentimentName != null and sentimentName != ''"> and sentiment_name like concat('%', #{sentimentName}, '%')</if>
|
|
|
|
|
<if test="sentimentContent != null and sentimentContent != ''"> and sentiment_content = #{sentimentContent}</if>
|
|
|
|
|
<if test="depName != null and depName != ''"> and dep_name like concat('%', #{depName}, '%')</if>
|
|
|
|
@ -64,7 +69,10 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
|
insert into tc_network_sentiment
|
|
|
|
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
|
|
|
|
<if test="areaId != null">area_id,</if>
|
|
|
|
|
|
|
|
|
|
<if test="sentimentName != null">sentiment_name,</if>
|
|
|
|
|
<if test="reminder != null">reminder,</if>
|
|
|
|
|
<if test="sentimentReportType != null">sentiment_report_type,</if>
|
|
|
|
|
<if test="sentimentContent != null">sentiment_content,</if>
|
|
|
|
|
<if test="depName != null">dep_name,</if>
|
|
|
|
|
<if test="publishTime != null">publish_time,</if>
|
|
|
|
@ -88,7 +96,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
|
|
<if test="areaId != null">#{areaId},</if>
|
|
|
|
|
<if test="sentimentName != null">#{sentimentName},</if>
|
|
|
|
|
<if test="reminder != null">#{reminder},</if>
|
|
|
|
|
<if test="sentimentContent != null">#{sentimentContent},</if>
|
|
|
|
|
<if test="sentimentReportType != null">#{sentimentReportType},</if>
|
|
|
|
|
<if test="depName != null">#{depName},</if>
|
|
|
|
|
<if test="publishTime != null">#{publishTime},</if>
|
|
|
|
|
<if test="sentimentState != null">#{sentimentState},</if>
|
|
|
|
@ -115,7 +125,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
|
<trim prefix="SET" suffixOverrides=",">
|
|
|
|
|
<if test="areaId != null">area_id = #{areaId},</if>
|
|
|
|
|
<if test="sentimentName != null">sentiment_name = #{sentimentName},</if>
|
|
|
|
|
<if test="reminder != null">reminder = #{reminder},</if>
|
|
|
|
|
<if test="sentimentContent != null">sentiment_content = #{sentimentContent},</if>
|
|
|
|
|
<if test="sentimentReportType != null">sentiment_report_type = #{sentimentReportType},</if>
|
|
|
|
|
<if test="depName != null">dep_name = #{depName},</if>
|
|
|
|
|
<if test="publishTime != null">publish_time = #{publishTime},</if>
|
|
|
|
|
<if test="sentimentState != null">sentiment_state = #{sentimentState},</if>
|
|
|
|
|