Parcourir la source

Merge branch 'master' of http://git.shengws.com/xmg123/Xcx_New

28169 il y a 4 mois
Parent
révision
141395646e

+ 0 - 1
controllers/manage_api_controller.go Voir le fichier

@@ -1040,7 +1040,6 @@ func (this *MachineApiController) GetAllOrganization() {
1040 1040
 
1041 1041
 func (this *MachineApiController) SaveInformation() {
1042 1042
 	eid, _ := this.GetInt64("eid")
1043
-	fmt.Print("eid-------", eid)
1044 1043
 	dataBody := make(map[string]interface{}, 0)
1045 1044
 	err := json.Unmarshal(this.Ctx.Input.RequestBody, &dataBody)
1046 1045
 	//fmt.Println("错误是", err)

+ 36 - 0
go.mod Voir le fichier

@@ -0,0 +1,36 @@
1
+module Xcx_New
2
+
3
+go 1.19
4
+
5
+require (
6
+	github.com/astaxie/beego v1.12.3
7
+	github.com/go-redis/redis v6.15.9+incompatible
8
+	github.com/jinzhu/gorm v1.9.16
9
+	github.com/robfig/cron v1.2.0
10
+	github.com/shopspring/decimal v1.3.1
11
+	github.com/smartystreets/goconvey v1.7.2
12
+)
13
+
14
+require (
15
+	github.com/beorn7/perks v1.0.1 // indirect
16
+	github.com/cespare/xxhash/v2 v2.1.1 // indirect
17
+	github.com/go-sql-driver/mysql v1.5.0 // indirect
18
+	github.com/golang/protobuf v1.4.2 // indirect
19
+	github.com/gopherjs/gopherjs v0.0.0-20181017120253-0766667cb4d1 // indirect
20
+	github.com/hashicorp/golang-lru v0.5.4 // indirect
21
+	github.com/jinzhu/inflection v1.0.0 // indirect
22
+	github.com/jtolds/gls v4.20.0+incompatible // indirect
23
+	github.com/matttproud/golang_protobuf_extensions v1.0.1 // indirect
24
+	github.com/prometheus/client_golang v1.7.0 // indirect
25
+	github.com/prometheus/client_model v0.2.0 // indirect
26
+	github.com/prometheus/common v0.10.0 // indirect
27
+	github.com/prometheus/procfs v0.1.3 // indirect
28
+	github.com/shiena/ansicolor v0.0.0-20151119151921-a422bbe96644 // indirect
29
+	github.com/smartystreets/assertions v1.2.0 // indirect
30
+	golang.org/x/crypto v0.0.0-20191205180655-e7c4368fe9dd // indirect
31
+	golang.org/x/net v0.0.0-20200324143707-d3edc9973b7e // indirect
32
+	golang.org/x/sys v0.0.0-20200615200032-f1bc736245b1 // indirect
33
+	golang.org/x/text v0.3.0 // indirect
34
+	google.golang.org/protobuf v1.23.0 // indirect
35
+	gopkg.in/yaml.v2 v2.2.8 // indirect
36
+)

+ 8 - 1
service/auto_create_week_schedules_service.go Voir le fichier

@@ -154,7 +154,14 @@ func _refreshWeekSchedulesWithTemplateItems(tx *gorm.DB, orgID int64, week time.
154 154
 			if deviceNumber == nil {
155 155
 				continue
156 156
 			}
157
-
157
+			fmt.Println("orgID", orgID)
158
+			fmt.Println("deviceNumber.ZoneID", deviceNumber.ZoneID)
159
+			fmt.Println("item.DeviceNumberID", item.DeviceNumberID)
160
+			fmt.Println("item.PatientID", item.PatientID)
161
+			fmt.Println("monday.AddDate(0, 0, int(item.Weekday-1)).Unix()", monday.AddDate(0, 0, int(item.Weekday-1)).Unix())
162
+			fmt.Println("monday.AddDate(0, 0, int(item.Weekday-1)).Unix()", item.Weekday)
163
+			fmt.Println("monday.AddDate(0, 0, int(item.Weekday-1)).Unix()", item.TimeType)
164
+			fmt.Println("monday.AddDate(0, 0, int(item.Weekday-1)).Unix()", item.TreatMode)
158 165
 			valueStrs = append(valueStrs, "(?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)")
159 166
 			values = append(values, orgID)
160 167
 			values = append(values, deviceNumber.ZoneID)

+ 1 - 1
service/manage_service.go Voir le fichier

@@ -730,7 +730,7 @@ func UpdatedZoneID(bedid int64, orgid int64, number *models.DeviceNumber) error
730 730
 
731 731
 func UpadateForm(id int64, orgid int64, infor *models.DeviceInformation) error {
732 732
 
733
-	err := UserWriteDB().Model(&infor).Where("id = ? AND user_org_id = ? AND status = 1", id, orgid).Updates(map[string]interface{}{"date": infor.Date, "class": infor.Class, "zone": infor.Zone, "bed_number": infor.BedNumber, "contagion": infor.Contagion, "dialysis_mode": infor.DialysisMode, "start_time": infor.StartTime, "end_time": infor.EndTime, "dialysis_hour": infor.DialysisHour, "hyperfiltratio": infor.Hyperfiltratio, "weight_loss": infor.WeightLoss, "warning_value": infor.WarningValue, "user_total": infor.UserTotal, "move": infor.Move, "failure_stage": infor.FailureStage, "fault_description": infor.FaultDescription, "code_information": infor.CodeInformation, "disinfect_type": infor.DisinfectType, "disinfectant_type": infor.DisinfectType, "disinfection": infor.Disinfection, "machine_run": infor.MachineRun, "fluid_path": infor.FluidPath, "disinfectant": infor.Disinfectant, "disinfection_status": infor.DisinfectionStatus, "disinfection_residue": infor.DisinfectionResidue, "long_time": infor.LongTime, "disinfec_startime": infor.DisinfecStartime, "disinfec_endtime": infor.DisinfecEndtime, "dialysis_checked": infor.DialysisChecked, "dialysis_name": infor.DialysisName, "norms": infor.Norms, "dialysis_concentration": infor.DialysisConcentration,
733
+	err := UserWriteDB().Model(&infor).Where("id = ? AND user_org_id = ? AND status = 1", id, orgid).Updates(map[string]interface{}{"date": infor.Date, "class": infor.Class, "zone": infor.Zone, "bed_number": infor.BedNumber, "contagion": infor.Contagion, "dialysis_mode": infor.DialysisMode, "start_time": infor.StartTime, "end_time": infor.EndTime, "dialysis_hour": infor.DialysisHour, "hyperfiltratio": infor.Hyperfiltratio, "weight_loss": infor.WeightLoss, "warning_value": infor.WarningValue, "user_total": infor.UserTotal, "move": infor.Move, "failure_stage": infor.FailureStage, "fault_description": infor.FaultDescription, "code_information": infor.CodeInformation, "disinfect_type": infor.DisinfectType, "disinfectant_type": infor.DisinfectantType, "disinfection": infor.Disinfection, "machine_run": infor.MachineRun, "fluid_path": infor.FluidPath, "disinfectant": infor.Disinfectant, "disinfection_status": infor.DisinfectionStatus, "disinfection_residue": infor.DisinfectionResidue, "long_time": infor.LongTime, "disinfec_startime": infor.DisinfecStartime, "disinfec_endtime": infor.DisinfecEndtime, "dialysis_checked": infor.DialysisChecked, "dialysis_name": infor.DialysisName, "norms": infor.Norms, "dialysis_concentration": infor.DialysisConcentration,
734 734
 		"germ_checked": infor.GermChecked, "germ_name": infor.GermName, "germ_number": infor.GermNumber, "clean": infor.Clean, "sign_name": infor.SignName, "bed": infor.Bed, "patient_id": infor.PatientId, "mtime": time.Now().Unix()}).Error
735 735
 	return err
736 736
 }