同步专业数据修改

This commit is contained in:
2025-12-25 17:35:15 +08:00
parent e13af56d7f
commit 83f0751f5a
5 changed files with 15 additions and 9 deletions

View File

@@ -7,6 +7,7 @@ import com.srs.comprehensive.service.ICphTeacherService;
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;
import org.springframework.web.bind.annotation.GetMapping; import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController; import org.springframework.web.bind.annotation.RestController;
@@ -36,9 +37,9 @@ public class SyncDataController extends BaseController {
} }
//专业 //专业
@RequestMapping("/getSpecialtyInfoList") @RequestMapping("/getSpecialtyInfoList")
public TableDataInfo getSpecialtyInfoList(){ public TableDataInfo getSpecialtyInfoList(String zydm){
startPage(); startPage();
List<Map> list=syncDataService.getSpecialtyInfoList(); List<Map> list=syncDataService.getSpecialtyInfoList(zydm);
return getDataTable(list); return getDataTable(list);
} }
} }

View File

@@ -5,5 +5,5 @@ import java.util.Map;
public interface SyncDataMapper { public interface SyncDataMapper {
public List<Map> getEmployEEInfoList();//教职工 public List<Map> getEmployEEInfoList();//教职工
public List<Map> getSpecialtyInfoList();//专业 public List<Map> getSpecialtyInfoList(String zydm);//专业
} }

View File

@@ -5,5 +5,6 @@ import java.util.Map;
public interface SyncDataService { public interface SyncDataService {
List<Map> getEmployEEInfoList();//教职工 List<Map> getEmployEEInfoList();//教职工
List<Map> getSpecialtyInfoList();//专业 List<Map> getSpecialtyInfoList(String zydm);//专业
} }

View File

@@ -19,7 +19,8 @@ public class SyncDataServiceImpl implements SyncDataService {
return syncDataMapper.getEmployEEInfoList(); return syncDataMapper.getEmployEEInfoList();
} }
@Override @Override
public List<Map> getSpecialtyInfoList() { public List<Map> getSpecialtyInfoList(String zydm) {
return syncDataMapper.getSpecialtyInfoList(); return syncDataMapper.getSpecialtyInfoList(zydm);
} }
} }

View File

@@ -11,8 +11,11 @@
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 id="getSpecialtyInfoList" resultType="java.util.Map" parameterType="String">
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 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 <where>
</select> b.JXZYBH is not null
<if test="zydm != null and zydm!= '' ">and b.JXZYBH=#{zydm}</if>
</where>
</select>
</mapper> </mapper>