|
@ -968,7 +968,7 @@ public class RehabilitationInfoService {
|
|
|
}
|
|
|
if (StringUtils.isBlank(status)) {
|
|
|
//看全部数据
|
|
|
filterSql += " AND (d.create_user = '" + doctorId + "' OR ISNULL( d.create_user ) ) " +
|
|
|
filterSql += " AND (d.create_user = '" + doctorId + "' OR q.plan_doctor='" + doctorId + "' OR ISNULL( d.create_user ) ) " +
|
|
|
" AND ( ISNULL( d.type ) OR d.type = 2 ) ORDER BY d.create_time DESC ";
|
|
|
detailSql += filterSql + limitSql;
|
|
|
countSql += filterSql;
|
|
@ -979,7 +979,7 @@ public class RehabilitationInfoService {
|
|
|
if (StringUtils.isNotBlank(status)) {
|
|
|
if ("0".equals(status)) {
|
|
|
//未下转的人
|
|
|
filterSql += " AND (d.create_user = '" + doctorId + "' OR ISNULL(d.create_user)) AND ( ISNULL( d.type ) OR d.type = 2 ) " +
|
|
|
filterSql += " AND (d.create_user = '" + doctorId + "' OR q.plan_doctor='" + doctorId + "' OR ISNULL(d.create_user)) AND ( ISNULL( d.type ) OR d.type = 2 ) " +
|
|
|
" and d.status='0' ";
|
|
|
filterSql += " ORDER BY d.create_time DESC ";
|
|
|
detailSql += filterSql + limitSql;
|
|
@ -990,7 +990,7 @@ public class RehabilitationInfoService {
|
|
|
}
|
|
|
if ("1".equals(status)) {
|
|
|
//待分配的人
|
|
|
filterSql += " AND (d.create_user = '" + doctorId + "' OR ISNULL( d.create_user) )AND ( ISNULL( d.type ) OR d.type = 2 ) " +
|
|
|
filterSql += " AND (d.create_user = '" + doctorId + "' OR q.plan_doctor='" + doctorId + "' OR ISNULL( d.create_user) )AND ( ISNULL( d.type ) OR d.type = 2 ) " +
|
|
|
" and d.status='1' ";
|
|
|
filterSql += " ORDER BY d.create_time DESC ";
|
|
|
detailSql += filterSql + limitSql;
|
|
@ -1002,7 +1002,7 @@ public class RehabilitationInfoService {
|
|
|
|
|
|
if ("7".equals(status)) {
|
|
|
//已经分配医生
|
|
|
filterSql += " AND ( d.create_user = '" + doctorId + "' OR ISNULL( d.create_user ) ) " +
|
|
|
filterSql += " AND ( d.create_user = '" + doctorId + "' OR q.plan_doctor='" + doctorId + "' OR ISNULL( d.create_user ) ) " +
|
|
|
" AND ( ISNULL( d.type ) OR d.type = 2 ) and d.status='7' ";
|
|
|
filterSql += " ORDER BY d.create_time DESC ";
|
|
|
detailSql += filterSql + limitSql;
|
|
@ -1296,7 +1296,7 @@ public class RehabilitationInfoService {
|
|
|
" LEFT JOIN wlyy_rehabilitation_plan_detail pd ON pd.plan_id = q.id " +
|
|
|
"WHERE " +
|
|
|
" 1 = 1 " +
|
|
|
" AND ( d.create_user = '" + doctorId + "' OR q.plan_doctor='" + doctorId + "' OR ISNULL( d.create_user ) or pd.doctor='" + doctorId + "' ) " +
|
|
|
" AND ( d.create_user = '" + doctorId + "' OR q.plan_doctor='" + doctorId + "' OR ISNULL( d.create_user ) ) " +
|
|
|
" AND ( ISNULL( d.type ) OR d.type = 2 ) " +
|
|
|
" GROUP BY d.`status`";
|
|
|
List<Map<String, Object>> list = jdbcTemplate.queryForList(sql);
|