Commit dc82a373 authored by nie'hong's avatar nie'hong

完善工时统计

parent 905e94b2
...@@ -249,12 +249,7 @@ ...@@ -249,12 +249,7 @@
#{type} #{type}
</foreach> </foreach>
</if> </if>
<if test="deptIdList != null">
AND `type` IN
<foreach collection="deptIdList" item="dept" open="(" close=")" separator=",">
#{type}
</foreach>
</if>
</where> </where>
</select> </select>
......
...@@ -194,7 +194,7 @@ public class StatisticsServiceImpl implements StatisticsService { ...@@ -194,7 +194,7 @@ public class StatisticsServiceImpl implements StatisticsService {
map.remove("projectIdList"); map.remove("projectIdList");
List<WorkType> allType = workTypeMapper.getAll(); List<WorkType> allType = workTypeMapper.getAll();
List<Integer> type = new ArrayList<>(); List<Integer> type = new ArrayList<>();
for (int i = 5; i < allType.size(); i++) { for (int i = 4; i < allType.size(); i++) {
type.add(allType.get(i).getId()); type.add(allType.get(i).getId());
} }
map.put("typeList", type); map.put("typeList", type);
......
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