|
@@ -0,0 +1,31 @@
|
|
|
+package com.onemap.apply.service.impl.gw;
|
|
|
+
|
|
|
+import com.onemap.apply.mapper.gw.GdMapper;
|
|
|
+import com.onemap.apply.service.gw.GwService;
|
|
|
+import com.onemap.common.datasource.annotation.Slave;
|
|
|
+import org.springframework.beans.factory.annotation.Autowired;
|
|
|
+import org.springframework.stereotype.Service;
|
|
|
+
|
|
|
+import java.util.HashMap;
|
|
|
+import java.util.Map;
|
|
|
+
|
|
|
+@Service
|
|
|
+public class GwServiceImpl implements GwService {
|
|
|
+ @Autowired(required = false)
|
|
|
+ GdMapper gdMapper;
|
|
|
+
|
|
|
+ @Override
|
|
|
+
|
|
|
+ @Slave
|
|
|
+ public Map<String, Object> getData(Integer type, String param) {
|
|
|
+ Map<String, Object> map = new HashMap<>();
|
|
|
+ if (type == 1) {
|
|
|
+ // 管点
|
|
|
+ map = gdMapper.getInfo(param);
|
|
|
+ System.out.println(map);
|
|
|
+ } else {
|
|
|
+ // 管线
|
|
|
+ }
|
|
|
+ return map;
|
|
|
+ }
|
|
|
+}
|