Commit 2d8b177d by 丁伟峰

日志

1 parent 89e71502
......@@ -58,9 +58,11 @@ public class CapacityQueryServiceImpl implements CapacityQueryService {
/*
location ==> [layer_info] ==> team ==> (+skill) ==> [capacity_team_stat]
*/
log.info("===> getOneCapacityData");
String teamId;
String layer = productCategoryDao.getLayerByBrandAndTypeAndSkill(reqDTO.getBrand(), reqDTO.getType(), reqDTO.getSkill());
List<LayerAndArea> layerAndAreas = getLayerAndAreas(reqDTO.getLocation(), reqDTO.getAddress());
log.info("=== getLayerAndAreas() ==> {}", layerAndAreas);
if (layerAndAreas == null || layerAndAreas.size() == 0) {
// 分单接口没有查到,本地随机处理一下
teamId = capacityTeamStatDao.getRandomTeamIdByLayer(layer);
......@@ -74,6 +76,7 @@ public class CapacityQueryServiceImpl implements CapacityQueryService {
if (teamId == null || teamId.isBlank()) {
teamId = capacityTeamStatDao.getRandomTeamId();
}
log.info("teamId ==> {}", teamId);
assert (teamId != null && !teamId.isBlank());
CapacityQueryOrderRespDTO capacityQueryRespDTO = new CapacityQueryOrderRespDTO();
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!