正在显示
3 个修改的文件
包含
3 行增加
和
3 行删除
| @@ -197,7 +197,7 @@ func (productRecordService *ProductRecordService) ListProductCapacities(operateI | @@ -197,7 +197,7 @@ func (productRecordService *ProductRecordService) ListProductCapacities(operateI | ||
| 197 | ProductName: v.ProductRecordInfo.PlanProductName, | 197 | ProductName: v.ProductRecordInfo.PlanProductName, |
| 198 | WorkerOn: v.ProductRecordInfo.WorkOn, | 198 | WorkerOn: v.ProductRecordInfo.WorkOn, |
| 199 | ProductWeigh: v.ProductRecordInfo.Weigh, | 199 | ProductWeigh: v.ProductRecordInfo.Weigh, |
| 200 | - CreatedAt: v.CreatedAt.Format("2006-01-02"), | 200 | + CreatedAt: v.CreatedAt.Local().Format("2006-01-02"), |
| 201 | ApproveStatus: v.ProductRecordInfo.ApproveStatus, | 201 | ApproveStatus: v.ProductRecordInfo.ApproveStatus, |
| 202 | } | 202 | } |
| 203 | result = append(result, item) | 203 | result = append(result, item) |
| @@ -294,7 +294,7 @@ func (srv ProductTroubleService) ListProductTrouble(param *query.ListProductTrou | @@ -294,7 +294,7 @@ func (srv ProductTroubleService) ListProductTrouble(param *query.ListProductTrou | ||
| 294 | SectionId: v.WorkStation.SectionId, | 294 | SectionId: v.WorkStation.SectionId, |
| 295 | SectionName: v.WorkStation.SectionName, | 295 | SectionName: v.WorkStation.SectionName, |
| 296 | Remark: v.Remark, | 296 | Remark: v.Remark, |
| 297 | - ProductDate: v.RecordDate.Format("2006-01-02"), | 297 | + ProductDate: v.RecordDate.Local().Format("2006-01-02"), |
| 298 | AmountLoss: v.AmountLoss, | 298 | AmountLoss: v.AmountLoss, |
| 299 | Types: v.GetTypesName(), | 299 | Types: v.GetTypesName(), |
| 300 | WorkerId: v.ProductWorker.UserId, | 300 | WorkerId: v.ProductWorker.UserId, |
| @@ -125,7 +125,7 @@ func (repo *ProductTroubleRepository) Find(queryOptions map[string]interface{}) | @@ -125,7 +125,7 @@ func (repo *ProductTroubleRepository) Find(queryOptions map[string]interface{}) | ||
| 125 | query.Where(fmt.Sprintf(`product_worker->>'userName' like '%%%v%%'`, v)) | 125 | query.Where(fmt.Sprintf(`product_worker->>'userName' like '%%%v%%'`, v)) |
| 126 | } | 126 | } |
| 127 | 127 | ||
| 128 | - query.Order("id", "DESC") | 128 | + query.Order("id DESC") |
| 129 | cnt, err := query.SelectAndCount() | 129 | cnt, err := query.SelectAndCount() |
| 130 | if err != nil { | 130 | if err != nil { |
| 131 | return 0, nil, err | 131 | return 0, nil, err |
-
请 注册 或 登录 后发表评论