|
@@ -678,14 +678,15 @@ func (this *DoctorsApiController) GetAccessList() {
|
678
|
678
|
func (this *DoctorsApiController) GetInspectionMajorItem() {
|
679
|
679
|
|
680
|
680
|
other_start_time := this.GetString("other_start_time")
|
|
681
|
+ last_time := this.GetString("last_time")
|
681
|
682
|
timeLayout := "2006-01-02"
|
682
|
683
|
loc, _ := time.LoadLocation("Local")
|
683
|
684
|
startTime, _ := time.ParseInLocation(timeLayout+" 15:04:05", other_start_time+" 23:59:59", loc)
|
684
|
|
- fmt.Println("startTime2222345555533344334334433433344", startTime.Unix())
|
|
685
|
+ lastTime, _ := time.ParseInLocation(timeLayout+" 15:04:05", last_time+" 00:00:00", loc)
|
685
|
686
|
patient_id, _ := this.GetInt64("patient_id")
|
686
|
687
|
adminUserInfo := this.GetAdminUserInfo()
|
687
|
688
|
orgId := adminUserInfo.CurrentOrgId
|
688
|
|
- list, err := service.GetInspectionMajorItem(startTime.Unix(), orgId, patient_id)
|
|
689
|
+ list, err := service.GetInspectionMajorItem(startTime.Unix(), lastTime.Unix(), orgId, patient_id)
|
689
|
690
|
if err == nil {
|
690
|
691
|
this.ServeSuccessJSON(map[string]interface{}{
|
691
|
692
|
"list": list,
|
|
@@ -794,7 +795,7 @@ func (this *DoctorsApiController) SaveCreationInspection() {
|
794
|
795
|
record_time := this.GetString("record_time")
|
795
|
796
|
timeLayout := "2006-01-02"
|
796
|
797
|
loc, _ := time.LoadLocation("Local")
|
797
|
|
- recordTime, _ := time.ParseInLocation(timeLayout+" 15:04:05", record_time+" 00:00:00", loc)
|
|
798
|
+ recordTime, _ := time.ParseInLocation(timeLayout+" 15:04:05", record_time, loc)
|
798
|
799
|
after_pressure := this.GetString("after_pressure")
|
799
|
800
|
template_summary_id, _ := this.GetInt64("template_summary_id")
|
800
|
801
|
template_plan_id, _ := this.GetInt64("template_plan_id")
|
|
@@ -863,6 +864,7 @@ func (this *DoctorsApiController) GetTemplateSummaryList() {
|
863
|
864
|
orgId := this.GetAdminUserInfo().CurrentOrgId
|
864
|
865
|
startTime, _ := time.ParseInLocation(timeLayout+" 15:04:05", start_time+" 00:00:00", loc)
|
865
|
866
|
endTime, _ := time.ParseInLocation(timeLayout+" 15:04:05", end_time+" 23:59:59", loc)
|
|
867
|
+ fmt.Println("hhhhhhhhhhhhhh777777", endTime.Unix())
|
866
|
868
|
list, err := service.GetTemplateSummaryList(patient_id, orgId, startTime.Unix(), endTime.Unix())
|
867
|
869
|
if err == nil {
|
868
|
870
|
this.ServeSuccessJSON(map[string]interface{}{
|
|
@@ -943,7 +945,7 @@ func (this *DoctorsApiController) UpdateTempalteSummary() {
|
943
|
945
|
record_time := this.GetString("record_time")
|
944
|
946
|
timeLayout := "2006-01-02"
|
945
|
947
|
loc, _ := time.LoadLocation("Local")
|
946
|
|
- recordTime, _ := time.ParseInLocation(timeLayout+" 15:04:05", record_time+" 00:00:00", loc)
|
|
948
|
+ recordTime, _ := time.ParseInLocation(timeLayout+" 15:04:05", record_time, loc)
|
947
|
949
|
after_pressure := this.GetString("after_pressure")
|
948
|
950
|
template_summary_id, _ := this.GetInt64("template_summary_id")
|
949
|
951
|
template_plan_id, _ := this.GetInt64("template_plan_id")
|