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
d93d01b5
Commit
d93d01b5
authored
Jan 15, 2023
by
maqing
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
打卡
parent
00660124
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
72 additions
and
32 deletions
+72
-32
SrvOrganController.java
.../java/com/hungraim/ltc/controller/SrvOrganController.java
+11
-6
ChSrvOrganEmpMapper.java
...c/main/java/com/hungraim/ltc/dao/ChSrvOrganEmpMapper.java
+3
-13
ChSrvTaskDetailDeleteMapper.java
...ava/com/hungraim/ltc/dao/ChSrvTaskDetailDeleteMapper.java
+4
-0
ChSrvTaskDetailMapper.java
...main/java/com/hungraim/ltc/dao/ChSrvTaskDetailMapper.java
+13
-0
SrvOrganEmpService.java
...ain/java/com/hungraim/ltc/service/SrvOrganEmpService.java
+3
-2
ChSrvTaskDetailMapper.xml
...rvice/src/main/resources/mapper/ChSrvTaskDetailMapper.xml
+14
-9
ChSrvTaskDetailDelete.java
.../ltc/pojo/entity/serviceManage/ChSrvTaskDetailDelete.java
+2
-2
ChSrvTaskDetailVo.java
...a/com/hungraim/ltc/pojo/vo/disable/ChSrvTaskDetailVo.java
+22
-0
No files found.
apply/apply-service/src/main/java/com/hungraim/ltc/controller/SrvOrganController.java
View file @
d93d01b5
...
@@ -8,6 +8,7 @@ import com.hungraim.ltc.pojo.entity.SysConfig.ChFndSrvOrganLevel;
...
@@ -8,6 +8,7 @@ import com.hungraim.ltc.pojo.entity.SysConfig.ChFndSrvOrganLevel;
import
com.hungraim.ltc.pojo.entity.disable.ChCfgSrvEmpCate
;
import
com.hungraim.ltc.pojo.entity.disable.ChCfgSrvEmpCate
;
import
com.hungraim.ltc.pojo.entity.disable.ChCfgSrvEmpType
;
import
com.hungraim.ltc.pojo.entity.disable.ChCfgSrvEmpType
;
import
com.hungraim.ltc.pojo.entity.serviceManage.ChSrvTaskDetail
;
import
com.hungraim.ltc.pojo.entity.serviceManage.ChSrvTaskDetail
;
import
com.hungraim.ltc.pojo.vo.disable.ChSrvTaskDetailVo
;
import
com.hungraim.ltc.pojo.vo.disable.SrvOrganEmpListVo
;
import
com.hungraim.ltc.pojo.vo.disable.SrvOrganEmpListVo
;
import
com.hungraim.ltc.pojo.vo.disable.SrvOrganEmpVo
;
import
com.hungraim.ltc.pojo.vo.disable.SrvOrganEmpVo
;
import
com.hungraim.ltc.pojo.vo.disable.SrvOrganListVo
;
import
com.hungraim.ltc.pojo.vo.disable.SrvOrganListVo
;
...
@@ -42,6 +43,9 @@ public class SrvOrganController {
...
@@ -42,6 +43,9 @@ public class SrvOrganController {
private
final
SrvEmpCateService
srvEmpCateService
;
private
final
SrvEmpCateService
srvEmpCateService
;
/**
/**
* 分页查询护理机构列表
* 分页查询护理机构列表
*
*
...
@@ -284,8 +288,8 @@ public class SrvOrganController {
...
@@ -284,8 +288,8 @@ public class SrvOrganController {
}
}
@GetMapping
(
"/chSrvTaskDetailQuery"
)
@GetMapping
(
"/chSrvTaskDetailQuery"
)
public
Result
chSrvTaskDetailQuery
(
long
empi
d
){
public
Result
chSrvTaskDetailQuery
(
Long
empI
d
){
List
<
ChSrvTaskDetail
>
chSrvTaskDetails
=
srvOrganEmpService
.
chSrvTaskDetailQuery
(
empid
);
List
<
ChSrvTaskDetail
Vo
>
chSrvTaskDetails
=
srvOrganEmpService
.
chSrvTaskDetailQuery
(
1L
);
if
(
chSrvTaskDetails
.
size
()>
0
&&
!
chSrvTaskDetails
.
isEmpty
()){
if
(
chSrvTaskDetails
.
size
()>
0
&&
!
chSrvTaskDetails
.
isEmpty
()){
return
Result
.
success
(
chSrvTaskDetails
);
return
Result
.
success
(
chSrvTaskDetails
);
}
else
{
}
else
{
...
@@ -299,10 +303,10 @@ public class SrvOrganController {
...
@@ -299,10 +303,10 @@ public class SrvOrganController {
* @param userName
* @param userName
* @return
* @return
*/
*/
@PostMapping
(
"/chSrvTaskDetail
Query
"
)
@PostMapping
(
"/chSrvTaskDetail
Delete
"
)
public
Result
chSrvTaskDetailDelete
(
l
ong
taskDetailId
,
String
userName
){
public
Result
chSrvTaskDetailDelete
(
L
ong
taskDetailId
,
String
userName
){
boolean
srv
=
srvOrganEmpService
.
chSrvTaskDetailDelete
(
taskDetailId
,
userName
);
int
srv
=
srvOrganEmpService
.
chSrvTaskDetailDelete
(
279
,
"admin"
);
if
(
srv
){
if
(
srv
>
0
){
return
Result
.
success
();
return
Result
.
success
();
}
else
{
}
else
{
return
Result
.
failed
(
"删除失败"
);
return
Result
.
failed
(
"删除失败"
);
...
@@ -312,4 +316,5 @@ public class SrvOrganController {
...
@@ -312,4 +316,5 @@ public class SrvOrganController {
}
}
apply/apply-service/src/main/java/com/hungraim/ltc/dao/ChSrvOrganEmpMapper.java
View file @
d93d01b5
...
@@ -12,6 +12,9 @@ import org.springframework.stereotype.Repository;
...
@@ -12,6 +12,9 @@ import org.springframework.stereotype.Repository;
import
java.util.List
;
import
java.util.List
;
/**
* @author MQ
*/
@Mapper
@Mapper
@Repository
@Repository
public
interface
ChSrvOrganEmpMapper
extends
BaseMapper
<
ChSrvOrganEmp
>
{
public
interface
ChSrvOrganEmpMapper
extends
BaseMapper
<
ChSrvOrganEmp
>
{
...
@@ -32,17 +35,5 @@ public interface ChSrvOrganEmpMapper extends BaseMapper<ChSrvOrganEmp> {
...
@@ -32,17 +35,5 @@ public interface ChSrvOrganEmpMapper extends BaseMapper<ChSrvOrganEmp> {
List
<
SrvOrganEmpExportVo
>
getSrvOrganEmpExportList
(
List
<
Long
>
organIds
,
String
empName
,
String
srvOrganName
,
String
certifNum
,
Short
isLock
,
Short
empType
);
List
<
SrvOrganEmpExportVo
>
getSrvOrganEmpExportList
(
List
<
Long
>
organIds
,
String
empName
,
String
srvOrganName
,
String
certifNum
,
Short
isLock
,
Short
empType
);
/**
* 打卡记录
* @param empid
* @return
*/
List
<
ChSrvTaskDetail
>
chSrvTaskDetailQuery
(
long
empid
);
/**
* 删除数据
* @param taskDetailId
* @return
*/
boolean
chSrvTaskDetailDelete
(
long
taskDetailId
);
}
}
\ No newline at end of file
apply/apply-service/src/main/java/com/hungraim/ltc/dao/ChSrvTaskDetailDeleteMapper.java
View file @
d93d01b5
...
@@ -5,10 +5,13 @@ import com.hungraim.ltc.pojo.entity.serviceManage.ChSrvTaskDetailDelete;
...
@@ -5,10 +5,13 @@ import com.hungraim.ltc.pojo.entity.serviceManage.ChSrvTaskDetailDelete;
import
org.apache.ibatis.annotations.Mapper
;
import
org.apache.ibatis.annotations.Mapper
;
import
org.springframework.stereotype.Repository
;
import
org.springframework.stereotype.Repository
;
import
java.util.List
;
/**
/**
* @author mq
* @author mq
*/
*/
@Mapper
@Mapper
@Repository
@Repository
public
interface
ChSrvTaskDetailDeleteMapper
extends
BaseMapper
<
ChSrvTaskDetailDelete
>
{
public
interface
ChSrvTaskDetailDeleteMapper
extends
BaseMapper
<
ChSrvTaskDetailDelete
>
{
}
}
\ No newline at end of file
apply/apply-service/src/main/java/com/hungraim/ltc/dao/ChSrvTaskDetailMapper.java
View file @
d93d01b5
...
@@ -2,13 +2,26 @@ package com.hungraim.ltc.dao;
...
@@ -2,13 +2,26 @@ package com.hungraim.ltc.dao;
import
com.baomidou.mybatisplus.core.mapper.BaseMapper
;
import
com.baomidou.mybatisplus.core.mapper.BaseMapper
;
import
com.hungraim.ltc.pojo.entity.serviceManage.ChSrvTaskDetail
;
import
com.hungraim.ltc.pojo.entity.serviceManage.ChSrvTaskDetail
;
import
com.hungraim.ltc.pojo.vo.disable.ChSrvTaskDetailVo
;
import
org.apache.ibatis.annotations.Mapper
;
import
org.apache.ibatis.annotations.Mapper
;
import
org.springframework.stereotype.Repository
;
import
org.springframework.stereotype.Repository
;
import
java.util.List
;
/**
/**
* @author mq
* @author mq
*/
*/
@Mapper
@Mapper
@Repository
@Repository
public
interface
ChSrvTaskDetailMapper
extends
BaseMapper
<
ChSrvTaskDetail
>
{
public
interface
ChSrvTaskDetailMapper
extends
BaseMapper
<
ChSrvTaskDetail
>
{
/**
* 打卡记录
* @param empId
* @return
*/
List
<
ChSrvTaskDetailVo
>
chSrvTaskDetailQuery
(
Long
empId
);
}
}
apply/apply-service/src/main/java/com/hungraim/ltc/service/SrvOrganEmpService.java
View file @
d93d01b5
...
@@ -2,6 +2,7 @@ package com.hungraim.ltc.service;
...
@@ -2,6 +2,7 @@ package com.hungraim.ltc.service;
import
com.baomidou.mybatisplus.extension.plugins.pagination.Page
;
import
com.baomidou.mybatisplus.extension.plugins.pagination.Page
;
import
com.hungraim.ltc.pojo.entity.serviceManage.ChSrvTaskDetail
;
import
com.hungraim.ltc.pojo.entity.serviceManage.ChSrvTaskDetail
;
import
com.hungraim.ltc.pojo.vo.disable.ChSrvTaskDetailVo
;
import
com.hungraim.ltc.pojo.vo.disable.SrvOrganEmpListVo
;
import
com.hungraim.ltc.pojo.vo.disable.SrvOrganEmpListVo
;
import
com.hungraim.ltc.pojo.vo.disable.SrvOrganEmpVo
;
import
com.hungraim.ltc.pojo.vo.disable.SrvOrganEmpVo
;
import
org.apache.poi.ss.usermodel.Workbook
;
import
org.apache.poi.ss.usermodel.Workbook
;
...
@@ -67,7 +68,7 @@ public interface SrvOrganEmpService {
...
@@ -67,7 +68,7 @@ public interface SrvOrganEmpService {
Workbook
srvOrganExport
(
Long
organId
,
Boolean
isInvolveChild
,
String
empName
,
String
srvOrganName
,
String
certifNum
,
Workbook
srvOrganExport
(
Long
organId
,
Boolean
isInvolveChild
,
String
empName
,
String
srvOrganName
,
String
certifNum
,
Short
isLock
,
Short
empType
);
Short
isLock
,
Short
empType
);
List
<
ChSrvTaskDetail
>
chSrvTaskDetailQuery
(
long
empi
d
);
List
<
ChSrvTaskDetail
Vo
>
chSrvTaskDetailQuery
(
Long
empI
d
);
boolean
chSrvTaskDetailDelete
(
long
taskDetailId
,
String
userName
);
int
chSrvTaskDetailDelete
(
long
taskDetailId
,
String
userName
);
}
}
apply/apply-service/src/main/resources/mapper/ChSrvTaskDetailMapper.xml
View file @
d93d01b5
<?xml version="1.0" encoding="UTF-8"?>
<?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">
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper
namespace=
"com.hungraim.ltc.
governance.
dao.ChSrvTaskDetailMapper"
>
<mapper
namespace=
"com.hungraim.ltc.dao.ChSrvTaskDetailMapper"
>
<resultMap
id=
"BaseResultMap"
type=
"com.hungraim.ltc.pojo.entity.serviceManage.ChSrvTaskDetail"
>
<resultMap
id=
"BaseResultMap"
type=
"com.hungraim.ltc.pojo.entity.serviceManage.ChSrvTaskDetail"
>
<id
column=
"TASK_DETAIL_ID"
jdbcType=
"DECIMAL"
property=
"taskDetailId"
/>
<id
column=
"TASK_DETAIL_ID"
jdbcType=
"DECIMAL"
property=
"taskDetailId"
/>
<result
column=
"SRV_TASK_ID"
jdbcType=
"DECIMAL"
property=
"srvTaskId"
/>
<result
column=
"SRV_TASK_ID"
jdbcType=
"DECIMAL"
property=
"srvTaskId"
/>
...
@@ -56,16 +56,20 @@
...
@@ -56,16 +56,20 @@
AUDIT_RESULT, AUDIT_REMARK, AUDIT_DATE, ILLEGAL_TYPE, ILLEGAL_REMARK, ILLEGALRE_EMP,
AUDIT_RESULT, AUDIT_REMARK, AUDIT_DATE, ILLEGAL_TYPE, ILLEGAL_REMARK, ILLEGALRE_EMP,
ILLEGALRE_NAME, ILLEGALRE_TIME, ACCOUNT_SIGN, TASK_DETAIL_TYPE
ILLEGALRE_NAME, ILLEGALRE_TIME, ACCOUNT_SIGN, TASK_DETAIL_TYPE
</sql>
</sql>
<select
id=
"chSrvTaskDetailQuery"
resultType=
"com.hungraim.ltc.pojo.entity.serviceManage.ChSrvTaskDetail"
>
<select
id=
"chSrvTaskDetailQuery"
resultType=
"com.hungraim.ltc.pojo.vo.disable.ChSrvTaskDetailVo"
>
SELECT
SELECT
decode(t.STATUS, '0', '未执行', '1', '执行中', '2', '已执行', '4', '已完成') AS "status",
t.TASK_DETAIL_ID taskDetailId,
m.EMP_NAME empName,
m.ORGAN_ID orgamId,
--t.STATUS status,
decode( t.STATUS, '0', '未执行', '1', '执行中', '2', '已执行', '4', '已完成' ) AS status,
t.SRV_START_TIME sevStarTime,
t.SRV_START_TIME sevStarTime,
t.SRV_END_TIME sevEndTime,
t.SRV_END_TIME sevEndTime
t.*
FROM
FROM
ch_srv_task_detail
t
CH_SRV_TASK_DETAIL
t
LEFT JOIN
ch_srv_task
k ON t.SRV_TASK_ID = k.SRV_TASK_ID
LEFT JOIN
CH_SRV_TASK
k ON t.SRV_TASK_ID = k.SRV_TASK_ID
WHERE
LEFT JOIN CH_SRV_ORGAN_EMP m ON m.EMP_ID = k.SRV_EMP_ID
K.SRV_EMP_ID =#{empi
d}
WHERE m.EMP_ID = #{empI
d}
</select>
</select>
</mapper>
</mapper>
\ No newline at end of file
common/common-core/src/main/java/com/hungraim/ltc/pojo/entity/serviceManage/ChSrvTaskDetailDelete.java
View file @
d93d01b5
...
@@ -15,8 +15,8 @@ import java.util.Date;
...
@@ -15,8 +15,8 @@ import java.util.Date;
* @author mq
* @author mq
*/
*/
@Data
@Data
@TableName
(
"CH_SRV_TASK_DETAIL"
)
@TableName
(
"CH_SRV_TASK_DETAIL
_DELETE
"
)
@KeySequence
(
"SEQ_CH_SRV_TASK_DETAIL"
)
@KeySequence
(
"SEQ_CH_SRV_TASK_DETAIL
_DELETE
"
)
public
class
ChSrvTaskDetailDelete
implements
Serializable
{
public
class
ChSrvTaskDetailDelete
implements
Serializable
{
/**
/**
* 服务明细id
* 服务明细id
...
...
common/common-core/src/main/java/com/hungraim/ltc/pojo/vo/disable/ChSrvTaskDetailVo.java
0 → 100644
View file @
d93d01b5
package
com
.
hungraim
.
ltc
.
pojo
.
vo
.
disable
;
import
lombok.Data
;
import
java.util.Date
;
@Data
public
class
ChSrvTaskDetailVo
{
private
Long
taskDetailId
;
private
String
name
;
private
Integer
orgamId
;
private
String
status
;
private
Date
sevStarTime
;
private
Date
sevEndTime
;
}
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