@@ -15,6 +15,10 @@ public class CommonConfig { | |||
* 机场地址 | |||
*/ | |||
public static String airportURL; | |||
/** | |||
* DSP地址 | |||
*/ | |||
public static String dspURL; | |||
/** | |||
* 机场url | |||
@@ -24,4 +28,13 @@ public class CommonConfig { | |||
public void airportURL(String url) { | |||
airportURL = url; | |||
} | |||
/** | |||
* DSPurl | |||
* @param url | |||
*/ | |||
@Value("${tuoheng.dsp-url}") | |||
public void dspURL(String url) { | |||
dspURL = url; | |||
} | |||
} |
@@ -42,6 +42,18 @@ public class MarkerController { | |||
return markerService.index(query); | |||
} | |||
/** | |||
* 根据区域id查询出对应营销人员 | |||
* @param query | |||
* @return | |||
*/ | |||
@GetMapping("/getMarkerList") | |||
public JsonResult getMarkerList(MarkerQuery query){ | |||
return markerService.getMarkerList(query); | |||
} | |||
/** | |||
* 新增营销人员信息 | |||
* |
@@ -19,4 +19,10 @@ public interface MarkerService extends IService<Marker> { | |||
JsonResult edit(Marker entity, LoginUser loginUser); | |||
JsonResult deleteByIds(Long[] ids); | |||
/** | |||
* 根据区域id查询出对应营销人员 | |||
* @param query | |||
* @return | |||
*/ | |||
JsonResult getMarkerList(MarkerQuery query); | |||
} |
@@ -20,6 +20,8 @@ import com.tuoheng.until.JsonResult; | |||
import org.springframework.beans.factory.annotation.Autowired; | |||
import org.springframework.stereotype.Service; | |||
import java.util.List; | |||
/** | |||
* @author 小影 | |||
* @description 针对表【t_marker】的数据库操作Service实现 | |||
@@ -107,6 +109,25 @@ public class MarkerServiceImpl extends ServiceImpl<MarkerMapper, Marker> | |||
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); | |||
} | |||
} | |||