Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
mrqc-template-xy2yy
Overview
Overview
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
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
zhangaoping
mrqc-template-xy2yy
Commits
ed9d69bc
Commit
ed9d69bc
authored
Apr 07, 2023
by
zhangaoping
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
删除
parent
78136681
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
94 deletions
+0
-94
src/main/resources/mapper/AutoAssignMapper.xml
+0
-80
src/main/resources/mapper/DemoMapper.xml
+0
-14
No files found.
src/main/resources/mapper/AutoAssignMapper.xml
deleted
100644 → 0
View file @
78136681
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper
namespace=
"com.hanyun.hip.mrqc.kqyy.mapper.AutoAssignMapper"
>
<!-- 按四级、三级和住院时长查询数据 -->
<select
id=
"selecAllDeptsurgicalOperateList"
parameterType=
"String"
resultType=
"map"
>
SELECT
record_id,department_name,inpatient_area,in_time,out_time,hospit_doctor,
CASE
(
SELECT
count( 1 )
FROM
mrqc_struct_data
WHERE
data_value = '4'
AND struct_id IN (
SELECT struct_id FROM mrqc_struct
WHERE struct_code IN (
'HDSD00_11_092','HDSD00_11_092_2','HDSD00_11_092_3','HDSD00_11_092_4','HDSD00_11_092_5','HDSD00_11_092_6',
'HDSD00_11_092_7','HDSD00_11_092_8','HDSD00_11_092_9','HDSD00_11_092_10','HDSD00_11_092_11','HDSD00_11_092_12',
'HDSD00_11_092_13','HDSD00_11_092_14','HDSD00_11_092_15','HDSD00_11_092_16','HDSD00_11_092_17',
'HDSD00_11_092_18','HDSD00_11_092_19','HDSD00_11_092_20','HDSD00_11_092_21','HDSD00_11_092_22',
'HDSD00_11_092_23','HDSD00_11_092_24','HDSD00_11_092_25'
)
)
AND record_id = u.record_id
)
>
0
WHEN TRUE THEN
'999' ELSE '0'
END AS ss_four,
CASE
(
SELECT count( 1 )
FROM mrqc_struct_data
WHERE data_value = '3'
AND struct_id IN (
SELECT struct_id
FROM mrqc_struct
WHERE
struct_code IN (
'HDSD00_11_092','HDSD00_11_092_2','HDSD00_11_092_3','HDSD00_11_092_4',
'HDSD00_11_092_5','HDSD00_11_092_6','HDSD00_11_092_7','HDSD00_11_092_8',
'HDSD00_11_092_9','HDSD00_11_092_10','HDSD00_11_092_11','HDSD00_11_092_12',
'HDSD00_11_092_13','HDSD00_11_092_14','HDSD00_11_092_15','HDSD00_11_092_16',
'HDSD00_11_092_17','HDSD00_11_092_18','HDSD00_11_092_19','HDSD00_11_092_20',
'HDSD00_11_092_21','HDSD00_11_092_22','HDSD00_11_092_23','HDSD00_11_092_24',
'HDSD00_11_092_25'
)
)
AND record_id = u.record_id
)
>
0
WHEN TRUE THEN
'998' ELSE '0'
END AS ss_three,
IFNULL( ( SELECT data_value FROM mrqc_struct_data WHERE struct_id = '50' AND record_id = u.record_id LIMIT 1 ), '0' ) AS zyts
FROM mrqc_record u
WHERE DATE_FORMAT( out_time, '%Y-%m' ) = #{qcMonth}
AND u.record_id not in (
select mor.record_id from mrqc_operator_record mor,mrqc_report_month mrm
where mor.report_id=mrm.report_id
and mor.user_id = #{userId}
and mrm.qc_month = #{qcMonth}
)
${dataScope}
ORDER BY ss_four DESC,ss_three DESC,zyts + 0 DESC
</select>
<select
id=
"selectAllZyRecordId"
resultType=
"java.lang.String"
parameterType=
"java.lang.String"
>
SELECT
record_id
FROM
mrqc_record
WHERE
emr_status = '1'
<if
test=
"department != null and department != ''"
>
AND inpatient_area IN (${department})
</if>
</select>
</mapper>
src/main/resources/mapper/DemoMapper.xml
deleted
100644 → 0
View file @
78136681
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper
namespace=
"com.hanyun.hip.mrqc.kqyy.mapper.DemoMapper"
>
<resultMap
id=
"DemoResult"
type=
"com.hanyun.hip.mrqc.kqyy.domain.SysUserDemo"
>
<result
property=
"userName"
column=
"user_name"
/>
<result
property=
"userLogin"
column=
"login_name"
/>
</resultMap>
<!-- 按评分统计各医院符合条件的病历数 -->
<select
id=
"selecUserDemo"
resultMap=
"DemoResult"
>
SELECT user_name, login_name FROM sys_user WHERE user_id = #{userId}
</select>
</mapper>
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