12345678910111213141516171819202122232425262728293031323334 |
- package controllers
-
- import (
- "github.com/astaxie/beego"
- )
-
- type HisPrintApiController struct {
- BaseAuthAPIController
- }
-
- func HisPrintApiRegistRouters() {
- beego.Router("/api/his/prescription/print", &HisPrintApiController{}, "get:GetBatchHisPrescriptionData")
- }
-
- func (c *HisPrintApiController) GetBatchHisPrescriptionData() {
- //record_date := c.GetString("record_date")
- //patient_ids := c.GetString("patient_ids")
- //type := c.GetInt64("type")
- //
- //
- //timeLayout := "2006-01-02"
- //loc, _ := time.LoadLocation("Local")
- //theTime, err := time.ParseInLocation(timeLayout+" 15:04:05", record_date+" 00:00:00", loc)
- //if err != nil {
- // c.ServeFailJSONWithSGJErrorCode(enums.ErrorCodeParamWrong)
- // return
- //}
- //recordDateTime := theTime.Unix()
- //adminInfo := c.GetAdminUserInfo()
- //
- //ids := strings.Split(patient_ids,",")
-
- }
|