Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
cloud-platform
Project
Project
Details
Activity
Releases
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
youjj
cloud-platform
Commits
81053ac3
Commit
81053ac3
authored
Jul 08, 2019
by
hanfeng
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改出游人信息和用户管理
parent
deaf31b1
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
71 additions
and
44 deletions
+71
-44
AppUserManageVo.java
...com/github/wxiaoqi/security/admin/vo/AppUserManageVo.java
+7
-6
AppUserDetailMapper.xml
...e-admin/src/main/resources/mapper/AppUserDetailMapper.xml
+36
-35
TourUserController.java
.../java/com/xxfc/platform/tour/rest/TourUserController.java
+28
-3
No files found.
ace-modules/ace-admin-api/src/main/java/com/github/wxiaoqi/security/admin/vo/AppUserManageVo.java
View file @
81053ac3
...
@@ -54,15 +54,16 @@ public class AppUserManageVo {
...
@@ -54,15 +54,16 @@ public class AppUserManageVo {
/**
/**
* 邀请人id
* 邀请人id
*/
*/
@Column
(
name
=
"Inviter_account"
)
@Column
(
name
=
"inviter_account"
)
private
Integer
InviterAccount
;
private
Integer
inviterAccount
;
/**
/**
*
账号申请所在地
*
上
*/
*/
@Column
(
name
=
"
address
"
)
@Column
(
name
=
"
province_code
"
)
private
String
address
;
private
String
provinceCode
;
@Column
(
name
=
"city_code"
)
private
String
cityCode
;
/**
/**
* 用户性别
* 用户性别
*/
*/
...
...
ace-modules/ace-admin/src/main/resources/mapper/AppUserDetailMapper.xml
View file @
81053ac3
...
@@ -2,34 +2,34 @@
...
@@ -2,34 +2,34 @@
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper
namespace=
"com.github.wxiaoqi.security.admin.mapper.AppUserDetailMapper"
>
<mapper
namespace=
"com.github.wxiaoqi.security.admin.mapper.AppUserDetailMapper"
>
<resultMap
id=
"AppUserVoMap"
type=
"com.github.wxiaoqi.security.admin.vo.AppUserVo"
>
<resultMap
id=
"AppUserVoMap"
type=
"com.github.wxiaoqi.security.admin.vo.AppUserVo"
>
<result
column=
"id"
property=
"id"
/>
<result
column=
"id"
property=
"id"
/>
<result
column=
"userid"
property=
"userid"
/>
<result
column=
"userid"
property=
"userid"
/>
<result
column=
"im_userid"
property=
"imUserid"
/>
<result
column=
"im_userid"
property=
"imUserid"
/>
<result
column=
"username"
property=
"username"
/>
<result
column=
"username"
property=
"username"
/>
<result
column=
"wx_openid"
property=
"wxOpenid"
/>
<result
column=
"wx_openid"
property=
"wxOpenid"
/>
<result
column=
"unionid"
property=
"unionid"
/>
<result
column=
"unionid"
property=
"unionid"
/>
<result
column=
"openid"
property=
"openid"
/>
<result
column=
"openid"
property=
"openid"
/>
<result
column=
"status"
property=
"status"
/>
<result
column=
"status"
property=
"status"
/>
<result
column=
"id_number"
property=
"idNumber"
/>
<result
column=
"id_number"
property=
"idNumber"
/>
<result
column=
"certification_status"
property=
"certificationStatus"
/>
<result
column=
"certification_status"
property=
"certificationStatus"
/>
<result
column=
"is_member"
property=
"isMember"
/>
<result
column=
"is_member"
property=
"isMember"
/>
<result
column=
"nickname"
property=
"nickname"
/>
<result
column=
"nickname"
property=
"nickname"
/>
<result
column=
"realname"
property=
"realname"
/>
<result
column=
"realname"
property=
"realname"
/>
<result
column=
"headimgurl"
property=
"headimgurl"
/>
<result
column=
"headimgurl"
property=
"headimgurl"
/>
<result
column=
"birthday"
property=
"birthday"
/>
<result
column=
"birthday"
property=
"birthday"
/>
<result
column=
"email"
property=
"email"
/>
<result
column=
"email"
property=
"email"
/>
<result
column=
"sex"
property=
"sex"
/>
<result
column=
"sex"
property=
"sex"
/>
<result
column=
"person_sign"
property=
"personSign"
/>
<result
column=
"person_sign"
property=
"personSign"
/>
<result
column=
"remark"
property=
"remark"
/>
<result
column=
"remark"
property=
"remark"
/>
<result
column=
"channel"
property=
"channel"
/>
<result
column=
"channel"
property=
"channel"
/>
<result
column=
"province_code"
property=
"provinceCode"
/>
<result
column=
"province_code"
property=
"provinceCode"
/>
<result
column=
"city_code"
property=
"cityCode"
/>
<result
column=
"city_code"
property=
"cityCode"
/>
<result
column=
"crt_host"
property=
"crtHost"
/>
<result
column=
"crt_host"
property=
"crtHost"
/>
<result
column=
"upd_host"
property=
"updHost"
/>
<result
column=
"upd_host"
property=
"updHost"
/>
<result
column=
"position_id"
property=
"positionId"
/>
<result
column=
"position_id"
property=
"positionId"
/>
<result
column=
"source"
property=
"source"
/>
<result
column=
"source"
property=
"source"
/>
<result
column=
"code"
property=
"code"
/>
<result
column=
"code"
property=
"code"
/>
<result
column=
"invitera_ccount"
property=
"inviterAccount"
/>
<result
column=
"invitera_ccount"
property=
"inviterAccount"
/>
</resultMap>
</resultMap>
...
@@ -52,7 +52,8 @@
...
@@ -52,7 +52,8 @@
d.nickname,
d.nickname,
d.source,
d.source,
d.Inviter_account,
d.Inviter_account,
d.address,
d.province_code,
d.city_code,
d.sex,
d.sex,
d.email,
d.email,
l.username,
l.username,
...
...
xx-tour/xx-tour-server/src/main/java/com/xxfc/platform/tour/rest/TourUserController.java
View file @
81053ac3
...
@@ -11,6 +11,7 @@ import io.swagger.annotations.ApiOperation;
...
@@ -11,6 +11,7 @@ import io.swagger.annotations.ApiOperation;
import
io.swagger.annotations.ApiParam
;
import
io.swagger.annotations.ApiParam
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.transaction.annotation.Transactional
;
import
org.springframework.transaction.annotation.Transactional
;
import
org.springframework.transaction.interceptor.TransactionAspectSupport
;
import
org.springframework.web.bind.annotation.*
;
import
org.springframework.web.bind.annotation.*
;
import
tk.mybatis.mapper.entity.Example
;
import
tk.mybatis.mapper.entity.Example
;
import
tk.mybatis.mapper.weekend.WeekendSqls
;
import
tk.mybatis.mapper.weekend.WeekendSqls
;
...
@@ -93,14 +94,14 @@ public class TourUserController extends TourBaseController<TourUserBiz> {
...
@@ -93,14 +94,14 @@ public class TourUserController extends TourBaseController<TourUserBiz> {
}
}
/**
/**
*
添加和更新
*
删除
* @param
id
* @param
* @return
* @return
*/
*/
@ApiOperation
(
"删除"
)
@ApiOperation
(
"删除"
)
@PostMapping
(
value
=
"/app/del"
)
@PostMapping
(
value
=
"/app/del"
)
@Transactional
@Transactional
(
rollbackFor
=
Exception
.
class
)
public
ObjectRestResponse
<
TourUser
>
del
(
@RequestBody
TourUser
tourUser
){
public
ObjectRestResponse
<
TourUser
>
del
(
@RequestBody
TourUser
tourUser
){
try
{
try
{
...
@@ -148,4 +149,28 @@ public class TourUserController extends TourBaseController<TourUserBiz> {
...
@@ -148,4 +149,28 @@ public class TourUserController extends TourBaseController<TourUserBiz> {
}
}
/**
* 删除
* @param
* @return
*/
@ApiOperation
(
"删除"
)
@PostMapping
(
value
=
"/app/del/{id}"
)
@Transactional
(
rollbackFor
=
Exception
.
class
)
public
ObjectRestResponse
<
TourUser
>
del
(
@PathVariable
Integer
id
){
try
{
TourUser
tourUser
=
new
TourUser
();
tourUser
.
setIsdel
(
1
);
baseBiz
.
updateSelectiveById
(
tourUser
);
return
ObjectRestResponse
.
succ
();
}
catch
(
Exception
e
)
{
e
.
printStackTrace
();
TransactionAspectSupport
.
currentTransactionStatus
().
setRollbackOnly
();
return
ObjectRestResponse
.
createDefaultFail
();
}
}
}
}
\ 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