|
@ -41,7 +41,6 @@ import org.elasticsearch.search.builder.SearchSourceBuilder;
|
|
|
import org.springframework.beans.BeanUtils;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.beans.factory.annotation.Value;
|
|
|
import org.springframework.data.annotation.Transient;
|
|
|
import org.springframework.data.domain.PageRequest;
|
|
|
import org.springframework.jdbc.core.BeanPropertyRowMapper;
|
|
|
import org.springframework.jdbc.core.JdbcTemplate;
|
|
@ -516,7 +515,7 @@ public class JMJkEduArticleService extends BaseService {
|
|
|
//全选的时候前端传0,后台要去数据库再查询一次
|
|
|
|
|
|
String tableSql = " select p.code from wlyy_sign_family w ,wlyy_admin_team t, dm_hospital h ";
|
|
|
String whereSql = " where w.status>0 and w.admin_team_code=t.id and t.org_code=h.code ";
|
|
|
String whereSql = " where w.status>0 and w.expenses_status=1 and w.admin_team_code=t.id and t.org_code=h.code ";
|
|
|
|
|
|
//通过登录的角色区域权限 限制所属患者条件
|
|
|
|
|
@ -594,7 +593,6 @@ public class JMJkEduArticleService extends BaseService {
|
|
|
}
|
|
|
groupPatient = jdbcTemplate.queryForList(sql, String.class);
|
|
|
}else{
|
|
|
|
|
|
groupPatient = jdbcTemplate.queryForList(tableSql + whereSql, String.class);
|
|
|
}
|
|
|
patientSet.addAll(groupPatient);
|