Parcourir la source

11月8日库存管理

XMLWAN il y a 3 ans
Parent
révision
515d4e7ec9

+ 3 - 2
controllers/new_mobile_api_controllers/staff_schedule_api_controller.go Voir le fichier

@@ -294,13 +294,14 @@ func (this *StaffScheduleApiController) GetPatientScheduleList() {
294 294
 	if is_open == 1 {
295 295
 		//获取空床位的排班数据
296 296
 		list, err := service.GetPatientScheduleByBed(startTime, zoneid, orgid)
297
-
297
+		stockType, _ := service.GetStockType(orgid)
298 298
 		if err != nil {
299 299
 			this.ServeFailJsonSend(enums.ErrorCodeDataException, "添加设备失败")
300 300
 			return
301 301
 		}
302 302
 		this.ServeSuccessJSON(map[string]interface{}{
303
-			"schedule": list,
303
+			"schedule":  list,
304
+			"stockType": stockType,
304 305
 		})
305 306
 	}
306 307
 }