Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
H
haoban-manage3.0
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
haoban3.0
haoban-manage3.0
Commits
2d08f94d
Commit
2d08f94d
authored
May 12, 2023
by
jinxin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
错误日志记录-web端
parent
645b2d08
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
150 additions
and
0 deletions
+150
-0
TabHaobanAppLogController.java
...oban/manage/web/controller/TabHaobanAppLogController.java
+37
-0
TabHaobanAppLogQO.java
.../java/com/gic/haoban/manage/web/qo/TabHaobanAppLogQO.java
+113
-0
No files found.
haoban-manage3-web/src/main/java/com/gic/haoban/manage/web/controller/TabHaobanAppLogController.java
0 → 100644
View file @
2d08f94d
package
com
.
gic
.
haoban
.
manage
.
web
.
controller
;
import
com.alibaba.fastjson.JSON
;
import
com.alibaba.fastjson.JSONObject
;
import
com.gic.commons.webapi.reponse.RestResponse
;
import
com.gic.haoban.manage.api.dto.TabHaobanAppLogDTO
;
import
com.gic.haoban.manage.api.service.TabHaobanAppLogApiService
;
import
com.gic.haoban.manage.web.qo.TabHaobanAppLogQO
;
import
org.apache.logging.log4j.LogManager
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.web.bind.annotation.RequestBody
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.ResponseBody
;
import
org.springframework.web.bind.annotation.RestController
;
/**
* @description:
* @Author: wenhua
* @Date: 2023/5/11 21:50
*/
@RestController
public
class
TabHaobanAppLogController
{
private
static
org
.
apache
.
logging
.
log4j
.
Logger
logger
=
LogManager
.
getLogger
(
TabHaobanAppLogController
.
class
);
@Autowired
private
TabHaobanAppLogApiService
tabHaobanAppLogApiService
;
@RequestMapping
(
"/insert_log"
)
@ResponseBody
public
RestResponse
<
Boolean
>
insertLog
(
@RequestBody
TabHaobanAppLogQO
qo
)
{
logger
.
info
(
"插入日志的参数:{}"
,
JSON
.
toJSONString
(
qo
));
tabHaobanAppLogApiService
.
insert
(
JSONObject
.
parseObject
(
JSONObject
.
toJSONString
(
qo
),
TabHaobanAppLogDTO
.
class
));
return
RestResponse
.
successResult
();
}
}
haoban-manage3-web/src/main/java/com/gic/haoban/manage/web/qo/TabHaobanAppLogQO.java
0 → 100644
View file @
2d08f94d
package
com
.
gic
.
haoban
.
manage
.
web
.
qo
;
import
java.io.Serializable
;
import
java.util.Date
;
/**
* (TabHaobanAppLog)实体类
*
* @author makejava
* @since 2023-05-11 20:42:00
*/
public
class
TabHaobanAppLogQO
implements
Serializable
{
private
static
final
long
serialVersionUID
=
539168776962271773L
;
/**
* 主键
*/
private
Long
id
;
/**
* 手机号
*/
private
String
phone
;
/**
* 小程序memberId
*/
private
String
memberId
;
/**
* 用户信息
*/
private
String
userInfo
;
/**
* 设备时间
*/
private
Date
deviceTime
;
/**
* 当前Url(页面url)
*/
private
String
locationUrl
;
/**
* 错误信息json
*/
private
String
errMsg
;
/**
* 创建时间
*/
private
Date
createTime
;
public
Long
getId
()
{
return
id
;
}
public
void
setId
(
Long
id
)
{
this
.
id
=
id
;
}
public
String
getPhone
()
{
return
phone
;
}
public
void
setPhone
(
String
phone
)
{
this
.
phone
=
phone
;
}
public
String
getMemberId
()
{
return
memberId
;
}
public
void
setMemberId
(
String
memberId
)
{
this
.
memberId
=
memberId
;
}
public
String
getUserInfo
()
{
return
userInfo
;
}
public
void
setUserInfo
(
String
userInfo
)
{
this
.
userInfo
=
userInfo
;
}
public
Date
getDeviceTime
()
{
return
deviceTime
;
}
public
void
setDeviceTime
(
Date
deviceTime
)
{
this
.
deviceTime
=
deviceTime
;
}
public
String
getLocationUrl
()
{
return
locationUrl
;
}
public
void
setLocationUrl
(
String
locationUrl
)
{
this
.
locationUrl
=
locationUrl
;
}
public
String
getErrMsg
()
{
return
errMsg
;
}
public
void
setErrMsg
(
String
errMsg
)
{
this
.
errMsg
=
errMsg
;
}
public
Date
getCreateTime
()
{
return
createTime
;
}
public
void
setCreateTime
(
Date
createTime
)
{
this
.
createTime
=
createTime
;
}
}
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