重新同步教职工数据

This commit is contained in:
2025-12-23 17:00:35 +08:00
parent 9564e77ac8
commit f328cf9109
4 changed files with 22 additions and 7 deletions

View File

@@ -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();
}
}