提交 c6917e6c authored 作者: renjianyu's avatar renjianyu

--no commit message

上级 84fa2d64
......@@ -66,46 +66,46 @@ public interface VideoLibraryMapper extends BaseMapper<VideoLibrary> {
+"select departmentid,departmentName,"
+ "(select count(*) from sys_integral_team a where type =3 and a.departmentId = b.departmentId"
+ "<if test = '" + NOTBLANK + "(form.beginTime)'>"
+ "and s3.uploadTime &gt;= concat(#{form.beginTime}, ' 00:00:00' )"
+ "and a.uploadTime &gt;= concat(#{form.beginTime}, ' 00:00:00' )"
+ "</if>"
+ "<if test = '" + NOTBLANK + "(form.endTime)'>"
+ " and s3.uploadTime &lt;= concat(#{form.endTime}, ' 23:59:59')"
+ " and a.uploadTime &lt;= concat(#{form.endTime}, ' 23:59:59')"
+ "</if>"
+ "<if test='form.beginTime==null'>"
+ " and DATE_FORMAT( s3.uploadTime, '%Y%m' ) = DATE_FORMAT( CURDATE( ) , '%Y%m' )"
+ " and DATE_FORMAT( a.uploadTime, '%Y%m' ) = DATE_FORMAT( CURDATE( ) , '%Y%m' )"
+ "</if>"
+ ") doneCount,"
+ "(select count(*) from sys_integral_team a where type in(1,3) and a.departmentId = b.departmentId"
+ "<if test = '" + NOTBLANK + "(form.beginTime)'>"
+ "and s3.uploadTime &gt;= concat(#{form.beginTime}, ' 00:00:00' )"
+ "and a.uploadTime &gt;= concat(#{form.beginTime}, ' 00:00:00' )"
+ "</if>"
+ "<if test = '" + NOTBLANK + "(form.endTime)'>"
+ " and s3.uploadTime &lt;= concat(#{form.endTime}, ' 23:59:59')"
+ " and a.uploadTime &lt;= concat(#{form.endTime}, ' 23:59:59')"
+ "</if>"
+ "<if test='form.beginTime==null'>"
+ " and DATE_FORMAT( s3.uploadTime, '%Y%m' ) = DATE_FORMAT( CURDATE( ) , '%Y%m' )"
+ " and DATE_FORMAT( a.uploadTime, '%Y%m' ) = DATE_FORMAT( CURDATE( ) , '%Y%m' )"
+ "</if>"
+ ")videoCount,"
+ "(select count(*) from sys_integral_team a where type=2 and a.departmentId = b.departmentId"
+ "<if test = '" + NOTBLANK + "(form.beginTime)'>"
+ "and s3.uploadTime &gt;= concat(#{form.beginTime}, ' 00:00:00' )"
+ "and a.uploadTime &gt;= concat(#{form.beginTime}, ' 00:00:00' )"
+ "</if>"
+ "<if test = '" + NOTBLANK + "(form.endTime)'>"
+ " and s3.uploadTime &lt;= concat(#{form.endTime}, ' 23:59:59')"
+ " and a.uploadTime &lt;= concat(#{form.endTime}, ' 23:59:59')"
+ "</if>"
+ "<if test='form.beginTime==null'>"
+ " and DATE_FORMAT( s3.uploadTime, '%Y%m' ) = DATE_FORMAT( CURDATE( ) , '%Y%m' )"
+ " and DATE_FORMAT( a.uploadTime, '%Y%m' ) = DATE_FORMAT( CURDATE( ) , '%Y%m' )"
+ "</if>"
+ ") excellentVideo,"
+ "(select IFNULL(sum(number),0) from sys_integral_team a where a.departmentId = b.departmentId"
+ "<if test = '" + NOTBLANK + "(form.beginTime)'>"
+ "and s3.uploadTime &gt;= concat(#{form.beginTime}, ' 00:00:00' )"
+ "and a.uploadTime &gt;= concat(#{form.beginTime}, ' 00:00:00' )"
+ "</if>"
+ "<if test = '" + NOTBLANK + "(form.endTime)'>"
+ " and s3.uploadTime &lt;= concat(#{form.endTime}, ' 23:59:59')"
+ " and a.uploadTime &lt;= concat(#{form.endTime}, ' 23:59:59')"
+ "</if>"
+ "<if test='form.beginTime==null'>"
+ " and DATE_FORMAT( s3.uploadTime, '%Y%m' ) = DATE_FORMAT( CURDATE( ) , '%Y%m' )"
+ " and DATE_FORMAT( a.uploadTime, '%Y%m' ) = DATE_FORMAT( CURDATE( ) , '%Y%m' )"
+ "</if>"
+ ")integral "
+ " from sys_department b ORDER BY integral desc"
......@@ -115,46 +115,46 @@ public interface VideoLibraryMapper extends BaseMapper<VideoLibrary> {
+"select departmentid,departmentName,"
+ "(select count(*) from sys_integral_team a where type =3 and a.departmentId = b.departmentId"
+ "<if test = '" + NOTBLANK + "(form.beginTime)'>"
+ "and s3.uploadTime &gt;= concat(#{form.beginTime}, ' 00:00:00' )"
+ "and a.uploadTime &gt;= concat(#{form.beginTime}, ' 00:00:00' )"
+ "</if>"
+ "<if test = '" + NOTBLANK + "(form.endTime)'>"
+ " and s3.uploadTime &lt;= concat(#{form.endTime}, ' 23:59:59')"
+ " and a.uploadTime &lt;= concat(#{form.endTime}, ' 23:59:59')"
+ "</if>"
+ "<if test='form.beginTime==null'>"
+ " and YEAR(s3.uploadTime)=YEAR(NOW())"
+ " and YEAR(a.uploadTime)=YEAR(NOW())"
+ "</if>"
+ ") doneCount,"
+ "(select count(*) from sys_integral_team a where type in(1,3) and a.departmentId = b.departmentId"
+ "<if test = '" + NOTBLANK + "(form.beginTime)'>"
+ "and s3.uploadTime &gt;= concat(#{form.beginTime}, ' 00:00:00' )"
+ "and a.uploadTime &gt;= concat(#{form.beginTime}, ' 00:00:00' )"
+ "</if>"
+ "<if test = '" + NOTBLANK + "(form.endTime)'>"
+ " and s3.uploadTime &lt;= concat(#{form.endTime}, ' 23:59:59')"
+ " and a.uploadTime &lt;= concat(#{form.endTime}, ' 23:59:59')"
+ "</if>"
+ "<if test='form.beginTime==null'>"
+ " and YEAR(s3.uploadTime)=YEAR(NOW())"
+ " and YEAR(a.uploadTime)=YEAR(NOW())"
+ "</if>"
+ ")videoCount,"
+ "(select count(*) from sys_integral_team a where type=2 and a.departmentId = b.departmentId"
+ "<if test = '" + NOTBLANK + "(form.beginTime)'>"
+ "and s3.uploadTime &gt;= concat(#{form.beginTime}, ' 00:00:00' )"
+ "and a.uploadTime &gt;= concat(#{form.beginTime}, ' 00:00:00' )"
+ "</if>"
+ "<if test = '" + NOTBLANK + "(form.endTime)'>"
+ " and s3.uploadTime &lt;= concat(#{form.endTime}, ' 23:59:59')"
+ " and a.uploadTime &lt;= concat(#{form.endTime}, ' 23:59:59')"
+ "</if>"
+ "<if test='form.beginTime==null'>"
+ " and YEAR(s3.uploadTime)=YEAR(NOW())"
+ " and YEAR(a.uploadTime)=YEAR(NOW())"
+ "</if>"
+ ") excellentVideo,"
+ "(select IFNULL(sum(number),0) from sys_integral_team a where a.departmentId = b.departmentId"
+ "<if test = '" + NOTBLANK + "(form.beginTime)'>"
+ "and s3.uploadTime &gt;= concat(#{form.beginTime}, ' 00:00:00' )"
+ "and a.uploadTime &gt;= concat(#{form.beginTime}, ' 00:00:00' )"
+ "</if>"
+ "<if test = '" + NOTBLANK + "(form.endTime)'>"
+ " and s3.uploadTime &lt;= concat(#{form.endTime}, ' 23:59:59')"
+ " and a.uploadTime &lt;= concat(#{form.endTime}, ' 23:59:59')"
+ "</if>"
+ "<if test='form.beginTime==null'>"
+ " and YEAR(s3.uploadTime)=YEAR(NOW())"
+ " and YEAR(a.uploadTime)=YEAR(NOW())"
+ "</if>"
+ ")integral "
+ " from sys_department b ORDER BY integral desc"
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论