|
|
@ -29,8 +29,21 @@ |
|
|
|
dc.CONTENT, |
|
|
|
dc.CONTENT_TYPE, |
|
|
|
dc.ORDER_NUM, |
|
|
|
dc.AUDIT_STATUS, |
|
|
|
dc.AUDIT_REASON |
|
|
|
(case |
|
|
|
when dc.AUDIT_STATUS is null then "" |
|
|
|
when LENGTH(dc.AUDIT_STATUS)<=1 THEN "" |
|
|
|
WHEN DC.AUDIT_STATUS="null" then "" |
|
|
|
else dc.AUDIT_STATUS |
|
|
|
end ) as AUDIT_STATUS, |
|
|
|
dc.AUDIT_STATUS as "AUDIT_STATUS原来的值", |
|
|
|
( |
|
|
|
CASE WHEN dc.AUDIT_REASON IS NULL THEN "" |
|
|
|
WHEN dc.AUDIT_REASON<=1 THEN "" |
|
|
|
WHEN dc.AUDIT_REASON="null" then "" |
|
|
|
else dc.AUDIT_REASON |
|
|
|
end |
|
|
|
)as AUDIT_REASON, |
|
|
|
dc.AUDIT_REASON as "AUDIT_REASON原来的值" |
|
|
|
FROM |
|
|
|
draft_content dc |
|
|
|
WHERE |
|
|
@ -45,13 +58,51 @@ |
|
|
|
SELECT |
|
|
|
id AS DRAFT_ID, |
|
|
|
IS_TOP, |
|
|
|
PUBLISHER_ID AS PUBLISHER, |
|
|
|
PUBLISHER_NAME, |
|
|
|
PUBLISH_DATE, |
|
|
|
( |
|
|
|
CASE WHEN PUBLISHER_ID IS NULL THEN "" |
|
|
|
WHEN LENGTH(PUBLISHER_ID)<=1 THEN "" |
|
|
|
when PUBLISHER_ID="null" then "" |
|
|
|
ELSE PUBLISHER_ID |
|
|
|
END |
|
|
|
) AS PUBLISHER, |
|
|
|
PUBLISHER_ID as "PUBLISHER_ID原来的值", |
|
|
|
( |
|
|
|
case when PUBLISHER_NAME is NULL THEN "" |
|
|
|
when LENGTH(PUBLISHER_NAME)<=1 THEN "" |
|
|
|
when PUBLISHER_NAME="null" then "" |
|
|
|
ELSE PUBLISHER_NAME |
|
|
|
END |
|
|
|
)as PUBLISHER_NAME, |
|
|
|
PUBLISHER_NAME as "PUBLISHER_NAME原来的值", |
|
|
|
(CASE |
|
|
|
WHEN PUBLISH_DATE IS NULL THEN CURDATE() |
|
|
|
ELSE PUBLISH_DATE |
|
|
|
END )AS PUBLISH_DATE, |
|
|
|
TITLE, |
|
|
|
PUBLISH_RANGE_DESC, |
|
|
|
PUBLISHER_TYPE, |
|
|
|
TAGS |
|
|
|
( |
|
|
|
CASE WHEN PUBLISH_RANGE_DESC IS NULL THEN "" |
|
|
|
WHEN LENGTH(PUBLISH_RANGE_DESC)<=1 THEN "" |
|
|
|
when PUBLISH_RANGE_DESC="null" then "" |
|
|
|
ELSE PUBLISH_RANGE_DESC |
|
|
|
END |
|
|
|
)AS PUBLISH_RANGE_DESC, |
|
|
|
PUBLISH_RANGE_DESC as "PUBLISH_RANGE_DESC原来的值", |
|
|
|
( |
|
|
|
CASE WHEN PUBLISHER_TYPE IS NULL THEN "" |
|
|
|
WHEN LENGTH(PUBLISHER_TYPE) <=1 THEN "" |
|
|
|
when PUBLISHER_TYPE="null" then "" |
|
|
|
ELSE PUBLISHER_TYPE |
|
|
|
END |
|
|
|
)AS PUBLISHER_TYPE, |
|
|
|
PUBLISHER_TYPE as "PUBLISHER_TYPE原来的值", |
|
|
|
( |
|
|
|
CASE when TAGS IS NULL THEN "" |
|
|
|
WHEN LENGTH(TAGS)<=1 THEN "" |
|
|
|
when TAGS="null" then "" |
|
|
|
ELSE TAGS |
|
|
|
END |
|
|
|
)TAGS, |
|
|
|
TAGS as "TAGS原来的值" |
|
|
|
FROM |
|
|
|
draft |
|
|
|
WHERE |
|
|
|