28169 2 meses atrás
pai
commit
ea86cd5151

BIN
XT_New.exe Ver arquivo


+ 4 - 4
controllers/base_api_controller.go Ver arquivo

83
 		userAdmin.ModifyTime = 1530786071
83
 		userAdmin.ModifyTime = 1530786071
84
 		var subscibe models.ServeSubscibe
84
 		var subscibe models.ServeSubscibe
85
 		subscibe.ID = 11
85
 		subscibe.ID = 11
86
-		subscibe.OrgId = 9478 //机构id
86
+		subscibe.OrgId = 10164 //机构id
87
 		subscibe.PeriodStart = 1547447814
87
 		subscibe.PeriodStart = 1547447814
88
 		subscibe.PeriodEnd = 1550039814
88
 		subscibe.PeriodEnd = 1550039814
89
 		subscibe.State = 1
89
 		subscibe.State = 1
93
 		subscibes := make(map[int64]*models.ServeSubscibe, 0)
93
 		subscibes := make(map[int64]*models.ServeSubscibe, 0)
94
 		subscibes[4] = &subscibe
94
 		subscibes[4] = &subscibe
95
 		var adminUserInfo service.AdminUserInfo
95
 		var adminUserInfo service.AdminUserInfo
96
-		adminUserInfo.CurrentOrgId = 9478  //机构id小英9675或4
96
+		adminUserInfo.CurrentOrgId = 10164 //机构id小英9675或4
97
 		adminUserInfo.CurrentAppId = 18470 //4
97
 		adminUserInfo.CurrentAppId = 18470 //4
98
 		adminUserInfo.AdminUser = &userAdmin
98
 		adminUserInfo.AdminUser = &userAdmin
99
 		adminUserInfo.Subscibes = subscibes
99
 		adminUserInfo.Subscibes = subscibes
329
 		userAdmin.ModifyTime = 1530786071
329
 		userAdmin.ModifyTime = 1530786071
330
 		var subscibe models.ServeSubscibe
330
 		var subscibe models.ServeSubscibe
331
 		subscibe.ID = 11
331
 		subscibe.ID = 11
332
-		subscibe.OrgId = 9478 //机构id小英9675或4
332
+		subscibe.OrgId = 10164 //机构id小英9675或4
333
 		subscibe.PeriodStart = 1538035409
333
 		subscibe.PeriodStart = 1538035409
334
 		subscibe.PeriodEnd = 1569571409
334
 		subscibe.PeriodEnd = 1569571409
335
 		subscibe.State = 1
335
 		subscibe.State = 1
339
 		subscibes := make(map[int64]*models.ServeSubscibe, 0)
339
 		subscibes := make(map[int64]*models.ServeSubscibe, 0)
340
 		subscibes[4] = &subscibe
340
 		subscibes[4] = &subscibe
341
 		var adminUserInfo service.AdminUserInfo
341
 		var adminUserInfo service.AdminUserInfo
342
-		adminUserInfo.CurrentOrgId = 9478  //机构id小英9675或4
342
+		adminUserInfo.CurrentOrgId = 10164 //机构id小英9675或4
343
 		adminUserInfo.CurrentAppId = 18470 //4
343
 		adminUserInfo.CurrentAppId = 18470 //4
344
 		adminUserInfo.AdminUser = &userAdmin
344
 		adminUserInfo.AdminUser = &userAdmin
345
 		adminUserInfo.Subscibes = subscibes
345
 		adminUserInfo.Subscibes = subscibes

+ 1 - 1
controllers/mobile_api_controllers/dialysis_api_controller.go Ver arquivo

12065
 		StopTime:              0,
12065
 		StopTime:              0,
12066
 		StopReason:            "",
12066
 		StopReason:            "",
12067
 		StopDoctor:            0,
12067
 		StopDoctor:            0,
12068
-		StopState:             0,
12068
+		StopState:             2,
12069
 		ParentId:              0,
12069
 		ParentId:              0,
12070
 		ExecutionTime:         0,
12070
 		ExecutionTime:         0,
12071
 		ExecutionStaff:        0,
12071
 		ExecutionStaff:        0,

+ 1 - 0
models/stock_models.go Ver arquivo

123
 	StorehouseId     int64   `gorm:"column:storehouse_id" json:"storehouse_id" form:"storehouse_id"`
123
 	StorehouseId     int64   `gorm:"column:storehouse_id" json:"storehouse_id" form:"storehouse_id"`
124
 	OrgId            int64   `gorm:"column:org_id" json:"org_id"`
124
 	OrgId            int64   `gorm:"column:org_id" json:"org_id"`
125
 	Price            float64 `gorm:"column:price" json:"price" form:"price"`
125
 	Price            float64 `gorm:"column:price" json:"price" form:"price"`
126
+	PackingPrice     float64 `gorm:"column:packing_price" json:"packing_price" form:"packing_price"`
126
 }
127
 }
127
 
128
 
128
 func (StWarehousingInfoOne) TableName() string {
129
 func (StWarehousingInfoOne) TableName() string {

+ 3 - 3
service/export_data_service.go Ver arquivo

224
 		psn_cash_pay AS 现金支付
224
 		psn_cash_pay AS 现金支付
225
 	`).Where("user_org_id = ?", 10726).
225
 	`).Where("user_org_id = ?", 10726).
226
 		Where("order_status = ?", 2).
226
 		Where("order_status = ?", 2).
227
-		Where("setl_time >= ?", start_time).
228
-		Where("setl_time <= ?", end_time).
227
+		Where("setl_time >= ?", start_time+" 00:00:00").
228
+		Where("setl_time <= ?", end_time+" 23:59:59").
229
 		Where("is_medicine_insurance = ?", 1).
229
 		Where("is_medicine_insurance = ?", 1).
230
 		Where("status = ?", 1).
230
 		Where("status = ?", 1).
231
 		Scan(&result)
231
 		Scan(&result)
255
 			SUM(psn_cash_pay) AS 现金支付
255
 			SUM(psn_cash_pay) AS 现金支付
256
 		`).
256
 		`).
257
 		Where("user_org_id = ? AND order_status = ? AND setl_time >= ? AND setl_time <= ? AND is_medicine_insurance = ? AND status = ?",
257
 		Where("user_org_id = ? AND order_status = ? AND setl_time >= ? AND setl_time <= ? AND is_medicine_insurance = ? AND status = ?",
258
-			10726, 2, start_time, end_time, 1, 1).
258
+			10726, 2, start_time+" 00:00:00", end_time+" 23:59:59", 1, 1).
259
 		Group("insutype").
259
 		Group("insutype").
260
 		Scan(&result).Error
260
 		Scan(&result).Error
261
 	return result, err
261
 	return result, err