瀏覽代碼

Merge branch 'master' of http://47.100.37.243:10080/wutt/lsappBms

sunyadv 5 年之前
父節點
當前提交
b0cdd356c0

+ 1 - 0
pcbms/src/main/java/com/hssx/pcbms/service/impl/IdeaCommentServiceImpl.java

@@ -66,6 +66,7 @@ public class IdeaCommentServiceImpl extends ServiceImpl<IdeaCommentMapper, IdeaC
         if (oldIdeaComment != null) {
             Idea idea = ideaMapper.selectOne(new QueryWrapper<Idea>().eq("id", oldIdeaComment.getIdeaId()));
             idea.setScore(0.0);
+            idea.setIsEvaluated(0);
             ideaMapper.updateById(idea);
             ideaCommentMapper.deleteById(ideaComment.getId());
         }else{

+ 1 - 1
pcbms/src/main/resources/mapper/IdeaMapper.xml

@@ -58,7 +58,7 @@
                 and score_id = #{idea.scoreId}
             </if>
         </where>
-        order by i.indate,i.id desc
+        order by i.is_evaluated asc,i.indate,i.id desc
     </select>
     <select id="getIdeaScoreLists" resultMap="BaseResultMap">
         select