重新同步教职工数据
This commit is contained in:
@@ -3,6 +3,7 @@ package com.srs.web.controller.comprehensive;
|
||||
import com.srs.common.core.controller.BaseController;
|
||||
import com.srs.common.core.domain.AjaxResult;
|
||||
import com.srs.common.core.page.TableDataInfo;
|
||||
import com.srs.comprehensive.service.ICphTeacherService;
|
||||
import com.srs.comprehensive.service.SyncDataService;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
@@ -17,10 +18,20 @@ import java.util.Map;
|
||||
public class SyncDataController extends BaseController {
|
||||
@Autowired
|
||||
private SyncDataService syncDataService;
|
||||
@GetMapping("/getEmployEEInfoList")
|
||||
@Autowired
|
||||
private ICphTeacherService iCphTeacherService;
|
||||
@RequestMapping("/getEmployEEInfoList")
|
||||
public TableDataInfo getEmployEEInfoList(){
|
||||
startPage();
|
||||
List<Map> list=syncDataService.getEmployEEInfoList();
|
||||
return getDataTable(list);
|
||||
}
|
||||
//同步教职工
|
||||
@RequestMapping("/synchronousEmployEEInfoList")
|
||||
public AjaxResult synchronousEmployEEInfoList(){
|
||||
List<Map> list=syncDataService.getEmployEEInfoList();
|
||||
iCphTeacherService.sqlserverSynchronousMYSQL(list);//同步教职工
|
||||
//iCphTeacherService.Usertb();
|
||||
return success();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user