Browse Source

更新sql

pull/308/head
xiaoying 9 months ago
parent
commit
46a479c451
1 changed files with 3 additions and 3 deletions
  1. +3
    -3
      tuoheng-system/src/main/resources/mapper/ThWorkorderMapper.xml

+ 3
- 3
tuoheng-system/src/main/resources/mapper/ThWorkorderMapper.xml View File

@@ -128,9 +128,9 @@
and wi.`status` in (0, 2)
AND IF
(
qi.handler_time IS NOT NULL,
qi.handler_time > DATE_ADD(qi.create_time, INTERVAL qt.rectification DAY),
now() > DATE_ADD(qi.create_time, INTERVAL qt.rectification DAY))
wi.handler_time IS NOT NULL,
wi.handler_time > DATE_ADD(w.assign_time, INTERVAL qt.rectification DAY),
now() > DATE_ADD(w.assign_time, INTERVAL qt.rectification DAY))
GROUP BY w.id
ORDER BY w.create_time DESC
</select>

Loading…
Cancel
Save