|
@ -164,7 +164,7 @@ |
|
|
when <![CDATA[ DATE_FORMAT(actInfo.ACT_END_TIME,'%Y-%m-%d %H:%i:%s') < ]]> #{timestamp} |
|
|
when <![CDATA[ DATE_FORMAT(actInfo.ACT_END_TIME,'%Y-%m-%d %H:%i:%s') < ]]> #{timestamp} |
|
|
then '4' |
|
|
then '4' |
|
|
end as actCurrentState, |
|
|
end as actCurrentState, |
|
|
IF(relation.USER_ID = #{userId},'1','0') as signupFlag |
|
|
IF(relation.USER_ID = #{userId},'1','0') as signupFlag,actInfo.CREATED_TIME |
|
|
FROM |
|
|
FROM |
|
|
epdc_act_info actInfo |
|
|
epdc_act_info actInfo |
|
|
left join epdc_act_user_relation relation on relation.DEL_FLAG = '0' |
|
|
left join epdc_act_user_relation relation on relation.DEL_FLAG = '0' |
|
@ -182,7 +182,7 @@ |
|
|
<![CDATA[ AND DATE_FORMAT(actInfo.ACT_END_TIME,'%Y-%m-%d %H:%i:%s') <= ]]> #{timestamp} |
|
|
<![CDATA[ AND DATE_FORMAT(actInfo.ACT_END_TIME,'%Y-%m-%d %H:%i:%s') <= ]]> #{timestamp} |
|
|
</if> |
|
|
</if> |
|
|
) temp |
|
|
) temp |
|
|
ORDER BY temp.actCurrentState ASC |
|
|
ORDER BY temp.actCurrentState ASC,temp.CREATED_TIME desc |
|
|
<if test='actType != null and actType != "" and actType == "0"'>,temp.PUBLISH_TIME DESC</if> |
|
|
<if test='actType != null and actType != "" and actType == "0"'>,temp.PUBLISH_TIME DESC</if> |
|
|
<if test='actType != null and actType != "" and actType == "1"'>,temp.ACT_START_TIME ASC</if> |
|
|
<if test='actType != null and actType != "" and actType == "1"'>,temp.ACT_START_TIME ASC</if> |
|
|
LIMIT #{pageIndex},#{pageSize} |
|
|
LIMIT #{pageIndex},#{pageSize} |
|
|