step 12 : refactor layout add, ketambahan alamat dan agama,

proses add fix
This commit is contained in:
sindhu
2024-06-05 10:55:42 +07:00
parent 5159bc3b16
commit 8d1c7997b6
4 changed files with 331 additions and 116 deletions

View File

@@ -8,6 +8,7 @@ import (
"math"
"strconv"
"strings"
"time"
"go.uber.org/zap"
)
@@ -1137,7 +1138,8 @@ func (su *ServicesMdDoctor) AddMdDoctor(inp models.DoctorV1) (models.DoctorV1, e
M_DoctorAddressState,
M_DoctorAddressCountry,
M_DoctorIsActive,
M_DoctorCreatedUserID
M_DoctorCreatedUserID,
M_DoctorCreated
)
VALUES
(
@@ -1174,6 +1176,7 @@ func (su *ServicesMdDoctor) AddMdDoctor(inp models.DoctorV1) (models.DoctorV1, e
?,
?,
?,
?,
?
)`
@@ -1212,6 +1215,7 @@ func (su *ServicesMdDoctor) AddMdDoctor(inp models.DoctorV1) (models.DoctorV1, e
M_DoctorAddressCountry,
"Y",
"1",
time.Now(),
)
insertedID, err := rst.LastInsertId()
if err != nil {