|
@ -96,6 +96,8 @@ public class SignFamilyServiceService {
|
|
|
signFamilyServiceItemDao.save(saveSignFamilyServiceItemeList);
|
|
|
|
|
|
jo.put("status", 1);//执行成功
|
|
|
jo.put("all", patients.size());//未成功的患者
|
|
|
jo.put("success", patients.size()-errorPatient.size());//成功的患者
|
|
|
jo.put("errorPatients", errorPatient);//未成功的患者
|
|
|
return jo;
|
|
|
}
|
|
@ -158,7 +160,6 @@ public class SignFamilyServiceService {
|
|
|
*/
|
|
|
public List<ServiceItem> getPatientServiceItem(String patient, String serviceCode) throws Exception {
|
|
|
StringBuffer sql = new StringBuffer(" SELECT " +
|
|
|
" DISTINCT s.code," +
|
|
|
" s.* " +
|
|
|
" FROM " +
|
|
|
" wlyy_service_item s, " +
|
|
@ -170,13 +171,15 @@ public class SignFamilyServiceService {
|
|
|
}
|
|
|
if (!StringUtils.isEmpty(serviceCode)) {
|
|
|
sql.append(" and si.service_code = '" + serviceCode + "'");
|
|
|
|
|
|
}
|
|
|
sql.append(" group by s.code ");
|
|
|
return jdbcTemplate.query(sql.toString(), new BeanPropertyRowMapper(ServiceItem.class));
|
|
|
}
|
|
|
|
|
|
|
|
|
private SignFamily getSignFamily(String patient) {
|
|
|
String sql = "select count(id) num,code from wlyy_sign_family where patient='" + patient + "' ";
|
|
|
String sql = "select count(s.id) num,s.code from wlyy_sign_family s where s.patient='" + patient + "' and s.`status`>0 and s.expenses_status=1 ";
|
|
|
List<SignFamily> signFamilies = jdbcTemplate.query(sql, new BeanPropertyRowMapper(SignFamily.class));
|
|
|
return signFamilies.get(0);
|
|
|
}
|
|
@ -199,6 +202,8 @@ public class SignFamilyServiceService {
|
|
|
}
|
|
|
|
|
|
jo.put("status", 1);//执行成功
|
|
|
jo.put("all", patients.size());//未成功的患者
|
|
|
jo.put("success", patients.size()-errorPatient.size());//成功的患者
|
|
|
jo.put("errorPatients", errorPatient);//未成功的患者
|
|
|
return jo;
|
|
|
}
|