|
|
@ -585,7 +585,10 @@ |
|
|
|
'act' AS contentType, |
|
|
|
IFNULL(ac2.CONTENT,'') AS firstPhoto, |
|
|
|
false AS isExpirat, |
|
|
|
false AS isChanged |
|
|
|
(case |
|
|
|
when ai.`STATUS`='published' and ai.IS_CHANGE='yes' then true |
|
|
|
else false |
|
|
|
end )as isChanged |
|
|
|
FROM group_act_info ai |
|
|
|
LEFT JOIN group_act_content ac2 ON ac2.GROUP_ACT_ID = ai.ID AND ac2.CONTENT_TYPE = 'img' AND ac2.DEL_FLAG = 0 AND ac2.SORT = 1 |
|
|
|
WHERE ai.DEL_FLAG = '0' |
|
|
@ -895,7 +898,10 @@ |
|
|
|
ai.`STATUS` AS status, |
|
|
|
'act' AS contentType, |
|
|
|
false AS isExpirat, |
|
|
|
'no' AS isChange, |
|
|
|
(case |
|
|
|
when ai.`STATUS`='published' and ai.IS_CHANGE='yes' then 'yes' |
|
|
|
else 'no' |
|
|
|
end )as isChange, |
|
|
|
IFNULL(ac2.CONTENT,'') AS firstPhoto |
|
|
|
FROM group_act_info ai |
|
|
|
LEFT JOIN group_act_content ac2 ON ac2.GROUP_ACT_ID = ai.ID AND ac2.CONTENT_TYPE = 'img' AND ac2.DEL_FLAG = 0 AND ac2.SORT = 1 |
|
|
|