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
24fe0d32
Commit
24fe0d32
authored
Mar 06, 2023
by
maqing
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
护理人员管理页面点击查看打卡记录,打卡记录页面护理机构列的值显示错误,开始服 马庆务时间和结束服务时间的值需转
parent
93558e53
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
109 additions
and
58 deletions
+109
-58
SrvOrganController.java
.../java/com/hungraim/ltc/controller/SrvOrganController.java
+32
-35
ChSrvTaskDetailMapper.java
...main/java/com/hungraim/ltc/dao/ChSrvTaskDetailMapper.java
+2
-3
SrvOrganEmpService.java
...ain/java/com/hungraim/ltc/service/SrvOrganEmpService.java
+2
-1
SrvOrganEmpServiceImpl.java
...com/hungraim/ltc/service/impl/SrvOrganEmpServiceImpl.java
+14
-6
ChSrvTaskDetailMapper.xml
...rvice/src/main/resources/mapper/ChSrvTaskDetailMapper.xml
+19
-0
ChSrvTaskDetail2Vo.java
.../com/hungraim/ltc/pojo/vo/disable/ChSrvTaskDetail2Vo.java
+27
-0
BuildBedServiceImpl.java
...raim/ltc/governance/service/impl/BuildBedServiceImpl.java
+13
-13
No files found.
apply/apply-service/src/main/java/com/hungraim/ltc/controller/SrvOrganController.java
View file @
24fe0d32
...
...
@@ -7,10 +7,7 @@ import com.hungraim.ltc.pojo.entity.SysConfig.ChCfgSrvOrganType;
import
com.hungraim.ltc.pojo.entity.SysConfig.ChFndSrvOrganLevel
;
import
com.hungraim.ltc.pojo.entity.disable.ChCfgSrvEmpCate
;
import
com.hungraim.ltc.pojo.entity.disable.ChCfgSrvEmpType
;
import
com.hungraim.ltc.pojo.vo.disable.ChSrvTaskDetailVo
;
import
com.hungraim.ltc.pojo.vo.disable.SrvOrganEmpListVo
;
import
com.hungraim.ltc.pojo.vo.disable.SrvOrganEmpVo
;
import
com.hungraim.ltc.pojo.vo.disable.SrvOrganListVo
;
import
com.hungraim.ltc.pojo.vo.disable.*
;
import
com.hungraim.ltc.pojo.vo.system.SrvOrganVo
;
import
com.hungraim.ltc.service.SrvEmpCateService
;
import
com.hungraim.ltc.service.SrvEmpTypeService
;
...
...
@@ -289,36 +286,36 @@ public class SrvOrganController {
FileUtils
.
exportResponse
(
workbook
,
fileName
,
response
);
}
//
/**
//
* 打卡查询
//
* @param empId
//
* @return
//
*/
//
@GetMapping("/chSrvTaskDetailQuery")
//
public Result chSrvTaskDetailQuery(Integer pageNum, Integer pageSize,Long empId){
// Page<ChSrvTaskDetail
Vo> page = new Page<>(pageNum, pageSize);
//
page = srvOrganEmpService.chSrvTaskDetailQuery(page,empId);
//
if(page.getSize()>0){
//
return Result.success(page);
//
}else {
//
return Result.failed(ResultCode.SRV_ORGAN_NOT_QUERY);
//
}
//
}
//
//
/**
//
* 删除打卡数据
//
* @param taskDetailId
//
* @param userName
//
* @return
//
*/
//
@PostMapping("/chSrvTaskDetailDelete")
//
public Result chSrvTaskDetailDelete(Long taskDetailId,String userName){
//
int srv = srvOrganEmpService.chSrvTaskDetailDelete(taskDetailId,userName);
//
if(srv>0){
//
return Result.success();
//
}else {
//
return Result.failed("删除失败");
//
}
//
}
/**
* 打卡查询
* @param empId
* @return
*/
@GetMapping
(
"/chSrvTaskDetailQuery"
)
public
Result
chSrvTaskDetailQuery
(
Integer
pageNum
,
Integer
pageSize
,
Long
empId
){
Page
<
ChSrvTaskDetail2
Vo
>
page
=
new
Page
<>(
pageNum
,
pageSize
);
page
=
srvOrganEmpService
.
chSrvTaskDetailQuery
(
page
,
empId
);
if
(
page
.
getSize
()>
0
){
return
Result
.
success
(
page
);
}
else
{
return
Result
.
failed
(
ResultCode
.
SRV_ORGAN_NOT_QUERY
);
}
}
/**
* 删除打卡数据
* @param taskDetailId
* @param userName
* @return
*/
@PostMapping
(
"/chSrvTaskDetailDelete"
)
public
Result
chSrvTaskDetailDelete
(
Long
taskDetailId
,
String
userName
){
int
srv
=
srvOrganEmpService
.
chSrvTaskDetailDelete
(
taskDetailId
,
userName
);
if
(
srv
>
0
){
return
Result
.
success
();
}
else
{
return
Result
.
failed
(
"删除失败"
);
}
}
}
apply/apply-service/src/main/java/com/hungraim/ltc/dao/ChSrvTaskDetailMapper.java
View file @
24fe0d32
...
...
@@ -3,11 +3,10 @@ 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.serviceManage.ChSrvTaskDetail
;
import
com.hungraim.ltc.pojo.vo.disable.ChSrvTaskDetailVo
;
import
com.hungraim.ltc.pojo.vo.disable.ChSrvTaskDetail
2
Vo
;
import
org.apache.ibatis.annotations.Mapper
;
import
org.springframework.stereotype.Repository
;
import
java.util.List
;
/**
* @author mq
...
...
@@ -21,7 +20,7 @@ public interface ChSrvTaskDetailMapper extends BaseMapper<ChSrvTaskDetail> {
* @param empId
* @return
*/
Page
<
ChSrvTaskDetail
Vo
>
chSrvTaskDetailQuery
(
Page
<
ChSrvTaskDetailVo
>
page
,
Long
empId
);
Page
<
ChSrvTaskDetail
2Vo
>
chSrvTaskDetailQuery
(
Page
<
ChSrvTaskDetail2Vo
>
page
,
Long
empId
);
}
...
...
apply/apply-service/src/main/java/com/hungraim/ltc/service/SrvOrganEmpService.java
View file @
24fe0d32
...
...
@@ -2,6 +2,7 @@ package com.hungraim.ltc.service;
import
com.baomidou.mybatisplus.extension.plugins.pagination.Page
;
import
com.hungraim.ltc.pojo.entity.serviceManage.ChSrvTaskDetail
;
import
com.hungraim.ltc.pojo.vo.disable.ChSrvTaskDetail2Vo
;
import
com.hungraim.ltc.pojo.vo.disable.ChSrvTaskDetailVo
;
import
com.hungraim.ltc.pojo.vo.disable.SrvOrganEmpListVo
;
import
com.hungraim.ltc.pojo.vo.disable.SrvOrganEmpVo
;
...
...
@@ -68,7 +69,7 @@ public interface SrvOrganEmpService {
Workbook
srvOrganExport
(
Long
organId
,
Long
srvOrganId
,
Boolean
isInvolveChild
,
String
empName
,
String
srvOrganName
,
String
certifNum
,
Short
isLock
,
Short
empType
);
Page
<
ChSrvTaskDetail
Vo
>
chSrvTaskDetailQuery
(
Page
<
ChSrvTaskDetailVo
>
page
,
Long
empId
);
Page
<
ChSrvTaskDetail
2Vo
>
chSrvTaskDetailQuery
(
Page
<
ChSrvTaskDetail2Vo
>
page
,
Long
empId
);
int
chSrvTaskDetailDelete
(
long
taskDetailId
,
String
userName
);
}
apply/apply-service/src/main/java/com/hungraim/ltc/service/impl/SrvOrganEmpServiceImpl.java
View file @
24fe0d32
...
...
@@ -14,10 +14,7 @@ import com.hungraim.ltc.pojo.entity.riskLevel.ChSrvempRiskLevel;
import
com.hungraim.ltc.pojo.entity.serviceManage.ChSrvOrganEmp
;
import
com.hungraim.ltc.pojo.entity.serviceManage.ChSrvTaskDetail
;
import
com.hungraim.ltc.pojo.entity.serviceManage.ChSrvTaskDetailDelete
;
import
com.hungraim.ltc.pojo.vo.disable.ChSrvTaskDetailVo
;
import
com.hungraim.ltc.pojo.vo.disable.SrvOrganEmpExportVo
;
import
com.hungraim.ltc.pojo.vo.disable.SrvOrganEmpListVo
;
import
com.hungraim.ltc.pojo.vo.disable.SrvOrganEmpVo
;
import
com.hungraim.ltc.pojo.vo.disable.*
;
import
com.hungraim.ltc.pojo.vo.system.AttachUpdateVo
;
import
com.hungraim.ltc.service.OrganService
;
import
com.hungraim.ltc.service.SrvOrganEmpService
;
...
...
@@ -36,6 +33,7 @@ import org.springframework.util.StringUtils;
import
java.text.SimpleDateFormat
;
import
java.util.Date
;
import
java.util.List
;
import
java.util.stream.Collectors
;
@Service
@AllArgsConstructor
...
...
@@ -165,8 +163,18 @@ public class SrvOrganEmpServiceImpl implements SrvOrganEmpService {
}
@Override
public
Page
<
ChSrvTaskDetailVo
>
chSrvTaskDetailQuery
(
Page
<
ChSrvTaskDetailVo
>
page
,
Long
empId
)
{
return
chSrvTaskDetailMapper
.
chSrvTaskDetailQuery
(
page
,
empId
);
public
Page
<
ChSrvTaskDetail2Vo
>
chSrvTaskDetailQuery
(
Page
<
ChSrvTaskDetail2Vo
>
page
,
Long
empId
)
{
Page
<
ChSrvTaskDetail2Vo
>
chSrvTaskDetailVoPage
=
chSrvTaskDetailMapper
.
chSrvTaskDetailQuery
(
page
,
empId
);
chSrvTaskDetailVoPage
.
getRecords
().
stream
().
filter
(
chSrvTaskDetail
->
{
if
(
null
!=
chSrvTaskDetail
.
getSevStarTime
()){
chSrvTaskDetail
.
setSevStarTime
(
chSrvTaskDetail
.
getSevStarTime
().
substring
(
0
,
19
));
}
if
(
null
!=
chSrvTaskDetail
.
getSevEndTime
()){
chSrvTaskDetail
.
setSevEndTime
(
chSrvTaskDetail
.
getSevEndTime
().
substring
(
0
,
19
));
}
return
true
;
}).
collect
(
Collectors
.
toList
());
return
chSrvTaskDetailVoPage
;
}
@Transactional
(
rollbackFor
=
Exception
.
class
)
...
...
apply/apply-service/src/main/resources/mapper/ChSrvTaskDetailMapper.xml
View file @
24fe0d32
...
...
@@ -56,4 +56,22 @@
AUDIT_RESULT, AUDIT_REMARK, AUDIT_DATE, ILLEGAL_TYPE, ILLEGAL_REMARK, ILLEGALRE_EMP,
ILLEGALRE_NAME, ILLEGALRE_TIME, ACCOUNT_SIGN, TASK_DETAIL_TYPE
</sql>
<select
id=
"chSrvTaskDetailQuery"
resultType=
"com.hungraim.ltc.pojo.vo.disable.ChSrvTaskDetail2Vo"
>
SELECT
t.TASK_DETAIL_ID taskDetailId,
m.EMP_NAME empName,
m.ORGAN_ID orgamId,
T5.SRV_ORGAN_ID srvOrganId,
T5.SRV_ORGAN_NAME srvOrganName,
--t.STATUS status,
decode( t.STATUS, '0', '未执行', '1', '执行中', '2', '已执行', '4', '已完成' ) AS status,
t.SRV_START_TIME sevStarTime,
t.SRV_END_TIME sevEndTime
FROM
CH_SRV_TASK_DETAIL t
LEFT JOIN CH_SRV_TASK k ON t.SRV_TASK_ID = k.SRV_TASK_ID
LEFT JOIN CH_SRV_ORGAN_EMP m ON m.EMP_ID = k.SRV_EMP_ID
LEFT JOIN CH_SRV_ORGAN T5 ON T5.SRV_ORGAN_ID = m.SRV_ORGAN_ID
WHERE m.EMP_ID = #{empId}
</select>
</mapper>
\ No newline at end of file
common/common-core/src/main/java/com/hungraim/ltc/pojo/vo/disable/ChSrvTaskDetail2Vo.java
0 → 100644
View file @
24fe0d32
package
com
.
hungraim
.
ltc
.
pojo
.
vo
.
disable
;
import
com.hungraim.ltc.pojo.vo.BaseReq
;
import
lombok.Data
;
/**
* @author root
*/
@Data
public
class
ChSrvTaskDetail2Vo
extends
BaseReq
{
private
Long
taskDetailId
;
private
String
empName
;
private
Integer
orgamId
;
private
String
srvOrganId
;
private
String
srvOrganName
;
private
String
status
;
private
String
sevStarTime
;
private
String
sevEndTime
;
}
governance/src/main/java/com/hungraim/ltc/governance/service/impl/BuildBedServiceImpl.java
View file @
24fe0d32
...
...
@@ -85,22 +85,22 @@ public class BuildBedServiceImpl extends ServiceImpl<BuildBedMapper, ChSrvBuildB
/**
* 打卡查询
* @param page
* @param
empId
* @param
* @return
*/
@Override
public
Page
<
ChSrvTaskDetailVo
>
chSrvTaskDetailQuery
(
Page
<
ChSrvTaskDetailVo
>
page
,
ChSrvTaskDetailVo
vo
)
throws
ParseException
{
SimpleDateFormat
sdf
=
new
SimpleDateFormat
(
"yyyy-MM-dd"
);
// if(vo.getSevStarTime()!=null)
{
// Date sevStarTime = vo.getSevStarTime();
// Date star=sdf.parse(sevStarTime.toString(
));
// vo.setSevStarTime(star);
// Date sevEndTime = vo.getSevEndTime();
// Date end=sdf.parse(sevEndTime.toString(
));
// vo.setSevStarTime(end);
// }
return
buildBedMapper
.
chSrvTaskDetailQuery
(
page
,
vo
)
;
public
Page
<
ChSrvTaskDetailVo
>
chSrvTaskDetailQuery
(
Page
<
ChSrvTaskDetailVo
>
page
,
ChSrvTaskDetailVo
vo
){
Page
<
ChSrvTaskDetailVo
>
chSrvTaskDetailVoPage
=
buildBedMapper
.
chSrvTaskDetailQuery
(
page
,
vo
);
chSrvTaskDetailVoPage
.
getRecords
().
stream
().
filter
(
chSrvTaskDetail
->
{
if
(
null
!=
chSrvTaskDetail
.
getSevStarTime
()){
chSrvTaskDetail
.
setSevStarTime
(
chSrvTaskDetail
.
getSevStarTime
().
substring
(
0
,
19
));
}
if
(
null
!=
chSrvTaskDetail
.
getSevEndTime
()){
chSrvTaskDetail
.
setSevEndTime
(
chSrvTaskDetail
.
getSevEndTime
().
substring
(
0
,
19
));
}
return
true
;
}).
collect
(
Collectors
.
toList
());
return
chSrvTaskDetailVoPage
;
}
/**
* 删除打卡数据
...
...
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