|
@@ -324,7 +324,7 @@ func (c *MobileHisApiController) CreateHisPrescription() {
|
324
|
324
|
|
325
|
325
|
if prescribingNumberUnit == drug.MinUnit {
|
326
|
326
|
if prescribing_number > drug.Total {
|
327
|
|
- //c.ServeDynamicFailJsonSend(drug.DrugName + "库存不足")
|
|
327
|
+ c.ServeDynamicFailJsonSend(drug.DrugName + "库存不足")
|
328
|
328
|
//c.ServeFailJSONWithSGJErrorCode(enums.ErrorCodeOutOfStockParamWrong)
|
329
|
329
|
return
|
330
|
330
|
}
|
|
@@ -332,7 +332,7 @@ func (c *MobileHisApiController) CreateHisPrescription() {
|
332
|
332
|
if prescribingNumberUnit == drug.MaxUnit {
|
333
|
333
|
num := prescribing_number * float64(drug.MinNumber)
|
334
|
334
|
if num > drug.Total {
|
335
|
|
- //c.ServeDynamicFailJsonSend(drug.DrugName + "库存不足")
|
|
335
|
+ c.ServeDynamicFailJsonSend(drug.DrugName + "库存不足")
|
336
|
336
|
|
337
|
337
|
//c.ServeFailJSONWithSGJErrorCode(enums.ErrorCodeOutOfStockParamWrong)
|
338
|
338
|
return
|
|
@@ -377,9 +377,9 @@ func (c *MobileHisApiController) CreateHisPrescription() {
|
377
|
377
|
return
|
378
|
378
|
}
|
379
|
379
|
if totals > good.Total {
|
380
|
|
- //c.ServeDynamicFailJsonSend(good.GoodName + "库存不足")
|
381
|
|
-
|
382
|
|
- //c.ServeFailJSONWithSGJErro,rCode(enums.ErrorCodeOutOfStockParamWrong)
|
|
380
|
+ c.ServeDynamicFailJsonSend(good.GoodName + "库存不足")
|
|
381
|
+ //
|
|
382
|
+ //c.ServeFailJSONWithSGJErrorCode(enums.ErrorCodeOutOfStockParamWrong)
|
383
|
383
|
return
|
384
|
384
|
}
|
385
|
385
|
|