Sfoglia il codice sorgente

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

csx 4 anni fa
parent
commit
639796c639
1 ha cambiato i file con 1 aggiunte e 7 eliminazioni
  1. 1 7
      controllers/sz/sz_his_api_controller.go

+ 1 - 7
controllers/sz/sz_his_api_controller.go Vedi File

@@ -1153,7 +1153,6 @@ func (c *SZHisApiController) GetRegisterInfo() {
1153 1153
 }
1154 1154
 
1155 1155
 func (c *SZHisApiController) RefundNumber() {
1156
-	order_id, _ := c.GetInt64("order_id")
1157 1156
 	record_time := c.GetString("record_time")
1158 1157
 	patient_id, _ := c.GetInt64("patient_id")
1159 1158
 	admin_user_id, _ := c.GetInt64("admin_user_id")
@@ -1168,12 +1167,7 @@ func (c *SZHisApiController) RefundNumber() {
1168 1167
 	}
1169 1168
 	recordDateTime := theTime.Unix()
1170 1169
 	fmt.Println(recordDateTime)
1171
-	var order models.HisOrder
1172
-	order, _ = service.GetHisOrderByID(order_id)
1173
-	if order.ID == 0 {
1174
-		c.ServeFailJSONWithSGJErrorCode(enums.ErrorCodeHisOrderNoExistParamWrong)
1175
-		return
1176
-	}
1170
+
1177 1171
 	his, _ := service.GetHisPatientInfo(adminUser.CurrentOrgId, patient_id, theTime.Unix())
1178 1172
 	roles, _ := service.GetAdminUserInfoByID(adminUser.CurrentOrgId, admin_user_id)
1179 1173
 	miConfig, _ := service.FindMedicalInsuranceInfo(adminUser.CurrentOrgId)