ソースを参照

设备之系统——服务 BUG
修复多个名为PagePartService的Bean;
修复相同Bean存在多个时,默认调用.

hyq 1 年間 前
コミット
132c0c318b

+ 6 - 2
bs-common/src/main/java/com/rongwei/safecommon/config/BsMetaObjectHandler.java

@@ -11,15 +11,19 @@ import org.apache.ibatis.reflection.MetaObject;
 import org.slf4j.Logger;
 import org.slf4j.LoggerFactory;
 import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.context.annotation.Primary;
 import org.springframework.stereotype.Component;
 import org.springframework.web.context.request.RequestContextHolder;
 import org.springframework.web.context.request.ServletRequestAttributes;
 
 import javax.servlet.http.HttpServletRequest;
-import java.util.*;
-import java.util.stream.Collectors;
+import java.util.Date;
+import java.util.HashSet;
+import java.util.List;
+import java.util.Set;
 
 @Component
+@Primary
 public class BsMetaObjectHandler implements MetaObjectHandler {
 
     private static final Logger logger = LoggerFactory.getLogger(BsMetaObjectHandler.class);

+ 6 - 0
cx-equipment/cx-equipment-common/pom.xml

@@ -78,5 +78,11 @@
             <artifactId>easypoi-annotation</artifactId>
             <version>4.3.0</version>
         </dependency>
+        <dependency>
+            <groupId>com.rongwei</groupId>
+            <artifactId>bs-common</artifactId>
+            <version>1.0-SNAPSHOT</version>
+            <scope>compile</scope>
+        </dependency>
     </dependencies>
 </project>

+ 0 - 7
cx-equipment/cx-equipment-common/src/main/java/com/rongwei/bscommon/sys/dao/PagePartDao.java

@@ -1,7 +0,0 @@
-package com.rongwei.bscommon.sys.dao;
-
-import com.rongwei.rwadmincommon.system.domain.PagePartDo;
-import com.rongwei.rwcommon.base.BaseDao;
-
-public interface PagePartDao extends BaseDao<PagePartDo> {
-}

+ 0 - 10
cx-equipment/cx-equipment-common/src/main/java/com/rongwei/bscommon/sys/service/PagePartService.java

@@ -1,10 +0,0 @@
-package com.rongwei.bscommon.sys.service;
-
-import com.baomidou.mybatisplus.extension.service.IService;
-import com.rongwei.rwadmincommon.system.domain.PagePartDo;
-
-/**
- * @author zdz
- */
-public interface PagePartService extends IService<PagePartDo> {
-}

+ 0 - 16
cx-equipment/cx-equipment-common/src/main/java/com/rongwei/bscommon/sys/service/impl/PagePartServiceImpl.java

@@ -1,16 +0,0 @@
-package com.rongwei.bscommon.sys.service.impl;
-
-
-import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
-
-import com.rongwei.bscommon.sys.dao.PagePartDao;
-import com.rongwei.bscommon.sys.service.PagePartService;
-import com.rongwei.rwadmincommon.system.domain.PagePartDo;
-import org.springframework.stereotype.Service;
-
-/**
- * @author zhou
- */
-@Service("pagePartService")
-public class PagePartServiceImpl extends ServiceImpl<PagePartDao, PagePartDo> implements PagePartService {
-}