...
|
...
|
@@ -34,7 +34,7 @@ func (dao *WorkshopProductRecordDao) WorkshopProductRecord(companyId, orgId int, |
|
|
query.Where("org_id = ?", orgId)
|
|
|
query.Where("work_station ->>'workStationId' = ?", workStationId)
|
|
|
query.Where("product_date = ?", productTime.Local().Format("2006-01-02"))
|
|
|
//query.Where("product_record_info ->>'productPlanId' = '?'", planId)
|
|
|
query.Where("product_record_info ->>'productPlanId' = '?'", planId)
|
|
|
if err := query.First(); err != nil {
|
|
|
if err.Error() == "pg: no rows in result set" {
|
|
|
return nil, domain.ErrorNotFound
|
...
|
...
|
|