Commit ccadbac7 by huangjinxin

fix:工单紧急正常分组优化

1 parent 8c47b6ec
......@@ -402,8 +402,13 @@ public class DispatchServiceImpl implements DispatchService {
Object groupkey = null;
// 0:工单优先级,1:耗时,2:意向时间,3:分站/网点,4:技能,5:一家多单
if (groupTagId.equals(OrderGroupEnum.zero.getCode()) && StringUtils.isNotEmpty(item.getBeanPriority())) {
// 分组字段:紧急、正常
makeOrderMap(groupByMap, item, item.getBeanPriority());
// 分组字段:紧急、正常 数据库:1:紧急、0:正常
if (item.getBeanPriority().equals(OrderGroupEnum.zero.getCode())) {
groupkey = "正常";
} else {
groupkey = "紧急";
}
makeOrderMap(groupByMap, item, groupkey);
} else if (groupTagId.equals(OrderGroupEnum.one.getCode()) && null != item.getDuration()) {
// - 耗时长短-分组字段:长(60分钟及以上)、中(30-60分钟)、短(30分钟及以内);
if (item.getDuration() >= 60) {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!