|
@ -3787,8 +3787,7 @@ public class StatisticsService {
|
|
|
jsonObject.put("lineDevice",total.get(0));
|
|
|
total = jdbcTemplate.queryForList(sevenDayUseSql,Integer.class);
|
|
|
Float num = 0F;
|
|
|
if (total.size()>0)
|
|
|
{
|
|
|
if (total.size()>0) {
|
|
|
num= (float)Integer.parseInt(jsonObject.get("deviceTotal").toString())/(float)total.get(0);
|
|
|
}
|
|
|
jsonObject.put("sevenDayUse",num);
|
|
@ -3798,8 +3797,7 @@ public class StatisticsService {
|
|
|
|
|
|
public List<Map<String, Object>> findByPatientHelper(String patient){
|
|
|
String sql = "SELECT ph.doctor,ph.doctor_name,d.mobile,d.qrcode FROM base_patient_helper ph INNER JOIN base_doctor d ON d.id = ph.doctor WHERE ph.del = 1 AND ph.patient = '"+patient+"'";
|
|
|
List<Map<String, Object>> list = jdbcTemplate.queryForList(sql);
|
|
|
return list;
|
|
|
return jdbcTemplate.queryForList(sql);
|
|
|
}
|
|
|
|
|
|
public List<Map<String, Object>> findDictEmeStatus(){
|
|
@ -3844,13 +3842,11 @@ public class StatisticsService {
|
|
|
SystemMessageDO byRelationCodeAndReceiver = systemMessageDao.findByRelationCodeAndReceiver(orderId, patient);
|
|
|
familyMap.put("statusName", "未读");
|
|
|
familyMap.put("status", 0);
|
|
|
if (null!=byRelationCodeAndReceiver){
|
|
|
if (StringUtils.isNotBlank(byRelationCodeAndReceiver.getIsRead())) {
|
|
|
//familyMap.put("status", Integer.parseInt(byRelationCodeAndReceiver.getIsRead()));
|
|
|
if (Integer.parseInt(byRelationCodeAndReceiver.getIsRead()) == 1) {
|
|
|
familyMap.put("statusName", "已读");
|
|
|
familyMap.put("status", 1);
|
|
|
}
|
|
|
if (null != byRelationCodeAndReceiver && StringUtils.isNotBlank(byRelationCodeAndReceiver.getIsRead())) {
|
|
|
//familyMap.put("status", Integer.parseInt(byRelationCodeAndReceiver.getIsRead()));
|
|
|
if (Integer.parseInt(byRelationCodeAndReceiver.getIsRead()) == 1) {
|
|
|
familyMap.put("statusName", "已读");
|
|
|
familyMap.put("status", 1);
|
|
|
}
|
|
|
}
|
|
|
|