|
@@ -32,6 +32,8 @@ func PharmacyApiRegistRouters() {
|
32
|
32
|
beego.Router("/api/pharmacy/getpartitionlist", &PharmacyController{}, "get:GetPartitionList") //获取当前机构的分区列表
|
33
|
33
|
beego.Router("/api/pharmacy/routeofadministration", &PharmacyController{}, "get:RouteOfAdministration") //获取当前机构的给药途径
|
34
|
34
|
}
|
|
35
|
+
|
|
36
|
+//测试
|
35
|
37
|
func (this *PharmacyController) Tlili() {
|
36
|
38
|
var err error
|
37
|
39
|
defer func() {
|
|
@@ -76,6 +78,16 @@ func (this *PharmacyController) TodayNumber() {
|
76
|
78
|
times := this.GetString("time", "")
|
77
|
79
|
timeLayout := "2006-01-02"
|
78
|
80
|
loc, _ := time.LoadLocation("Local")
|
|
81
|
+ //shift, err := this.GetInt64("shift", 0) //班次
|
|
82
|
+ //if err != nil {
|
|
83
|
+ // this.ServeFailJSONWithSGJErrorCode(enums.ErrorCodeParamWrong)
|
|
84
|
+ // return
|
|
85
|
+ //}
|
|
86
|
+ //partition, err := this.GetInt64("partition", 0) //分区
|
|
87
|
+ //if err != nil {
|
|
88
|
+ // this.ServeFailJSONWithSGJErrorCode(enums.ErrorCodeParamWrong)
|
|
89
|
+ // return
|
|
90
|
+ //}
|
79
|
91
|
var stime, etime int64
|
80
|
92
|
if times == "" {
|
81
|
93
|
stime, etime = service.GetNowTime()
|