...
|
...
|
@@ -43,6 +43,7 @@ public class GrassArticleListener extends AbstractMqListener<GrassArticle> { |
|
|
private static final Integer CHECK_FAILED = 3;
|
|
|
private static final Integer DELETE = 2;
|
|
|
private static final Integer DRAFT = 0;
|
|
|
private static final Integer DEFAULT_STATUS = 1;
|
|
|
|
|
|
@Override
|
|
|
protected void deleteData(GrassArticle sourceObject, Object checkResult) throws Exception {
|
...
|
...
|
@@ -185,6 +186,11 @@ public class GrassArticleListener extends AbstractMqListener<GrassArticle> { |
|
|
case 2:
|
|
|
targetObject.setAuditStatus(CHECK_FAILED);
|
|
|
break;
|
|
|
default:
|
|
|
targetObject.setAuditStatus(DEFAULT_STATUS);
|
|
|
break;
|
|
|
}
|
|
|
switch (sourceObject.getAuthStatus()) {
|
|
|
case 3:
|
|
|
// 数据库里默认为正常状态 1
|
|
|
targetObject.setStatus(DELETE);
|
...
|
...
|
@@ -192,6 +198,9 @@ public class GrassArticleListener extends AbstractMqListener<GrassArticle> { |
|
|
case 9:
|
|
|
targetObject.setStatus(DRAFT);
|
|
|
break;
|
|
|
default:
|
|
|
targetObject.setStatus(DEFAULT_STATUS);
|
|
|
break;
|
|
|
}
|
|
|
targetObject.setPublishTime(sourceObject.getCreateTime());
|
|
|
}
|
...
|
...
|
|