Commit 594aaf7f by Java-李昕颖

工作台消息列表按权限查询

parent 23e9d3d2
......@@ -116,6 +116,8 @@ public class ReportService extends CrudService<ReportDao, ReportEntity> {
reportEntity.setDealPersonName(user.getName());
if (StringUtils.isNotBlank(reportEntity.getExchangeAfterUser())){
reportEntity.setExchangeType("1");
}else {
reportEntity.setExchangeAfterUser(user.getId());
}
dao.addTrack(reportEntity);
......
......@@ -356,7 +356,7 @@
LEFT JOIN ct_bbtc_sys_user2role sur ON su.id = sur.user_id
LEFT JOIN ct_bbtc_sys_role sr ON sr.id = sur.role_id
WHERE
sr.name` = '系统管理员'
sr.name = '系统管理员'
</select>
<insert id="addRecord">
......@@ -472,6 +472,9 @@
r.update_date AS "updateDate"
FROM ct_bbtc_report r
WHERE r.report_status = #{processStatus}
<if test="isAdmin != null">
AND r.exchange_after_user = #{isAdmin}
</if>
<if test="startDate != null">
AND r.create_date >= #{startDate}
</if>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment