实现UpmsUserService

This commit is contained in:
shuzheng 2017-01-19 22:08:25 +08:00
parent ca58bd96e1
commit e62406ef5b
4 changed files with 54 additions and 2 deletions

View File

@ -0,0 +1,16 @@
package com.zheng.upms.rpc.api;
import com.zheng.common.base.BaseService;
import com.zheng.upms.dao.model.UpmsSystem;
import com.zheng.upms.dao.model.UpmsSystemExample;
import com.zheng.upms.dao.model.UpmsUser;
import com.zheng.upms.dao.model.UpmsUserExample;
/**
* 用户service接口
* Created by shuzheng on 2016/01/19.
*/
public interface UpmsUserService extends BaseService<UpmsUser, UpmsUserExample> {
}

View File

@ -0,0 +1,27 @@
package com.zheng.upms.rpc.service.impl;
import com.zheng.common.base.BaseServiceImpl;
import com.zheng.upms.dao.mapper.UpmsUserMapper;
import com.zheng.upms.dao.model.UpmsUser;
import com.zheng.upms.dao.model.UpmsUserExample;
import com.zheng.upms.rpc.api.UpmsUserService;
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/01/19.
*/
@Service
@Transactional
public class UpmsUserServiceImpl extends BaseServiceImpl<UpmsUserMapper, UpmsUser, UpmsUserExample> implements UpmsUserService {
private static Logger _log = LoggerFactory.getLogger(UpmsUserServiceImpl.class);
@Autowired
UpmsUserMapper upmsUserMapper;
}

View File

@ -13,6 +13,12 @@
<dubbo:protocol name="dubbo" port="20881"/>
<bean id="upmsSystemServiceImpl" class="com.zheng.upms.rpc.service.impl.UpmsSystemServiceImpl"/>
<dubbo:service interface="com.zheng.upms.rpc.api.UpmsSystemService" ref="upmsSystemServiceImpl"/>
<!-- 系统 -->
<bean id="upmsSystemService" class="com.zheng.upms.rpc.service.impl.UpmsSystemServiceImpl"/>
<dubbo:service interface="com.zheng.upms.rpc.api.UpmsSystemService" ref="upmsSystemService"/>
<!-- 用户 -->
<bean id="upmsUserService" class="com.zheng.upms.rpc.service.impl.UpmsUserServiceImpl"/>
<dubbo:service interface="com.zheng.upms.rpc.api.UpmsUserService" ref="upmsUserService"/>
</beans>

View File

@ -12,6 +12,9 @@
<dubbo:registry protocol="zookeeper" address="127.0.0.1:2181"/>
<!-- 订阅服务 -->
<!-- 系统 -->
<dubbo:reference id="upmsSystemService" interface="com.zheng.upms.rpc.api.UpmsSystemService" />
<!-- 用户 -->
<dubbo:reference id="upmsUserService" interface="com.zheng.upms.rpc.api.UpmsUserService" />
</beans>