|
@@ -0,0 +1,35 @@
|
|
|
+package com.rongwei.bscommon.sys.service.impl;
|
|
|
+
|
|
|
+import com.rongwei.bscommon.sys.dao.SlaveDao;
|
|
|
+import com.rongwei.bscommon.sys.service.CommonService;
|
|
|
+import com.rongwei.rwcommon.base.R;
|
|
|
+import org.slf4j.Logger;
|
|
|
+import org.slf4j.LoggerFactory;
|
|
|
+import org.springframework.beans.factory.annotation.Autowired;
|
|
|
+import org.springframework.stereotype.Service;
|
|
|
+
|
|
|
+import java.util.List;
|
|
|
+import java.util.Map;
|
|
|
+
|
|
|
+@Service
|
|
|
+public class CommonServiceImpl implements CommonService {
|
|
|
+ private final Logger log = LoggerFactory.getLogger(this.getClass().getName());
|
|
|
+
|
|
|
+ @Autowired
|
|
|
+ SlaveDao slaveDao;
|
|
|
+
|
|
|
+ @Override
|
|
|
+ public R getProjectCode() {
|
|
|
+ R r = new R();
|
|
|
+ try {
|
|
|
+ List<Map<String, Object>> codemap = slaveDao.getProjectCode();
|
|
|
+ r.setCode("200");
|
|
|
+ r.setData(codemap);
|
|
|
+ } catch (Exception e) {
|
|
|
+ e.printStackTrace();
|
|
|
+ r.setCode("500");
|
|
|
+ log.info("获取项目工号失败:" + e.getMessage());
|
|
|
+ }
|
|
|
+ return r;
|
|
|
+ }
|
|
|
+}
|