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
7ad7c1bf
Commit
7ad7c1bf
authored
May 06, 2021
by
蔡镇泽
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
查询护理机构人员列表
parent
1f2eb1fb
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
109 additions
and
8 deletions
+109
-8
OrganEmpVO.java
.../java/com/hungraim/ltc/pojo/vo/governance/OrganEmpVO.java
+47
-0
SrvTaskController.java
...hungraim/ltc/governance/controller/SrvTaskController.java
+11
-3
SrvTaskMapper.java
...n/java/com/hungraim/ltc/governance/dao/SrvTaskMapper.java
+3
-0
SrvTaskService.java
...a/com/hungraim/ltc/governance/service/SrvTaskService.java
+2
-2
SrvTaskServiceImpl.java
...graim/ltc/governance/service/impl/SrvTaskServiceImpl.java
+3
-3
SrvTaskMapper.xml
...rces/com/hungraim/ltc/governance/mapper/SrvTaskMapper.xml
+43
-0
No files found.
common/common-core/src/main/java/com/hungraim/ltc/pojo/vo/governance/OrganEmpVO.java
0 → 100644
View file @
7ad7c1bf
package
com
.
hungraim
.
ltc
.
pojo
.
vo
.
governance
;
import
lombok.Data
;
@Data
public
class
OrganEmpVO
{
/**
* 护理人员id
*/
private
Integer
empid
;
/**
* 护理机构名称
*/
private
String
srvOrganName
;
/**
* 统一社会信用代码
*/
private
String
unifiedSocialCreditCode
;
/**
* 护理人员姓名
*/
private
String
empName
;
/**
* 护理人员性别
*/
private
String
gender
;
/**
* 护理人员年龄
*/
private
String
age
;
/**
* 护理人员证件类型
*/
private
String
certifType
;
/**
* 护理人员证件号码
*/
private
String
certifNum
;
/**
* 护理人员资质
*/
private
String
empTypeName
;
/**
* 状态 有效:0,失效:1
*/
private
String
isLock
;
}
governance/src/main/java/com/hungraim/ltc/governance/controller/SrvTaskController.java
View file @
7ad7c1bf
package
com
.
hungraim
.
ltc
.
governance
.
controller
;
package
com
.
hungraim
.
ltc
.
governance
.
controller
;
import
com.hungraim.ltc.governance.service.SrvTaskService
;
import
com.hungraim.ltc.governance.service.SrvTaskService
;
import
com.hungraim.ltc.pojo.
entity.serviceManage.ChOrganEmp
;
import
com.hungraim.ltc.pojo.
vo.governance.OrganEmpVO
;
import
com.hungraim.ltc.pojo.vo.governance.SrvTaskInfoVO
;
import
com.hungraim.ltc.pojo.vo.governance.SrvTaskInfoVO
;
import
com.hungraim.ltc.pojo.vo.governance.SrvTaskVO
;
import
com.hungraim.ltc.pojo.vo.governance.SrvTaskVO
;
import
com.hungraim.ltc.util.DateUtils
;
import
com.hungraim.ltc.util.DateUtils
;
...
@@ -29,10 +29,18 @@ public class SrvTaskController {
...
@@ -29,10 +29,18 @@ public class SrvTaskController {
/**
/**
* 查询护理机构人员列表
* 查询护理机构人员列表
*
* @param organId 护理服务机构id
* @param name 护理人员姓名
* @param certiType 护理人员证件类型
* @param certifNum 护理人员证件号码
*/
*/
@RequestMapping
(
"/getSrvOrganEmpList"
)
@RequestMapping
(
"/getSrvOrganEmpList"
)
public
Result
<
List
<
ChOrganEmp
>>
getSrvOrganEmpList
()
{
public
Result
<
List
<
OrganEmpVO
>>
getSrvOrganEmpList
(
String
organId
,
String
name
,
String
certiType
,
String
certifNum
)
{
List
<
ChOrganEmp
>
organEmps
=
srvTaskService
.
getSrvOrganEmpList
();
if
(
StringUtils
.
isBlank
(
organId
))
{
return
Result
.
failed
(
"护理服务机构不能为空!"
);
}
List
<
OrganEmpVO
>
organEmps
=
srvTaskService
.
getSrvOrganEmpList
(
organId
,
name
,
certiType
,
certifNum
);
return
Result
.
success
(
organEmps
);
return
Result
.
success
(
organEmps
);
}
}
...
...
governance/src/main/java/com/hungraim/ltc/governance/dao/SrvTaskMapper.java
View file @
7ad7c1bf
...
@@ -2,6 +2,7 @@ package com.hungraim.ltc.governance.dao;
...
@@ -2,6 +2,7 @@ package com.hungraim.ltc.governance.dao;
import
com.baomidou.mybatisplus.core.mapper.BaseMapper
;
import
com.baomidou.mybatisplus.core.mapper.BaseMapper
;
import
com.hungraim.ltc.pojo.entity.serviceManage.ChSrvTask
;
import
com.hungraim.ltc.pojo.entity.serviceManage.ChSrvTask
;
import
com.hungraim.ltc.pojo.vo.governance.OrganEmpVO
;
import
com.hungraim.ltc.pojo.vo.governance.SrvTaskInfoVO
;
import
com.hungraim.ltc.pojo.vo.governance.SrvTaskInfoVO
;
import
com.hungraim.ltc.pojo.vo.governance.SrvTaskVO
;
import
com.hungraim.ltc.pojo.vo.governance.SrvTaskVO
;
import
org.apache.ibatis.annotations.Mapper
;
import
org.apache.ibatis.annotations.Mapper
;
...
@@ -18,4 +19,6 @@ public interface SrvTaskMapper extends BaseMapper<ChSrvTask> {
...
@@ -18,4 +19,6 @@ public interface SrvTaskMapper extends BaseMapper<ChSrvTask> {
String
status
,
String
modeId
);
String
status
,
String
modeId
);
SrvTaskInfoVO
getSrvTaskInfo
(
String
taskId
);
SrvTaskInfoVO
getSrvTaskInfo
(
String
taskId
);
List
<
OrganEmpVO
>
getSrvOrganEmpList
(
String
organId
,
String
name
,
String
certiType
,
String
certifNum
);
}
}
governance/src/main/java/com/hungraim/ltc/governance/service/SrvTaskService.java
View file @
7ad7c1bf
package
com
.
hungraim
.
ltc
.
governance
.
service
;
package
com
.
hungraim
.
ltc
.
governance
.
service
;
import
com.hungraim.ltc.pojo.
entity.serviceManage.ChOrganEmp
;
import
com.hungraim.ltc.pojo.
vo.governance.OrganEmpVO
;
import
com.hungraim.ltc.pojo.vo.governance.SrvTaskInfoVO
;
import
com.hungraim.ltc.pojo.vo.governance.SrvTaskInfoVO
;
import
com.hungraim.ltc.pojo.vo.governance.SrvTaskVO
;
import
com.hungraim.ltc.pojo.vo.governance.SrvTaskVO
;
import
org.springframework.stereotype.Service
;
import
org.springframework.stereotype.Service
;
...
@@ -25,6 +25,6 @@ public interface SrvTaskService {
...
@@ -25,6 +25,6 @@ public interface SrvTaskService {
void
updateSrvTask
(
String
taskId
,
Long
srvEmpId
,
Date
startTime
,
Date
endTime
);
void
updateSrvTask
(
String
taskId
,
Long
srvEmpId
,
Date
startTime
,
Date
endTime
);
List
<
ChOrganEmp
>
getSrvOrganEmpList
(
);
List
<
OrganEmpVO
>
getSrvOrganEmpList
(
String
organId
,
String
name
,
String
certiType
,
String
certifNum
);
}
}
governance/src/main/java/com/hungraim/ltc/governance/service/impl/SrvTaskServiceImpl.java
View file @
7ad7c1bf
...
@@ -5,9 +5,9 @@ import com.hungraim.ltc.governance.dao.ChOrganEmpMapper;
...
@@ -5,9 +5,9 @@ import com.hungraim.ltc.governance.dao.ChOrganEmpMapper;
import
com.hungraim.ltc.governance.dao.ChSrvTaskDetailMapper
;
import
com.hungraim.ltc.governance.dao.ChSrvTaskDetailMapper
;
import
com.hungraim.ltc.governance.dao.SrvTaskMapper
;
import
com.hungraim.ltc.governance.dao.SrvTaskMapper
;
import
com.hungraim.ltc.governance.service.SrvTaskService
;
import
com.hungraim.ltc.governance.service.SrvTaskService
;
import
com.hungraim.ltc.pojo.entity.serviceManage.ChOrganEmp
;
import
com.hungraim.ltc.pojo.entity.serviceManage.ChSrvTask
;
import
com.hungraim.ltc.pojo.entity.serviceManage.ChSrvTask
;
import
com.hungraim.ltc.pojo.entity.serviceManage.ChSrvTaskDetail
;
import
com.hungraim.ltc.pojo.entity.serviceManage.ChSrvTaskDetail
;
import
com.hungraim.ltc.pojo.vo.governance.OrganEmpVO
;
import
com.hungraim.ltc.pojo.vo.governance.SrvTaskInfoVO
;
import
com.hungraim.ltc.pojo.vo.governance.SrvTaskInfoVO
;
import
com.hungraim.ltc.pojo.vo.governance.SrvTaskVO
;
import
com.hungraim.ltc.pojo.vo.governance.SrvTaskVO
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Autowired
;
...
@@ -112,7 +112,7 @@ public class SrvTaskServiceImpl implements SrvTaskService {
...
@@ -112,7 +112,7 @@ public class SrvTaskServiceImpl implements SrvTaskService {
}
}
@Override
@Override
public
List
<
ChOrganEmp
>
getSrvOrganEmpList
(
)
{
public
List
<
OrganEmpVO
>
getSrvOrganEmpList
(
String
organId
,
String
name
,
String
certiType
,
String
certifNum
)
{
return
chOrganEmpMapper
.
selectList
(
new
QueryWrapper
<>()
);
return
srvTaskMapper
.
getSrvOrganEmpList
(
organId
,
name
,
certiType
,
certifNum
);
}
}
}
}
governance/src/main/resources/com/hungraim/ltc/governance/mapper/SrvTaskMapper.xml
View file @
7ad7c1bf
...
@@ -112,4 +112,46 @@
...
@@ -112,4 +112,46 @@
where task.SRV_TASK_ID = #{taskId}
where task.SRV_TASK_ID = #{taskId}
</select>
</select>
<!--查询护理机构人员列表-->
<select
id=
"getSrvOrganEmpList"
resultType=
"com.hungraim.ltc.pojo.vo.governance.OrganEmpVO"
>
select
--护理人员id
emp.emp_id empid,
--护理机构名称
organ.srv_organ_name srvOrganName,
--统一社会信用代码
organ.unified_social_credit_code unifiedSocialCreditCode,
--护理人员姓名
emp.emp_name empName,
--护理人员性别
emp.gender gender,
--护理人员年龄
emp.age age,
--护理人员证件类型
emp.certif_type certifType,
--护理人员证件号码
emp.certif_num certifNum,
--护理人员资质
emptype.emp_type_name empTypeName,
--状态 有效:0,失效:1
emp.is_lock isLock
from ch_srv_organ_emp emp--护理人员信息
left join ch_srv_organ organ on emp.srv_organ_id = organ.srv_organ_id--护理机构
left join ch_emp_type emptype on emp.emp_type_id = emptype.emp_type--护理人员资质
<where>
<if
test=
"organId != null and organId != ''"
>
and emp.SRV_ORGAN_ID = #{organId}
</if>
<if
test=
"name != null and name != ''"
>
and emp.emp_name = #{name}
</if>
<if
test=
"certiType != null and certiType != ''"
>
and emp.certif_type = #{certiType}
</if>
<if
test=
"certifNum != null and certifNum != ''"
>
and emp.certif_num = #{certifNum}
</if>
</where>
</select>
</mapper>
</mapper>
\ No newline at end of file
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