|
|
@@ -161,11 +161,11 @@ public class InviteRecordServiceImpl implements InviteRecordService {
|
|
|
*/
|
|
|
@Override
|
|
|
public List<Invitation> getCountGroupByDate(Long userUU, Long enUU, String year) {
|
|
|
- String sql = "select substr(time, -2) month,in_enuu enUU,count(1) count from(" +
|
|
|
+ String sql = "select substr(time, -2) month, time, in_enuu enUU,count(1) count from(" +
|
|
|
"select to_char(in_date, 'yyyy-mm') time,COALESCE(in_active,0),in_enuu from invitationrecords where in_enuu = " + enUU + ")" +
|
|
|
"where time like '%" + year + "%' group by time,in_enuu order by time";
|
|
|
List<Invitation> all = commonDao.query(sql, Invitation.class);
|
|
|
- String sql1 = "select substr(time, -2) month,in_enuu enUU,count(1) count from(" +
|
|
|
+ String sql1 = "select substr(time, -2) month, time ,in_enuu enUU,count(1) count from(" +
|
|
|
"select to_char(in_date, 'yyyy-mm') time,COALESCE(in_active,0),in_enuu from invitationrecords where in_enuu = " + enUU + " and COALESCE(in_active,0) = 1)" +
|
|
|
"where time like '%" + year + "%' group by time,in_enuu order by time";
|
|
|
List<Invitation> done = commonDao.query(sql1, Invitation.class);
|