Skip to content
Snippets Groups Projects
Commit 26bcbe0a authored by Burhan Akbar's avatar Burhan Akbar
Browse files

Merge branch 'main' into 'ba'

# Conflicts:
#   src/main/java/com/cardiff/client_project/controller/hospital/HospitalController.java
#   src/main/java/com/cardiff/client_project/mapper/HospitalMapper.java
#   src/main/java/com/cardiff/client_project/service/imp/HospitalServiceImpl.java
#   src/main/resources/static/css/beds.css
#   src/main/resources/static/html/beds.html
parents 0e8093aa c0ca5e85
No related branches found
No related tags found
1 merge request!40Update beds with sql db
This commit is part of merge request !40. Comments created here will be created in the context of that merge request.
......@@ -16,7 +16,23 @@
SET NAMES utf8mb4;
SET FOREIGN_KEY_CHECKS = 0;
-- ----------------------------
-- Available beds
-- ----------------------------
SELECT
id AS hospital_id,
name AS hospital_name,
address AS location,
phone,
maxAmount AS total_beds,
(maxAmount - amountPatient) AS available_beds
FROM
hospital
WHERE
status = 1
AND (maxAmount - amountPatient) > 0
ORDER BY
available_beds DESC;
-- ----------------------------
-- Table structure for common_admin
-- ----------------------------
......
......@@ -30,7 +30,7 @@ import java.util.Map;
public class SuperAdminMapper {
@Autowired
JdbcTemplate jdbcTemplate;;
JdbcTemplate jdbcTemplate;
/**
* ser registration
......
package com.cardiff.client_project.service.imp;
public class HospitalService {
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment