|
@@ -2246,11 +2246,97 @@ func (c *HisApiController) CreateHisPrescription() {
|
2246
|
2246
|
//已发药和已收费限制逻辑
|
2247
|
2247
|
isMidicine := false
|
2248
|
2248
|
isCharge := false
|
|
2249
|
+ //是否有库存
|
|
2250
|
+ isSumCount := false
|
|
2251
|
+
|
|
2252
|
+ is_sum_total := false
|
|
2253
|
+
|
|
2254
|
+ var drug_name = ""
|
|
2255
|
+
|
|
2256
|
+ var good_name = ""
|
|
2257
|
+
|
2249
|
2258
|
if dataBody["prescriptions"] != nil && reflect.TypeOf(dataBody["prescriptions"]).String() == "[]interface {}" {
|
2250
|
2259
|
prescriptions, _ := dataBody["prescriptions"].([]interface{})
|
2251
|
2260
|
if len(prescriptions) > 0 {
|
2252
|
2261
|
for _, item := range prescriptions {
|
2253
|
2262
|
items := item.(map[string]interface{})
|
|
2263
|
+
|
|
2264
|
+ if adminInfo.CurrentOrgId == 9478 {
|
|
2265
|
+ if items["advices"] != nil && reflect.TypeOf(items["advices"]).String() == "[]interface {}" {
|
|
2266
|
+ advices := items["advices"].([]interface{})
|
|
2267
|
+ if len(advices) > 0 {
|
|
2268
|
+ for _, advice := range advices {
|
|
2269
|
+ var adviceId int64
|
|
2270
|
+ if advice.(map[string]interface{})["advice_id"] != nil || reflect.TypeOf(advice.(map[string]interface{})["advice_id"]).String() == "float64" {
|
|
2271
|
+ adviceId = int64(advice.(map[string]interface{})["advice_id"].(float64))
|
|
2272
|
+ }
|
|
2273
|
+ var drug_id int64
|
|
2274
|
+ if advice.(map[string]interface{})["id"] != nil || reflect.TypeOf(advice.(map[string]interface{})["id"]).String() == "float64" {
|
|
2275
|
+ drug_id = int64(advice.(map[string]interface{})["id"].(float64))
|
|
2276
|
+ }
|
|
2277
|
+ drug, _ := service.FindBaseDrugLibRecordSeven(adminInfo.CurrentOrgId, drug_id)
|
|
2278
|
+ //查询该药品是否存在开药记录
|
|
2279
|
+ advicelist, _ := service.GetHisAdviceListByDrugIdEight(drug_id, patient_id, recordDateTime, adviceId)
|
|
2280
|
+ if advicelist.ID == 0 {
|
|
2281
|
+ if drug.IsUse != 1 {
|
|
2282
|
+ if drug.SumCount == 0 {
|
|
2283
|
+ drug_name = drug.DrugName
|
|
2284
|
+ isSumCount = true
|
|
2285
|
+ }
|
|
2286
|
+ }
|
|
2287
|
+
|
|
2288
|
+ }
|
|
2289
|
+ }
|
|
2290
|
+ }
|
|
2291
|
+ }
|
|
2292
|
+
|
|
2293
|
+ if items["project"] != nil && reflect.TypeOf(items["project"]).String() == "[]interface {}" {
|
|
2294
|
+ projects := items["project"].([]interface{})
|
|
2295
|
+ if len(projects) > 0 {
|
|
2296
|
+ for _, project := range projects {
|
|
2297
|
+
|
|
2298
|
+ var project_id int64
|
|
2299
|
+ var project_type int64
|
|
2300
|
+ var project_name string
|
|
2301
|
+
|
|
2302
|
+ if project.(map[string]interface{})["project_id"] != nil || reflect.TypeOf(project.(map[string]interface{})["project_id"]).String() == "float64" {
|
|
2303
|
+ project_id = int64(project.(map[string]interface{})["project_id"].(float64))
|
|
2304
|
+ }
|
|
2305
|
+
|
|
2306
|
+ if project.(map[string]interface{})["type"] != nil || reflect.TypeOf(project.(map[string]interface{})["type"]).String() == "float64" {
|
|
2307
|
+ project_type = int64(project.(map[string]interface{})["type"].(float64))
|
|
2308
|
+ }
|
|
2309
|
+
|
|
2310
|
+ if project.(map[string]interface{})["project_name"] != nil || reflect.TypeOf(project.(map[string]interface{})["project_name"]).String() == "string" {
|
|
2311
|
+ project_name = project.(map[string]interface{})["project_name"].(string)
|
|
2312
|
+
|
|
2313
|
+ }
|
|
2314
|
+
|
|
2315
|
+ if project_type == 3 {
|
|
2316
|
+
|
|
2317
|
+ //查找该耗材的出库记录
|
|
2318
|
+ goodWarehouseInfo, _ := service.GetAutoRecordByGoodIdSevenEight(project_id, patient_id, recordDateTime)
|
|
2319
|
+
|
|
2320
|
+ if len(goodWarehouseInfo) == 0 {
|
|
2321
|
+ //查询耗材库存
|
|
2322
|
+ list, _ := service.GetGoodWarehouseInfoSevenTen(project_id, storeConfig.StorehouseOutInfo)
|
|
2323
|
+
|
|
2324
|
+ var stock_count int64
|
|
2325
|
+ for _, it := range list {
|
|
2326
|
+ stock_count += it.StockCount
|
|
2327
|
+ }
|
|
2328
|
+
|
|
2329
|
+ if stock_count == 0 {
|
|
2330
|
+ good_name = project_name
|
|
2331
|
+ is_sum_total = true
|
|
2332
|
+ }
|
|
2333
|
+ }
|
|
2334
|
+ }
|
|
2335
|
+ }
|
|
2336
|
+ }
|
|
2337
|
+ }
|
|
2338
|
+ }
|
|
2339
|
+
|
2254
|
2340
|
if items["id"] == nil || reflect.TypeOf(items["id"]).String() != "float64" {
|
2255
|
2341
|
utils.ErrorLog("id")
|
2256
|
2342
|
c.ServeFailJSONWithSGJErrorCode(enums.ErrorCodeParamWrong)
|
|
@@ -2278,6 +2364,25 @@ func (c *HisApiController) CreateHisPrescription() {
|
2278
|
2364
|
return
|
2279
|
2365
|
}
|
2280
|
2366
|
|
|
2367
|
+ if adminInfo.CurrentOrgId == 9478 {
|
|
2368
|
+ //不是保存处方出库
|
|
2369
|
+ drugOutConfig, _ := service.GetDrugOpenConfigOne(adminInfo.CurrentOrgId)
|
|
2370
|
+
|
|
2371
|
+ if drugOutConfig.IsOpen == 1 {
|
|
2372
|
+ if isSumCount == true {
|
|
2373
|
+ c.ServeDynamicFailJsonSend(drug_name + "库存不足,保存失败")
|
|
2374
|
+ return
|
|
2375
|
+ }
|
|
2376
|
+ }
|
|
2377
|
+
|
|
2378
|
+ if goodOutConfig.IsOpen == 1 {
|
|
2379
|
+ if is_sum_total == true {
|
|
2380
|
+ c.ServeDynamicFailJsonSend(good_name + "库存不足,保存失败")
|
|
2381
|
+ return
|
|
2382
|
+ }
|
|
2383
|
+ }
|
|
2384
|
+ }
|
|
2385
|
+
|
2281
|
2386
|
// 开始主事务
|
2282
|
2387
|
db := service.XTWriteDB()
|
2283
|
2388
|
tx := db.Begin()
|
|
@@ -3359,8 +3464,6 @@ func (c *HisApiController) CreateHisPrescription() {
|
3359
|
3464
|
//查询该患者耗材的历史数据
|
3360
|
3465
|
ordProject, _ := service.GetHisProjectPrescriptionByPatientIdOne(id)
|
3361
|
3466
|
|
3362
|
|
- fmt.Println("ordProject-----------------------", ordProject.ProjectId)
|
3363
|
|
-
|
3364
|
3467
|
count, _ := strconv.ParseInt(ordProject.Count, 10, 64)
|
3365
|
3468
|
|
3366
|
3469
|
//数量发生改变
|
|
@@ -3534,7 +3637,7 @@ func (c *HisApiController) CreateHisPrescription() {
|
3534
|
3637
|
var adviceList []models.HisDoctorAdviceInfo
|
3535
|
3638
|
var projectList []models.HisPrescriptionProject
|
3536
|
3639
|
|
3537
|
|
- if adminInfo.CurrentOrgId == 10489 || adminInfo.CurrentOrgId == 10510 || adminInfo.CurrentOrgId == 10164 || adminInfo.CurrentOrgId == 10478 || adminInfo.CurrentOrgId == 10318 || adminInfo.CurrentOrgId == 10480 || adminInfo.CurrentOrgId == 10633 || adminInfo.CurrentOrgId == 10610 || adminInfo.CurrentOrgId == 10402 || adminInfo.CurrentOrgId == 10138 || adminInfo.CurrentOrgId == 10278 || adminInfo.CurrentOrgId == 10537 || adminInfo.CurrentOrgId == 10265 || adminInfo.CurrentOrgId == 10644 || adminInfo.CurrentOrgId == 10635 || adminInfo.CurrentOrgId == 10598 || adminInfo.CurrentOrgId == 10028 || adminInfo.CurrentOrgId == 10721 || adminInfo.CurrentOrgId == 10726 || adminInfo.CurrentOrgId == 10731 || adminInfo.CurrentOrgId == 10571 || adminInfo.CurrentOrgId == 10724 || adminInfo.CurrentOrgId == 9671 || adminInfo.CurrentOrgId == 10731 || adminInfo.CurrentOrgId == 10653 || adminInfo.CurrentOrgId == 10567 || adminInfo.CurrentOrgId == 10751 || adminInfo.CurrentOrgId == 10752 || adminInfo.CurrentOrgId == 9478 || adminInfo.CurrentOrgId == 10567 || adminInfo.CurrentOrgId == 10768 {
|
|
3640
|
+ if adminInfo.CurrentOrgId == 10489 || adminInfo.CurrentOrgId == 10510 || adminInfo.CurrentOrgId == 10164 || adminInfo.CurrentOrgId == 10478 || adminInfo.CurrentOrgId == 10318 || adminInfo.CurrentOrgId == 10480 || adminInfo.CurrentOrgId == 10633 || adminInfo.CurrentOrgId == 10610 || adminInfo.CurrentOrgId == 10402 || adminInfo.CurrentOrgId == 10138 || adminInfo.CurrentOrgId == 10278 || adminInfo.CurrentOrgId == 10537 || adminInfo.CurrentOrgId == 10265 || adminInfo.CurrentOrgId == 10644 || adminInfo.CurrentOrgId == 10635 || adminInfo.CurrentOrgId == 10598 || adminInfo.CurrentOrgId == 10028 || adminInfo.CurrentOrgId == 10721 || adminInfo.CurrentOrgId == 10726 || adminInfo.CurrentOrgId == 10731 || adminInfo.CurrentOrgId == 10571 || adminInfo.CurrentOrgId == 10724 || adminInfo.CurrentOrgId == 9671 || adminInfo.CurrentOrgId == 10731 || adminInfo.CurrentOrgId == 10653 || adminInfo.CurrentOrgId == 10567 || adminInfo.CurrentOrgId == 10751 || adminInfo.CurrentOrgId == 10752 || adminInfo.CurrentOrgId == 9478 || adminInfo.CurrentOrgId == 10567 || adminInfo.CurrentOrgId == 10768 || adminInfo.CurrentOrgId == 10164 {
|
3538
|
3641
|
if dataBody["prescriptions"] != nil && reflect.TypeOf(dataBody["prescriptions"]).String() == "[]interface {}" {
|
3539
|
3642
|
prescriptions, _ := dataBody["prescriptions"].([]interface{})
|
3540
|
3643
|
|
|
@@ -3675,6 +3778,7 @@ func (c *HisApiController) CreateHisPrescription() {
|
3675
|
3778
|
if items["advices"] != nil && reflect.TypeOf(items["advices"]).String() == "[]interface {}" {
|
3676
|
3779
|
advices := items["advices"].([]interface{})
|
3677
|
3780
|
groupNo := int64(0)
|
|
3781
|
+
|
3678
|
3782
|
if len(advices) > 0 {
|
3679
|
3783
|
for _, advice := range advices {
|
3680
|
3784
|
tx := db.Begin()
|
|
@@ -3807,6 +3911,7 @@ func (c *HisApiController) CreateHisPrescription() {
|
3807
|
3911
|
if base.ID > 0 {
|
3808
|
3912
|
tx.Rollback()
|
3809
|
3913
|
c.ServeDynamicFailJsonSend(base.DrugName + "已停用!请更换其他药品")
|
|
3914
|
+
|
3810
|
3915
|
return
|
3811
|
3916
|
|
3812
|
3917
|
}
|
|
@@ -3816,6 +3921,7 @@ func (c *HisApiController) CreateHisPrescription() {
|
3816
|
3921
|
if drugMedical.SumCount == 0 {
|
3817
|
3922
|
tx.Rollback()
|
3818
|
3923
|
c.ServeDynamicFailJsonSend(drugMedical.DrugName + "库存不足,保存失败!")
|
|
3924
|
+
|
3819
|
3925
|
return
|
3820
|
3926
|
|
3821
|
3927
|
}
|
|
@@ -3825,77 +3931,10 @@ func (c *HisApiController) CreateHisPrescription() {
|
3825
|
3931
|
if len(list) == 0 {
|
3826
|
3932
|
tx.Rollback()
|
3827
|
3933
|
c.ServeDynamicFailJsonSend(drugMedical.DrugName + "库存不足,保存失败!")
|
|
3934
|
+
|
3828
|
3935
|
return
|
3829
|
3936
|
}
|
3830
|
3937
|
|
3831
|
|
- //针对康德
|
3832
|
|
- //if s.UserOrgId == 10402 || s.UserOrgId == 10164 {
|
3833
|
|
- // //获取该药品的总入库数量
|
3834
|
|
- // drugWarehouseinfo, _ := service.GetAllDrugInfoList(s.DrugId, s.UserOrgId)
|
3835
|
|
- //
|
3836
|
|
- // //获取该药品总共开了多少支医嘱
|
3837
|
|
- // hisDocInfoList, _ := service.GetHisDocInfoList(s.DrugId, s.UserOrgId)
|
3838
|
|
- // var in_count int64
|
3839
|
|
- // var in_prescription_number_total int64
|
3840
|
|
- // if len(drugWarehouseinfo) > 0 {
|
3841
|
|
- // for _, item := range drugWarehouseinfo {
|
3842
|
|
- // if item.MaxUnit == drugMedical.MaxUnit && drugMedical.MaxUnit != drugMedical.MinUnit {
|
3843
|
|
- //
|
3844
|
|
- // in_count += item.WarehousingCount * drugMedical.MinNumber
|
3845
|
|
- // }
|
3846
|
|
- //
|
3847
|
|
- // if item.MaxUnit == drugMedical.MinUnit && drugMedical.MaxUnit != drugMedical.MinUnit {
|
3848
|
|
- //
|
3849
|
|
- // in_count += item.WarehousingCount
|
3850
|
|
- // }
|
3851
|
|
- //
|
3852
|
|
- // if item.MaxUnit == drugMedical.MinUnit && drugMedical.MaxUnit == drugMedical.MinUnit {
|
3853
|
|
- //
|
3854
|
|
- // in_count += item.WarehousingCount
|
3855
|
|
- // }
|
3856
|
|
- //
|
3857
|
|
- // }
|
3858
|
|
- // }
|
3859
|
|
- //
|
3860
|
|
- // if len(hisDocInfoList) > 0 {
|
3861
|
|
- //
|
3862
|
|
- // for _, item := range hisDocInfoList {
|
3863
|
|
- // if item.PrescribingNumberUnit == drugMedical.MaxUnit && drugMedical.MaxUnit != drugMedical.MinUnit {
|
3864
|
|
- // prescribingNumberTenty := strconv.FormatFloat(s.PrescribingNumber, 'f', -1, 64)
|
3865
|
|
- // prescribingNumberSevenTy, _ := strconv.ParseInt(prescribingNumberTenty, 10, 64)
|
3866
|
|
- //
|
3867
|
|
- // in_prescription_number_total += prescribingNumberSevenTy * drug.MinNumber
|
3868
|
|
- // }
|
3869
|
|
- //
|
3870
|
|
- // if item.PrescribingNumberUnit == drugMedical.MinUnit && drugMedical.MaxUnit != drugMedical.MinUnit {
|
3871
|
|
- // prescribingNumberTenty := strconv.FormatFloat(s.PrescribingNumber, 'f', -1, 64)
|
3872
|
|
- // prescribingNumberSevenTy, _ := strconv.ParseInt(prescribingNumberTenty, 10, 64)
|
3873
|
|
- // in_prescription_number_total += prescribingNumberSevenTy
|
3874
|
|
- // }
|
3875
|
|
- //
|
3876
|
|
- // if item.PrescribingNumberUnit == drugMedical.MinUnit && drugMedical.MaxUnit == drugMedical.MinUnit {
|
3877
|
|
- // prescribingNumberTenty := strconv.FormatFloat(s.PrescribingNumber, 'f', -1, 64)
|
3878
|
|
- // prescribingNumberSevenTy, _ := strconv.ParseInt(prescribingNumberTenty, 10, 64)
|
3879
|
|
- // in_prescription_number_total += prescribingNumberSevenTy
|
3880
|
|
- // }
|
3881
|
|
- // }
|
3882
|
|
- // }
|
3883
|
|
- // //
|
3884
|
|
- // //fmt.Println("no_user_total------------------------------", no_user_total)
|
3885
|
|
- // //fmt.Println("in_prescription_number_total---------------------------", in_prescription_number_total)
|
3886
|
|
- // //fmt.Println("in_count----------------------------------", in_count)
|
3887
|
|
- //
|
3888
|
|
- // //如果已经开过的医嘱 加上未开的医嘱数量 大于 入库总数量则提示库存不足
|
3889
|
|
- // if no_user_total+in_prescription_number_total > in_count {
|
3890
|
|
- // tx.Rollback()
|
3891
|
|
- // c.ServeDynamicFailJsonSend(drugMedical.DrugName + "库存不足,保存失败!")
|
3892
|
|
- // return
|
3893
|
|
- // }
|
3894
|
|
- //
|
3895
|
|
- //}
|
3896
|
|
-
|
3897
|
|
- //查询该药品所有入库数量
|
3898
|
|
-
|
3899
|
3938
|
}
|
3900
|
3939
|
|
3901
|
3940
|
if s.ID > 0 {
|
|
@@ -3905,20 +3944,13 @@ func (c *HisApiController) CreateHisPrescription() {
|
3905
|
3944
|
if base.ID > 0 {
|
3906
|
3945
|
tx.Rollback()
|
3907
|
3946
|
c.ServeDynamicFailJsonSend(base.DrugName + "已停用!请更换其他药品")
|
|
3947
|
+
|
3908
|
3948
|
return
|
3909
|
3949
|
|
3910
|
3950
|
}
|
3911
|
3951
|
}
|
3912
|
3952
|
}
|
3913
|
3953
|
|
3914
|
|
- //fmt.Println("药品名称----------------------", drug.DrugName)
|
3915
|
|
- //fmt.Println("药品名称----------------------", drug.IsUse)
|
3916
|
|
- //fmt.Println("drug_iiiiiiiiiiiiiiiiiiii", drug.ID)
|
3917
|
|
- //fmt.Println("is_user_total-------------------------", is_user_total)
|
3918
|
|
- //fmt.Println("no_user_total-------------------------", no_user_total)
|
3919
|
|
- //fmt.Println("drug.IsUse---------------", drug.IsUse)
|
3920
|
|
- //fmt.Println("00000000000000000000", s.UserOrgId)
|
3921
|
|
-
|
3922
|
3954
|
if is_user_total != no_user_total {
|
3923
|
3955
|
//出库
|
3924
|
3956
|
//针对御享天源
|
|
@@ -4531,46 +4563,6 @@ func (c *HisApiController) CreateHisPrescription() {
|
4531
|
4563
|
|
4532
|
4564
|
nowCount, _ := strconv.ParseInt(p.Count, 10, 64)
|
4533
|
4565
|
|
4534
|
|
- ////针对康德
|
4535
|
|
- //if p.UserOrgId == 10164 || p.UserOrgId == 10402 {
|
4536
|
|
- //
|
4537
|
|
- // //查询耗材的总入库数量
|
4538
|
|
- // warehouseInfo, _ := service.GetAllWarehouseInfo(p.ProjectId, adminInfo.CurrentOrgId)
|
4539
|
|
- //
|
4540
|
|
- // //查询该耗材的总出库数量
|
4541
|
|
- // prescriptionGood, _ := service.GetHisPrescriptionByGoodId(p.ProjectId, adminInfo.CurrentOrgId)
|
4542
|
|
- //
|
4543
|
|
- // var all_good_count int64
|
4544
|
|
- //
|
4545
|
|
- // var prescription_count int64
|
4546
|
|
- // if len(warehouseInfo) > 0 {
|
4547
|
|
- //
|
4548
|
|
- // for _, item := range warehouseInfo {
|
4549
|
|
- // all_good_count += item.WarehousingCount
|
4550
|
|
- // }
|
4551
|
|
- // }
|
4552
|
|
- // if len(prescriptionGood) > 0 {
|
4553
|
|
- // for _, item := range prescriptionGood {
|
4554
|
|
- //
|
4555
|
|
- // hisCount, _ := strconv.ParseInt(item.Count, 10, 64)
|
4556
|
|
- // prescription_count += hisCount
|
4557
|
|
- // }
|
4558
|
|
- // }
|
4559
|
|
- //
|
4560
|
|
- // //fmt.Println("prescription_count-------------------------", prescription_count)
|
4561
|
|
- // //fmt.Println("nowCount-------------------------", nowCount)
|
4562
|
|
- // //fmt.Println("all_good_count-------------------------", all_good_count)
|
4563
|
|
- //
|
4564
|
|
- // if prescription_count+nowCount > all_good_count {
|
4565
|
|
- // goodInfoOne, _ := service.GetGoodInformationByGoodIdOne(p.ProjectId)
|
4566
|
|
- // tx.Rollback()
|
4567
|
|
- // c.ServeDynamicFailJsonSend(goodInfoOne.GoodName + "耗材无库存,保存失败!")
|
4568
|
|
- // return
|
4569
|
|
- // }
|
4570
|
|
- //}
|
4571
|
|
-
|
4572
|
|
- fmt.Println("nowCount222=================", nowCount)
|
4573
|
|
- fmt.Println("historyCount-333----------------", historyCount)
|
4574
|
4566
|
//如果当前处方数量大于历史数据,则需要出库
|
4575
|
4567
|
|
4576
|
4568
|
if nowCount > historyCount {
|
|
@@ -6110,7 +6102,6 @@ func (c *HisApiController) CreateHisPrescription() {
|
6110
|
6102
|
}
|
6111
|
6103
|
}
|
6112
|
6104
|
|
6113
|
|
- fmt.Println("耗材----------------------------------", goodOutConfig.IsOpen)
|
6114
|
6105
|
//耗材保存处方出库
|
6115
|
6106
|
if goodOutConfig.IsOpen == 1 {
|
6116
|
6107
|
|
|
@@ -6128,8 +6119,6 @@ func (c *HisApiController) CreateHisPrescription() {
|
6128
|
6119
|
|
6129
|
6120
|
parseIntCount, _ := strconv.ParseInt(item.Count, 10, 64)
|
6130
|
6121
|
|
6131
|
|
- fmt.Println("out_count_five-------------------", out_count_five)
|
6132
|
|
- fmt.Println("parseIntCount---------------", parseIntCount)
|
6133
|
6122
|
if out_count_five != parseIntCount {
|
6134
|
6123
|
|
6135
|
6124
|
//查询耗材最后一次出库记录
|
|
@@ -7098,7 +7087,6 @@ func (c *HisApiController) DeletePrescription() {
|
7098
|
7087
|
//查询今日是否有出库数据
|
7099
|
7088
|
lastWarehouseOut, _ := service.GetSelfDrugLastWarehouseOutTwety(c.GetAdminUserInfo().CurrentOrgId, item.AdviceDate, tx, 1)
|
7100
|
7089
|
|
7101
|
|
- fmt.Println("lastWarehouseOut-----------------------------------", lastWarehouseOut)
|
7102
|
7090
|
if lastWarehouseOut.ID == 0 {
|
7103
|
7091
|
service.AddSelfSigleDrugWarehouseOut(&drugWarehouseOut, tx)
|
7104
|
7092
|
}
|
|
@@ -7155,7 +7143,6 @@ func (c *HisApiController) DeletePrescription() {
|
7155
|
7143
|
warehousingOutInfo = append(warehousingOutInfo, warehouseOutInfo)
|
7156
|
7144
|
}
|
7157
|
7145
|
|
7158
|
|
- fmt.Println("长度-------------------------------", warehousingOutInfo)
|
7159
|
7146
|
for _, it := range warehousingOutInfo {
|
7160
|
7147
|
//查询今日是否有出库数据
|
7161
|
7148
|
lastWarehouseOutOne, _ := service.GetSelfDrugLastWarehouseOutTwety(c.GetAdminUserInfo().CurrentOrgId, it.SysRecordTime, tx, 1)
|