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
6fcd2cf4
Commit
6fcd2cf4
authored
Apr 22, 2021
by
蔡镇泽
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
通过报告id查询评定报告人员信息
parent
35ca55cb
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
39 additions
and
23 deletions
+39
-23
TaskController.java
...main/java/com/hungraim/ltc/controller/TaskController.java
+3
-7
TaskMapper.java
...ervice/src/main/java/com/hungraim/ltc/dao/TaskMapper.java
+3
-4
TaskService.java
...e/src/main/java/com/hungraim/ltc/service/TaskService.java
+2
-6
TaskServiceImpl.java
...n/java/com/hungraim/ltc/service/impl/TaskServiceImpl.java
+4
-6
ChDisableEvaluateMapper.xml
...ice/src/main/resources/mapper/ChDisableEvaluateMapper.xml
+11
-0
PersonInfoVO.java
...ava/com/hungraim/ltc/pojo/vo/assessment/PersonInfoVO.java
+16
-0
No files found.
assessment/assessment-service/src/main/java/com/hungraim/ltc/controller/TaskController.java
View file @
6fcd2cf4
package
com
.
hungraim
.
ltc
.
controller
;
import
com.baomidou.mybatisplus.core.metadata.IPage
;
import
com.hungraim.ltc.pojo.entity.assessment.ChAprPersonInfo
;
import
com.hungraim.ltc.pojo.entity.disable.ChCfgSrvDisableLevel
;
import
com.hungraim.ltc.pojo.vo.assessment.AprEmpVO
;
import
com.hungraim.ltc.pojo.vo.assessment.TaskDistributionVO
;
import
com.hungraim.ltc.pojo.vo.assessment.TaskGroupVO
;
import
com.hungraim.ltc.pojo.vo.assessment.TaskReportVO
;
import
com.hungraim.ltc.pojo.vo.assessment.*
;
import
com.hungraim.ltc.service.TaskService
;
import
com.hungraim.ltc.util.Result
;
import
com.hungraim.ltc.util.ResultCode
;
...
...
@@ -88,8 +84,8 @@ public class TaskController {
* @param reportId 评定报告id
*/
@RequestMapping
(
"/personInfoList"
)
public
Result
<
List
<
ChAprPersonInfo
>>
personInfoList
(
String
reportId
)
{
List
<
ChAprPersonInfo
>
list
=
taskService
.
personInfoList
(
reportId
);
public
Result
<
List
<
PersonInfoVO
>>
personInfoList
(
String
reportId
)
{
List
<
PersonInfoVO
>
list
=
taskService
.
personInfoList
(
reportId
);
return
Result
.
success
(
list
);
}
...
...
assessment/assessment-service/src/main/java/com/hungraim/ltc/dao/TaskMapper.java
View file @
6fcd2cf4
...
...
@@ -3,10 +3,7 @@ package com.hungraim.ltc.dao;
import
com.baomidou.mybatisplus.core.mapper.BaseMapper
;
import
com.baomidou.mybatisplus.extension.plugins.pagination.Page
;
import
com.hungraim.ltc.pojo.entity.assessment.ChAprTask
;
import
com.hungraim.ltc.pojo.vo.assessment.AprEmpVO
;
import
com.hungraim.ltc.pojo.vo.assessment.TaskDistributionVO
;
import
com.hungraim.ltc.pojo.vo.assessment.TaskGroupVO
;
import
com.hungraim.ltc.pojo.vo.assessment.TaskReportVO
;
import
com.hungraim.ltc.pojo.vo.assessment.*
;
import
org.apache.ibatis.annotations.Mapper
;
import
org.springframework.stereotype.Repository
;
...
...
@@ -49,4 +46,6 @@ public interface TaskMapper extends BaseMapper<ChAprTask> {
List
<
TaskGroupVO
>
taskGroupList
(
String
name
,
String
certiCode
,
String
tel
);
List
<
AprEmpVO
>
aprEmpList
(
String
organName
,
String
name
,
String
tel
,
String
groupLeader
);
List
<
PersonInfoVO
>
personInfoList
(
String
reportId
);
}
assessment/assessment-service/src/main/java/com/hungraim/ltc/service/TaskService.java
View file @
6fcd2cf4
package
com
.
hungraim
.
ltc
.
service
;
import
com.baomidou.mybatisplus.core.metadata.IPage
;
import
com.hungraim.ltc.pojo.entity.assessment.ChAprPersonInfo
;
import
com.hungraim.ltc.pojo.entity.disable.ChCfgSrvDisableLevel
;
import
com.hungraim.ltc.pojo.vo.assessment.AprEmpVO
;
import
com.hungraim.ltc.pojo.vo.assessment.TaskDistributionVO
;
import
com.hungraim.ltc.pojo.vo.assessment.TaskGroupVO
;
import
com.hungraim.ltc.pojo.vo.assessment.TaskReportVO
;
import
com.hungraim.ltc.pojo.vo.assessment.*
;
import
com.hungraim.ltc.util.Result
;
import
org.springframework.stereotype.Service
;
...
...
@@ -67,5 +63,5 @@ public interface TaskService {
List
<
ChCfgSrvDisableLevel
>
cfgSrvDisableLevelList
();
List
<
ChAprPersonInfo
>
personInfoList
(
String
reportId
);
List
<
PersonInfoVO
>
personInfoList
(
String
reportId
);
}
assessment/assessment-service/src/main/java/com/hungraim/ltc/service/impl/TaskServiceImpl.java
View file @
6fcd2cf4
...
...
@@ -7,10 +7,7 @@ import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import
com.hungraim.ltc.dao.*
;
import
com.hungraim.ltc.pojo.entity.assessment.*
;
import
com.hungraim.ltc.pojo.entity.disable.ChCfgSrvDisableLevel
;
import
com.hungraim.ltc.pojo.vo.assessment.AprEmpVO
;
import
com.hungraim.ltc.pojo.vo.assessment.TaskDistributionVO
;
import
com.hungraim.ltc.pojo.vo.assessment.TaskGroupVO
;
import
com.hungraim.ltc.pojo.vo.assessment.TaskReportVO
;
import
com.hungraim.ltc.pojo.vo.assessment.*
;
import
com.hungraim.ltc.service.TaskService
;
import
com.hungraim.ltc.util.Result
;
import
com.hungraim.ltc.util.SerialNumberUtils
;
...
...
@@ -205,7 +202,7 @@ public class TaskServiceImpl implements TaskService {
}
@Override
public
List
<
ChAprPersonInfo
>
personInfoList
(
String
reportId
)
{
return
personInfoMapper
.
selectList
(
new
QueryWrapper
<
ChAprPersonInfo
>().
eq
(
"report_id"
,
reportId
)
);
public
List
<
PersonInfoVO
>
personInfoList
(
String
reportId
)
{
return
taskMapper
.
personInfoList
(
reportId
);
}
}
\ No newline at end of file
assessment/assessment-service/src/main/resources/mapper/ChDisableEvaluateMapper.xml
View file @
6fcd2cf4
...
...
@@ -191,4 +191,14 @@
</where>
</select>
<select
id=
"personInfoList"
resultType=
"com.hungraim.ltc.pojo.vo.assessment.PersonInfoVO"
>
SELECT emp.emp_id empId,
organ.organ_name orgaName,
emp.real_name realName
FROM ch_apr_person_info info
LEFT JOIN ch_apr_emp emp ON info.emp_id = emp.emp_id
LEFT JOIN ch_apr_organ organ ON organ.apr_organ_id = emp.apr_organ_id
where info.report_id = #{reportId}
</select>
</mapper>
\ No newline at end of file
common/common-core/src/main/java/com/hungraim/ltc/pojo/vo/assessment/PersonInfoVO.java
0 → 100644
View file @
6fcd2cf4
package
com
.
hungraim
.
ltc
.
pojo
.
vo
.
assessment
;
import
lombok.Data
;
/**
* 评定报告录入列表
*/
@Data
public
class
PersonInfoVO
{
//评定人员id
private
String
empId
;
//评定人员姓名
private
String
realName
;
//评定人员所属机构
private
String
orgaName
;
}
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