Răsfoiți Sursa

删除zheng-upms-service,使用zheng-upms-rpc-api和zheng-upms-rpc-service代替

shuzheng 9 ani în urmă
părinte
comite
586aa8e0b0

+ 0 - 71
zheng-upms/zheng-upms-service/pom.xml

@@ -1,71 +0,0 @@
-<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
-         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
-    <modelVersion>4.0.0</modelVersion>
-
-    <parent>
-        <groupId>com.zheng</groupId>
-        <artifactId>zheng-upms</artifactId>
-        <version>1.0.0</version>
-    </parent>
-
-    <artifactId>zheng-upms-service</artifactId>
-    <packaging>jar</packaging>
-
-    <name>zheng-upms-service</name>
-    <url>http://www.zhangshuzheng.cn</url>
-
-    <properties>
-        <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
-    </properties>
-
-    <dependencies>
-        <dependency>
-            <groupId>junit</groupId>
-            <artifactId>junit</artifactId>
-            <version>4.12</version>
-            <scope>test</scope>
-        </dependency>
-        <dependency>
-            <groupId>com.zheng</groupId>
-            <artifactId>zheng-upms-dao</artifactId>
-            <version>1.0.0</version>
-            <type>jar</type>
-        </dependency>
-        <!-- servlet -->
-        <dependency>
-            <groupId>javax.servlet</groupId>
-            <artifactId>servlet-api</artifactId>
-            <version>2.5</version>
-            <scope>provided</scope>
-        </dependency>
-    </dependencies>
-
-    <build>
-        <finalName>zheng-upms-service</finalName>
-        <resources>
-            <resource>
-                <directory>src/main/java</directory>
-                <includes>
-                    <include>**/*.xml</include>
-                </includes>
-                <filtering>true</filtering>
-            </resource>
-            <resource>
-                <directory>src/main/resources</directory>
-            </resource>
-        </resources>
-        <plugins>
-            <plugin>
-                <groupId>org.apache.maven.plugins</groupId>
-                <artifactId>maven-surefire-plugin</artifactId>
-                <version>2.18.1</version>
-                <configuration>
-                    <!--是否跳过单元测试-->
-                    <skipTests>true</skipTests>
-                    <!--是否忽略单元测试错误-->
-                    <testFailureIgnore>true</testFailureIgnore>
-                </configuration>
-            </plugin>
-        </plugins>
-    </build>
-</project>

+ 0 - 16
zheng-upms/zheng-upms-service/src/main/java/com/zheng/upms/service/BaseService.java

@@ -1,16 +0,0 @@
-package com.zheng.upms.service;
-
-/**
- * baseService接口
- * @author shuzheng
- * @date 2016年7月7日 上午9:58:23
- */
-public interface BaseService<Mapper> {
-
-	/**
-	 * 获取基本操作mapper
-	 * @return
-	 */
-	Mapper getMapper();
-
-}

+ 0 - 14
zheng-upms/zheng-upms-service/src/main/java/com/zheng/upms/service/UpmsSystemService.java

@@ -1,14 +0,0 @@
-package com.zheng.upms.service;
-
-import com.zheng.upms.dao.mapper.UpmsSystemMapper;
-
-/**
- * 系统service接口
- * Created by shuzheng on 2016/12/18.
- */
-public interface UpmsSystemService extends BaseService<UpmsSystemMapper> {
-
-    // 批量删除
-    int deleteByPrimaryKeys(String ids);
-
-}

+ 0 - 51
zheng-upms/zheng-upms-service/src/main/java/com/zheng/upms/service/impl/UpmsSystemServiceImpl.java

@@ -1,51 +0,0 @@
-package com.zheng.upms.service.impl;
-
-import com.zheng.upms.dao.mapper.UpmsSystemMapper;
-import com.zheng.upms.service.UpmsSystemService;
-import org.apache.commons.lang.StringUtils;
-import org.slf4j.Logger;
-import org.slf4j.LoggerFactory;
-import org.springframework.beans.factory.annotation.Autowired;
-import org.springframework.stereotype.Service;
-import org.springframework.transaction.annotation.Transactional;
-
-/**
- * 系统service实现
- * Created by shuzheng on 2016/12/18.
- */
-@Service
-@Transactional
-public class UpmsSystemServiceImpl implements UpmsSystemService {
-
-    private static Logger _log = LoggerFactory.getLogger(UpmsSystemServiceImpl.class);
-
-    @Autowired
-    private UpmsSystemMapper upmsSystemMapper;
-
-    @Override
-    public UpmsSystemMapper getMapper() {
-        return upmsSystemMapper;
-    }
-
-    // 批量删除
-    @Override
-    public int deleteByPrimaryKeys(String ids) {
-        if (StringUtils.isBlank(ids)) {
-            return 0;
-        }
-        String[] idArray = ids.split("-");
-        int count = 0;
-        for (String id : idArray) {
-            if (StringUtils.isBlank(id)) {
-                continue;
-            }
-            try {
-                count += upmsSystemMapper.deleteByPrimaryKey(Integer.parseInt(id));
-            } catch (Exception e) {
-                e.printStackTrace();
-                return 0;
-            }
-        }
-        return count;
-    }
-}

+ 0 - 38
zheng-upms/zheng-upms-service/src/test/java/com/zheng/upms/service/AppTest.java

@@ -1,38 +0,0 @@
-package com.zheng.upms.service;
-
-import junit.framework.Test;
-import junit.framework.TestCase;
-import junit.framework.TestSuite;
-
-/**
- * Unit test for simple App.
- */
-public class AppTest 
-    extends TestCase
-{
-    /**
-     * Create the test case
-     *
-     * @param testName name of the test case
-     */
-    public AppTest( String testName )
-    {
-        super( testName );
-    }
-
-    /**
-     * @return the suite of tests being tested
-     */
-    public static Test suite()
-    {
-        return new TestSuite( AppTest.class );
-    }
-
-    /**
-     * Rigourous Test :-)
-     */
-    public void testApp()
-    {
-        assertTrue( true );
-    }
-}