|
|
@@ -28,8 +28,8 @@ interface ProductionScheduleRepository : AbstractRepository<ProductionSchedule, |
|
|
|
ps.id, |
|
|
|
ps.deleted, |
|
|
|
ps.scheduleAt, |
|
|
|
date_add(ps.scheduleAt, interval 7 - if(weekday(ps.scheduleAt) = 6, 0, weekday(ps.scheduleAt) + 1) day) as schedulePeriod, |
|
|
|
date_add(ps.scheduleAt, interval 7 + 6 - if(weekday(ps.scheduleAt) = 6, 0, weekday(ps.scheduleAt) + 1) day) as schedulePeriodTo, |
|
|
|
date_add(ps.scheduleAt, interval 7 + 4 - if(weekday(ps.scheduleAt) = 6, 0, weekday(ps.scheduleAt) + 1) day) as schedulePeriod, |
|
|
|
date_add(ps.scheduleAt, interval 7 + 4 + 6 - if(weekday(ps.scheduleAt) = 6, 0, weekday(ps.scheduleAt) + 1) day) as schedulePeriodTo, |
|
|
|
ps.totalEstProdCount, |
|
|
|
ps.totalFGType, |
|
|
|
ps.`type` |
|
|
@@ -51,8 +51,8 @@ interface ProductionScheduleRepository : AbstractRepository<ProductionSchedule, |
|
|
|
ps.id, |
|
|
|
ps.deleted, |
|
|
|
ps.scheduleAt, |
|
|
|
date_add(ps.scheduleAt, interval 7 - if(weekday(ps.scheduleAt) = 6, 0, weekday(ps.scheduleAt) + 1) day) as schedulePeriod, |
|
|
|
date_add(ps.scheduleAt, interval 7 + 6 - if(weekday(ps.scheduleAt) = 6, 0, weekday(ps.scheduleAt) + 1) day) as schedulePeriodTo, |
|
|
|
date_add(ps.scheduleAt, interval 7 + 4 - if(weekday(ps.scheduleAt) = 6, 0, weekday(ps.scheduleAt) + 1) day) as schedulePeriod, |
|
|
|
date_add(ps.scheduleAt, interval 7 + 4 + 6 - if(weekday(ps.scheduleAt) = 6, 0, weekday(ps.scheduleAt) + 1) day) as schedulePeriodTo, |
|
|
|
ps.totalEstProdCount, |
|
|
|
ps.totalFGType, |
|
|
|
ps.`type` |
|
|
|