Commit d93d01b5 authored by maqing's avatar maqing

打卡

parent 00660124
...@@ -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 empid){ public Result chSrvTaskDetailQuery(Long empId){
List<ChSrvTaskDetail> chSrvTaskDetails = srvOrganEmpService.chSrvTaskDetailQuery(empid); List<ChSrvTaskDetailVo> 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("/chSrvTaskDetailQuery") @PostMapping("/chSrvTaskDetailDelete")
public Result chSrvTaskDetailDelete(long taskDetailId,String userName){ public Result chSrvTaskDetailDelete(Long 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 {
} }
...@@ -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
...@@ -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
...@@ -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);
} }
...@@ -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 empid); List<ChSrvTaskDetailVo> chSrvTaskDetailQuery(Long empId);
boolean chSrvTaskDetailDelete(long taskDetailId,String userName); int chSrvTaskDetailDelete(long taskDetailId,String userName);
} }
<?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 =#{empid} WHERE m.EMP_ID = #{empId}
</select> </select>
</mapper> </mapper>
\ No newline at end of file
...@@ -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
......
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;
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment