* 机场地址 | * 机场地址 | ||||
*/ | */ | ||||
public static String airportURL; | public static String airportURL; | ||||
/** | |||||
* DSP地址 | |||||
*/ | |||||
public static String dspURL; | |||||
/** | /** | ||||
* 机场url | * 机场url | ||||
public void airportURL(String url) { | public void airportURL(String url) { | ||||
airportURL = url; | airportURL = url; | ||||
} | } | ||||
/** | |||||
* DSPurl | |||||
* @param url | |||||
*/ | |||||
@Value("${tuoheng.dsp-url}") | |||||
public void dspURL(String url) { | |||||
dspURL = url; | |||||
} | |||||
} | } |
return markerService.index(query); | return markerService.index(query); | ||||
} | } | ||||
/** | |||||
* 根据区域id查询出对应营销人员 | |||||
* @param query | |||||
* @return | |||||
*/ | |||||
@GetMapping("/getMarkerList") | |||||
public JsonResult getMarkerList(MarkerQuery query){ | |||||
return markerService.getMarkerList(query); | |||||
} | |||||
/** | /** | ||||
* 新增营销人员信息 | * 新增营销人员信息 | ||||
* | * |
JsonResult edit(Marker entity, LoginUser loginUser); | JsonResult edit(Marker entity, LoginUser loginUser); | ||||
JsonResult deleteByIds(Long[] ids); | JsonResult deleteByIds(Long[] ids); | ||||
/** | |||||
* 根据区域id查询出对应营销人员 | |||||
* @param query | |||||
* @return | |||||
*/ | |||||
JsonResult getMarkerList(MarkerQuery query); | |||||
} | } |
import org.springframework.beans.factory.annotation.Autowired; | import org.springframework.beans.factory.annotation.Autowired; | ||||
import org.springframework.stereotype.Service; | import org.springframework.stereotype.Service; | ||||
import java.util.List; | |||||
/** | /** | ||||
* @author 小影 | * @author 小影 | ||||
* @description 针对表【t_marker】的数据库操作Service实现 | * @description 针对表【t_marker】的数据库操作Service实现 | ||||
return JsonResult.success(); | return JsonResult.success(); | ||||
} | } | ||||
/** | |||||
* 根据区域id查询出对应营销人员 | |||||
* | |||||
* @param query | |||||
* @return | |||||
*/ | |||||
@Override | |||||
public JsonResult getMarkerList(MarkerQuery query) { | |||||
if (ObjectUtil.isNull(query.getAreaId())){ | |||||
return JsonResult.error("区域id不能为空"); | |||||
} | |||||
List<Marker> markers = markerMapper.selectList(Wrappers.<Marker>lambdaQuery() | |||||
.eq(Marker::getMark, MarkTypeEnum.VALID.getCode()) | |||||
.eq(Marker::getAreaId, query.getAreaId())); | |||||
return JsonResult.success(markers); | |||||
} | |||||
} | } | ||||