|
|
|
@ -43,11 +43,11 @@ |
|
|
|
SELECT t.* |
|
|
|
SELECT t.* |
|
|
|
FROM DS_TASKING t |
|
|
|
FROM DS_TASKING t |
|
|
|
WHERE t.is_deleted = 0 |
|
|
|
WHERE t.is_deleted = 0 |
|
|
|
AND NOT EXISTS ( |
|
|
|
-- AND NOT EXISTS ( |
|
|
|
SELECT 1 |
|
|
|
-- SELECT 1 |
|
|
|
FROM DS_PART_RELATION r |
|
|
|
-- FROM DS_PART_RELATION r |
|
|
|
WHERE r.is_deleted = 0 |
|
|
|
-- WHERE r.is_deleted = 0 |
|
|
|
AND r.CHILD_PART_CODE = t.PART_CODE) |
|
|
|
-- AND r.CHILD_PART_CODE = t.PART_CODE) |
|
|
|
and t.TASK_STATUS = 0 |
|
|
|
and t.TASK_STATUS = 0 |
|
|
|
<if test="dsTasking.taskType != null "> |
|
|
|
<if test="dsTasking.taskType != null "> |
|
|
|
and t.TASK_TYPE = #{dsTasking.taskType} |
|
|
|
and t.TASK_TYPE = #{dsTasking.taskType} |
|
|
|
@ -77,11 +77,11 @@ |
|
|
|
SELECT t.* |
|
|
|
SELECT t.* |
|
|
|
FROM DS_TASKING t |
|
|
|
FROM DS_TASKING t |
|
|
|
WHERE t.is_deleted = 0 |
|
|
|
WHERE t.is_deleted = 0 |
|
|
|
AND NOT EXISTS ( |
|
|
|
-- AND NOT EXISTS ( |
|
|
|
SELECT 1 |
|
|
|
-- SELECT 1 |
|
|
|
FROM DS_PART_RELATION r |
|
|
|
-- FROM DS_PART_RELATION r |
|
|
|
WHERE r.is_deleted = 0 |
|
|
|
-- WHERE r.is_deleted = 0 |
|
|
|
AND r.CHILD_PART_CODE = t.PART_CODE) |
|
|
|
-- AND r.CHILD_PART_CODE = t.PART_CODE) |
|
|
|
<if test="dsTasking.taskStatus != null "> |
|
|
|
<if test="dsTasking.taskStatus != null "> |
|
|
|
and TASK_STATUS = #{dsTasking.taskStatus} |
|
|
|
and TASK_STATUS = #{dsTasking.taskStatus} |
|
|
|
</if> |
|
|
|
</if> |
|
|
|
|