|
@@ -3704,6 +3704,7 @@ func (c *HisApiController) GetHisOrderList() {
|
3704
|
3704
|
types, _ := c.GetInt64("type", 0)
|
3705
|
3705
|
keywords := c.GetString("keywords")
|
3706
|
3706
|
p_type, _ := c.GetInt64("p_type", 0)
|
|
3707
|
+ sort_type, _ := c.GetInt64("sort_type", 0)
|
3707
|
3708
|
|
3708
|
3709
|
timeLayout := "2006-01-02"
|
3709
|
3710
|
loc, _ := time.LoadLocation("Local")
|
|
@@ -3730,7 +3731,7 @@ func (c *HisApiController) GetHisOrderList() {
|
3730
|
3731
|
|
3731
|
3732
|
adminUser := c.GetAdminUserInfo()
|
3732
|
3733
|
org_id := adminUser.CurrentOrgId
|
3733
|
|
- order, err, total := service.GetHisOrderList(org_id, page, limit, startTime, endTime, types, keywords, p_type)
|
|
3734
|
+ order, err, total := service.GetHisOrderList(org_id, page, limit, startTime, endTime, types, keywords, p_type, sort_type)
|
3734
|
3735
|
|
3735
|
3736
|
for _, item := range order {
|
3736
|
3737
|
info, _ := service.GetHisPrescriptionByPatientID(item.PatientId, item.UserOrgId)
|