Browse Source

新增根据区域id查询出对应的营销人员

tags/v2.4.1
xiaoying 1 year ago
parent
commit
c979cefda0
4 changed files with 52 additions and 0 deletions
  1. +13
    -0
      tuoheng_oidc_admin/src/main/java/com/tuoheng/common/CommonConfig.java
  2. +12
    -0
      tuoheng_oidc_admin/src/main/java/com/tuoheng/controller/MarkerController.java
  3. +6
    -0
      tuoheng_oidc_admin/src/main/java/com/tuoheng/service/MarkerService.java
  4. +21
    -0
      tuoheng_oidc_admin/src/main/java/com/tuoheng/service/impl/MarkerServiceImpl.java

+ 13
- 0
tuoheng_oidc_admin/src/main/java/com/tuoheng/common/CommonConfig.java View File

* 机场地址 * 机场地址
*/ */
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;
}
} }

+ 12
- 0
tuoheng_oidc_admin/src/main/java/com/tuoheng/controller/MarkerController.java View File

return markerService.index(query); return markerService.index(query);
} }


/**
* 根据区域id查询出对应营销人员
* @param query
* @return
*/
@GetMapping("/getMarkerList")
public JsonResult getMarkerList(MarkerQuery query){
return markerService.getMarkerList(query);
}



/** /**
* 新增营销人员信息 * 新增营销人员信息
* *

+ 6
- 0
tuoheng_oidc_admin/src/main/java/com/tuoheng/service/MarkerService.java View File

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);
} }

+ 21
- 0
tuoheng_oidc_admin/src/main/java/com/tuoheng/service/impl/MarkerServiceImpl.java View File

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);
}



} }



Loading…
Cancel
Save