|
@@ -453,7 +453,6 @@ func (c *HisChargeApiController) GetPrescriptionStatisticsDetail() {
|
453
|
453
|
|
454
|
454
|
date1, _ := time.Parse("2006-01-02", start_time)
|
455
|
455
|
date2, _ := time.Parse("2006-01-02", end_time)
|
456
|
|
-
|
457
|
456
|
// 计算日期间隔
|
458
|
457
|
duration := date2.Sub(date1)
|
459
|
458
|
|
|
@@ -461,12 +460,10 @@ func (c *HisChargeApiController) GetPrescriptionStatisticsDetail() {
|
461
|
460
|
oneMonthDuration := 30 * 24 * time.Hour
|
462
|
461
|
|
463
|
462
|
if duration <= oneMonthDuration {
|
464
|
|
-
|
465
|
463
|
} else {
|
466
|
464
|
c.ServeFailJSONWithSGJErrorCode(enums.ErrorTimeCodeParamWrong)
|
467
|
465
|
return
|
468
|
466
|
}
|
469
|
|
-
|
470
|
467
|
adminUser := c.GetAdminUserInfo()
|
471
|
468
|
timeLayout := "2006-01-02"
|
472
|
469
|
loc, _ := time.LoadLocation("Local")
|