| | |
| | | "FROM\n" + |
| | | "com_pb_activity a\n" + |
| | | "LEFT JOIN com_pb_activity_member m ON a.id = m.activity_id\n" + |
| | | "WHERE a.`status` in (3,4) and DATEDIFF(SYSDATE(),a.enroll_time_end)>=0\n" + |
| | | "WHERE a.`status` in (3,4) and TIMESTAMPDIFF(HOUR,SYSDATE(),a.enroll_time_end)<=0\n" + |
| | | "GROUP BY a.id)t where t.num<t.participation_lowest_num") |
| | | List<Long> selectTimedTaskPartyBuildingActivity(); |
| | | |
| | |
| | | "</script>") |
| | | int updateBatchIds(@Param("ids") List<Long> ids); |
| | | |
| | | @Update("update com_pb_activity set status=2 where `status`=1 and DATEDIFF(SYSDATE(),release_time)>=0") |
| | | @Update("update com_pb_activity set status=2 where `status`=1 and TIMESTAMPDIFF(HOUR,SYSDATE(),release_time)<=0") |
| | | int updateStatusToNotBegin(); |
| | | |
| | | @Update("update com_pb_activity set status=3 where `status`=2 and DATEDIFF(SYSDATE(),enroll_time_begin)>=0") |
| | | @Update("update com_pb_activity set status=3 where `status`=2 and TIMESTAMPDIFF(HOUR,SYSDATE(),enroll_time_begin)<=0") |
| | | int updateStatusToSign(); |
| | | |
| | | @Update("update com_pb_activity set status=(if(DATEDIFF(SYSDATE(),activity_time_end)>=0,5,4)) where `status`=3 and DATEDIFF(SYSDATE(),activity_time_begin)>=0") |
| | | @Update("update com_pb_activity set status=(if(TIMESTAMPDIFF(HOUR,SYSDATE(),activity_time_end)<=0,5,4)) where `status`=3 and TIMESTAMPDIFF(HOUR,SYSDATE(),activity_time_begin)<=0") |
| | | int updateStatusToActiveOrEnd(); |
| | | } |