重新同步教职工数据
This commit is contained in:
@@ -144,7 +144,7 @@ public class CphSqlServerDataController extends BaseController {
|
|||||||
List<Map> list=sqlServerDataService.getBZRClassInfoList();
|
List<Map> list=sqlServerDataService.getBZRClassInfoList();
|
||||||
return success(list);
|
return success(list);
|
||||||
}
|
}
|
||||||
//辅导员
|
//教职工
|
||||||
@RequestMapping("/getEmployEEInfoList")
|
@RequestMapping("/getEmployEEInfoList")
|
||||||
public AjaxResult getEmployEEInfoList(){
|
public AjaxResult getEmployEEInfoList(){
|
||||||
//startPage();
|
//startPage();
|
||||||
|
|||||||
@@ -0,0 +1,26 @@
|
|||||||
|
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.SyncDataService;
|
||||||
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
|
import org.springframework.web.bind.annotation.GetMapping;
|
||||||
|
import org.springframework.web.bind.annotation.RequestMapping;
|
||||||
|
import org.springframework.web.bind.annotation.RestController;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
import java.util.Map;
|
||||||
|
|
||||||
|
@RestController
|
||||||
|
@RequestMapping("/syncdata")
|
||||||
|
public class SyncDataController extends BaseController {
|
||||||
|
@Autowired
|
||||||
|
private SyncDataService syncDataService;
|
||||||
|
@GetMapping("/getEmployEEInfoList")
|
||||||
|
public TableDataInfo getEmployEEInfoList(){
|
||||||
|
startPage();
|
||||||
|
List<Map> list=syncDataService.getEmployEEInfoList();
|
||||||
|
return getDataTable(list);
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,8 @@
|
|||||||
|
package com.srs.comprehensive.mapper;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
import java.util.Map;
|
||||||
|
|
||||||
|
public interface SyncDataMapper {
|
||||||
|
public List<Map> getEmployEEInfoList();//教职工
|
||||||
|
}
|
||||||
@@ -36,7 +36,7 @@ public interface CphSqlServerDataService {
|
|||||||
|
|
||||||
public List<Map> getBZRClassInfoList();//班级辅导员
|
public List<Map> getBZRClassInfoList();//班级辅导员
|
||||||
|
|
||||||
List<Map> getEmployEEInfoList();//辅导员
|
List<Map> getEmployEEInfoList();//教职工
|
||||||
|
|
||||||
|
|
||||||
public String gets(Long njid);
|
public String gets(Long njid);
|
||||||
|
|||||||
@@ -0,0 +1,8 @@
|
|||||||
|
package com.srs.comprehensive.service;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
import java.util.Map;
|
||||||
|
|
||||||
|
public interface SyncDataService {
|
||||||
|
List<Map> getEmployEEInfoList();//教职工
|
||||||
|
}
|
||||||
@@ -0,0 +1,19 @@
|
|||||||
|
package com.srs.comprehensive.service.impl;
|
||||||
|
|
||||||
|
import com.srs.comprehensive.mapper.SyncDataMapper;
|
||||||
|
import com.srs.comprehensive.service.SyncDataService;
|
||||||
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
|
import org.springframework.stereotype.Service;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
import java.util.Map;
|
||||||
|
|
||||||
|
@Service
|
||||||
|
public class SyncDataServiceImpl implements SyncDataService {
|
||||||
|
@Autowired
|
||||||
|
private SyncDataMapper syncDataMapper;
|
||||||
|
@Override
|
||||||
|
public List<Map> getEmployEEInfoList() {
|
||||||
|
return syncDataMapper.getEmployEEInfoList();
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,13 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8" ?>
|
||||||
|
<!DOCTYPE mapper
|
||||||
|
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||||
|
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||||
|
<mapper namespace="com.srs.comprehensive.mapper.SyncDataMapper">
|
||||||
|
<select id="getEmployEEInfoList" resultType="java.util.Map">
|
||||||
|
SELECT TBA.GH as zgh,TBA.XM as xm,CASE
|
||||||
|
WHEN XBDM = 1 THEN '男'
|
||||||
|
WHEN XBDM = 2 THEN '女'
|
||||||
|
ELSE '未知' -- 可选:添加默认值,避免NULL
|
||||||
|
END as xb,TBD.BMMC as ksmc,TBD.BMMC as yxmc from from_gxsdxyxxzx_teacher TBA LEFT JOIN from_gxsdxyxxzx_xzbm TBD ON TBA.SZBMBH=TBD.BMBH
|
||||||
|
</select>
|
||||||
|
</mapper>
|
||||||
Reference in New Issue
Block a user