Ver código fonte

Merge branch 'master' of http://git.shengws.com/csx/gdyb

csx 3 anos atrás
pai
commit
4651cd02bb

+ 1 - 1
controllers/zh/zh_his_api_controller.go Ver arquivo

@@ -1821,7 +1821,7 @@ func (c *ZHHisApiController) ZHRefundDetail() {
1821 1821
 			}
1822 1822
 		}
1823 1823
 		if isSuccess {
1824
-			err := service.UpDateOrderInfoStatus(patient_id, recordDateTime, adminUser.CurrentOrgId)
1824
+			err := service.UpDateOrderInfoStatus(patient_id, recordDateTime, adminUser.CurrentOrgId, recordDateTimeTwo)
1825 1825
 
1826 1826
 			if err != nil {
1827 1827
 				c.ServeFailJSONWithSGJErrorCode(enums.ErrorCodeDataException)

+ 2 - 2
service/zh_his_service.go Ver arquivo

@@ -977,8 +977,8 @@ func GetZHHisUploadOrderInfo(org_id int64, patient_id int64, record_date int64,
977 977
 	return
978 978
 }
979 979
 
980
-func UpDateOrderInfoStatus(patient_id int64, record_date int64, org_id int64) (err error) {
981
-	err = writeDb.Model(&models.HisOrderInfo{}).Where("user_org_id = ? AND status = 1 AND upload_date <= ? AND upload_date >= ? AND patient_id = ?", org_id, record_date, record_date, patient_id).Updates(map[string]interface{}{"status": 0}).Error
980
+func UpDateOrderInfoStatus(patient_id int64, record_date int64, org_id int64, record_two_date int64) (err error) {
981
+	err = writeDb.Model(&models.HisOrderInfo{}).Where("user_org_id = ? AND status = 1 AND upload_date <= ? AND upload_date >= ? AND patient_id = ?", org_id, record_two_date, record_date, patient_id).Updates(map[string]interface{}{"status": 0}).Error
982 982
 	return
983 983
 }
984 984