|
@@ -362,3 +362,85 @@ func (this *OrgAPIController) GetActiveOrgList() {
|
362
|
362
|
}
|
363
|
363
|
|
364
|
364
|
}
|
|
365
|
+
|
|
366
|
+func (this *OrgAPIController) GetNewCreateOrgList() {
|
|
367
|
+ range_data := this.GetString("range_data")
|
|
368
|
+ var rangeDate *time.Time
|
|
369
|
+ var parseDateErr error
|
|
370
|
+ var rangeTimeStamp int64
|
|
371
|
+
|
|
372
|
+ if len(range_data) > 0 {
|
|
373
|
+ rangeDate, parseDateErr = utils.ParseTimeStringToTime("2006-01-02", range_data)
|
|
374
|
+ if parseDateErr != nil {
|
|
375
|
+ this.ErrorLog("日期(%v)解析错误:%v", range_data, parseDateErr)
|
|
376
|
+ return
|
|
377
|
+ }
|
|
378
|
+ rangeTimeStamp = rangeDate.Unix()
|
|
379
|
+ } else {
|
|
380
|
+ rangeTimeStamp = 0
|
|
381
|
+ }
|
|
382
|
+ now := time.Now().Unix()
|
|
383
|
+ list, err := service.GetNewCreateOrgList(rangeTimeStamp, now)
|
|
384
|
+ if err != nil {
|
|
385
|
+
|
|
386
|
+ } else {
|
|
387
|
+ this.ServeSuccessJSON(map[string]interface{}{
|
|
388
|
+ "list": list,
|
|
389
|
+ })
|
|
390
|
+ }
|
|
391
|
+
|
|
392
|
+}
|
|
393
|
+
|
|
394
|
+func (this *OrgAPIController) GetNewDoctorNurseList() {
|
|
395
|
+ range_data := this.GetString("range_data")
|
|
396
|
+ var rangeDate *time.Time
|
|
397
|
+ var parseDateErr error
|
|
398
|
+ var rangeTimeStamp int64
|
|
399
|
+
|
|
400
|
+ if len(range_data) > 0 {
|
|
401
|
+ rangeDate, parseDateErr = utils.ParseTimeStringToTime("2006-01-02", range_data)
|
|
402
|
+ if parseDateErr != nil {
|
|
403
|
+ this.ErrorLog("日期(%v)解析错误:%v", range_data, parseDateErr)
|
|
404
|
+ return
|
|
405
|
+ }
|
|
406
|
+ rangeTimeStamp = rangeDate.Unix()
|
|
407
|
+ } else {
|
|
408
|
+ rangeTimeStamp = 0
|
|
409
|
+ }
|
|
410
|
+ now := time.Now().Unix()
|
|
411
|
+ list, err := service.GetNewDoctorNurseList(rangeTimeStamp, now)
|
|
412
|
+ if err != nil {
|
|
413
|
+ } else {
|
|
414
|
+ this.ServeSuccessJSON(map[string]interface{}{
|
|
415
|
+ "list": list,
|
|
416
|
+ })
|
|
417
|
+ }
|
|
418
|
+
|
|
419
|
+}
|
|
420
|
+
|
|
421
|
+func (this *OrgAPIController) GetNewPatientList() {
|
|
422
|
+ range_data := this.GetString("range_data")
|
|
423
|
+ var rangeDate *time.Time
|
|
424
|
+ var parseDateErr error
|
|
425
|
+ var rangeTimeStamp int64
|
|
426
|
+
|
|
427
|
+ if len(range_data) > 0 {
|
|
428
|
+ rangeDate, parseDateErr = utils.ParseTimeStringToTime("2006-01-02", range_data)
|
|
429
|
+ if parseDateErr != nil {
|
|
430
|
+ this.ErrorLog("日期(%v)解析错误:%v", range_data, parseDateErr)
|
|
431
|
+ return
|
|
432
|
+ }
|
|
433
|
+ rangeTimeStamp = rangeDate.Unix()
|
|
434
|
+ } else {
|
|
435
|
+ rangeTimeStamp = 0
|
|
436
|
+ }
|
|
437
|
+ now := time.Now().Unix()
|
|
438
|
+ list, err := service.GetNewPatientList(rangeTimeStamp, now)
|
|
439
|
+ if err != nil {
|
|
440
|
+ } else {
|
|
441
|
+ this.ServeSuccessJSON(map[string]interface{}{
|
|
442
|
+ "list": list,
|
|
443
|
+ })
|
|
444
|
+ }
|
|
445
|
+
|
|
446
|
+}
|