his_print_api_controller.go 841B

12345678910111213141516171819202122232425262728293031323334
  1. package controllers
  2. import (
  3. "github.com/astaxie/beego"
  4. )
  5. type HisPrintApiController struct {
  6. BaseAuthAPIController
  7. }
  8. func HisPrintApiRegistRouters() {
  9. beego.Router("/api/his/prescription/print", &HisPrintApiController{}, "get:GetBatchHisPrescriptionData")
  10. }
  11. func (c *HisPrintApiController) GetBatchHisPrescriptionData() {
  12. //record_date := c.GetString("record_date")
  13. //patient_ids := c.GetString("patient_ids")
  14. //type := c.GetInt64("type")
  15. //
  16. //
  17. //timeLayout := "2006-01-02"
  18. //loc, _ := time.LoadLocation("Local")
  19. //theTime, err := time.ParseInLocation(timeLayout+" 15:04:05", record_date+" 00:00:00", loc)
  20. //if err != nil {
  21. // c.ServeFailJSONWithSGJErrorCode(enums.ErrorCodeParamWrong)
  22. // return
  23. //}
  24. //recordDateTime := theTime.Unix()
  25. //adminInfo := c.GetAdminUserInfo()
  26. //
  27. //ids := strings.Split(patient_ids,",")
  28. }