a.id AS "id", a.shopId AS "shopId", a.typeId AS "infoType.id", a.title AS "title", a.label AS "label", a.publisher AS "publisher", a.source AS "source", a.publishSource, s.name as "shopName", a.recommendContent AS "recommendContent", a.infoContent AS "infoContent", a.guidanceImage AS "guidanceImage", a.homePageImage AS "homePageImage", a.pubdate AS "pubdate", a.keyword AS "keyword", a.recommendStatus AS "recommendStatus", a.enabledStatus AS "enabledStatus", a.basePraise AS "basePraise", a.basePv AS "basePv", a.priorityIndex AS "priorityIndex", a.auditStatus, a.onlineStatus, a.failReason, c.num AS "realPraise", c.pv AS "pv", a.createBy AS "createBy.id", a.createDate AS "createDate", a.updateBy AS "updateBy.id", a.updateDate AS "updateDate", a.topPosition AS "topPosition", b.name AS "infoType.name", a.labelIds as "labelIds", a.relatedLabels as "relatedLabels" LEFT JOIN info_type b ON a.typeId=b.id LEFT JOIN info_praise c ON a.id=c.infoId left join shop s on a.shopId = s.shopID INSERT INTO info( typeId, title, label, publisher, source, recommendContent, infoContent, guidanceImage, homePageImage, pubdate, keyword, recommendStatus, enabledStatus, basePraise, basePv, createBy, createDate, updateBy, updateDate, topPosition, relatedLabels, labelIds ) VALUES ( #{infoType.id}, #{title}, #{label}, #{publisher}, #{source}, #{recommendContent}, #{infoContent}, #{guidanceImage}, #{homePageImage}, #{pubdate}, #{keyword}, #{recommendStatus}, #{enabledStatus}, #{basePraise}, #{basePv}, #{createBy.id}, #{createDate}, #{updateBy.id}, #{updateDate}, #{topPosition}, #{relatedLabels}, #{labelIds} ) UPDATE info SET typeId = #{infoType.id}, title = #{title}, label = #{label}, publisher = #{publisher}, source = #{source}, recommendContent = #{recommendContent}, infoContent = #{infoContent}, guidanceImage = #{guidanceImage}, homePageImage = #{homePageImage}, pubdate = #{pubdate}, keyword = #{keyword}, recommendStatus = #{recommendStatus}, enabledStatus = #{enabledStatus}, basePraise = #{basePraise}, basePv = #{basePv}, updateBy = #{updateBy.id}, updateDate = #{updateDate}, labelIds=#{labelIds}, relatedLabels=#{relatedLabels}, auditStatus = #{auditStatus}, onlineStatus = #{onlineStatus}, failReason = #{failReason}, topPosition = #{topPosition} WHERE id = #{id} DELETE FROM info WHERE id = #{id} DELETE FROM info_praise WHERE infoId = #{param1} DELETE FROM info WHERE typeId = #{param1} DELETE FROM info_page WHERE infoId = #{param1} update info set enabledStatus = 0, delFlag = 1 where id = #{id}; UPDATE info a SET a.enabledStatus = #{param1} WHERE a.id IN #{id} UPDATE info a SET a.recommendStatus = #{param1} WHERE a.id IN #{id} INSERT INTO info_praise VALUES(#{param1},0,0) INSERT INTO info_page(infoId,page,infoContent) SELECT #{param1},#{index}+1,#{infoContent} UPDATE info a SET a.label=REPLACE(a.label,#{param1},#{param2}) WHERE CONCAT(',',a.label,',') LIKE CONCAT('%,',#{param1},',%') update info set auditStatus = #{auditStatus}, failReason = #{failReason} ,pubdate = #{pubdate} where id = #{id} update info set onlineStatus = 3 where id = #{id}