|
@@ -702,7 +702,8 @@ func (c *HisApiController) GetUploadInfo() {
|
702
|
702
|
|
703
|
703
|
//if settle_accounts_type == 1 { //日结
|
704
|
704
|
//
|
705
|
|
- //} else { //月结
|
|
705
|
+ //} else
|
|
706
|
+ //{ //月结
|
706
|
707
|
// start_time := c.GetString("start_time")
|
707
|
708
|
// end_time := c.GetString("end_time")
|
708
|
709
|
// timeLayout := "2006-01-02"
|
|
@@ -754,22 +755,44 @@ func (c *HisApiController) GetUploadInfo() {
|
754
|
755
|
// var custom models.Custom
|
755
|
756
|
// for _,subItem := range advices{
|
756
|
757
|
// if item == subItem.MedListCodg{
|
757
|
|
- //
|
758
|
|
- //
|
759
|
|
- //
|
|
758
|
+ // custom.Price =fmt.Sprintf("%.2f", subItem.Price)
|
|
759
|
+ // custom.MedListCodg = subItem.MedListCodg
|
|
760
|
+ // custom.Cut = fmt.Sprintf("%.2f", subItem.PrescribingNumber)
|
|
761
|
+ // custom.DetItemFeeSumamt = fmt.Sprintf("%.2f", subItem.Price*subItem.PrescribingNumber)
|
|
762
|
+ // custom.FeedetlSn = subItem.FeedetlSn
|
|
763
|
+ // customs = append(customs,&custom)
|
760
|
764
|
// }
|
761
|
765
|
// }
|
762
|
766
|
// }
|
763
|
767
|
//
|
764
|
768
|
//
|
|
769
|
+ // for _, item := range additionCodes{
|
|
770
|
+ // var custom models.Custom
|
|
771
|
+ // for _,subItem := range additions{
|
|
772
|
+ // if item == subItem.XtHisAddtionConfig.Code{
|
|
773
|
+ // custom.Price =fmt.Sprintf("%.2f", subItem.Price)
|
|
774
|
+ // custom.MedListCodg = subItem.XtHisAddtionConfig.Code
|
|
775
|
+ // custom.Cut = fmt.Sprintf("%.2f", subItem.Count)
|
|
776
|
+ // custom.DetItemFeeSumamt = fmt.Sprintf("%.2f", subItem.Price*float64(subItem.Count))
|
|
777
|
+ // custom.FeedetlSn = subItem.FeedetlSn
|
|
778
|
+ // customs = append(customs,&custom)
|
|
779
|
+ // }
|
|
780
|
+ // }
|
|
781
|
+ // }
|
765
|
782
|
//
|
766
|
|
- //
|
767
|
|
- //
|
768
|
|
- //
|
769
|
|
- //
|
770
|
|
- //
|
771
|
|
- //
|
772
|
|
- //
|
|
783
|
+ // for _, item := range projectCodes{
|
|
784
|
+ // var custom models.Custom
|
|
785
|
+ // for _,subItem := range projects{
|
|
786
|
+ // if item == subItem.MedListCodg{
|
|
787
|
+ // custom.Price =fmt.Sprintf("%.2f", subItem.Price)
|
|
788
|
+ // custom.MedListCodg = subItem.MedListCodg
|
|
789
|
+ // custom.Cut = fmt.Sprintf("%.2f", subItem.Count)
|
|
790
|
+ // custom.DetItemFeeSumamt = fmt.Sprintf("%.2f", subItem.Price*float64(subItem.Count))
|
|
791
|
+ // custom.FeedetlSn = subItem.FeedetlSn
|
|
792
|
+ // customs = append(customs,&custom)
|
|
793
|
+ // }
|
|
794
|
+ // }
|
|
795
|
+ // }
|
773
|
796
|
//
|
774
|
797
|
//}
|
775
|
798
|
|
|
@@ -953,7 +976,7 @@ func (c *HisApiController) GetUploadInfo() {
|
953
|
976
|
insutype := rf[0].Insutype
|
954
|
977
|
api := "http://127.0.0.1:9532/" + "gdyb/eight?cert_no=" + cert_no + "&insutype=" +
|
955
|
978
|
insutype + "&psn_no=" + psn_no + "&chrg_bchno=" + chrg_bchno + "&mdtrt_id=" + mdtrt_id +
|
956
|
|
- "&total=" + allTotal + "&org_name=" + miConfig.OrgName + "&doctor=" + patientPrescription.Doctor + "&fixmedins_code=" + miConfig.Code + "&insuplc_admdvs=" + miConfig.InsuplcAdmdvs + "&mdtrtarea_admvs=" + miConfig.MdtrtareaAdmvs + "&secret_key=" + miConfig.SecretKey
|
|
979
|
+ "&total=" + allTotal + "&org_name=" + miConfig.OrgName + "&doctor=" + patientPrescription.Doctor + "&fixmedins_code=" + miConfig.Code + "&insuplc_admdvs=" + miConfig.InsuplcAdmdvs + "&mdtrtarea_admvs=" + miConfig.MdtrtareaAdmvs + "&secret_key=" + miConfig.SecretKey + "&med_type=" + strconv.FormatInt(patientPrescription.RegisterType, 10)
|
957
|
980
|
resp, requestErr := http.Get(api)
|
958
|
981
|
|
959
|
982
|
if requestErr != nil {
|