未通过的评论不显示
This commit is contained in:
parent
8f640f66e6
commit
8ade504226
|
@ -63,6 +63,9 @@ public class TDemandCommentServiceImpl extends CrudServiceImpl<TDemandCommentDao
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
if (!params.containsKey("creator")) {
|
||||||
|
wrapper.eq(StringUtils.isNotBlank(params.get("creator").toString()), "del_flag", 0);
|
||||||
|
}
|
||||||
wrapper.orderByDesc("create_date");
|
wrapper.orderByDesc("create_date");
|
||||||
return wrapper;
|
return wrapper;
|
||||||
}
|
}
|
||||||
|
|
|
@ -19,11 +19,12 @@
|
||||||
</resultMap>
|
</resultMap>
|
||||||
<select id="commentCount" resultType="java.lang.Long">
|
<select id="commentCount" resultType="java.lang.Long">
|
||||||
SELECT
|
SELECT
|
||||||
COUNT( id )
|
COUNT( id )
|
||||||
FROM
|
FROM
|
||||||
t_demand_comment
|
t_demand_comment
|
||||||
WHERE
|
WHERE
|
||||||
target_id = #{dataId};
|
del_flag = 0
|
||||||
|
AND target_id = #{dataId};
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
</mapper>
|
</mapper>
|
Loading…
Reference in New Issue