|
@@ -87,7 +87,9 @@ func (this *DialysisAPIController) Scheduals() {
|
87
|
87
|
defer redis.Close()
|
88
|
88
|
|
89
|
89
|
key := "scheduals_" + schedualDate + "_" + strconv.FormatInt(orgID, 10)
|
|
90
|
+
|
90
|
91
|
scheduals_json_str, _ := redis.Get(key).Result()
|
|
92
|
+
|
91
|
93
|
redis.Set(key, "", time.Second)
|
92
|
94
|
patients, _ := service.GetAllPatientListSix(orgID)
|
93
|
95
|
if len(scheduals_json_str) == 0 { //没有到缓存数据,从数据库中获取数据,进行缓存到redis
|
|
@@ -786,7 +788,7 @@ func (c *DialysisAPIController) PostDoubleCheck() {
|
786
|
788
|
firstCheckDate = firstCheckDateUnix.Unix()
|
787
|
789
|
}
|
788
|
790
|
|
789
|
|
- if adminUserInfo.Org.Id == 9671 || adminUserInfo.Org.Id == 9675 || adminUserInfo.Org.Id == 10340 {
|
|
791
|
+ if adminUserInfo.Org.Id == 10340 {
|
790
|
792
|
|
791
|
793
|
list, _ := service.GetRoleList(adminUserInfo.Org.Id, modifier)
|
792
|
794
|
_, check := service.FindDoubleCheckByReordDate(id, recordDate.Unix(), adminUserInfo.Org.Id)
|
|
@@ -967,6 +969,10 @@ func (c *DialysisAPIController) PostAcceptsAssessment() {
|
967
|
969
|
defer redis.Close()
|
968
|
970
|
//清空key 值
|
969
|
971
|
redis.Set(key, "", time.Second)
|
|
972
|
+
|
|
973
|
+ keyOne := "scheduals_" + recordDateStr + "_" + strconv.FormatInt(adminUserInfo.Org.Id, 10)
|
|
974
|
+ redis.Set(keyOne, "", time.Second)
|
|
975
|
+
|
970
|
976
|
if err == nil {
|
971
|
977
|
c.ServeSuccessJSON(map[string]interface{}{
|
972
|
978
|
"receiveTreatmentAsses": receiveTreatmentAsses,
|
|
@@ -996,6 +1002,11 @@ func (c *DialysisAPIController) PostAcceptsAssessment() {
|
996
|
1002
|
defer redis.Close()
|
997
|
1003
|
//清空key 值
|
998
|
1004
|
redis.Set(key, "", time.Second)
|
|
1005
|
+
|
|
1006
|
+ fmt.Println("--------------------------------", recordDateStr)
|
|
1007
|
+ keyOne := "scheduals_" + recordDateStr + "_" + strconv.FormatInt(adminUserInfo.Org.Id, 10)
|
|
1008
|
+
|
|
1009
|
+ redis.Set(keyOne, "", time.Second)
|
999
|
1010
|
if err == nil {
|
1000
|
1011
|
c.ServeSuccessJSON(map[string]interface{}{
|
1001
|
1012
|
"receiveTreatmentAsses": receiveTreatmentAsses,
|
|
@@ -1617,6 +1628,7 @@ func (c *DialysisAPIController) PostDialysisPrescription() {
|
1617
|
1628
|
redis.Set(key, "", time.Second)
|
1618
|
1629
|
|
1619
|
1630
|
keyOne := "scheduals_" + recordDateStr + "_" + strconv.FormatInt(adminUserInfo.Org.Id, 10)
|
|
1631
|
+
|
1620
|
1632
|
//清空key 值
|
1621
|
1633
|
redis.Set(keyOne, "", time.Second)
|
1622
|
1634
|
|
|
@@ -1849,6 +1861,7 @@ func (c *DialysisAPIController) Finish() {
|
1849
|
1861
|
|
1850
|
1862
|
tempassessmentAfterDislysis.ActualTreatmentHour = hour
|
1851
|
1863
|
tempassessmentAfterDislysis.ActualTreatmentMinute = minute
|
|
1864
|
+
|
1852
|
1865
|
}
|
1853
|
1866
|
|
1854
|
1867
|
if fmonitorRecords.ID > 0 && endmonitorRecords.ID > 0 {
|
|
@@ -1870,7 +1883,14 @@ func (c *DialysisAPIController) Finish() {
|
1870
|
1883
|
tempassessmentAfterDislysis.ActualUltrafiltration = endmonitorRecords.UltrafiltrationVolume
|
1871
|
1884
|
}
|
1872
|
1885
|
|
1873
|
|
- tempassessmentAfterDislysis.ActualDisplacement = endmonitorRecords.DisplacementQuantity
|
|
1886
|
+ //北方营口医院
|
|
1887
|
+ if adminUserInfo.Org.Id == 10445 {
|
|
1888
|
+ //获取最后一条透析处方数据
|
|
1889
|
+ lastprescription, _ := service.GetLastDialysisPrescriptionByPatientIdTwo(adminUserInfo.Org.Id, id, recordDate.Unix())
|
|
1890
|
+ tempassessmentAfterDislysis.ActualDisplacement = lastprescription.DisplaceLiquiValue
|
|
1891
|
+ } else {
|
|
1892
|
+ tempassessmentAfterDislysis.ActualDisplacement = endmonitorRecords.DisplacementQuantity
|
|
1893
|
+ }
|
1874
|
1894
|
|
1875
|
1895
|
}
|
1876
|
1896
|
|