Browse Source

提交新闻、政策修改

anderx 7 years ago
parent
commit
3e70ff7e2c

+ 9 - 1
src/main/java/com/goafanti/news/controller/AdminPolicyApiController.java

@@ -141,8 +141,16 @@ public class AdminPolicyApiController extends BaseApiController {
 				if(result.getError().size()>0) {
 					return result;
 				}
-				if(policy.getAuditStatus()!=null &&policy.getAuditStatus() == 2) {
+				if(policy.getAuditStatus()!=null ) {
 					policy.setReleaseDate(new Date());
+					if(policy.getAuditStatus() ==2){
+						policy.setReleaseDate(new Date());
+						policyService.addJtCollectSearch(policy);
+						}
+					if(policy.getAuditStatus()==4) {
+						policyService.updateJtCollectSearch(policy);
+					}
+					
 				}
 				policy.setEditTime(new Date());