|
@@ -69,6 +69,14 @@ func SelfDrugRouters() {
|
69
|
69
|
beego.Router("/api/drug/deletedrugdamage", &SelfDrugApiController{}, "Get:DeleteDrugDamage")
|
70
|
70
|
beego.Router("/api/drug/getdrugdamageprint", &SelfDrugApiController{}, "Get:GetDrugDamagePrint")
|
71
|
71
|
beego.Router("/api/drug/warehouseinfobyid", &SelfDrugApiController{}, "Get:GetWarehoseInfoById")
|
|
72
|
+ beego.Router("/api/drug/savedruginventory", &SelfDrugApiController{}, "Post:SaveDrugInventory")
|
|
73
|
+ beego.Router("/api/drug/getdruginventorylist", &SelfDrugApiController{}, "Get:GetDrugInventoryList")
|
|
74
|
+ beego.Router("/api/drug/savedrugcheckinventory", &SelfDrugApiController{}, "Get:SaveDrugCheckInventory")
|
|
75
|
+ beego.Router("/api/drug/getdruginventorydetail", &SelfDrugApiController{}, "Get:GetDrugInventoryDetail")
|
|
76
|
+ beego.Router("/api/drug/modifyinventory", &SelfDrugApiController{}, "Get:ModifyInventory")
|
|
77
|
+ beego.Router("/api/drug/deletedruginventory", &SelfDrugApiController{}, "Delete:DeleteDrugInventory")
|
|
78
|
+ beego.Router("/api/drug/getdruginventoryprintlist", &SelfDrugApiController{}, "Get:GetDrugInventoryPrintList")
|
|
79
|
+ beego.Router("/api/drug/getinventorydetaillist", &SelfDrugApiController{}, "Get:GetDrugInventoryDetailList")
|
72
|
80
|
}
|
73
|
81
|
|
74
|
82
|
func (this *SelfDrugApiController) GetCurrentPatient() {
|
|
@@ -1391,8 +1399,7 @@ func (this *SelfDrugApiController) GetDrugDamageList() {
|
1391
|
1399
|
this.ServeFailJsonSend(enums.ErrorCodeDataException, "更新设备失败")
|
1392
|
1400
|
return
|
1393
|
1401
|
}
|
1394
|
|
- fmt.Println("list232332", list)
|
1395
|
|
- fmt.Println("total", total)
|
|
1402
|
+
|
1396
|
1403
|
this.ServeSuccessJSON(map[string]interface{}{
|
1397
|
1404
|
"total": total,
|
1398
|
1405
|
"list": list,
|
|
@@ -1554,3 +1561,373 @@ func (this *SelfDrugApiController) GetWarehoseInfoById() {
|
1554
|
1561
|
"list": list,
|
1555
|
1562
|
})
|
1556
|
1563
|
}
|
|
1564
|
+
|
|
1565
|
+func (this *SelfDrugApiController) SaveDrugInventory() {
|
|
1566
|
+
|
|
1567
|
+ timeLayout := "2006-01-02"
|
|
1568
|
+ loc, _ := time.LoadLocation("Local")
|
|
1569
|
+ dataBody := make(map[string]interface{}, 0)
|
|
1570
|
+ err := json.Unmarshal(this.Ctx.Input.RequestBody, &dataBody)
|
|
1571
|
+ fmt.Println(err)
|
|
1572
|
+
|
|
1573
|
+ tableData, _ := dataBody["tableData"].([]interface{})
|
|
1574
|
+ fmt.Println("999939433443", tableData)
|
|
1575
|
+ if len(tableData) > 0 {
|
|
1576
|
+ for _, item := range tableData {
|
|
1577
|
+ items := item.(map[string]interface{})
|
|
1578
|
+ drug_name := items["drug_name"].(string)
|
|
1579
|
+ fmt.Println("durg_nae232333223332232323323223232323", drug_name)
|
|
1580
|
+ if items["drug_name"] == nil || reflect.TypeOf(items["drug_name"]).String() != "string" {
|
|
1581
|
+ utils.ErrorLog("drug_name")
|
|
1582
|
+ this.ServeFailJSONWithSGJErrorCode(enums.ErrorCodeParamWrong)
|
|
1583
|
+ return
|
|
1584
|
+ }
|
|
1585
|
+
|
|
1586
|
+ if items["retail_price"] == nil || reflect.TypeOf(items["retail_price"]).String() != "string" {
|
|
1587
|
+ utils.ErrorLog("retail_price")
|
|
1588
|
+ this.ServeFailJSONWithSGJErrorCode(enums.ErrorCodeParamWrong)
|
|
1589
|
+ return
|
|
1590
|
+ }
|
|
1591
|
+ retail_price, _ := strconv.ParseFloat(items["retail_price"].(string), 64)
|
|
1592
|
+
|
|
1593
|
+ if items["warehousing_order"] == nil || reflect.TypeOf(items["warehousing_order"]).String() != "string" {
|
|
1594
|
+ utils.ErrorLog("warehousing_order")
|
|
1595
|
+ this.ServeFailJSONWithSGJErrorCode(enums.ErrorCodeParamWrong)
|
|
1596
|
+ return
|
|
1597
|
+ }
|
|
1598
|
+ warehousing_order := items["warehousing_order"].(string)
|
|
1599
|
+
|
|
1600
|
+ if items["dealer"] == nil || reflect.TypeOf(items["dealer"]).String() != "string" {
|
|
1601
|
+ utils.ErrorLog("dealer")
|
|
1602
|
+ this.ServeFailJSONWithSGJErrorCode(enums.ErrorCodeParamWrong)
|
|
1603
|
+ return
|
|
1604
|
+ }
|
|
1605
|
+ dealer := items["dealer"].(string)
|
|
1606
|
+
|
|
1607
|
+ if items["manufacturer"] == nil || reflect.TypeOf(items["manufacturer"]).String() != "string" {
|
|
1608
|
+ utils.ErrorLog("manufacturer")
|
|
1609
|
+ this.ServeFailJSONWithSGJErrorCode(enums.ErrorCodeParamWrong)
|
|
1610
|
+ return
|
|
1611
|
+ }
|
|
1612
|
+ manufacturer := items["manufacturer"].(string)
|
|
1613
|
+
|
|
1614
|
+ if items["specification_name"] == nil || reflect.TypeOf(items["specification_name"]).String() != "string" {
|
|
1615
|
+ utils.ErrorLog("specification_name")
|
|
1616
|
+ this.ServeFailJSONWithSGJErrorCode(enums.ErrorCodeParamWrong)
|
|
1617
|
+ return
|
|
1618
|
+ }
|
|
1619
|
+ specification_name := items["specification_name"].(string)
|
|
1620
|
+
|
|
1621
|
+ if items["remark"] == nil || reflect.TypeOf(items["remark"]).String() != "string" {
|
|
1622
|
+ utils.ErrorLog("remark")
|
|
1623
|
+ this.ServeFailJSONWithSGJErrorCode(enums.ErrorCodeParamWrong)
|
|
1624
|
+ return
|
|
1625
|
+ }
|
|
1626
|
+ remark := items["remark"].(string)
|
|
1627
|
+
|
|
1628
|
+ if items["warehousing_unit"] == nil || reflect.TypeOf(items["warehousing_unit"]).String() != "string" {
|
|
1629
|
+ utils.ErrorLog("warehousing_unit")
|
|
1630
|
+ this.ServeFailJSONWithSGJErrorCode(enums.ErrorCodeParamWrong)
|
|
1631
|
+ return
|
|
1632
|
+ }
|
|
1633
|
+ warehousing_unit := items["warehousing_unit"].(string)
|
|
1634
|
+
|
|
1635
|
+ if items["last_price"] == nil || reflect.TypeOf(items["last_price"]).String() != "string" {
|
|
1636
|
+ utils.ErrorLog("last_price")
|
|
1637
|
+ this.ServeFailJSONWithSGJErrorCode(enums.ErrorCodeParamWrong)
|
|
1638
|
+ return
|
|
1639
|
+ }
|
|
1640
|
+ last_price, _ := strconv.ParseFloat(items["last_price"].(string), 64)
|
|
1641
|
+
|
|
1642
|
+ if items["count"] == nil || reflect.TypeOf(items["count"]).String() != "float64" {
|
|
1643
|
+ utils.ErrorLog("count")
|
|
1644
|
+ this.ServeFailJSONWithSGJErrorCode(enums.ErrorCodeParamWrong)
|
|
1645
|
+ return
|
|
1646
|
+ }
|
|
1647
|
+ count := int64(items["count"].(float64))
|
|
1648
|
+
|
|
1649
|
+ if items["new_price"] == nil || reflect.TypeOf(items["new_price"]).String() != "string" {
|
|
1650
|
+ utils.ErrorLog("new_price")
|
|
1651
|
+ this.ServeFailJSONWithSGJErrorCode(enums.ErrorCodeParamWrong)
|
|
1652
|
+ return
|
|
1653
|
+ }
|
|
1654
|
+ new_price, _ := strconv.ParseFloat(items["new_price"].(string), 64)
|
|
1655
|
+
|
|
1656
|
+ if items["drug_id"] == nil || reflect.TypeOf(items["drug_id"]).String() != "float64" {
|
|
1657
|
+ utils.ErrorLog("drug_id")
|
|
1658
|
+ this.ServeFailJSONWithSGJErrorCode(enums.ErrorCodeParamWrong)
|
|
1659
|
+ return
|
|
1660
|
+ }
|
|
1661
|
+ drug_id := int64(items["drug_id"].(float64))
|
|
1662
|
+
|
|
1663
|
+ if items["start_time"] == nil || reflect.TypeOf(items["start_time"]).String() != "string" {
|
|
1664
|
+ utils.ErrorLog("start_time")
|
|
1665
|
+ this.ServeFailJSONWithSGJErrorCode(enums.ErrorCodeParamWrong)
|
|
1666
|
+ return
|
|
1667
|
+ }
|
|
1668
|
+ var startTime int64
|
|
1669
|
+ start_time := items["start_time"].(string)
|
|
1670
|
+ if len(start_time) > 0 {
|
|
1671
|
+ theTime, err := time.ParseInLocation(timeLayout+" 15:04:05", start_time+" 00:00:00", loc)
|
|
1672
|
+ if err != nil {
|
|
1673
|
+ fmt.Println(err)
|
|
1674
|
+ this.ServeFailJSONWithSGJErrorCode(enums.ErrorCodeParamWrong)
|
|
1675
|
+ return
|
|
1676
|
+ }
|
|
1677
|
+ startTime = theTime.Unix()
|
|
1678
|
+ }
|
|
1679
|
+
|
|
1680
|
+ if items["product_date"] == nil || reflect.TypeOf(items["product_date"]).String() != "float64" {
|
|
1681
|
+ utils.ErrorLog("product_date")
|
|
1682
|
+ this.ServeFailJSONWithSGJErrorCode(enums.ErrorCodeParamWrong)
|
|
1683
|
+ return
|
|
1684
|
+ }
|
|
1685
|
+ product_date := int64(items["product_date"].(float64))
|
|
1686
|
+ if items["expiry_date"] == nil || reflect.TypeOf(items["expiry_date"]).String() != "float64" {
|
|
1687
|
+ utils.ErrorLog("expiry_date")
|
|
1688
|
+ this.ServeFailJSONWithSGJErrorCode(enums.ErrorCodeParamWrong)
|
|
1689
|
+ return
|
|
1690
|
+ }
|
|
1691
|
+ expiry_date := int64(items["expiry_date"].(float64))
|
|
1692
|
+ orgId := this.GetAdminUserInfo().CurrentOrgId
|
|
1693
|
+ Creater := this.GetAdminUserInfo().AdminUser.Id
|
|
1694
|
+
|
|
1695
|
+ if items["number"] == nil || reflect.TypeOf(items["number"]).String() != "string" {
|
|
1696
|
+ utils.ErrorLog("number")
|
|
1697
|
+ this.ServeFailJSONWithSGJErrorCode(enums.ErrorCodeParamWrong)
|
|
1698
|
+ return
|
|
1699
|
+ }
|
|
1700
|
+
|
|
1701
|
+ numbers := items["number"].(string)
|
|
1702
|
+
|
|
1703
|
+ if items["batch_number"] == nil || reflect.TypeOf(items["batch_number"]).String() != "string" {
|
|
1704
|
+ utils.ErrorLog("batch_number")
|
|
1705
|
+ this.ServeFailJSONWithSGJErrorCode(enums.ErrorCodeParamWrong)
|
|
1706
|
+ return
|
|
1707
|
+ }
|
|
1708
|
+
|
|
1709
|
+ batch_number := items["batch_number"].(string)
|
|
1710
|
+
|
|
1711
|
+ inventory := models.XtDrugInventory{
|
|
1712
|
+
|
|
1713
|
+ DrugName: drug_name,
|
|
1714
|
+ SpecificationName: specification_name,
|
|
1715
|
+ WarehousingUnit: warehousing_unit,
|
|
1716
|
+ Count: count,
|
|
1717
|
+ LastPrice: last_price,
|
|
1718
|
+ RetailPrice: retail_price,
|
|
1719
|
+ NewPrice: new_price,
|
|
1720
|
+ Manufacturer: manufacturer,
|
|
1721
|
+ Dealer: dealer,
|
|
1722
|
+ Remark: remark,
|
|
1723
|
+ DrugId: drug_id,
|
|
1724
|
+ UserOrgId: orgId,
|
|
1725
|
+ Ctime: time.Now().Unix(),
|
|
1726
|
+ Mtime: 0,
|
|
1727
|
+ Status: 1,
|
|
1728
|
+ WarehousingOrder: warehousing_order,
|
|
1729
|
+ LicenseNumber: "",
|
|
1730
|
+ StartTime: startTime,
|
|
1731
|
+ Creater: Creater,
|
|
1732
|
+ Checker: 0,
|
|
1733
|
+ CheckerStatus: 2,
|
|
1734
|
+ CheckerTime: 0,
|
|
1735
|
+ ExpiryDate: expiry_date,
|
|
1736
|
+ ProductDate: product_date,
|
|
1737
|
+ Number: numbers,
|
|
1738
|
+ BatchNumber: batch_number,
|
|
1739
|
+ }
|
|
1740
|
+ err = service.CreateDrugInventory(inventory)
|
|
1741
|
+ fmt.Println(err)
|
|
1742
|
+ }
|
|
1743
|
+ }
|
|
1744
|
+ this.ServeSuccessJSON(map[string]interface{}{
|
|
1745
|
+ "msg": "msg",
|
|
1746
|
+ })
|
|
1747
|
+}
|
|
1748
|
+
|
|
1749
|
+func (this *SelfDrugApiController) GetDrugInventoryList() {
|
|
1750
|
+ timeLayout := "2006-01-02"
|
|
1751
|
+ loc, _ := time.LoadLocation("Local")
|
|
1752
|
+ dataBody := make(map[string]interface{}, 0)
|
|
1753
|
+ err := json.Unmarshal(this.Ctx.Input.RequestBody, &dataBody)
|
|
1754
|
+ fmt.Println(err)
|
|
1755
|
+ orgId := this.GetAdminUserInfo().CurrentOrgId
|
|
1756
|
+ keyword := this.GetString("keyword")
|
|
1757
|
+ fmt.Println("keywoer2r2r32rwrwr", keyword)
|
|
1758
|
+ start_time := this.GetString("start_time")
|
|
1759
|
+ end_time := this.GetString("end_time")
|
|
1760
|
+ var startTime int64
|
|
1761
|
+ if len(start_time) > 0 {
|
|
1762
|
+ theTime, err := time.ParseInLocation(timeLayout+" 15:04:05", start_time+" 00:00:00", loc)
|
|
1763
|
+ if err != nil {
|
|
1764
|
+ this.ServeFailJSONWithSGJErrorCode(enums.ErrorCodeParamWrong)
|
|
1765
|
+ return
|
|
1766
|
+ }
|
|
1767
|
+ startTime = theTime.Unix()
|
|
1768
|
+ }
|
|
1769
|
+ var endTime int64
|
|
1770
|
+ if len(end_time) > 0 {
|
|
1771
|
+ theTime, err := time.ParseInLocation(timeLayout+" 15:04:05", end_time+" 23:59:59", loc)
|
|
1772
|
+ if err != nil {
|
|
1773
|
+ utils.ErrorLog(err.Error())
|
|
1774
|
+ this.ServeFailJSONWithSGJErrorCode(enums.ErrorCodeParamWrong)
|
|
1775
|
+ return
|
|
1776
|
+ }
|
|
1777
|
+ endTime = theTime.Unix()
|
|
1778
|
+ }
|
|
1779
|
+
|
|
1780
|
+ limit, _ := this.GetInt64("limit")
|
|
1781
|
+ page, _ := this.GetInt64("page")
|
|
1782
|
+ list, total, err := service.GetDrugInventoryList(keyword, page, limit, orgId, startTime, endTime)
|
|
1783
|
+ fmt.Println("list23232323223", list)
|
|
1784
|
+ doctorList, _ := service.GetAllDoctorThree(orgId)
|
|
1785
|
+ if err != nil {
|
|
1786
|
+ this.ServeFailJsonSend(enums.ErrorCodeDataException, "更新设备失败")
|
|
1787
|
+ return
|
|
1788
|
+ }
|
|
1789
|
+
|
|
1790
|
+ this.ServeSuccessJSON(map[string]interface{}{
|
|
1791
|
+ "total": total,
|
|
1792
|
+ "list": list,
|
|
1793
|
+ "doctorList": doctorList,
|
|
1794
|
+ })
|
|
1795
|
+}
|
|
1796
|
+
|
|
1797
|
+func (this *SelfDrugApiController) SaveDrugCheckInventory() {
|
|
1798
|
+
|
|
1799
|
+ timeLayout := "2006-01-02"
|
|
1800
|
+ loc, _ := time.LoadLocation("Local")
|
|
1801
|
+ dataBody := make(map[string]interface{}, 0)
|
|
1802
|
+ err := json.Unmarshal(this.Ctx.Input.RequestBody, &dataBody)
|
|
1803
|
+ fmt.Println(err)
|
|
1804
|
+ idstr := this.GetString("ids")
|
|
1805
|
+ ids := strings.Split(idstr, ",")
|
|
1806
|
+ check_time := this.GetString("check_time")
|
|
1807
|
+ var checkTime int64
|
|
1808
|
+ if len(check_time) > 0 {
|
|
1809
|
+ theTime, err := time.ParseInLocation(timeLayout+" 15:04:05", check_time+" 00:00:00", loc)
|
|
1810
|
+ if err != nil {
|
|
1811
|
+ fmt.Println(err)
|
|
1812
|
+ this.ServeFailJSONWithSGJErrorCode(enums.ErrorCodeParamWrong)
|
|
1813
|
+ return
|
|
1814
|
+ }
|
|
1815
|
+ checkTime = theTime.Unix()
|
|
1816
|
+ }
|
|
1817
|
+ checker, _ := this.GetInt64("checker")
|
|
1818
|
+ inventory := models.XtDrugInventory{
|
|
1819
|
+ Checker: checker,
|
|
1820
|
+ CheckerStatus: 1,
|
|
1821
|
+ CheckerTime: checkTime,
|
|
1822
|
+ }
|
|
1823
|
+ err = service.UpdateDrugInventory(ids, inventory)
|
|
1824
|
+ fmt.Println(err)
|
|
1825
|
+ returnData := make(map[string]interface{}, 0)
|
|
1826
|
+ returnData["msg"] = "ok"
|
|
1827
|
+ this.ServeSuccessJSON(returnData)
|
|
1828
|
+}
|
|
1829
|
+
|
|
1830
|
+func (this *SelfDrugApiController) GetDrugInventoryDetail() {
|
|
1831
|
+
|
|
1832
|
+ id, _ := this.GetInt64("id")
|
|
1833
|
+ detail, err := service.GetDrugInventoryDetail(id)
|
|
1834
|
+ if err != nil {
|
|
1835
|
+ this.ServeFailJsonSend(enums.ErrorCodeDataException, "更新设备失败")
|
|
1836
|
+ return
|
|
1837
|
+ }
|
|
1838
|
+
|
|
1839
|
+ this.ServeSuccessJSON(map[string]interface{}{
|
|
1840
|
+ "detail": detail,
|
|
1841
|
+ })
|
|
1842
|
+}
|
|
1843
|
+
|
|
1844
|
+func (this *SelfDrugApiController) ModifyInventory() {
|
|
1845
|
+
|
|
1846
|
+ id, _ := this.GetInt64("id")
|
|
1847
|
+ drug_id, _ := this.GetInt64("drug_id")
|
|
1848
|
+ drug_name := this.GetString("drug_name")
|
|
1849
|
+ specification_name := this.GetString("specification_name")
|
|
1850
|
+ retailPrice := this.GetString("retail_price")
|
|
1851
|
+ retail_price, _ := strconv.ParseFloat(retailPrice, 64)
|
|
1852
|
+ warehousing_order := this.GetString("warehousing_order")
|
|
1853
|
+ number := this.GetString("number")
|
|
1854
|
+ manufacturer := this.GetString("manufacturer")
|
|
1855
|
+ remark := this.GetString("remark")
|
|
1856
|
+ warehousing_unit := this.GetString("warehousing_unit")
|
|
1857
|
+ total, _ := this.GetInt64("total")
|
|
1858
|
+ lastPrice := this.GetString("last_price")
|
|
1859
|
+ last_price, _ := strconv.ParseFloat(lastPrice, 64)
|
|
1860
|
+ count, _ := this.GetInt64("count")
|
|
1861
|
+ drug_origin_place := this.GetString("drug_origin_place")
|
|
1862
|
+ inventory := models.XtDrugInventory{
|
|
1863
|
+ DrugName: drug_name,
|
|
1864
|
+ SpecificationName: specification_name,
|
|
1865
|
+ WarehousingUnit: warehousing_unit,
|
|
1866
|
+ Count: count,
|
|
1867
|
+ LastPrice: last_price,
|
|
1868
|
+ RetailPrice: retail_price,
|
|
1869
|
+ Manufacturer: manufacturer,
|
|
1870
|
+ Remark: remark,
|
|
1871
|
+ DrugId: drug_id,
|
|
1872
|
+ WarehousingOrder: warehousing_order,
|
|
1873
|
+ Number: number,
|
|
1874
|
+ Total: total,
|
|
1875
|
+ DrugOriginPlace: drug_origin_place,
|
|
1876
|
+ }
|
|
1877
|
+ err := service.ModifyDrugInventory(id, inventory)
|
|
1878
|
+ if err != nil {
|
|
1879
|
+ this.ServeFailJsonSend(enums.ErrorCodeDataException, "更新设备失败")
|
|
1880
|
+ return
|
|
1881
|
+ }
|
|
1882
|
+
|
|
1883
|
+ this.ServeSuccessJSON(map[string]interface{}{
|
|
1884
|
+ "inventory": inventory,
|
|
1885
|
+ })
|
|
1886
|
+}
|
|
1887
|
+
|
|
1888
|
+func (this *SelfDrugApiController) DeleteDrugInventory() {
|
|
1889
|
+
|
|
1890
|
+ id, _ := this.GetInt64("id")
|
|
1891
|
+ err := service.DeleteDrugInventory(id)
|
|
1892
|
+ fmt.Println(err)
|
|
1893
|
+ returnData := make(map[string]interface{}, 0)
|
|
1894
|
+ returnData["msg"] = "ok"
|
|
1895
|
+ this.ServeSuccessJSON(returnData)
|
|
1896
|
+}
|
|
1897
|
+
|
|
1898
|
+func (this *SelfDrugApiController) GetDrugInventoryPrintList() {
|
|
1899
|
+
|
|
1900
|
+ ids := this.GetString("ids")
|
|
1901
|
+
|
|
1902
|
+ idssplit := strings.Split(ids, ",")
|
|
1903
|
+ list, err := service.GetDrugInventoryPrintList(idssplit)
|
|
1904
|
+ if err != nil {
|
|
1905
|
+ this.ServeFailJsonSend(enums.ErrorCodeDataException, "更新设备失败")
|
|
1906
|
+ return
|
|
1907
|
+ }
|
|
1908
|
+
|
|
1909
|
+ this.ServeSuccessJSON(map[string]interface{}{
|
|
1910
|
+ "list": list,
|
|
1911
|
+ })
|
|
1912
|
+}
|
|
1913
|
+
|
|
1914
|
+func (this *SelfDrugApiController) GetDrugInventoryDetailList() {
|
|
1915
|
+
|
|
1916
|
+ keyword := this.GetString("keyword")
|
|
1917
|
+ limit, _ := this.GetInt64("limit")
|
|
1918
|
+ page, _ := this.GetInt64("page")
|
|
1919
|
+ orgId := this.GetAdminUserInfo().CurrentOrgId
|
|
1920
|
+ list, total, err := service.GetDrugInventoryDetailList(keyword, page, limit, orgId)
|
|
1921
|
+ fmt.Println("list23232323223", list)
|
|
1922
|
+ doctorList, _ := service.GetAllDoctorThree(orgId)
|
|
1923
|
+ if err != nil {
|
|
1924
|
+ this.ServeFailJsonSend(enums.ErrorCodeDataException, "更新设备失败")
|
|
1925
|
+ return
|
|
1926
|
+ }
|
|
1927
|
+
|
|
1928
|
+ this.ServeSuccessJSON(map[string]interface{}{
|
|
1929
|
+ "total": total,
|
|
1930
|
+ "list": list,
|
|
1931
|
+ "doctorList": doctorList,
|
|
1932
|
+ })
|
|
1933
|
+}
|