Commit 383d6452 authored by nie'hong's avatar nie'hong

完善工时统计

parent 8c13667a
...@@ -211,7 +211,7 @@ ...@@ -211,7 +211,7 @@
<if test="startModifyTime != null"> <if test="startModifyTime != null">
AND modify_time>=#{startModifyTime} AND modify_time>=#{startModifyTime}
</if> </if>
<if test="startWorkTime != null"> <if test="startWorkDay != null">
AND work_day>=#{startWorkTime} AND work_day>=#{startWorkTime}
</if> </if>
<if test="projectIdList != null"> <if test="projectIdList != null">
......
...@@ -176,7 +176,7 @@ public class StatisticsServiceImpl implements StatisticsService { ...@@ -176,7 +176,7 @@ public class StatisticsServiceImpl implements StatisticsService {
statusArray.add(WorkOrderStatus.WAIT_AUDIT.getCode()); statusArray.add(WorkOrderStatus.WAIT_AUDIT.getCode());
statusArray.add(WorkOrderStatus.RE_SUBMIT.getCode()); statusArray.add(WorkOrderStatus.RE_SUBMIT.getCode());
//本月未审批数量查询 //本月未审批数量查询
map.put("startWorkTime", firstDayOfMonth); map.put("startWorkDay", firstDayOfMonth);
map.put("statusArray", statusArray); map.put("statusArray", statusArray);
// 查询用户负责的项目和商机id // 查询用户负责的项目和商机id
...@@ -225,7 +225,7 @@ public class StatisticsServiceImpl implements StatisticsService { ...@@ -225,7 +225,7 @@ public class StatisticsServiceImpl implements StatisticsService {
map.clear(); map.clear();
map.put("status", StatusEnum.REJECTED.getCode()); map.put("status", StatusEnum.REJECTED.getCode());
map.put("userId", userId); map.put("userId", userId);
map.put("startWorkTime", firstDayOfMonth); map.put("startWorkDay", firstDayOfMonth);
Integer countByCondition = workTimeOrderMapper.getCountByCondition(map); Integer countByCondition = workTimeOrderMapper.getCountByCondition(map);
List<MonthlyWorkingHoursStatistics> monthlyWorkingHoursStatistics = workTimeOrderMapper.statisticsByProjectType(userId, firstDayOfMonth); List<MonthlyWorkingHoursStatistics> monthlyWorkingHoursStatistics = workTimeOrderMapper.statisticsByProjectType(userId, firstDayOfMonth);
......
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