|
@ -183,7 +183,7 @@ public class LifeCareOrderService extends BaseJpaService<LifeCareOrderDO, LifeCa
|
|
|
|
|
|
String sql = "SELECT a.status, COUNT(DISTINCT a.id) as num FROM base_life_care_order a " ;
|
|
String sql = "SELECT a.status, COUNT(DISTINCT a.id) as num FROM base_life_care_order a " ;
|
|
|
|
|
|
sql += " WHERE a.hospital = ? and a.status<>0 group BY a.status";
|
|
|
|
|
|
sql += " WHERE a.hospital = ? and a.pay_status>0 and a.status<>0 group BY a.status";
|
|
List<Map<String, Object>> list = jdbcTemplate.queryForList(sql, hospital);
|
|
List<Map<String, Object>> list = jdbcTemplate.queryForList(sql, hospital);
|
|
Map<String, Integer> map = new HashMap<>();
|
|
Map<String, Integer> map = new HashMap<>();
|
|
//状态 待服务 1、已完成 2 、已取消 -1 已签到 3
|
|
//状态 待服务 1、已完成 2 、已取消 -1 已签到 3
|
|
@ -248,7 +248,7 @@ public class LifeCareOrderService extends BaseJpaService<LifeCareOrderDO, LifeCa
|
|
" LEFT JOIN base_patient p ON o.patient = p.id ) "+
|
|
" LEFT JOIN base_patient p ON o.patient = p.id ) "+
|
|
" WHERE " +
|
|
" WHERE " +
|
|
" o.hospital = '{hospital}' " +buffer+
|
|
" o.hospital = '{hospital}' " +buffer+
|
|
" AND ( o.`status` = {status} OR -100 = {status} ) and o.pay_status>0 " +
|
|
|
|
|
|
" AND ( o.`status` = {status} OR -100 = {status} ) and o.pay_status>0 and o.status<>0 " +
|
|
" ORDER BY o.create_time desc " +
|
|
" ORDER BY o.create_time desc " +
|
|
" LIMIT {start},{end};";
|
|
" LIMIT {start},{end};";
|
|
|
|
|
|
@ -264,7 +264,7 @@ public class LifeCareOrderService extends BaseJpaService<LifeCareOrderDO, LifeCa
|
|
" LEFT JOIN base_patient p ON o.patient = p.id " +
|
|
" LEFT JOIN base_patient p ON o.patient = p.id " +
|
|
" WHERE " +
|
|
" WHERE " +
|
|
" o.hospital = '{hospital}' " +buffer+
|
|
" o.hospital = '{hospital}' " +buffer+
|
|
" AND (o.`status` = {status} or -100 = {status})";
|
|
|
|
|
|
" AND (o.`status` = {status} or -100 = {status}) and o.pay_status>0 and o.status<>0 ";
|
|
|
|
|
|
String finqlCountSql = countSql.replace("{hospital}", hospital)
|
|
String finqlCountSql = countSql.replace("{hospital}", hospital)
|
|
.replace("{status}", String.valueOf(status));
|
|
.replace("{status}", String.valueOf(status));
|