|
@ -229,7 +229,7 @@ public class MedicineUserService extends BaseJpaService<Mediicineuser, Mediicine
|
|
" where " +
|
|
" where " +
|
|
" 1=1 and t.del = 1 and t.user_id = '" + stringObjectMap.get("id").toString() + "'";
|
|
" 1=1 and t.del = 1 and t.user_id = '" + stringObjectMap.get("id").toString() + "'";
|
|
stringObjectMap.put("allocatedDevice", jdbcTemplate.queryForObject(countSql, Integer.class));
|
|
stringObjectMap.put("allocatedDevice", jdbcTemplate.queryForObject(countSql, Integer.class));
|
|
stringObjectMap.put("DeviceQty", deviceDao.countAll());
|
|
|
|
|
|
stringObjectMap.put("deviceQty", deviceDao.countAll());
|
|
}
|
|
}
|
|
String countSql = " select " +
|
|
String countSql = " select " +
|
|
" COUNT(DISTINCT (t.id)) as count " +
|
|
" COUNT(DISTINCT (t.id)) as count " +
|