Commit 61007e40 by 谢海旭

增加进单归属用户映射替换

1 parent 0737fd61
......@@ -709,6 +709,7 @@ public class WorkOrderService {
}.getType());
if (CollectionUtils.isNotEmpty(userList)) {
userId = userList.get(0).getId();
userId = getUserMapFromConfig(userId);
}
}
} catch (Exception e) {
......@@ -718,6 +719,21 @@ public class WorkOrderService {
}
/**
* 获取映射账号id
*
* @param userId
* @return
*/
private Long getUserMapFromConfig(long userId) {
String targetId = PropertiesUtils.getProperty(String.format("operators.user.map.%d", userId));
if (StringUtils.isNotBlank(targetId)) {
return Long.valueOf(targetId);
} else {
return userId;
}
}
/**
* 更新工单,不会产生新工单记录
*
* @param orderReq
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!