Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
L
long-tern-care-service
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
hubin
long-tern-care-service
Commits
deb53c80
Commit
deb53c80
authored
Apr 14, 2021
by
蔡镇泽
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
是否退回和剩余天数条件sql
parent
189b0956
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
3 deletions
+7
-3
ChDisableEvaluateMapper.xml
...ice/src/main/resources/mapper/ChDisableEvaluateMapper.xml
+7
-3
No files found.
assessment/assessment-service/src/main/resources/mapper/ChDisableEvaluateMapper.xml
View file @
deb53c80
...
...
@@ -35,6 +35,7 @@
left join ch_disable_info disable on task.disable_info_id = disable.disab_info_id
left join ch_apr_emp emp on task.apr_emp_id = emp.emp_id
left join ch_apr_task_push push on task.task_id = push.task_id
left join ch_apr_task_emp cate on task.task_id = cate.task_id
<where>
<if
test=
"organIds != null"
>
and task.apr_organ_id in
...
...
@@ -67,13 +68,16 @@
and emp.tel = #{taskTel}
</if>
<if
test=
"daysRemaining != null and daysRemaining != ''"
>
#and s.SRV_ORGAN_NAME = #{taskName
}
and (to_date(to_char(task.last_apr_date,'yyyy-MM-dd'),'yyyy-MM-dd') - to_date(to_char(sysdate,'yyyy-MM-dd'),'yyyy-MM-dd')) + 1
<
= #{daysRemaining
}
</if>
<if
test=
"status != null and status != ''"
>
and task.TASK_STATUS = #{status}
</if>
<if
test=
"isReturn != null and isReturn != ''"
>
#and s.SRV_ORGAN_NAME = #{taskName}
<if
test=
"isReturn != null and isReturn == '0'"
>
and cate.is_valid = 1 and task.task_status in (0,4,5)
</if>
<if
test=
"isReturn != null and isReturn == '1'"
>
(and cate.is_valid = 0 or cate.is_valid is null)
</if>
</where>
</select>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment