|
@ -2991,16 +2991,16 @@ public class FamilyContractService extends BaseService {
|
|
|
}else {
|
|
|
//如果不一致 查看医生团队
|
|
|
sf.setRenewFlag("2");
|
|
|
String tcSql = "SELECT t.id FROM wlyy_admin_team t WHERE t.leader_code ='"+doctor+"'";
|
|
|
List<Map<String ,Object>> ids = jdbcTemplate.queryForList(tcSql);
|
|
|
if(ids!=null&&ids.size()>0){
|
|
|
Integer id = (Integer)ids.get(0).get("id");
|
|
|
Long lid = id.longValue();
|
|
|
sf.setAdminTeamId(lid);
|
|
|
}else{
|
|
|
//未找到团队信息
|
|
|
return -5;
|
|
|
}
|
|
|
// String tcSql = "SELECT t.id FROM wlyy_admin_team t WHERE t.leader_code ='"+doctor+"'";
|
|
|
// List<Map<String ,Object>> ids = jdbcTemplate.queryForList(tcSql);
|
|
|
// if(ids!=null&&ids.size()>0){
|
|
|
// Integer id = (Integer)ids.get(0).get("id");
|
|
|
// Long lid = id.longValue();
|
|
|
// sf.setAdminTeamId(lid);
|
|
|
// }else{
|
|
|
// //未找到团队信息
|
|
|
// return -5;
|
|
|
// }
|
|
|
//新建咨询团队组
|
|
|
DoctorTeam team = new DoctorTeam();
|
|
|
String code = getCode();
|
|
@ -3176,16 +3176,16 @@ public class FamilyContractService extends BaseService {
|
|
|
sf.setAdminTeamId(c.longValue());
|
|
|
}else {
|
|
|
//如果不一致 查看医生团队
|
|
|
String tcSql = "SELECT t.id FROM wlyy_admin_team t WHERE t.leader_code ='"+doctor+"'";
|
|
|
List<Map<String ,Object>> ids = jdbcTemplate.queryForList(tcSql);
|
|
|
if(ids!=null&&ids.size()>0){
|
|
|
Integer id = (Integer)ids.get(0).get("id");
|
|
|
Long lid = id.longValue();
|
|
|
sf.setAdminTeamId(lid);
|
|
|
}else{
|
|
|
//未找到团队信息
|
|
|
return -5;
|
|
|
}
|
|
|
// String tcSql = "SELECT t.id FROM wlyy_admin_team t WHERE t.leader_code ='"+doctor+"'";
|
|
|
// List<Map<String ,Object>> ids = jdbcTemplate.queryForList(tcSql);
|
|
|
// if(ids!=null&&ids.size()>0){
|
|
|
// Integer id = (Integer)ids.get(0).get("id");
|
|
|
// Long lid = id.longValue();
|
|
|
// sf.setAdminTeamId(lid);
|
|
|
// }else{
|
|
|
// //未找到团队信息
|
|
|
// return -5;
|
|
|
// }
|
|
|
//新建咨询团队组
|
|
|
DoctorTeam team = new DoctorTeam();
|
|
|
String code = getCode();
|