diff --git a/epmet-module/epmet-point/epmet-point-server/src/main/resources/mapper/UserPointActionLogDao.xml b/epmet-module/epmet-point/epmet-point-server/src/main/resources/mapper/UserPointActionLogDao.xml index 51740cf037..9797bd676f 100644 --- a/epmet-module/epmet-point/epmet-point-server/src/main/resources/mapper/UserPointActionLogDao.xml +++ b/epmet-module/epmet-point/epmet-point-server/src/main/resources/mapper/UserPointActionLogDao.xml @@ -179,14 +179,22 @@ AND SOURCE_TYPE = #{type} - AND DATE_FORMAT(CREATED_TIME,'%Y') = #{startDate} + + AND DATE_FORMAT(CREATED_TIME,'%Y') = #{startDate} + - AND DATE_FORMAT(CREATED_TIME,'%Y%m') = #{startDate} + + AND DATE_FORMAT(CREATED_TIME,'%Y%m') = #{startDate} + - AND DATE_FORMAT(CREATED_TIME,'%Y%m') >= #{startDate} - AND DATE_FORMAT(CREATED_TIME,'%Y%m') <= #{endDate} + + AND DATE_FORMAT(CREATED_TIME,'%Y%m') >= #{startDate} + + + AND DATE_FORMAT(CREATED_TIME,'%Y%m') <= #{endDate} + ORDER BY CREATED_TIME DESC