Bladeren bron

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

csx 3 jaren geleden
bovenliggende
commit
35a73d8a8d

+ 3 - 0
controllers/sg/his_api_controller.go Bestand weergeven

718
 	}
718
 	}
719
 	struct4101.SetlBegnDate = order.SetlTime
719
 	struct4101.SetlBegnDate = order.SetlTime
720
 	struct4101.SetlEndDate = order.SetlTime
720
 	struct4101.SetlEndDate = order.SetlTime
721
+	time_arr := strings.Split(order.SetlTime, " ")
722
+	struct4101.AdmTime = time_arr[0]
723
+	struct4101.AdmEndTime = time_arr[0]
721
 
724
 
722
 	var rf []CustomFundPay
725
 	var rf []CustomFundPay
723
 	json.Unmarshal([]byte(order.SetlDetail), &rf)
726
 	json.Unmarshal([]byte(order.SetlDetail), &rf)

+ 1 - 1
controllers/zh/zh_his_api_controller.go Bestand weergeven

1612
 							customs = append(customs, cus)
1612
 							customs = append(customs, cus)
1613
 						}
1613
 						}
1614
 					} else if subItem.Type == 3 {
1614
 					} else if subItem.Type == 3 {
1615
-						if len(subItem.GoodInfo.MedicalInsuranceNumber) > 0 {
1615
+						if len(subItem.GoodInfo.MedicalInsuranceNumber) > 0 && subItem.GoodInfo.IsUser != 1 {
1616
 							cnt, _ := strconv.ParseFloat(subItem.Count, 64)
1616
 							cnt, _ := strconv.ParseFloat(subItem.Count, 64)
1617
 
1617
 
1618
 							cus := &models.NewCustom{
1618
 							cus := &models.NewCustom{

+ 1 - 0
models/good_models.go Bestand weergeven

72
 	Agent              string    `gorm:"column:agent" json:"agent" form:"agent"`
72
 	Agent              string    `gorm:"column:agent" json:"agent" form:"agent"`
73
 	GoodNumber         string    `gorm:"column:good_number" json:"good_number" form:"good_number"`
73
 	GoodNumber         string    `gorm:"column:good_number" json:"good_number" form:"good_number"`
74
 	GoodsType          GoodsType `gorm:"ForeignKey:ID;AssociationForeignKey:GoodTypeId" json:"type"`
74
 	GoodsType          GoodsType `gorm:"ForeignKey:ID;AssociationForeignKey:GoodTypeId" json:"type"`
75
+	IsUser             int64     `gorm:"column:is_user" json:"is_user" form:"is_user"`
75
 }
76
 }
76
 
77
 
77
 func (GoodInfo) TableName() string {
78
 func (GoodInfo) TableName() string {

+ 1 - 0
models/his_models.go Bestand weergeven

1194
 	ProductionType              string `gorm:"column:production_type" json:"production_type" form:"production_type"`
1194
 	ProductionType              string `gorm:"column:production_type" json:"production_type" form:"production_type"`
1195
 	SpecialMedical              string `gorm:"column:special_medical" json:"special_medical" form:"special_medical"`
1195
 	SpecialMedical              string `gorm:"column:special_medical" json:"special_medical" form:"special_medical"`
1196
 	IsMark                      int64  `gorm:"column:is_mark" json:"is_mark" form:"is_mark"`
1196
 	IsMark                      int64  `gorm:"column:is_mark" json:"is_mark" form:"is_mark"`
1197
+	IsUser                      int64  `gorm:"column:is_user" json:"is_user" form:"is_user"`
1197
 }
1198
 }
1198
 
1199
 
1199
 func (MyGoodInformation) TableName() string {
1200
 func (MyGoodInformation) TableName() string {

+ 1 - 0
models/stock_models.go Bestand weergeven

257
 	Manufacturers     Manufacturer `gorm:"ForeignKey:Manufacturer;AssociationForeignKey:ID" json:"manufacturers"`
257
 	Manufacturers     Manufacturer `gorm:"ForeignKey:Manufacturer;AssociationForeignKey:ID" json:"manufacturers"`
258
 	Dealers           Dealer       `gorm:"ForeignKey:Dealer;AssociationForeignKey:ID" json:"dealers"`
258
 	Dealers           Dealer       `gorm:"ForeignKey:Dealer;AssociationForeignKey:ID" json:"dealers"`
259
 	BuyPrice          float64      `gorm:"column:buy_price" json:"buy_price"`
259
 	BuyPrice          float64      `gorm:"column:buy_price" json:"buy_price"`
260
+	IsUser            int64        `gorm:"column:is_user" json:"is_user" form:"is_user"`
260
 }
261
 }
261
 
262
 
262
 func (WarehousingGoodInfo) TableName() string {
263
 func (WarehousingGoodInfo) TableName() string {

+ 1 - 0
models/stock_query_models.go Bestand weergeven

7
 	SpecificationName string `gorm:"column:specification_name" json:"specification_name"`
7
 	SpecificationName string `gorm:"column:specification_name" json:"specification_name"`
8
 	GoodTypeId        int64  `gorm:"column:good_type_id" json:"good_type_id"`
8
 	GoodTypeId        int64  `gorm:"column:good_type_id" json:"good_type_id"`
9
 	GoodUnit          int64  `gorm:"column:good_unit" json:"good_unit"`
9
 	GoodUnit          int64  `gorm:"column:good_unit" json:"good_unit"`
10
+	IsUser            int64  `gorm:"column:is_user" json:"is_user" form:"is_user"`
10
 
11
 
11
 	QueryWarehousingInfo  []QueryWarehousingInfo  `gorm:"ForeignKey:GoodId;AssociationForeignKey:ID" json:"query_warehousing_info"`
12
 	QueryWarehousingInfo  []QueryWarehousingInfo  `gorm:"ForeignKey:GoodId;AssociationForeignKey:ID" json:"query_warehousing_info"`
12
 	QuerySalesReturnInfo  []QuerySalesReturnInfo  `gorm:"ForeignKey:GoodId;AssociationForeignKey:ID" json:"query_sales_return_info"`
13
 	QuerySalesReturnInfo  []QuerySalesReturnInfo  `gorm:"ForeignKey:GoodId;AssociationForeignKey:ID" json:"query_sales_return_info"`

+ 4 - 2
service/gdyb_service.go Bestand weergeven

2826
 	CustomStruct       []CustomStruct
2826
 	CustomStruct       []CustomStruct
2827
 	OpspdiseinfoStruct []OpspdiseinfoStruct
2827
 	OpspdiseinfoStruct []OpspdiseinfoStruct
2828
 	IteminfoStruct     []IteminfoStruct
2828
 	IteminfoStruct     []IteminfoStruct
2829
+	AdmTime            string
2830
+	AdmEndTime         string
2829
 }
2831
 }
2830
 
2832
 
2831
 //
2833
 //
2889
 	inputData["ipt_med_type"] = struct4101.IptMedType         // 住院医疗类型  必填
2891
 	inputData["ipt_med_type"] = struct4101.IptMedType         // 住院医疗类型  必填
2890
 	inputData["adm_way"] = ""                                 // 入院途径  必填
2892
 	inputData["adm_way"] = ""                                 // 入院途径  必填
2891
 	inputData["trt_type"] = ""                                // 治疗类别  必填
2893
 	inputData["trt_type"] = ""                                // 治疗类别  必填
2892
-	inputData["adm_time"] = ""                                // 入院时间  必填
2894
+	inputData["adm_time"] = struct4101.AdmTime                // 入院时间  必填
2893
 	inputData["adm_caty"] = struct4101.AdmCaty                // 入院科别  必填
2895
 	inputData["adm_caty"] = struct4101.AdmCaty                // 入院科别  必填
2894
 	inputData["refldept_dept"] = ""                           // 转科科别  必填
2896
 	inputData["refldept_dept"] = ""                           // 转科科别  必填
2895
-	inputData["dscg_time"] = ""                               // 出院时间  必填
2897
+	inputData["dscg_time"] = struct4101.AdmEndTime            // 出院时间  必填
2896
 	inputData["dscg_caty"] = struct4101.AdmCaty               // 出院科别  必填
2898
 	inputData["dscg_caty"] = struct4101.AdmCaty               // 出院科别  必填
2897
 	inputData["act_ipt_days"] = ""                            // 实际住院天数  必填
2899
 	inputData["act_ipt_days"] = ""                            // 实际住院天数  必填
2898
 	inputData["otp_wm_dise"] = ""                             // 门(急) 诊西医诊断  必填
2900
 	inputData["otp_wm_dise"] = ""                             // 门(急) 诊西医诊断  必填