|
@ -1,7 +1,9 @@
|
|
package com.yihu.wlyy.service.specialist;
|
|
package com.yihu.wlyy.service.specialist;
|
|
|
|
|
|
|
|
import com.yihu.wlyy.entity.doctor.team.admin.AdminTeam;
|
|
import com.yihu.wlyy.entity.doctor.team.sign.SignPatientLabel;
|
|
import com.yihu.wlyy.entity.doctor.team.sign.SignPatientLabel;
|
|
import com.yihu.wlyy.entity.doctor.team.sign.SignPatientLabelInfo;
|
|
import com.yihu.wlyy.entity.doctor.team.sign.SignPatientLabelInfo;
|
|
|
|
import com.yihu.wlyy.repository.doctor.DoctorAdminTeamDao;
|
|
import com.yihu.wlyy.repository.doctor.DoctorDao;
|
|
import com.yihu.wlyy.repository.doctor.DoctorDao;
|
|
import com.yihu.wlyy.repository.doctor.SignPatientLabelDao;
|
|
import com.yihu.wlyy.repository.doctor.SignPatientLabelDao;
|
|
import com.yihu.wlyy.repository.doctor.SignPatientLabelInfoDao;
|
|
import com.yihu.wlyy.repository.doctor.SignPatientLabelInfoDao;
|
|
@ -13,20 +15,24 @@ import org.apache.commons.collections.map.HashedMap;
|
|
import org.apache.commons.lang3.StringUtils;
|
|
import org.apache.commons.lang3.StringUtils;
|
|
import org.json.JSONArray;
|
|
import org.json.JSONArray;
|
|
import org.json.JSONObject;
|
|
import org.json.JSONObject;
|
|
|
|
import org.slf4j.LoggerFactory;
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
import org.springframework.beans.factory.annotation.Value;
|
|
import org.springframework.beans.factory.annotation.Value;
|
|
import org.springframework.jdbc.core.JdbcTemplate;
|
|
import org.springframework.jdbc.core.JdbcTemplate;
|
|
import org.springframework.stereotype.Service;
|
|
import org.springframework.stereotype.Service;
|
|
|
|
import org.springframework.transaction.annotation.Transactional;
|
|
|
|
|
|
import java.util.ArrayList;
|
|
import java.util.ArrayList;
|
|
import java.util.Date;
|
|
import java.util.Date;
|
|
import java.util.List;
|
|
import java.util.List;
|
|
import java.util.Map;
|
|
import java.util.Map;
|
|
|
|
import java.util.logging.Logger;
|
|
|
|
|
|
/**
|
|
/**
|
|
* Created by Trick on 2018/5/31.
|
|
* Created by Trick on 2018/5/31.
|
|
*/
|
|
*/
|
|
@Service
|
|
@Service
|
|
|
|
@Transactional
|
|
public class SpecialistService extends BaseService {
|
|
public class SpecialistService extends BaseService {
|
|
|
|
|
|
@Autowired
|
|
@Autowired
|
|
@ -39,6 +45,8 @@ public class SpecialistService extends BaseService {
|
|
private JdbcTemplate jdbcTemplate;
|
|
private JdbcTemplate jdbcTemplate;
|
|
@Value("${specialist.url}")
|
|
@Value("${specialist.url}")
|
|
private String specialistUrl;
|
|
private String specialistUrl;
|
|
|
|
@Autowired
|
|
|
|
private DoctorAdminTeamDao doctorAdminTeamDao;
|
|
|
|
|
|
public String setPatientLabelInfo(List<SignPatientLabelInfo> list){
|
|
public String setPatientLabelInfo(List<SignPatientLabelInfo> list){
|
|
if(list!=null&&list.size()>0){
|
|
if(list!=null&&list.size()>0){
|
|
@ -204,7 +212,14 @@ public class SpecialistService extends BaseService {
|
|
return null;
|
|
return null;
|
|
}
|
|
}
|
|
|
|
|
|
public List<Map<String,Object>> findDoctorTeamMenmber(String doctor){
|
|
|
|
|
|
public Map<String,Object> findDoctorTeamMenmber(String doctor){
|
|
|
|
|
|
|
|
Map<String,Object> rs = new HashedMap();
|
|
|
|
|
|
|
|
AdminTeam adminTeam = doctorAdminTeamDao.findByLeaderCode(doctor);
|
|
|
|
|
|
|
|
rs.put("adminTeam",adminTeam);
|
|
|
|
|
|
String sql = "SELECT " +
|
|
String sql = "SELECT " +
|
|
" d.`code`, " +
|
|
" d.`code`, " +
|
|
" d. name, " +
|
|
" d. name, " +
|
|
@ -228,7 +243,9 @@ public class SpecialistService extends BaseService {
|
|
" )";
|
|
" )";
|
|
List<Map<String,Object>> list = jdbcTemplate.queryForList(sql);
|
|
List<Map<String,Object>> list = jdbcTemplate.queryForList(sql);
|
|
|
|
|
|
return list;
|
|
|
|
|
|
rs.put("member",list);
|
|
|
|
|
|
|
|
return rs;
|
|
}
|
|
}
|
|
|
|
|
|
public List<Map<String,Object>> getDoctorInHospital(String doctor,String name,Integer page,Integer size){
|
|
public List<Map<String,Object>> getDoctorInHospital(String doctor,String name,Integer page,Integer size){
|