Commit 8dad775c authored by nie'hong's avatar nie'hong

完善工时统计

parent 574572f0
...@@ -94,14 +94,9 @@ ...@@ -94,14 +94,9 @@
</foreach> </foreach>
</if> </if>
<if test="deptId != null"> <if test="deptId != null">
AND dept_id = #{deptId} AND ptc.dept_id = #{deptId}
</if>
<if test="types != null">
AND type in
<foreach collection="types" open="(" close=")" separator="," item="type">
#{type}
</foreach>
</if> </if>
<if test="centreId != null"> <if test="centreId != null">
AND centre_id = #{centreId} AND centre_id = #{centreId}
</if> </if>
......
...@@ -306,8 +306,8 @@ public class StatisticsServiceImpl implements StatisticsService { ...@@ -306,8 +306,8 @@ public class StatisticsServiceImpl implements StatisticsService {
WorkDept userDept = workDeptMapper.getById(user.getDeptId()); WorkDept userDept = workDeptMapper.getById(user.getDeptId());
// 获取中心下的所有项目和商机工单统计 // 获取中心下的所有项目和商机工单统计
Map<String, Object> map = new HashMap<>(); Map<String, Object> map = new HashMap<>();
map.put("centreId", userDept.getCentreId());
map.put("firstDayOfMonth", startTime); map.put("firstDayOfMonth", startTime);
map.put("centreId", userDept.getCentreId());
workTimeAndCostCollects = workProjectTimeCostMapper.selectList(map); workTimeAndCostCollects = workProjectTimeCostMapper.selectList(map);
// 除项目和项目的类型 // 除项目和项目的类型
......
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