Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
self-service
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
廖旭伟
self-service
Commits
bcc63ade
Commit
bcc63ade
authored
1 year ago
by
廖旭伟
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
应用访问量埋点增加get方式
parent
cbbe00a4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
69 additions
and
0 deletions
+69
-0
sst-manager/src/main/java/com/mortals/xhx/module/converge/web/ConvergeAppsAccessController.java
...xhx/module/converge/web/ConvergeAppsAccessController.java
+69
-0
No files found.
sst-manager/src/main/java/com/mortals/xhx/module/converge/web/ConvergeAppsAccessController.java
View file @
bcc63ade
...
@@ -3,6 +3,8 @@ import com.mortals.framework.annotation.RepeatSubmit;
...
@@ -3,6 +3,8 @@ import com.mortals.framework.annotation.RepeatSubmit;
import
com.mortals.framework.annotation.UnAuth
;
import
com.mortals.framework.annotation.UnAuth
;
import
com.mortals.framework.model.BaseEntity
;
import
com.mortals.framework.model.BaseEntity
;
import
com.mortals.framework.service.IUser
;
import
com.mortals.framework.service.IUser
;
import
com.mortals.framework.util.DataUtil
;
import
com.mortals.framework.util.DateUtils
;
import
com.mortals.framework.utils.BeanUtil
;
import
com.mortals.framework.utils.BeanUtil
;
import
com.mortals.framework.utils.ReflectUtils
;
import
com.mortals.framework.utils.ReflectUtils
;
import
com.mortals.framework.web.BaseCRUDJsonBodyMappingController
;
import
com.mortals.framework.web.BaseCRUDJsonBodyMappingController
;
...
@@ -114,4 +116,71 @@ public class ConvergeAppsAccessController extends BaseCRUDJsonBodyMappingControl
...
@@ -114,4 +116,71 @@ public class ConvergeAppsAccessController extends BaseCRUDJsonBodyMappingControl
ret
.
put
(
"data"
,
model
);
ret
.
put
(
"data"
,
model
);
return
ret
.
toJSONString
();
return
ret
.
toJSONString
();
}
}
@GetMapping
({
"bury"
})
@UnAuth
public
String
bury
(
HttpServletRequest
request
,
HttpServletResponse
response
)
{
Map
<
String
,
Object
>
model
=
new
HashMap
();
Context
context
=
this
.
getContext
();
int
code
=
1
;
String
busiDesc
=
"保存"
+
this
.
getModuleDesc
();
ConvergeAppsAccessEntity
entity
=
new
ConvergeAppsAccessEntity
();
entity
.
setSiteId
(
DataUtil
.
converStr2Long
(
request
.
getParameter
(
"siteId"
),
0
l
));
entity
.
setApplicationId
(
request
.
getParameter
(
"applicationId"
));
entity
.
setApplicationName
(
request
.
getParameter
(
"applicationName"
));
if
(
StringUtils
.
isNotEmpty
(
request
.
getParameter
(
"startTime"
)))
{
entity
.
setStartTime
(
DateUtils
.
StrToDateTime
(
request
.
getParameter
(
"startTime"
)));
}
if
(
StringUtils
.
isNotEmpty
(
request
.
getParameter
(
"endTime"
)))
{
entity
.
setEndTime
(
DateUtils
.
StrToDateTime
(
request
.
getParameter
(
"endTime"
)));
}
entity
.
setChannelId
(
request
.
getParameter
(
"channelId"
));
entity
.
setChannelName
(
request
.
getParameter
(
"channelName"
));
entity
.
setLocation
(
request
.
getParameter
(
"location"
));
entity
.
setClientName
(
request
.
getParameter
(
"clientName"
));
entity
.
setVersion
(
request
.
getParameter
(
"version"
));
entity
.
setEcode
(
request
.
getParameter
(
"ecode"
));
entity
.
setAppSimpleName
(
request
.
getParameter
(
"appSimpleName"
));
entity
.
setProvider
(
request
.
getParameter
(
"provider"
));
entity
.
setOrigin
(
request
.
getParameter
(
"origin"
));
try
{
this
.
saveBefore
(
entity
,
model
,
context
);
if
(
entity
.
newEntity
())
{
Class
<
ConvergeAppsAccessEntity
>
tClass
=
ReflectUtils
.
getClassGenricType
(
this
.
getClass
(),
1
);
ConvergeAppsAccessEntity
initEntity
=
(
ConvergeAppsAccessEntity
)
tClass
.
newInstance
();
initEntity
.
initAttrValue
();
BeanUtils
.
copyProperties
(
entity
,
initEntity
,
BeanUtil
.
getNullPropertyNames
(
entity
));
entity
=
initEntity
;
busiDesc
=
"新增"
+
this
.
getModuleDesc
();
initEntity
.
setCreateTime
(
new
Date
());
IUser
user
=
this
.
getCurUser
();
if
(
user
!=
null
)
{
initEntity
.
setCreateUserId
(
user
.
getId
());
initEntity
.
setCreateUser
(
user
.
getLoginName
());
initEntity
.
setCreateUserName
(
user
.
getRealName
());
initEntity
.
setCreateUserDeptId
(
user
.
getDeptId
());
initEntity
.
setCreateUserDeptName
(
user
.
getDeptName
());
}
this
.
service
.
save
(
initEntity
,
context
);
}
model
.
put
(
"id"
,
entity
.
getId
());
code
=
this
.
saveAfter
(
entity
,
model
,
context
);
model
.
put
(
"entity"
,
entity
);
model
.
put
(
"message_info"
,
busiDesc
+
"成功"
);
this
.
recordSysLog
(
this
.
request
,
busiDesc
+
" 【成功】 [id:"
+
entity
.
getId
()
+
"]"
);
}
catch
(
Exception
var9
)
{
this
.
doException
(
this
.
request
,
busiDesc
,
model
,
var9
);
model
.
put
(
"entity"
,
entity
);
this
.
init
(
model
,
context
);
code
=
this
.
saveException
(
entity
,
model
,
context
,
var9
);
}
this
.
init
(
model
,
context
);
JSONObject
ret
=
new
JSONObject
();
ret
.
put
(
"code"
,
code
);
ret
.
put
(
"msg"
,
model
.
remove
(
"message_info"
));
ret
.
put
(
"data"
,
model
);
return
ret
.
toJSONString
();
}
}
}
\ No newline at end of file
This diff is collapsed.
Click to expand it.
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