|
@@ -2161,6 +2161,13 @@ func UpdatePatientLapsetoByPatientIdOne(patient_id int64, record_date int64, lap
|
2161
|
2161
|
return err
|
2162
|
2162
|
}
|
2163
|
2163
|
|
|
2164
|
+func UpdatePatientLasetoType(patient_id int64, lapse_type int64) error {
|
|
2165
|
+
|
|
2166
|
+ err := XTWriteDB().Model(&models.Patients{}).Where("id = ? and status=1", patient_id).Updates(map[string]interface{}{"lapseto": 11}).Error
|
|
2167
|
+ err = XTWriteDB().Model(&models.XtPatientsNew{}).Where("id = ? and status=1", patient_id).Updates(map[string]interface{}{"lapseto": 11}).Error
|
|
2168
|
+ return err
|
|
2169
|
+}
|
|
2170
|
+
|
2164
|
2171
|
func UpdatePatientLapsetoByPatientIdTwo(patient_id int64, record_date int64) error {
|
2165
|
2172
|
|
2166
|
2173
|
err := XTWriteDB().Model(&models.Patients{}).Where("id = ? and status= 1", patient_id).Updates(map[string]interface{}{"death_time": record_date, "lapseto": 1}).Error
|