|
@@ -1696,7 +1696,7 @@ func (c *PatientApiController) ExecDoctorAdvice() {
|
1696
|
1696
|
|
1697
|
1697
|
if medical.IsUse != 1 {
|
1698
|
1698
|
if (list.Count*medical.MinNumber + list.StockMinNumber) == 0 {
|
1699
|
|
- if advice.UserOrgId != 10278 && advice.UserOrgId != 10697 && advice.UserOrgId != 10635 && advice.UserOrgId != 10724 && advice.UserOrgId != 10571 && advice.UserOrgId != 10731 {
|
|
1699
|
+ if advice.UserOrgId != 10278 && advice.UserOrgId != 10697 && advice.UserOrgId != 10635 && advice.UserOrgId != 10724 && advice.UserOrgId != 10571 && advice.UserOrgId != 10731 && advice.UserOrgId != 10610 {
|
1700
|
1700
|
service.UpdateDoctorAdviceByExcecute(advice.ID, advice.UserOrgId)
|
1701
|
1701
|
advice.ExecutionTime = 0
|
1702
|
1702
|
advice.ExecutionState = 2
|
|
@@ -1712,7 +1712,7 @@ func (c *PatientApiController) ExecDoctorAdvice() {
|
1712
|
1712
|
|
1713
|
1713
|
}
|
1714
|
1714
|
if prescribing_number_total > total {
|
1715
|
|
- if advice.UserOrgId != 10278 && advice.UserOrgId != 10697 && advice.UserOrgId != 10635 && advice.UserOrgId != 10724 && advice.UserOrgId != 10571 && advice.UserOrgId != 10731 {
|
|
1715
|
+ if advice.UserOrgId != 10278 && advice.UserOrgId != 10697 && advice.UserOrgId != 10635 && advice.UserOrgId != 10724 && advice.UserOrgId != 10571 && advice.UserOrgId != 10731 && advice.UserOrgId != 10610 {
|
1716
|
1716
|
service.UpdateDoctorAdviceByExcecute(advice.ID, advice.UserOrgId)
|
1717
|
1717
|
advice.ExecutionTime = 0
|
1718
|
1718
|
advice.ExecutionState = 2
|
|
@@ -1739,7 +1739,7 @@ func (c *PatientApiController) ExecDoctorAdvice() {
|
1739
|
1739
|
//查询今日是否出库
|
1740
|
1740
|
drugOutInfo, _ := service.GetAdviceIsOut(item.ID, item.UserOrgId, item.PatientId, item.AdviceDate, item.DrugId)
|
1741
|
1741
|
if drugOutInfo.ID == 0 {
|
1742
|
|
- if item.UserOrgId != 10644 && item.UserOrgId != 10721 && item.UserOrgId != 10138 && item.UserOrgId != 10278 && item.UserOrgId != 10724 && item.UserOrgId != 10571 && item.UserOrgId != 10731 {
|
|
1742
|
+ if item.UserOrgId != 10644 && item.UserOrgId != 10721 && item.UserOrgId != 10138 && item.UserOrgId != 10278 && item.UserOrgId != 10724 && item.UserOrgId != 10571 && item.UserOrgId != 10731 && item.UserOrgId != 10610 {
|
1743
|
1743
|
service.DrugsDelivery(item.UserOrgId, item.ExecutionStaff, &item)
|
1744
|
1744
|
}
|
1745
|
1745
|
|
|
@@ -1749,7 +1749,7 @@ func (c *PatientApiController) ExecDoctorAdvice() {
|
1749
|
1749
|
if pharmacyConfig.IsOpen != 1 {
|
1750
|
1750
|
drugOutInfo, _ := service.GetAdviceIsOut(item.ID, item.UserOrgId, item.PatientId, item.AdviceDate, item.DrugId)
|
1751
|
1751
|
if drugOutInfo.ID == 0 {
|
1752
|
|
- if item.UserOrgId != 10644 && item.UserOrgId != 10721 && item.UserOrgId != 10138 && item.UserOrgId != 10278 && item.UserOrgId != 10724 && item.UserOrgId != 10571 && item.UserOrgId != 10731 {
|
|
1752
|
+ if item.UserOrgId != 10644 && item.UserOrgId != 10721 && item.UserOrgId != 10138 && item.UserOrgId != 10278 && item.UserOrgId != 10724 && item.UserOrgId != 10571 && item.UserOrgId != 10731 && item.UserOrgId != 10610 {
|
1753
|
1753
|
service.DrugsDelivery(item.UserOrgId, item.ExecutionStaff, &item)
|
1754
|
1754
|
}
|
1755
|
1755
|
|
|
@@ -1776,7 +1776,7 @@ func (c *PatientApiController) ExecDoctorAdvice() {
|
1776
|
1776
|
if pharmacyConfig.IsOpen == 1 && medical.IsPharmacy == 0 {
|
1777
|
1777
|
drugOutInfo, _ := service.GetAdviceIsOut(item.ID, item.UserOrgId, item.PatientId, item.AdviceDate, item.DrugId)
|
1778
|
1778
|
if drugOutInfo.ID == 0 {
|
1779
|
|
- if item.UserOrgId != 10644 && item.UserOrgId != 10721 && item.UserOrgId != 10138 && item.UserOrgId != 10278 && item.UserOrgId != 10724 && item.UserOrgId != 10571 && item.UserOrgId != 10731 {
|
|
1779
|
+ if item.UserOrgId != 10644 && item.UserOrgId != 10721 && item.UserOrgId != 10138 && item.UserOrgId != 10278 && item.UserOrgId != 10724 && item.UserOrgId != 10571 && item.UserOrgId != 10731 && item.UserOrgId != 10610 {
|
1780
|
1780
|
service.DrugsDelivery(item.UserOrgId, item.ExecutionStaff, &item)
|
1781
|
1781
|
}
|
1782
|
1782
|
|
|
@@ -1800,7 +1800,7 @@ func (c *PatientApiController) ExecDoctorAdvice() {
|
1800
|
1800
|
service.CreateDrugError(drugError)
|
1801
|
1801
|
drugOutInfo, _ := service.GetAdviceIsOut(item.ID, item.UserOrgId, item.PatientId, item.AdviceDate, item.DrugId)
|
1802
|
1802
|
if drugOutInfo.ID == 0 {
|
1803
|
|
- if item.UserOrgId != 10644 && item.UserOrgId != 10721 && item.UserOrgId != 10138 && item.UserOrgId != 10278 && item.UserOrgId != 10724 && item.UserOrgId != 10571 && item.UserOrgId != 10731 {
|
|
1803
|
+ if item.UserOrgId != 10644 && item.UserOrgId != 10721 && item.UserOrgId != 10138 && item.UserOrgId != 10278 && item.UserOrgId != 10724 && item.UserOrgId != 10571 && item.UserOrgId != 10731 && item.UserOrgId != 10610 {
|
1804
|
1804
|
service.DrugsDelivery(item.UserOrgId, item.ExecutionStaff, &item)
|
1805
|
1805
|
}
|
1806
|
1806
|
|
|
@@ -1893,7 +1893,7 @@ func (c *PatientApiController) ExecDoctorAdvice() {
|
1893
|
1893
|
return
|
1894
|
1894
|
}
|
1895
|
1895
|
if prescribing_number_total > total {
|
1896
|
|
- if advice.UserOrgId != 10278 && advice.UserOrgId != 10697 && advice.UserOrgId != 10635 && item.UserOrgId != 10724 && item.UserOrgId != 10571 && item.UserOrgId != 10731 {
|
|
1896
|
+ if advice.UserOrgId != 10278 && advice.UserOrgId != 10697 && advice.UserOrgId != 10635 && item.UserOrgId != 10724 && item.UserOrgId != 10571 && item.UserOrgId != 10731 && item.UserOrgId != 10610 {
|
1897
|
1897
|
service.UpdateDoctorAdviceByExcecute(advice.ID, advice.UserOrgId)
|
1898
|
1898
|
advice.ExecutionTime = 0
|
1899
|
1899
|
advice.ExecutionState = 2
|
|
@@ -1912,7 +1912,7 @@ func (c *PatientApiController) ExecDoctorAdvice() {
|
1912
|
1912
|
//查询今日是否出库
|
1913
|
1913
|
drugOutInfo, _ := service.GetAdviceIsOut(item.ID, item.UserOrgId, item.PatientId, item.AdviceDate, item.DrugId)
|
1914
|
1914
|
if drugOutInfo.ID == 0 {
|
1915
|
|
- if item.UserOrgId != 10644 && item.UserOrgId != 10721 && item.UserOrgId != 10138 && item.UserOrgId != 10278 && item.UserOrgId != 10724 && item.UserOrgId != 10571 && item.UserOrgId != 10731 {
|
|
1915
|
+ if item.UserOrgId != 10644 && item.UserOrgId != 10721 && item.UserOrgId != 10138 && item.UserOrgId != 10278 && item.UserOrgId != 10724 && item.UserOrgId != 10571 && item.UserOrgId != 10731 && item.UserOrgId != 10610 {
|
1916
|
1916
|
service.DrugsDelivery(item.UserOrgId, item.ExecutionStaff, &item)
|
1917
|
1917
|
}
|
1918
|
1918
|
|
|
@@ -1922,7 +1922,7 @@ func (c *PatientApiController) ExecDoctorAdvice() {
|
1922
|
1922
|
//查询今日是否出库
|
1923
|
1923
|
drugOutInfo, _ := service.GetAdviceIsOut(item.ID, item.UserOrgId, item.PatientId, item.AdviceDate, item.DrugId)
|
1924
|
1924
|
if drugOutInfo.ID == 0 {
|
1925
|
|
- if item.UserOrgId != 10644 && item.UserOrgId != 10721 && item.UserOrgId != 10138 && item.UserOrgId != 10278 && item.UserOrgId != 10724 && item.UserOrgId != 10571 && item.UserOrgId != 10731 {
|
|
1925
|
+ if item.UserOrgId != 10644 && item.UserOrgId != 10721 && item.UserOrgId != 10138 && item.UserOrgId != 10278 && item.UserOrgId != 10724 && item.UserOrgId != 10571 && item.UserOrgId != 10731 && item.UserOrgId != 10610 {
|
1926
|
1926
|
service.DrugsDelivery(item.UserOrgId, item.ExecutionStaff, &item)
|
1927
|
1927
|
}
|
1928
|
1928
|
|