|  | @ -3,7 +3,9 @@ package com.yihu.wlyy.web.data;
 | 
												
													
														
															|  | import com.yihu.wlyy.entity.organization.HospitalDept;
 |  | import com.yihu.wlyy.entity.organization.HospitalDept;
 | 
												
													
														
															|  | import com.yihu.wlyy.service.app.consult.ConsultTeamService;
 |  | import com.yihu.wlyy.service.app.consult.ConsultTeamService;
 | 
												
													
														
															|  | import com.yihu.wlyy.service.app.sign.FamilyContractService;
 |  | import com.yihu.wlyy.service.app.sign.FamilyContractService;
 | 
												
													
														
															|  | 
 |  | import com.yihu.wlyy.util.HttpUtil;
 | 
												
													
														
															|  | import com.yihu.wlyy.web.BaseController;
 |  | import com.yihu.wlyy.web.BaseController;
 | 
												
													
														
															|  | 
 |  | import com.yihu.wlyy.web.third.jkedu.service.EduArticleService;
 | 
												
													
														
															|  | import io.swagger.annotations.Api;
 |  | import io.swagger.annotations.Api;
 | 
												
													
														
															|  | import io.swagger.annotations.ApiOperation;
 |  | import io.swagger.annotations.ApiOperation;
 | 
												
													
														
															|  | import org.json.JSONArray;
 |  | import org.json.JSONArray;
 | 
												
											
												
													
														
															|  | @ -32,6 +34,11 @@ public class DataHandlingController extends BaseController {
 | 
												
													
														
															|  |     private ConsultTeamService consultTeamService;
 |  |     private ConsultTeamService consultTeamService;
 | 
												
													
														
															|  |     @Autowired
 |  |     @Autowired
 | 
												
													
														
															|  |     private DataHandingService dataHandingService;
 |  |     private DataHandingService dataHandingService;
 | 
												
													
														
															|  | 
 |  | 
 | 
												
													
														
															|  | 
 |  |     @Autowired
 | 
												
													
														
															|  | 
 |  |     private com.yihu.wlyy.util.HttpUtil HttpUtil;
 | 
												
													
														
															|  | 
 |  |     @Autowired
 | 
												
													
														
															|  | 
 |  |     private EduArticleService eduArticleService;
 | 
												
													
														
															|  |     /**
 |  |     /**
 | 
												
													
														
															|  |      * 生成签约表中的行政团队的code
 |  |      * 生成签约表中的行政团队的code
 | 
												
													
														
															|  |      */
 |  |      */
 | 
												
											
												
													
														
															|  | @ -91,4 +98,52 @@ public class DataHandlingController extends BaseController {
 | 
												
													
														
															|  |             return error(-1, e.getMessage());
 |  |             return error(-1, e.getMessage());
 | 
												
													
														
															|  |         }
 |  |         }
 | 
												
													
														
															|  |     }
 |  |     }
 | 
												
													
														
															|  | 
 |  | 
 | 
												
													
														
															|  | 
 |  |     @RequestMapping(value = "/getArticleListToNewDataBase",method = RequestMethod.POST)
 | 
												
													
														
															|  | 
 |  |     @ResponseBody
 | 
												
													
														
															|  | 
 |  |     @ApiOperation("文章列表转移")
 | 
												
													
														
															|  | 
 |  |     public String getArticleListToNewDataBase(){
 | 
												
													
														
															|  | 
 |  |         boolean flag = eduArticleService.getArticleListToNewDataBase();
 | 
												
													
														
															|  | 
 |  |         if (flag){
 | 
												
													
														
															|  | 
 |  |             return write(200,"数据转移成功!");
 | 
												
													
														
															|  | 
 |  |         }else{
 | 
												
													
														
															|  | 
 |  |             return write(0,"数据转移失败!");
 | 
												
													
														
															|  | 
 |  |         }
 | 
												
													
														
															|  | 
 |  |     }
 | 
												
													
														
															|  | 
 |  | 
 | 
												
													
														
															|  | 
 |  |     @RequestMapping(value = "/getArticleCollectToNewDataBase",method = RequestMethod.POST)
 | 
												
													
														
															|  | 
 |  |     @ResponseBody
 | 
												
													
														
															|  | 
 |  |     @ApiOperation("文章收藏转移")
 | 
												
													
														
															|  | 
 |  |     public String getArticleCollectToNewDataBase(){
 | 
												
													
														
															|  | 
 |  |         boolean flag = eduArticleService.getArticleCollectToNewDataBase();
 | 
												
													
														
															|  | 
 |  |         if (flag){
 | 
												
													
														
															|  | 
 |  |             return write(200,"数据转移成功!");
 | 
												
													
														
															|  | 
 |  |         }else{
 | 
												
													
														
															|  | 
 |  |             return write(0,"数据转移失败!");
 | 
												
													
														
															|  | 
 |  |         }
 | 
												
													
														
															|  | 
 |  |     }
 | 
												
													
														
															|  | 
 |  | 
 | 
												
													
														
															|  | 
 |  |     @RequestMapping(value = "/getArticleBehaviorToNewDataBase",method = RequestMethod.POST)
 | 
												
													
														
															|  | 
 |  |     @ResponseBody
 | 
												
													
														
															|  | 
 |  |     @ApiOperation("文章行为转移")
 | 
												
													
														
															|  | 
 |  |     public String getArticleBehaviorToNewDataBase(){
 | 
												
													
														
															|  | 
 |  |         boolean flag = eduArticleService.getArticleBehaviorToNewDataBase();
 | 
												
													
														
															|  | 
 |  |         if (flag){
 | 
												
													
														
															|  | 
 |  |             return write(200,"数据转移成功!");
 | 
												
													
														
															|  | 
 |  |         }else{
 | 
												
													
														
															|  | 
 |  |             return write(0,"数据转移失败!");
 | 
												
													
														
															|  | 
 |  |         }
 | 
												
													
														
															|  | 
 |  |     }
 | 
												
													
														
															|  | 
 |  | 
 | 
												
													
														
															|  | 
 |  |     @RequestMapping(value = "/getArticleSendToEs",method = RequestMethod.POST)
 | 
												
													
														
															|  | 
 |  |     @ResponseBody
 | 
												
													
														
															|  | 
 |  |     @ApiOperation("已发送文章列表转移Es")
 | 
												
													
														
															|  | 
 |  |     public String getArticleSendToEs(){
 | 
												
													
														
															|  | 
 |  |         boolean flag = eduArticleService.getArticleSendedListToEs();
 | 
												
													
														
															|  | 
 |  |         if (flag){
 | 
												
													
														
															|  | 
 |  |             return write(200,"数据转移成功!");
 | 
												
													
														
															|  | 
 |  |         }else{
 | 
												
													
														
															|  | 
 |  |             return write(0,"数据转移失败!");
 | 
												
													
														
															|  | 
 |  |         }
 | 
												
													
														
															|  | 
 |  |     }
 | 
												
													
														
															|  | }
 |  | }
 |