step 12 : refactor layout add, ketambahan alamat dan agama,
proses add fix
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user