Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
open-source
/
open-platform-admin
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Settings
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit c8aa349f
authored
Dec 16, 2020
by
tyfanchz
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
添加返回状态值、统一异常捕捉
1 parent
c2faaa49
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
13 changed files
with
189 additions
and
48 deletions
src/main/java/com/glsx/controller/ApiCallMgrController.java
src/main/java/com/glsx/controller/DeviceMgrController.java
src/main/java/com/glsx/controller/UserMgrController.java
src/main/java/com/glsx/enums/ResultCodeEnum.java
src/main/java/com/glsx/exception/BusinessException.java
src/main/java/com/glsx/exception/GlobalExceptionHandler.java
src/main/java/com/glsx/mapper/PlatformUserMapper.java
src/main/java/com/glsx/model/PlatformUser.java
src/main/java/com/glsx/vo/ApiCallVo.java
src/main/java/com/glsx/vo/DeviceVo.java
src/main/java/com/glsx/vo/R.java
src/main/java/com/glsx/vo/UserVo.java
src/main/resources/mapper/PlatformUserMapper.xml
src/main/java/com/glsx/controller/ApiCallMgrController.java
View file @
c8aa349
package
com
.
glsx
.
controller
;
package
com
.
glsx
.
controller
;
import
java.util.List
;
import
com.github.pagehelper.Page
;
import
com.github.pagehelper.Page
;
import
com.github.pagehelper.PageHelper
;
import
com.github.pagehelper.PageHelper
;
import
com.glsx.model.PlatformApi
;
import
com.glsx.model.PlatformApiCall
;
import
com.glsx.model.PlatformApiCall
;
import
com.glsx.service.ApiCallMgrService
;
import
com.glsx.service.ApiCallMgrService
;
import
com.glsx.vo.ApiCallVo
;
import
com.glsx.vo.ApiCallVo
;
import
com.glsx.vo.R
;
import
com.glsx.vo.R
;
import
io.swagger.annotations.Api
;
import
io.swagger.annotations.Api
;
import
org.oreframework.web.ui.Pagination
;
import
org.oreframework.web.ui.ResponseEntity
;
import
org.oreframework.web.ui.ResultEntity
;
import
org.slf4j.Logger
;
import
org.slf4j.Logger
;
import
org.slf4j.LoggerFactory
;
import
org.slf4j.LoggerFactory
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Autowired
;
...
@@ -19,8 +16,6 @@ import org.springframework.web.bind.annotation.RequestMethod;
...
@@ -19,8 +16,6 @@ import org.springframework.web.bind.annotation.RequestMethod;
import
org.springframework.web.bind.annotation.ResponseBody
;
import
org.springframework.web.bind.annotation.ResponseBody
;
import
org.springframework.web.bind.annotation.RestController
;
import
org.springframework.web.bind.annotation.RestController
;
import
java.util.List
;
@Api
@Api
@RestController
@RestController
@RequestMapping
(
value
=
"/apicallmgr"
)
@RequestMapping
(
value
=
"/apicallmgr"
)
...
@@ -35,9 +30,9 @@ public class ApiCallMgrController {
...
@@ -35,9 +30,9 @@ public class ApiCallMgrController {
@RequestMapping
(
value
=
"/getApiCallMgrList"
,
method
=
RequestMethod
.
GET
)
@RequestMapping
(
value
=
"/getApiCallMgrList"
,
method
=
RequestMethod
.
GET
)
@ResponseBody
@ResponseBody
public
R
getApiCallMgrList
(
Pagination
pagination
,
ApiCallVo
apiCallVo
)
{
public
R
getApiCallMgrList
(
ApiCallVo
apiCallVo
)
{
//PageHelper注入分页和要分页的查询之前不能有其它查询,不然分页到第一个查询上面
//PageHelper注入分页和要分页的查询之前不能有其它查询,不然分页到第一个查询上面
Page
<
PlatformApiCall
>
page
=
PageHelper
.
startPage
(
pagination
.
getCurrentPage
(),
pagination
.
getPageSize
(),
true
);
Page
<
PlatformApiCall
>
page
=
PageHelper
.
startPage
(
apiCallVo
.
getCurrentPage
(),
apiCallVo
.
getPageSize
(),
true
);
List
<
PlatformApiCall
>
apiMgrList
=
apiCallMgrService
.
getApiCallMgrList
(
apiCallVo
);
List
<
PlatformApiCall
>
apiMgrList
=
apiCallMgrService
.
getApiCallMgrList
(
apiCallVo
);
...
...
src/main/java/com/glsx/controller/DeviceMgrController.java
View file @
c8aa349
package
com
.
glsx
.
controller
;
package
com
.
glsx
.
controller
;
import
java.util.HashMap
;
import
java.util.List
;
import
com.github.pagehelper.Page
;
import
com.github.pagehelper.Page
;
import
com.github.pagehelper.PageHelper
;
import
com.github.pagehelper.PageHelper
;
import
com.glsx.model.PlatformCustomer
;
import
com.glsx.model.PlatformDevice
;
import
com.glsx.model.PlatformDevice
;
import
com.glsx.service.DeviceMgrService
;
import
com.glsx.service.DeviceMgrService
;
import
com.glsx.vo.DeviceVo
;
import
com.glsx.vo.DeviceVo
;
import
com.glsx.vo.R
;
import
com.glsx.vo.R
;
import
io.swagger.annotations.Api
;
import
io.swagger.annotations.Api
;
import
org.oreframework.web.ui.Pagination
;
import
org.oreframework.web.ui.ResponseEntity
;
import
org.oreframework.web.ui.ResultEntity
;
import
org.slf4j.Logger
;
import
org.slf4j.Logger
;
import
org.slf4j.LoggerFactory
;
import
org.slf4j.LoggerFactory
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Autowired
;
...
@@ -19,9 +17,6 @@ import org.springframework.web.bind.annotation.RequestMethod;
...
@@ -19,9 +17,6 @@ import org.springframework.web.bind.annotation.RequestMethod;
import
org.springframework.web.bind.annotation.ResponseBody
;
import
org.springframework.web.bind.annotation.ResponseBody
;
import
org.springframework.web.bind.annotation.RestController
;
import
org.springframework.web.bind.annotation.RestController
;
import
java.util.HashMap
;
import
java.util.List
;
@Api
@Api
@RestController
@RestController
@RequestMapping
(
value
=
"/devicemgr"
)
@RequestMapping
(
value
=
"/devicemgr"
)
...
@@ -36,9 +31,10 @@ public class DeviceMgrController {
...
@@ -36,9 +31,10 @@ public class DeviceMgrController {
@RequestMapping
(
value
=
"/getDeviceMgrList"
,
method
=
RequestMethod
.
GET
)
@RequestMapping
(
value
=
"/getDeviceMgrList"
,
method
=
RequestMethod
.
GET
)
@ResponseBody
@ResponseBody
public
R
getDeviceMgrList
(
Pagination
pagination
,
DeviceVo
deviceVo
)
{
public
R
getDeviceMgrList
(
DeviceVo
deviceVo
)
{
//PageHelper注入分页和要分页的查询之前不能有其它查询,不然分页到第一个查询上面
//PageHelper注入分页和要分页的查询之前不能有其它查询,不然分页到第一个查询上面
Page
<
PlatformDevice
>
page
=
PageHelper
.
startPage
(
pagination
.
getCurrentPage
(),
pagination
.
getPageSize
(),
true
);
Page
<
PlatformDevice
>
page
=
PageHelper
.
startPage
(
deviceVo
.
getCurrentPage
(),
deviceVo
.
getPageSize
(),
true
);
List
<
PlatformDevice
>
deviceMgrList
=
deviceMgrService
.
getDeviceMgrList
(
deviceVo
);
List
<
PlatformDevice
>
deviceMgrList
=
deviceMgrService
.
getDeviceMgrList
(
deviceVo
);
...
...
src/main/java/com/glsx/controller/UserMgrController.java
View file @
c8aa349
package
com
.
glsx
.
controller
;
package
com
.
glsx
.
controller
;
import
java.util.List
;
import
com.github.pagehelper.Page
;
import
com.github.pagehelper.Page
;
import
com.github.pagehelper.PageHelper
;
import
com.github.pagehelper.PageHelper
;
import
com.glsx.model.PlatformUser
;
import
com.glsx.model.PlatformUser
;
...
@@ -7,9 +8,6 @@ import com.glsx.service.UserMgrService;
...
@@ -7,9 +8,6 @@ import com.glsx.service.UserMgrService;
import
com.glsx.vo.R
;
import
com.glsx.vo.R
;
import
com.glsx.vo.UserVo
;
import
com.glsx.vo.UserVo
;
import
io.swagger.annotations.Api
;
import
io.swagger.annotations.Api
;
import
org.oreframework.web.ui.Pagination
;
import
org.oreframework.web.ui.ResponseEntity
;
import
org.oreframework.web.ui.ResultEntity
;
import
org.slf4j.Logger
;
import
org.slf4j.Logger
;
import
org.slf4j.LoggerFactory
;
import
org.slf4j.LoggerFactory
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Autowired
;
...
@@ -18,8 +16,6 @@ import org.springframework.web.bind.annotation.RequestMethod;
...
@@ -18,8 +16,6 @@ import org.springframework.web.bind.annotation.RequestMethod;
import
org.springframework.web.bind.annotation.ResponseBody
;
import
org.springframework.web.bind.annotation.ResponseBody
;
import
org.springframework.web.bind.annotation.RestController
;
import
org.springframework.web.bind.annotation.RestController
;
import
java.util.List
;
@Api
@Api
@RestController
@RestController
@RequestMapping
(
value
=
"/usermgr"
)
@RequestMapping
(
value
=
"/usermgr"
)
...
@@ -34,9 +30,10 @@ public class UserMgrController {
...
@@ -34,9 +30,10 @@ public class UserMgrController {
@RequestMapping
(
value
=
"/getUserMgrList"
,
method
=
RequestMethod
.
GET
)
@RequestMapping
(
value
=
"/getUserMgrList"
,
method
=
RequestMethod
.
GET
)
@ResponseBody
@ResponseBody
public
R
getUserMgrList
(
Pagination
pagination
,
UserVo
userVo
)
{
public
R
getUserMgrList
(
UserVo
userVo
)
{
//PageHelper注入分页和要分页的查询之前不能有其它查询,不然分页到第一个查询上面
//PageHelper注入分页和要分页的查询之前不能有其它查询,不然分页到第一个查询上面
Page
<
PlatformUser
>
page
=
PageHelper
.
startPage
(
pagination
.
getCurrentPage
(),
pagination
.
getPageSize
(),
true
);
Page
<
PlatformUser
>
page
=
PageHelper
.
startPage
(
userVo
.
getCurrentPage
(),
userVo
.
getPageSize
(),
true
);
List
<
PlatformUser
>
userMgrList
=
userMgrService
.
getUserMgrList
(
userVo
);
List
<
PlatformUser
>
userMgrList
=
userMgrService
.
getUserMgrList
(
userVo
);
...
...
src/main/java/com/glsx/enums/ResultCodeEnum.java
0 → 100644
View file @
c8aa349
package
com
.
glsx
.
enums
;
import
com.glsx.exception.BusinessException
;
/**
* <p>Description:
* <p>Project: open-platform-admin
*
* @author wbh
* @date 2020-12-16
*/
public
enum
ResultCodeEnum
{
SUCCESS
(
200
,
"成功"
),
SERVER_ERROR
(
500
,
"系统异常"
),
;
private
final
Integer
code
;
private
final
String
msg
;
ResultCodeEnum
(
Integer
code
,
String
msg
)
{
this
.
code
=
code
;
this
.
msg
=
msg
;
}
public
Integer
getCode
()
{
return
code
;
}
public
String
getMsg
()
{
return
msg
;
}
public
BusinessException
exception
()
{
return
new
BusinessException
(
this
.
code
,
this
.
msg
);
}
}
src/main/java/com/glsx/exception/BusinessException.java
0 → 100644
View file @
c8aa349
package
com
.
glsx
.
exception
;
/**
* <p>Description: 业务异常
* <p>Project: open-platform-admin
*
* @author wbh
* @date 2020-12-16
*/
public
class
BusinessException
extends
RuntimeException
{
private
Integer
code
;
private
String
message
;
public
BusinessException
()
{}
public
BusinessException
(
Integer
code
,
String
message
)
{
this
.
code
=
code
;
this
.
message
=
message
;
}
public
Integer
getCode
()
{
return
code
;
}
public
void
setCode
(
Integer
code
)
{
this
.
code
=
code
;
}
public
void
setMessage
(
String
message
)
{
this
.
message
=
message
;
}
@Override
public
String
getMessage
()
{
return
this
.
message
;
}
}
src/main/java/com/glsx/exception/GlobalExceptionHandler.java
0 → 100644
View file @
c8aa349
package
com
.
glsx
.
exception
;
import
com.glsx.enums.ResultCodeEnum
;
import
com.glsx.vo.R
;
import
org.slf4j.Logger
;
import
org.slf4j.LoggerFactory
;
import
org.springframework.web.bind.annotation.ExceptionHandler
;
import
org.springframework.web.bind.annotation.RestControllerAdvice
;
/**
* <p>Description:
* <p>Project: open-platform-admin
*
* @author wbh
* @date 2020-12-16
*/
@RestControllerAdvice
public
class
GlobalExceptionHandler
{
private
final
Logger
logger
=
LoggerFactory
.
getLogger
(
this
.
getClass
());
@ExceptionHandler
({
BusinessException
.
class
})
public
R
handleBusinessException
(
BusinessException
e
)
{
this
.
logger
.
error
(
"!!!! ERROR"
,
e
);
return
R
.
error
(
e
.
getCode
(),
e
.
getMessage
());
}
@ExceptionHandler
({
Throwable
.
class
})
public
R
handlerOtherException
(
Throwable
e
)
{
this
.
logger
.
error
(
"!!!! ERROR"
,
e
);
return
R
.
error
(
ResultCodeEnum
.
SERVER_ERROR
.
getCode
(),
ResultCodeEnum
.
SERVER_ERROR
.
getMsg
());
}
}
src/main/java/com/glsx/mapper/PlatformUserMapper.java
View file @
c8aa349
package
com
.
glsx
.
mapper
;
package
com
.
glsx
.
mapper
;
import
java.util.List
;
import
com.glsx.model.PlatformUser
;
import
com.glsx.model.PlatformUser
;
import
com.glsx.vo.UserVo
;
import
com.glsx.vo.UserVo
;
import
org.apache.ibatis.annotations.Mapper
;
import
org.apache.ibatis.annotations.Mapper
;
import
org.apache.ibatis.annotations.Param
;
import
org.apache.ibatis.annotations.Param
;
import
java.util.List
;
/**
/**
* <p>Description:
* <p>Description:
* <p>Project: shop
* <p>Project: shop
...
...
src/main/java/com/glsx/model/PlatformUser.java
View file @
c8aa349
...
@@ -2,6 +2,7 @@ package com.glsx.model;
...
@@ -2,6 +2,7 @@ package com.glsx.model;
import
java.io.Serializable
;
import
java.io.Serializable
;
import
java.util.Date
;
import
java.util.Date
;
import
com.fasterxml.jackson.annotation.JsonFormat
;
/**
/**
* <p>Description:
* <p>Description:
...
@@ -16,6 +17,23 @@ import java.util.Date;
...
@@ -16,6 +17,23 @@ import java.util.Date;
*/
*/
public
class
PlatformUser
implements
Serializable
{
public
class
PlatformUser
implements
Serializable
{
/**
/**
* 客户名称
*/
private
String
customerName
;
/**
* 省份名称
*/
private
String
provinceName
;
/**
* 城市名称
*/
private
String
cityName
;
/**
* 主键
* 主键
*/
*/
private
Integer
id
;
private
Integer
id
;
...
@@ -51,13 +69,9 @@ public class PlatformUser implements Serializable {
...
@@ -51,13 +69,9 @@ public class PlatformUser implements Serializable {
private
Integer
customerId
;
private
Integer
customerId
;
/**
/**
* 客户名称
*/
private
String
customerName
;
/**
* 最后登录时间
* 最后登录时间
*/
*/
@JsonFormat
(
pattern
=
"yyyy-MM-dd HH:mm:ss"
)
private
Date
lastLoginTime
;
private
Date
lastLoginTime
;
/**
/**
...
@@ -68,11 +82,13 @@ public class PlatformUser implements Serializable {
...
@@ -68,11 +82,13 @@ public class PlatformUser implements Serializable {
/**
/**
* 创建时间 注册时间
* 创建时间 注册时间
*/
*/
@JsonFormat
(
pattern
=
"yyyy-MM-dd HH:mm:ss"
)
private
Date
createTime
;
private
Date
createTime
;
/**
/**
* 更新时间
* 更新时间
*/
*/
@JsonFormat
(
pattern
=
"yyyy-MM-dd HH:mm:ss"
)
private
Date
updateTime
;
private
Date
updateTime
;
/**
/**
...
@@ -90,6 +106,30 @@ public class PlatformUser implements Serializable {
...
@@ -90,6 +106,30 @@ public class PlatformUser implements Serializable {
*/
*/
private
String
remark
;
private
String
remark
;
public
String
getCustomerName
()
{
return
customerName
;
}
public
void
setCustomerName
(
String
customerName
)
{
this
.
customerName
=
customerName
;
}
public
String
getProvinceName
()
{
return
provinceName
;
}
public
void
setProvinceName
(
String
provinceName
)
{
this
.
provinceName
=
provinceName
;
}
public
String
getCityName
()
{
return
cityName
;
}
public
void
setCityName
(
String
cityName
)
{
this
.
cityName
=
cityName
;
}
public
Integer
getId
()
{
public
Integer
getId
()
{
return
id
;
return
id
;
}
}
...
@@ -202,25 +242,19 @@ public class PlatformUser implements Serializable {
...
@@ -202,25 +242,19 @@ public class PlatformUser implements Serializable {
this
.
remark
=
remark
;
this
.
remark
=
remark
;
}
}
public
String
getCustomerName
()
{
return
customerName
;
}
public
void
setCustomerName
(
String
customerName
)
{
this
.
customerName
=
customerName
;
}
@Override
@Override
public
String
toString
()
{
public
String
toString
()
{
return
"PlatformUser{"
+
return
"PlatformUser{"
+
"id="
+
id
+
"customerName='"
+
customerName
+
'\''
+
", provinceName='"
+
provinceName
+
'\''
+
", cityName='"
+
cityName
+
'\''
+
", id="
+
id
+
", nickname='"
+
nickname
+
'\''
+
", nickname='"
+
nickname
+
'\''
+
", contactNumber='"
+
contactNumber
+
'\''
+
", contactNumber='"
+
contactNumber
+
'\''
+
", wechatId='"
+
wechatId
+
'\''
+
", wechatId='"
+
wechatId
+
'\''
+
", province="
+
province
+
", province="
+
province
+
", city="
+
city
+
", city="
+
city
+
", customerId="
+
customerId
+
", customerId="
+
customerId
+
", customerName='"
+
customerName
+
'\''
+
", lastLoginTime="
+
lastLoginTime
+
", lastLoginTime="
+
lastLoginTime
+
", appAccountId="
+
appAccountId
+
", appAccountId="
+
appAccountId
+
", createTime="
+
createTime
+
", createTime="
+
createTime
+
...
...
src/main/java/com/glsx/vo/ApiCallVo.java
View file @
c8aa349
...
@@ -2,6 +2,7 @@ package com.glsx.vo;
...
@@ -2,6 +2,7 @@ package com.glsx.vo;
import
java.io.Serializable
;
import
java.io.Serializable
;
import
java.util.Date
;
import
java.util.Date
;
import
org.oreframework.web.ui.Pagination
;
/**
/**
* <p>Description:
* <p>Description:
...
@@ -14,7 +15,7 @@ import java.util.Date;
...
@@ -14,7 +15,7 @@ import java.util.Date;
/**
/**
* api调用表
* api调用表
*/
*/
public
class
ApiCallVo
implements
Serializable
{
public
class
ApiCallVo
extends
Pagination
implements
Serializable
{
/**
/**
* 访问开始时间
* 访问开始时间
*/
*/
...
...
src/main/java/com/glsx/vo/DeviceVo.java
View file @
c8aa349
...
@@ -2,6 +2,7 @@ package com.glsx.vo;
...
@@ -2,6 +2,7 @@ package com.glsx.vo;
import
java.io.Serializable
;
import
java.io.Serializable
;
import
java.util.Date
;
import
java.util.Date
;
import
org.oreframework.web.ui.Pagination
;
/**
/**
* <p>Description:
* <p>Description:
...
@@ -14,7 +15,7 @@ import java.util.Date;
...
@@ -14,7 +15,7 @@ import java.util.Date;
/**
/**
* 设备管理表
* 设备管理表
*/
*/
public
class
DeviceVo
implements
Serializable
{
public
class
DeviceVo
extends
Pagination
implements
Serializable
{
/**
/**
* 客户名称
* 客户名称
*/
*/
...
...
src/main/java/com/glsx/vo/R.java
View file @
c8aa349
...
@@ -3,6 +3,7 @@ package com.glsx.vo;
...
@@ -3,6 +3,7 @@ package com.glsx.vo;
import
java.util.Collection
;
import
java.util.Collection
;
import
java.util.HashMap
;
import
java.util.HashMap
;
import
java.util.Map
;
import
java.util.Map
;
import
com.glsx.enums.ResultCodeEnum
;
/**
/**
* 返回数据
* 返回数据
...
@@ -16,11 +17,10 @@ public class R extends HashMap<String, Object> {
...
@@ -16,11 +17,10 @@ public class R extends HashMap<String, Object> {
private
final
static
String
DATA_KEY
=
"data"
;
private
final
static
String
DATA_KEY
=
"data"
;
private
final
static
String
LIST_KEY
=
"list"
;
private
final
static
String
LIST_KEY
=
"list"
;
private
final
static
String
ITEMS_KEY
=
"items"
;
private
final
static
String
PAGE_KEY
=
"page"
;
private
final
static
String
PAGE_KEY
=
"page"
;
private
final
static
String
TOTAL_PAGES_KEY
=
"totalPages"
;
private
final
static
String
TOTAL_PAGES_KEY
=
"totalPages"
;
private
final
static
String
TOTAL_ELEMENTS_KEY
=
"totalElements"
;
private
final
static
String
TOTAL_ELEMENTS_KEY
=
"totalElements"
;
private
final
static
int
SUCCESS_CODE
=
200
;
private
final
static
int
SUCCESS_CODE
=
ResultCodeEnum
.
SUCCESS
.
getCode
()
;
public
R
()
{
public
R
()
{
put
(
CODE_KEY
,
SUCCESS_CODE
);
put
(
CODE_KEY
,
SUCCESS_CODE
);
...
@@ -28,11 +28,11 @@ public class R extends HashMap<String, Object> {
...
@@ -28,11 +28,11 @@ public class R extends HashMap<String, Object> {
}
}
public
static
R
error
()
{
public
static
R
error
()
{
return
error
(
500
,
"未知异常,请联系管理员"
);
return
error
(
ResultCodeEnum
.
SERVER_ERROR
);
}
}
public
static
R
error
(
String
msg
)
{
public
static
R
error
(
String
msg
)
{
return
error
(
500
,
msg
);
return
error
(
ResultCodeEnum
.
SERVER_ERROR
.
getCode
()
,
msg
);
}
}
public
static
R
error
(
int
code
,
String
msg
)
{
public
static
R
error
(
int
code
,
String
msg
)
{
...
@@ -49,6 +49,13 @@ public class R extends HashMap<String, Object> {
...
@@ -49,6 +49,13 @@ public class R extends HashMap<String, Object> {
return
r
;
return
r
;
}
}
public
static
R
error
(
ResultCodeEnum
resultCodeEnum
)
{
R
r
=
new
R
();
r
.
put
(
CODE_KEY
,
resultCodeEnum
.
getCode
());
r
.
put
(
MSG_KEY
,
resultCodeEnum
.
getMsg
());
return
r
;
}
public
static
R
ok
(
String
msg
)
{
public
static
R
ok
(
String
msg
)
{
R
r
=
new
R
();
R
r
=
new
R
();
r
.
put
(
MSG_KEY
,
msg
);
r
.
put
(
MSG_KEY
,
msg
);
...
...
src/main/java/com/glsx/vo/UserVo.java
View file @
c8aa349
...
@@ -2,6 +2,7 @@ package com.glsx.vo;
...
@@ -2,6 +2,7 @@ package com.glsx.vo;
import
java.io.Serializable
;
import
java.io.Serializable
;
import
java.util.Date
;
import
java.util.Date
;
import
org.oreframework.web.ui.Pagination
;
/**
/**
* <p>Description:
* <p>Description:
...
@@ -14,7 +15,11 @@ import java.util.Date;
...
@@ -14,7 +15,11 @@ import java.util.Date;
/**
/**
* 设备管理表
* 设备管理表
*/
*/
public
class
UserVo
implements
Serializable
{
public
class
UserVo
extends
Pagination
implements
Serializable
{
/**
* 客户ID
*/
private
Integer
customerId
;
/**
/**
* 客户名称
* 客户名称
*/
*/
...
...
src/main/resources/mapper/PlatformUserMapper.xml
View file @
c8aa349
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
Attach a file
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 post a comment