package com.panzhihua.service_grid.api;
|
|
import javax.annotation.Resource;
|
|
import org.springframework.web.bind.annotation.GetMapping;
|
import org.springframework.web.bind.annotation.PathVariable;
|
import org.springframework.web.bind.annotation.RequestMapping;
|
import org.springframework.web.bind.annotation.RestController;
|
|
import com.panzhihua.service_grid.service.LcCompareCodeService;
|
|
import lombok.extern.slf4j.Slf4j;
|
|
/**
|
* @author manailin
|
* @version 1.0
|
* @date 2021-05-26
|
* @since 1.0
|
*/
|
@Slf4j
|
@RestController
|
@RequestMapping("/lc_compare")
|
public class LcCompareCodeApi {
|
|
@Resource
|
private LcCompareCodeService lcCompareCodeService;
|
|
/**
|
* description 根据本地网格ID,查询对于的浪潮市平台对应的ID
|
*
|
* @param id
|
* 本地网格ID
|
* @return String 浪潮市平台对应的ID
|
* @author manailin
|
* @date 2021/6/10 17:00
|
*/
|
@GetMapping("/{id}")
|
String getLcGridIdByLocal(@PathVariable("id") Long id) {
|
return lcCompareCodeService.getLcGridIdByLocal(id);
|
}
|
|
/**
|
* description 根据本地网格ID,查询对于的浪潮市平台对应的ID
|
*
|
* @param localUserId
|
* 本地网格员ID
|
* @return String 浪潮市平台对应的ID
|
* @author manailin
|
* @date 2021/6/10 17:00
|
*/
|
@GetMapping("/getLcUserId")
|
String getLcUserIdByLocalUserId(String localUserId) {
|
return lcCompareCodeService.getLcUserIdByLocal(localUserId);
|
}
|
}
|