瀏覽代碼

Merge branch 'master' of http://git.shengws.com/csx/gdyb

csx 1 年之前
父節點
當前提交
e0121d56ee
共有 3 個文件被更改,包括 7 次插入0 次删除
  1. 1 0
      models/good_models.go
  2. 5 0
      service/fj_service.go
  3. 1 0
      service/gdyb_service.go

+ 1 - 0
models/good_models.go 查看文件

@@ -71,6 +71,7 @@ type GoodInfo struct {
71 71
 	GoodNumber         string    `gorm:"column:good_number" json:"good_number" form:"good_number"`
72 72
 	GoodsType          GoodsType `gorm:"ForeignKey:ID;AssociationForeignKey:GoodTypeId" json:"type"`
73 73
 	IsUser             int64     `gorm:"column:is_user" json:"is_user" form:"is_user"`
74
+	PackingUnit        string    `gorm:"column:packing_unit" json:"packing_unit" form:"packing_unit"`
74 75
 }
75 76
 
76 77
 func (GoodInfo) TableName() string {

+ 5 - 0
service/fj_service.go 查看文件

@@ -290,6 +290,7 @@ func FJyb2204(psnNo string, mdtrtId string, hisPrescription []*models.HisPrescri
290 290
 						MedListCodg:      subItem.BaseDrugLib.MedicalInsuranceNumber,
291 291
 						HospApprFlag:     subItem.BaseDrugLib.HospApprFlag,
292 292
 						FeeOcurTime:      tm.Format("2006-01-02 15:04:05"),
293
+						Unit:             subItem.PrescribingNumberUnit,
293 294
 					}
294 295
 
295 296
 					customs = append(customs, cus)
@@ -313,6 +314,7 @@ func FJyb2204(psnNo string, mdtrtId string, hisPrescription []*models.HisPrescri
313 314
 							MedListCodg:      subItem.HisProject.MedicalCode,
314 315
 							HospApprFlag:     -1,
315 316
 							FeeOcurTime:      tm.Format("2006-01-02 15:04:05"),
317
+							Unit:             subItem.HisProject.Unit,
316 318
 						}
317 319
 						customs = append(customs, cus)
318 320
 					}
@@ -329,6 +331,7 @@ func FJyb2204(psnNo string, mdtrtId string, hisPrescription []*models.HisPrescri
329 331
 							MedListCodg:      subItem.GoodInfo.MedicalInsuranceNumber,
330 332
 							HospApprFlag:     -1,
331 333
 							FeeOcurTime:      tm.Format("2006-01-02 15:04:05"),
334
+							Unit:             subItem.GoodInfo.PackingUnit,
332 335
 						}
333 336
 						customs = append(customs, cus)
334 337
 					}
@@ -389,6 +392,8 @@ func FJyb2204(psnNo string, mdtrtId string, hisPrescription []*models.HisPrescri
389 392
 		feedetailInfo["acord_dept_name"] = ""                        // 受单科室名称
390 393
 		feedetailInfo["orders_dr_code"] = ""                         // 受单医生编码
391 394
 		feedetailInfo["orders_dr_name"] = ""                         // 受单医生姓名
395
+		feedetailInfo["exp_content"] = item.Unit                     // 中药使用方式
396
+
392 397
 		if balance_accounts_type == "8" {
393 398
 			feedetailInfo["hosp_appr_flag"] = "2" // 医院审批标志
394 399
 		} else {

+ 1 - 0
service/gdyb_service.go 查看文件

@@ -791,6 +791,7 @@ type Custom struct {
791 791
 	ProvinceGoodMedListCodg string
792 792
 	IsUser                  int64
793 793
 	FeeOcurTime             string
794
+	Unit                    string
794 795
 }
795 796
 
796 797
 type RequestResult struct {