Commit 41f14fc8 authored by zhangwanglin's avatar zhangwanglin

任务执行时间

parent 39751919
...@@ -80,10 +80,10 @@ public class SrvTaskController { ...@@ -80,10 +80,10 @@ public class SrvTaskController {
@RequestMapping("/getSrvTaskDetailList") @RequestMapping("/getSrvTaskDetailList")
public Result<Page<SrvTaskDetailVO>> getSrvTaskDetailList(@RequestParam(defaultValue = "1") Integer pageNum, @RequestParam(defaultValue = "10") Integer pageSize, public Result<Page<SrvTaskDetailVO>> getSrvTaskDetailList(@RequestParam(defaultValue = "1") Integer pageNum, @RequestParam(defaultValue = "10") Integer pageSize,
Integer srvOrganId, String disableName, String disableTel, Integer srvOrganId, String disableName, String disableTel,
String empName, String certifNum, @DateTimeFormat(pattern = "yyyy-MM-dd") Date startTime, @DateTimeFormat(pattern = "yyyy-MM-dd") Date endTime, String empName, String certifNum,String srvDate, @DateTimeFormat(pattern = "yyyy-MM-dd") Date startTime, @DateTimeFormat(pattern = "yyyy-MM-dd") Date endTime,
String status, String modeId) { String status, String modeId) {
Page<SrvTaskDetailVO> page = new Page<>(pageNum, pageSize); Page<SrvTaskDetailVO> page = new Page<>(pageNum, pageSize);
page = srvTaskService.getSrvTaskDetailList(page, srvOrganId, disableName, disableTel, empName, certifNum, startTime, endTime, status, modeId); page = srvTaskService.getSrvTaskDetailList(page, srvOrganId, disableName, disableTel, empName, certifNum, srvDate,startTime, endTime, status, modeId);
return Result.success(page); return Result.success(page);
} }
......
...@@ -17,7 +17,7 @@ public interface SrvTaskMapper extends BaseMapper<ChSrvTask> { ...@@ -17,7 +17,7 @@ public interface SrvTaskMapper extends BaseMapper<ChSrvTask> {
Page<SrvTaskVO> getSrvTaskList(Page<SrvTaskVO> page, @Param("srvOrganId") Long srvOrganId,@Param("disableName") String disableName,@Param("disableTel") String disableTel,@Param("taskStatus") String taskStatus); Page<SrvTaskVO> getSrvTaskList(Page<SrvTaskVO> page, @Param("srvOrganId") Long srvOrganId,@Param("disableName") String disableName,@Param("disableTel") String disableTel,@Param("taskStatus") String taskStatus);
Page<SrvTaskDetailVO> getSrvTaskDetailList(Page<SrvTaskDetailVO> page, Integer organId, String disableName, String disableTel, String empName, String certifNum, Date startTime, Date endTime, String status, String modeId); Page<SrvTaskDetailVO> getSrvTaskDetailList(Page<SrvTaskDetailVO> page, Integer organId, String disableName, String disableTel, String empName, String certifNum,String srvDate, Date startTime, Date endTime, String status, String modeId);
List<SrvTaskInfoVO> getSrvTaskInfoList(String programId); List<SrvTaskInfoVO> getSrvTaskInfoList(String programId);
......
...@@ -25,7 +25,7 @@ public interface SrvTaskService { ...@@ -25,7 +25,7 @@ public interface SrvTaskService {
Page<OrganEmpVO> getSrvOrganEmpList(Page<OrganEmpVO> page, String organId, String name, String certiType, String certifNum); Page<OrganEmpVO> getSrvOrganEmpList(Page<OrganEmpVO> page, String organId, String name, String certiType, String certifNum);
Page<SrvTaskDetailVO> getSrvTaskDetailList(Page<SrvTaskDetailVO> page, Integer organId, String disableName, String disableTel, String empName, String certifNum, Date startTime, Date endTime, String status, String modeId); Page<SrvTaskDetailVO> getSrvTaskDetailList(Page<SrvTaskDetailVO> page, Integer organId, String disableName, String disableTel, String empName, String certifNum, String srvDate, Date startTime, Date endTime, String status, String modeId);
/** /**
* 新增或者修改服务计划 * 新增或者修改服务计划
......
...@@ -73,8 +73,8 @@ public class SrvTaskServiceImpl implements SrvTaskService { ...@@ -73,8 +73,8 @@ public class SrvTaskServiceImpl implements SrvTaskService {
* @param modeId 服务方式 * @param modeId 服务方式
*/ */
@Override @Override
public Page<SrvTaskDetailVO> getSrvTaskDetailList(Page<SrvTaskDetailVO> page, Integer organId, String disableName, String disableTel, String empName, String certifNum, Date startTime, Date endTime, String status, String modeId) { public Page<SrvTaskDetailVO> getSrvTaskDetailList(Page<SrvTaskDetailVO> page, Integer organId, String disableName, String disableTel, String empName, String certifNum, String srvDate, Date startTime, Date endTime, String status, String modeId) {
return srvTaskMapper.getSrvTaskDetailList(page, organId, disableName, disableTel, empName, certifNum, startTime, endTime, status, modeId); return srvTaskMapper.getSrvTaskDetailList(page, organId, disableName, disableTel, empName, certifNum, srvDate,startTime, endTime, status, modeId);
} }
/** /**
......
...@@ -134,12 +134,15 @@ ...@@ -134,12 +134,15 @@
<if test="certifNum != null and certifNum != ''"> <if test="certifNum != null and certifNum != ''">
and emp.certif_num = #{certifNum} and emp.certif_num = #{certifNum}
</if> </if>
<if test="startTime != null"> <if test="srvDate != null and srvDate != ''">
and to_char(detail.SRV_DATE,'yyyy-MM-dd') = #{srvDate}
</if>
<!-- <if test="startTime != null">
and detail.SRV_DATE &gt;= #{startTime} and detail.SRV_DATE &gt;= #{startTime}
</if> </if>
<if test="endTime != null"> <if test="endTime != null">
and detail.SRV_DATE &lt;= #{endTime} and detail.SRV_DATE &lt;= #{endTime}
</if> </if>-->
<if test="status != null and status != ''"> <if test="status != null and status != ''">
and detail.status = #{status} and detail.status = #{status}
</if> </if>
......
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