|
@@ -299,7 +299,7 @@ func (c *HisChargeApiController) GetHisInspectionList() {
|
299
|
299
|
is_print, _ := c.GetInt64("is_print")
|
300
|
300
|
page, _ := c.GetInt64("page")
|
301
|
301
|
limit, _ := c.GetInt64("limit")
|
302
|
|
- //tube_color, _ := c.GetInt64("tube_color")
|
|
302
|
+ tube_color, _ := c.GetInt64("tube_color")
|
303
|
303
|
|
304
|
304
|
adminUser := c.GetAdminUserInfo()
|
305
|
305
|
|
|
@@ -310,7 +310,21 @@ func (c *HisChargeApiController) GetHisInspectionList() {
|
310
|
310
|
|
311
|
311
|
}
|
312
|
312
|
record_time := startTime.Unix()
|
313
|
|
- labels, total, err := service.GetLabelPrintList(page, limit, adminUser.CurrentOrgId, record_time, is_print, keyword, 0)
|
|
313
|
+ var labels []*models.HisLabelPrintInfo
|
|
314
|
+ var labels_two []*models.HisLabelPrintInfo
|
|
315
|
+
|
|
316
|
+ var total int64
|
|
317
|
+ var total_two int64
|
|
318
|
+ //var err error
|
|
319
|
+ if tube_color == 0 {
|
|
320
|
+ labels, total, err = service.GetLabelPrintList(page, limit, adminUser.CurrentOrgId, record_time, is_print, keyword, tube_color)
|
|
321
|
+ } else {
|
|
322
|
+ labels, total, err = service.GetLabelPrintList(page, limit, adminUser.CurrentOrgId, record_time, is_print, keyword, tube_color)
|
|
323
|
+ labels_two, total_two, err = service.GetLabelPrintListTwo(page, limit, adminUser.CurrentOrgId, record_time, is_print, keyword, tube_color)
|
|
324
|
+ total = total + total_two
|
|
325
|
+ labels = append(labels, labels_two...)
|
|
326
|
+ }
|
|
327
|
+
|
314
|
328
|
if err == nil {
|
315
|
329
|
|
316
|
330
|
c.ServeSuccessJSON(map[string]interface{}{
|