mitao
2025-02-21 31573d6180d15ef65ed0df9c2732495f40b12663
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
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);
    }
}