Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
guns-vip
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
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
chenjunxiong
guns-vip
Commits
239e3693
Commit
239e3693
authored
Dec 10, 2017
by
naan1993
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
更新user表名
parent
18d4fa1c
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
8 additions
and
91 deletions
+8
-91
guns-admin/src/main/java/com/stylefeng/guns/common/persistence/dao/TestMapper.java
+0
-17
guns-admin/src/main/java/com/stylefeng/guns/common/persistence/dao/mapping/TestMapper.xml
+0
-16
guns-admin/src/main/java/com/stylefeng/guns/common/persistence/model/Test.java
+0
-53
guns-admin/src/main/java/com/stylefeng/guns/common/persistence/model/User.java
+2
-0
guns-admin/src/main/java/com/stylefeng/guns/modular/system/dao/mapping/UserMgrDao.xml
+6
-5
No files found.
guns-admin/src/main/java/com/stylefeng/guns/common/persistence/dao/TestMapper.java
deleted
100644 → 0
View file @
18d4fa1c
package
com
.
stylefeng
.
guns
.
common
.
persistence
.
dao
;
import
com.baomidou.mybatisplus.mapper.BaseMapper
;
import
com.stylefeng.guns.common.persistence.model.Test
;
/**
* <p>
* Mapper 接口
* </p>
*
* @author stylefeng
* @since 2017-12-09
*/
public
interface
TestMapper
extends
BaseMapper
<
Test
>
{
}
\ No newline at end of file
guns-admin/src/main/java/com/stylefeng/guns/common/persistence/dao/mapping/TestMapper.xml
deleted
100644 → 0
View file @
18d4fa1c
<?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.stylefeng.guns.common.persistence.dao.TestMapper"
>
<!-- 通用查询映射结果 -->
<resultMap
id=
"BaseResultMap"
type=
"com.stylefeng.guns.common.persistence.model.Test"
>
<id
column=
"id"
property=
"id"
/>
<result
column=
"value"
property=
"value"
/>
</resultMap>
<!-- 通用查询结果列 -->
<sql
id=
"Base_Column_List"
>
id, value
</sql>
</mapper>
guns-admin/src/main/java/com/stylefeng/guns/common/persistence/model/Test.java
deleted
100644 → 0
View file @
18d4fa1c
package
com
.
stylefeng
.
guns
.
common
.
persistence
.
model
;
import
com.baomidou.mybatisplus.activerecord.Model
;
import
com.baomidou.mybatisplus.annotations.TableName
;
import
java.io.Serializable
;
/**
* <p>
*
* </p>
*
* @author stylefeng
* @since 2017-12-09
*/
@TableName
(
"test"
)
public
class
Test
extends
Model
<
Test
>
{
private
static
final
long
serialVersionUID
=
1L
;
private
Integer
id
;
private
String
value
;
public
Integer
getId
()
{
return
id
;
}
public
void
setId
(
Integer
id
)
{
this
.
id
=
id
;
}
public
String
getValue
()
{
return
value
;
}
public
void
setValue
(
String
value
)
{
this
.
value
=
value
;
}
@Override
protected
Serializable
pkVal
()
{
return
this
.
id
;
}
@Override
public
String
toString
()
{
return
"Test{"
+
"id="
+
id
+
", value="
+
value
+
"}"
;
}
}
guns-admin/src/main/java/com/stylefeng/guns/common/persistence/model/User.java
View file @
239e3693
...
@@ -2,6 +2,7 @@ package com.stylefeng.guns.common.persistence.model;
...
@@ -2,6 +2,7 @@ package com.stylefeng.guns.common.persistence.model;
import
com.baomidou.mybatisplus.activerecord.Model
;
import
com.baomidou.mybatisplus.activerecord.Model
;
import
com.baomidou.mybatisplus.annotations.TableId
;
import
com.baomidou.mybatisplus.annotations.TableId
;
import
com.baomidou.mybatisplus.annotations.TableName
;
import
com.baomidou.mybatisplus.enums.IdType
;
import
com.baomidou.mybatisplus.enums.IdType
;
import
java.io.Serializable
;
import
java.io.Serializable
;
...
@@ -15,6 +16,7 @@ import java.util.Date;
...
@@ -15,6 +16,7 @@ import java.util.Date;
* @author stylefeng
* @author stylefeng
* @since 2017-07-11
* @since 2017-07-11
*/
*/
@TableName
(
"sys_user"
)
public
class
User
extends
Model
<
User
>
{
public
class
User
extends
Model
<
User
>
{
private
static
final
long
serialVersionUID
=
1L
;
private
static
final
long
serialVersionUID
=
1L
;
...
...
guns-admin/src/main/java/com/stylefeng/guns/modular/system/dao/mapping/UserMgrDao.xml
View file @
239e3693
...
@@ -19,7 +19,7 @@
...
@@ -19,7 +19,7 @@
<select
id=
"selectUsers"
resultType=
"map"
>
<select
id=
"selectUsers"
resultType=
"map"
>
select
select
<include
refid=
"Base_Column_List"
/>
<include
refid=
"Base_Column_List"
/>
from user
from
sys_
user
where status != 3
where status != 3
<if
test=
"name != null and name != ''"
>
<if
test=
"name != null and name != ''"
>
and (phone like CONCAT('%',#{name},'%')
and (phone like CONCAT('%',#{name},'%')
...
@@ -35,24 +35,24 @@
...
@@ -35,24 +35,24 @@
</select>
</select>
<update
id=
"setStatus"
>
<update
id=
"setStatus"
>
update user set status = #{status} where id =
update
sys_
user set status = #{status} where id =
#{userId}
#{userId}
</update>
</update>
<update
id=
"changePwd"
>
<update
id=
"changePwd"
>
update user set password = #{pwd} where id =
update
sys_
user set password = #{pwd} where id =
#{userId}
#{userId}
</update>
</update>
<update
id=
"setRoles"
>
<update
id=
"setRoles"
>
update user set roleid = #{roleIds} where id =
update
sys_
user set roleid = #{roleIds} where id =
#{userId}
#{userId}
</update>
</update>
<select
id=
"getByAccount"
resultType=
"user"
>
<select
id=
"getByAccount"
resultType=
"user"
>
select
select
<include
refid=
"Base_Column_List_With_Pwd"
/>
<include
refid=
"Base_Column_List_With_Pwd"
/>
from user where account = #{account} and status != 3
from
sys_
user where account = #{account} and status != 3
</select>
</select>
</mapper>
</mapper>
\ No newline at end of file
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