From abe815efa7fddd20f958b69b77d02bcc92d0bb84 Mon Sep 17 00:00:00 2001
From: tangxiaobao <303826152@qq.com>
Date: 星期三, 18 八月 2021 18:28:43 +0800
Subject: [PATCH] 下载安全工作记录报告
---
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/dao/ComActEasyPhotoDAO.java | 26 ++++++++++++++++----------
1 files changed, 16 insertions(+), 10 deletions(-)
diff --git a/springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/dao/ComActEasyPhotoDAO.java b/springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/dao/ComActEasyPhotoDAO.java
index 033a971..83263e4 100644
--- a/springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/dao/ComActEasyPhotoDAO.java
+++ b/springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/dao/ComActEasyPhotoDAO.java
@@ -45,6 +45,7 @@
"p.is_report, " +
"p.is_publicity, " +
"p.activity_type, " +
+ "p.activity_id, " +
"p.activity_amount, " +
"p.examine_at " +
"FROM " +
@@ -114,6 +115,7 @@
"p.is_publicity, " +
"p.activity_type, " +
"p.activity_amount, " +
+ "p.activity_id, " +
"p.examine_at " +
"FROM " +
"com_act_easy_photo p " +
@@ -167,6 +169,8 @@
")t order by t.create_at desc "+
"</script>")
IPage<ComActEasyPhotoVO> pageEasyPhoto(Page page, @Param("comActEasyPhotoVO") ComActEasyPhotoVO comActEasyPhotoVO);
+
+ IPage<ComActEasyPhotoVO> pageEasyPhotoAdmin(Page page, @Param("comActEasyPhotoVO") ComActEasyPhotoVO comActEasyPhotoVO);
@Select("SELECT " +
"p.id, " +
"p.sponsor_id, " +
@@ -176,6 +180,7 @@
"u.`name` sponsorName, " +
"u.nick_name userNickName, " +
"su.`name` handlerName, " +
+ "su1.`name` completeName, " +
"u.`image_url`, " +
"u.phone, " +
"p.detail, " +
@@ -198,6 +203,7 @@
"com_act_easy_photo p " +
"JOIN sys_user u on p.sponsor_id=u.user_id " +
"LEFT JOIN sys_user su on p.handler_id=su.user_id " +
+ "LEFT JOIN sys_user su1 on p.complete_id=su1.user_id " +
"LEFT JOIN com_act_easy_photo_user pu on p.id=pu.easy_photo_id " +
"WHERE p.del_tag = 0 and p.id=#{id}")
ComActEasyPhotoVO detailEasyPhoto(Long id);
@@ -301,15 +307,15 @@
"FROM com_act_easy_photo WHERE community_id = #{communityId} AND #{start} < create_at and create_at < #{end} ")
EastPhotoVO countByTime(@Param("start")String start, @Param("end")String end, @Param("nowDate")String nowDate, @Param("communityId")Long communityId);
- @Select("SELECT " +
- " count( id ) AS examineNum, " +
- " ( SELECT count( id ) FROM com_act_easy_photo WHERE `status` = 2 AND community_id = #{communityId} and del_tag = 0 ) AS verificationNum, " +
- " ( SELECT count( id ) FROM com_act_easy_photo WHERE `status` = 3 AND community_id = #{communityId} and del_tag = 0 ) AS rejectNum, " +
- " ( SELECT count( id ) FROM com_act_easy_photo WHERE `status` = 4 AND community_id = #{communityId} and del_tag = 0 ) AS completeNum " +
- "FROM " +
- " com_act_easy_photo " +
- "WHERE " +
- " `status` = 1 " +
- " AND community_id = #{communityId} and del_tag = 0")
+// @Select("SELECT " +
+// " count( id ) AS examineNum, " +
+// " ( SELECT count( id ) FROM com_act_easy_photo WHERE `status` = 2 AND community_id = #{communityId} and del_tag = 0 ) AS verificationNum, " +
+// " ( SELECT count( id ) FROM com_act_easy_photo WHERE `status` = 3 AND community_id = #{communityId} and del_tag = 0 ) AS rejectNum, " +
+// " ( SELECT count( id ) FROM com_act_easy_photo WHERE `status` = 4 AND community_id = #{communityId} and del_tag = 0 ) AS completeNum " +
+// "FROM " +
+// " com_act_easy_photo " +
+// "WHERE " +
+// " `status` = 1 " +
+// " AND community_id = #{communityId} and del_tag = 0")
ComActEasyPhotoStatisticsVO getEasyPhotoStatistics(@Param("communityId")Long communityId);
}
--
Gitblit v1.7.1