|
@@ -1013,7 +1013,7 @@ func (c *DialysisAPIController) PostDialysisPrescription() {
|
1013
|
1013
|
safe_package, _ := c.GetInt64("package", 0)
|
1014
|
1014
|
a_liquid, _ := c.GetInt64("a_liquid", 0)
|
1015
|
1015
|
|
1016
|
|
- //appRole, _ := service.FindAdminRoleTypeById(adminUserInfo.Org.Id, adminUserInfo.AdminUser.Id, adminUserInfo.App.Id)
|
|
1016
|
+ appRole, _ := service.FindAdminRoleTypeById(adminUserInfo.Org.Id, adminUserInfo.AdminUser.Id, adminUserInfo.App.Id)
|
1017
|
1017
|
//template, _ := service.GetOrgInfoTemplate(adminUserInfo.Org.Id)
|
1018
|
1018
|
//
|
1019
|
1019
|
//if template.TemplateId == 2 || template.TemplateId == 6 {
|
|
@@ -1030,11 +1030,11 @@ func (c *DialysisAPIController) PostDialysisPrescription() {
|
1030
|
1030
|
//}
|
1031
|
1031
|
|
1032
|
1032
|
//TODO 需要根据角色去判断
|
1033
|
|
- //if appRole.UserType == 2 || appRole.UserType == 1 {
|
1034
|
|
- // prescription_doctor = appRole.AdminUserId
|
1035
|
|
- //} else {
|
1036
|
|
- // prescription_doctor = 0
|
1037
|
|
- //}
|
|
1033
|
+ if appRole.UserType == 2 || appRole.UserType == 1 {
|
|
1034
|
+ prescription_doctor = appRole.AdminUserId
|
|
1035
|
+ } else {
|
|
1036
|
+ prescription_doctor = 0
|
|
1037
|
+ }
|
1038
|
1038
|
|
1039
|
1039
|
prescription := models.DialysisPrescription{
|
1040
|
1040
|
|
|
@@ -2248,9 +2248,7 @@ func (c *DialysisAPIController) PostDialysisPrescription() {
|
2248
|
2248
|
|
2249
|
2249
|
prescription.CreatedTime = dialysisPrescription.CreatedTime
|
2250
|
2250
|
prescription.Modifier = adminUserInfo.AdminUser.Id
|
2251
|
|
- prescription.Creater = adminUserInfo.AdminUser.Id
|
2252
|
2251
|
prescription.PrescriptionDoctor = adminUserInfo.AdminUser.Id
|
2253
|
|
-
|
2254
|
2252
|
prescription.ID = dialysisPrescription.ID
|
2255
|
2253
|
err := service.UpDateDialysisPrescription(&prescription)
|
2256
|
2254
|
if err == nil {
|