|
@@ -108,6 +108,8 @@ func (c *ManagerCenterApiController) CreateBaseDrugLib() {
|
108
|
108
|
drug_dose, _ := c.GetFloat("drug_dose")
|
109
|
109
|
drug_dose_unit, _ := c.GetInt64("drug_dose_unit")
|
110
|
110
|
medical_insurance_number := c.GetString("medical_insurance_number")
|
|
111
|
+ provinces_code := c.GetString("provinces_code")
|
|
112
|
+
|
111
|
113
|
manufacturer, _ := c.GetInt64("manufacturer")
|
112
|
114
|
pharmacology_category, _ := c.GetInt64("pharmacology_category")
|
113
|
115
|
statistics_category, _ := c.GetInt64("statistics_category")
|
|
@@ -171,6 +173,7 @@ func (c *ManagerCenterApiController) CreateBaseDrugLib() {
|
171
|
173
|
DrugDose: drug_dose,
|
172
|
174
|
DrugDoseUnit: drug_dose_unit,
|
173
|
175
|
MedicalInsuranceNumber: medical_insurance_number,
|
|
176
|
+ ProvincesCode: provinces_code,
|
174
|
177
|
Manufacturer: manufacturer,
|
175
|
178
|
PharmacologyCategory: pharmacology_category,
|
176
|
179
|
StatisticsCategory: statistics_category,
|
|
@@ -262,6 +265,8 @@ func (c *ManagerCenterApiController) EditBaseDrugLib() {
|
262
|
265
|
drug_dose, _ := c.GetFloat("drug_dose")
|
263
|
266
|
drug_dose_unit, _ := c.GetInt64("drug_dose_unit")
|
264
|
267
|
medical_insurance_number := c.GetString("medical_insurance_number")
|
|
268
|
+ provinces_code := c.GetString("provinces_code")
|
|
269
|
+
|
265
|
270
|
manufacturer, _ := c.GetInt64("manufacturer")
|
266
|
271
|
pharmacology_category, _ := c.GetInt64("pharmacology_category")
|
267
|
272
|
statistics_category, _ := c.GetInt64("statistics_category")
|
|
@@ -370,6 +375,7 @@ func (c *ManagerCenterApiController) EditBaseDrugLib() {
|
370
|
375
|
PrescribingNumberUnit: prescribing_number_unit,
|
371
|
376
|
Total: total,
|
372
|
377
|
SingleDose: drug_dose,
|
|
378
|
+ ProvincesCode: provinces_code,
|
373
|
379
|
}
|
374
|
380
|
|
375
|
381
|
err := service.UpdateBaseDrugLib(drugLib)
|
|
@@ -1459,6 +1465,8 @@ func (c *ManagerCenterApiController) CreateGoodInfo() {
|
1459
|
1465
|
retail_price, _ := c.GetFloat("retail_price", 0)
|
1460
|
1466
|
fmt.Println(retail_price)
|
1461
|
1467
|
medical_insurance_number := c.GetString("medical_insurance_number")
|
|
1468
|
+ provinces_code := c.GetString("provinces_code")
|
|
1469
|
+
|
1462
|
1470
|
is_special_diseases, _ := c.GetInt64("is_special_diseases", 0)
|
1463
|
1471
|
is_record, _ := c.GetInt64("is_record")
|
1464
|
1472
|
statistics_category, _ := c.GetInt64("statistics_category")
|
|
@@ -1542,6 +1550,7 @@ func (c *ManagerCenterApiController) CreateGoodInfo() {
|
1542
|
1550
|
DefaultCountUnit: default_count_unit,
|
1543
|
1551
|
MinUnit: min_unit,
|
1544
|
1552
|
RegisterNumber: register_number,
|
|
1553
|
+ ProvincesCode: provinces_code,
|
1545
|
1554
|
}
|
1546
|
1555
|
err, goodInfos := service.AddSigleGoodInfo(&goodInfo)
|
1547
|
1556
|
if err == nil {
|
|
@@ -1568,6 +1577,7 @@ func (c *ManagerCenterApiController) ModifyGoodInfo() {
|
1568
|
1577
|
stock_warn_count, _ := c.GetInt64("stock_warn_count", 0)
|
1569
|
1578
|
is_reuse, _ := c.GetInt64("is_reuse", 0)
|
1570
|
1579
|
code := c.GetString("good_code")
|
|
1580
|
+ provinces_code := c.GetString("provinces_code")
|
1571
|
1581
|
|
1572
|
1582
|
good_name := c.GetString("good_name")
|
1573
|
1583
|
pinyin := c.GetString("pinyin")
|
|
@@ -1577,6 +1587,8 @@ func (c *ManagerCenterApiController) ModifyGoodInfo() {
|
1577
|
1587
|
retail_price, _ := c.GetFloat("retail_price", 0)
|
1578
|
1588
|
fmt.Println(retail_price)
|
1579
|
1589
|
medical_insurance_number := c.GetString("medical_insurance_number")
|
|
1590
|
+ //provinces_code := c.GetString("provinces_code")
|
|
1591
|
+
|
1580
|
1592
|
is_special_diseases, _ := c.GetInt64("is_special_diseases", 0)
|
1581
|
1593
|
is_record, _ := c.GetInt64("is_record")
|
1582
|
1594
|
statistics_category, _ := c.GetInt64("statistics_category")
|
|
@@ -1630,6 +1642,7 @@ func (c *ManagerCenterApiController) ModifyGoodInfo() {
|
1630
|
1642
|
Wubi: wubi,
|
1631
|
1643
|
GoodKind: good_kind,
|
1632
|
1644
|
MedicalInsuranceNumber: medical_insurance_number,
|
|
1645
|
+ ProvincesCode: provinces_code,
|
1633
|
1646
|
IsSpecialDiseases: is_special_diseases,
|
1634
|
1647
|
IsRecord: is_record,
|
1635
|
1648
|
StatisticsCategory: statistics_category,
|