同步专业数据
This commit is contained in:
@@ -34,4 +34,11 @@ public class SyncDataController extends BaseController {
|
|||||||
iCphTeacherService.Usertb();
|
iCphTeacherService.Usertb();
|
||||||
return success();
|
return success();
|
||||||
}
|
}
|
||||||
|
//专业
|
||||||
|
@RequestMapping("/getSpecialtyInfoList")
|
||||||
|
public TableDataInfo getSpecialtyInfoList(){
|
||||||
|
startPage();
|
||||||
|
List<Map> list=syncDataService.getSpecialtyInfoList();
|
||||||
|
return getDataTable(list);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -5,4 +5,5 @@ import java.util.Map;
|
|||||||
|
|
||||||
public interface SyncDataMapper {
|
public interface SyncDataMapper {
|
||||||
public List<Map> getEmployEEInfoList();//教职工
|
public List<Map> getEmployEEInfoList();//教职工
|
||||||
|
public List<Map> getSpecialtyInfoList();//专业
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -5,4 +5,5 @@ import java.util.Map;
|
|||||||
|
|
||||||
public interface SyncDataService {
|
public interface SyncDataService {
|
||||||
List<Map> getEmployEEInfoList();//教职工
|
List<Map> getEmployEEInfoList();//教职工
|
||||||
|
List<Map> getSpecialtyInfoList();//专业
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,5 +1,7 @@
|
|||||||
package com.srs.comprehensive.service.impl;
|
package com.srs.comprehensive.service.impl;
|
||||||
|
|
||||||
|
import com.srs.common.annotation.DataSource;
|
||||||
|
import com.srs.common.enums.DataSourceType;
|
||||||
import com.srs.comprehensive.mapper.SyncDataMapper;
|
import com.srs.comprehensive.mapper.SyncDataMapper;
|
||||||
import com.srs.comprehensive.service.SyncDataService;
|
import com.srs.comprehensive.service.SyncDataService;
|
||||||
import org.springframework.beans.factory.annotation.Autowired;
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
@@ -16,4 +18,8 @@ public class SyncDataServiceImpl implements SyncDataService {
|
|||||||
public List<Map> getEmployEEInfoList() {
|
public List<Map> getEmployEEInfoList() {
|
||||||
return syncDataMapper.getEmployEEInfoList();
|
return syncDataMapper.getEmployEEInfoList();
|
||||||
}
|
}
|
||||||
|
@Override
|
||||||
|
public List<Map> getSpecialtyInfoList() {
|
||||||
|
return syncDataMapper.getSpecialtyInfoList();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -11,4 +11,8 @@
|
|||||||
END as xb,TBD.BMMC as ksmc,TBD.BMMC as yxmc,TBD.BMBH as ksh,TBA.ZGDQZTDM as zgzt from from_gxsdxyxxzx_teacher TBA LEFT JOIN from_gxsdxyxxzx_xzbm TBD ON TBA.SZBMBH=TBD.BMBH
|
END as xb,TBD.BMMC as ksmc,TBD.BMMC as yxmc,TBD.BMBH as ksh,TBA.ZGDQZTDM as zgzt from from_gxsdxyxxzx_teacher TBA LEFT JOIN from_gxsdxyxxzx_xzbm TBD ON TBA.SZBMBH=TBD.BMBH
|
||||||
WHERE TBA.ZGLBDM LIKE '1%'
|
WHERE TBA.ZGLBDM LIKE '1%'
|
||||||
</select>
|
</select>
|
||||||
|
<select id="getSpecialtyInfoList" resultType="java.util.Map">
|
||||||
|
select b.JXZYBH as zydm,b.JXZYJC as zyjc,b.JXZYMC as zymc,a.BMMC yxmc from from_gxsdxyxxzx_xzbm a left join from_gxsdxyxxzx_zyxx b on a.BMBH=b.JXZYSSYXBBH
|
||||||
|
where b.JXZYBH is not null
|
||||||
|
</select>
|
||||||
</mapper>
|
</mapper>
|
||||||
|
|||||||
Reference in New Issue
Block a user