Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gic-platform-auth
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
base_platform_enterprise
gic-platform-auth
Commits
ea005599
Commit
ea005599
authored
Aug 08, 2019
by
陶光胜
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
init
parent
60805072
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
19 additions
and
19 deletions
+19
-19
TabUserMapper.java
.../src/main/java/com/gic/auth/dao/mapper/TabUserMapper.java
+2
-2
TabUser.java
...th-service/src/main/java/com/gic/auth/entity/TabUser.java
+1
-1
UserService.java
...rvice/src/main/java/com/gic/auth/service/UserService.java
+2
-2
UserServiceImpl.java
.../main/java/com/gic/auth/service/impl/UserServiceImpl.java
+5
-5
UserApiServiceImpl.java
...n/java/com/gic/auth/service/outer/UserApiServiceImpl.java
+3
-3
TabUserMapper.xml
...-auth-service/src/main/resources/mapper/TabUserMapper.xml
+6
-6
No files found.
gic-platform-auth-service/src/main/java/com/gic/
enterprise
/dao/mapper/TabUserMapper.java
→
gic-platform-auth-service/src/main/java/com/gic/
auth
/dao/mapper/TabUserMapper.java
View file @
ea005599
package
com
.
gic
.
enterprise
.
dao
.
mapper
;
package
com
.
gic
.
auth
.
dao
.
mapper
;
import
com.gic.
enterprise
.entity.TabUser
;
import
com.gic.
auth
.entity.TabUser
;
import
org.apache.ibatis.annotations.Param
;
public
interface
TabUserMapper
{
...
...
gic-platform-auth-service/src/main/java/com/gic/
enterprise
/entity/TabUser.java
→
gic-platform-auth-service/src/main/java/com/gic/
auth
/entity/TabUser.java
View file @
ea005599
package
com
.
gic
.
enterprise
.
entity
;
package
com
.
gic
.
auth
.
entity
;
import
java.util.Date
;
...
...
gic-platform-auth-service/src/main/java/com/gic/
enterprise
/service/UserService.java
→
gic-platform-auth-service/src/main/java/com/gic/
auth
/service/UserService.java
View file @
ea005599
package
com
.
gic
.
enterprise
.
service
;
package
com
.
gic
.
auth
.
service
;
import
com.gic.auth.dto.UserDTO
;
import
com.gic.
enterprise
.entity.TabUser
;
import
com.gic.
auth
.entity.TabUser
;
/**
* @author guojx
...
...
gic-platform-auth-service/src/main/java/com/gic/
enterprise
/service/impl/UserServiceImpl.java
→
gic-platform-auth-service/src/main/java/com/gic/
auth
/service/impl/UserServiceImpl.java
View file @
ea005599
package
com
.
gic
.
enterprise
.
service
.
impl
;
package
com
.
gic
.
auth
.
service
.
impl
;
import
com.gic.auth.dto.UserDTO
;
import
com.gic.auth.entity.TabUser
;
import
com.gic.auth.service.UserService
;
import
com.gic.commons.util.EntityUtil
;
import
com.gic.enterprise.dao.mapper.TabUserMapper
;
import
com.gic.enterprise.entity.TabUser
;
import
com.gic.enterprise.service.UserService
;
import
com.gic.auth.dao.mapper.TabUserMapper
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Service
;
...
...
@@ -13,7 +13,7 @@ import org.springframework.stereotype.Service;
* @date 2019/7/16 6:52 PM
*/
@Service
(
"userService"
)
public
class
UserServiceImpl
implements
UserService
{
public
class
UserServiceImpl
implements
UserService
{
@Autowired
private
TabUserMapper
tabUserMapper
;
@Override
...
...
gic-platform-auth-service/src/main/java/com/gic/
enterprise
/service/outer/UserApiServiceImpl.java
→
gic-platform-auth-service/src/main/java/com/gic/
auth
/service/outer/UserApiServiceImpl.java
View file @
ea005599
package
com
.
gic
.
enterprise
.
service
.
outer
;
package
com
.
gic
.
auth
.
service
.
outer
;
import
com.gic.api.base.commons.ServiceResponse
;
import
com.gic.auth.dto.UserDTO
;
import
com.gic.auth.service.UserApiService
;
import
com.gic.commons.util.EntityUtil
;
import
com.gic.
enterprise
.entity.TabUser
;
import
com.gic.
auth
.entity.TabUser
;
import
com.gic.enterprise.error.ErrorCode
;
import
com.gic.
enterprise
.service.UserService
;
import
com.gic.
auth
.service.UserService
;
import
com.gic.store.utils.valid.ValidUtil
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Service
;
...
...
gic-platform-auth-service/src/main/resources/mapper/TabUserMapper.xml
View file @
ea005599
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper
namespace=
"com.gic.
enterprise
.dao.mapper.TabUserMapper"
>
<resultMap
id=
"BaseResultMap"
type=
"com.gic.
enterprise
.entity.TabUser"
>
<mapper
namespace=
"com.gic.
auth
.dao.mapper.TabUserMapper"
>
<resultMap
id=
"BaseResultMap"
type=
"com.gic.
auth
.entity.TabUser"
>
<id
column=
"user_id"
jdbcType=
"INTEGER"
property=
"userId"
/>
<result
column=
"user_name"
jdbcType=
"VARCHAR"
property=
"userName"
/>
<result
column=
"phone_number"
jdbcType=
"VARCHAR"
property=
"phoneNumber"
/>
...
...
@@ -27,7 +27,7 @@
delete from tab_user
where user_id = #{userId,jdbcType=INTEGER}
</delete>
<insert
id=
"insert"
parameterType=
"com.gic.
enterprise.entity.TabUser"
useGeneratedKeys=
"true"
keyProperty=
"userId"
>
<insert
id=
"insert"
parameterType=
"com.gic.
auth.entity.TabUser"
useGeneratedKeys=
"true"
keyProperty=
"userId"
>
insert into tab_user (user_id, user_name, phone_number,
password, super_admin, status,
create_time, update_time, enterprise_id,
...
...
@@ -37,7 +37,7 @@
#{createTime,jdbcType=TIMESTAMP}, #{updateTime,jdbcType=TIMESTAMP}, #{enterpriseId,jdbcType=INTEGER},
#{phoneAreaCode,jdbcType=VARCHAR})
</insert>
<insert
id=
"insertSelective"
parameterType=
"com.gic.
enterprise
.entity.TabUser"
>
<insert
id=
"insertSelective"
parameterType=
"com.gic.
auth
.entity.TabUser"
>
insert into tab_user
<trim
prefix=
"("
suffix=
")"
suffixOverrides=
","
>
<if
test=
"userId != null"
>
...
...
@@ -104,7 +104,7 @@
</if>
</trim>
</insert>
<update
id=
"updateByPrimaryKeySelective"
parameterType=
"com.gic.
enterprise
.entity.TabUser"
>
<update
id=
"updateByPrimaryKeySelective"
parameterType=
"com.gic.
auth
.entity.TabUser"
>
update tab_user
<set>
<if
test=
"userName != null"
>
...
...
@@ -137,7 +137,7 @@
</set>
where user_id = #{userId,jdbcType=INTEGER}
</update>
<update
id=
"updateByPrimaryKey"
parameterType=
"com.gic.
enterprise
.entity.TabUser"
>
<update
id=
"updateByPrimaryKey"
parameterType=
"com.gic.
auth
.entity.TabUser"
>
update tab_user
set user_name = #{userName,jdbcType=VARCHAR},
phone_number = #{phoneNumber,jdbcType=VARCHAR},
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment