Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
I
ioc_sixiang_license
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
zengtianlai3
ioc_sixiang_license
Commits
abbb1747
Commit
abbb1747
authored
Feb 01, 2023
by
AfirSraftGarrier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
发送成功消息
parent
59bdef0e
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
6 deletions
+10
-6
PmsUseService.java
.../main/java/iot/sixiang/license/service/PmsUseService.java
+1
-1
PmsUseServiceImpl.java
...a/iot/sixiang/license/service/impl/PmsUseServiceImpl.java
+3
-2
TerminalDeviceServiceImpl.java
...xiang/license/service/impl/TerminalDeviceServiceImpl.java
+6
-3
No files found.
license/src/main/java/iot/sixiang/license/service/PmsUseService.java
View file @
abbb1747
...
@@ -14,7 +14,7 @@ public interface PmsUseService {
...
@@ -14,7 +14,7 @@ public interface PmsUseService {
void
createFailUseLog
(
String
sn
,
String
message
);
void
createFailUseLog
(
String
sn
,
String
message
);
void
success
(
int
useLogId
);
void
success
(
ReportErrorMsgDTO
reportErrorMsgDTO
);
PageInfoModel
<
PmsUseLog
>
getPmsUseLogList
(
int
pageNo
,
int
pageSize
,
String
sn
,
Integer
status
,
String
startTime
,
String
endTime
);
PageInfoModel
<
PmsUseLog
>
getPmsUseLogList
(
int
pageNo
,
int
pageSize
,
String
sn
,
Integer
status
,
String
startTime
,
String
endTime
);
...
...
license/src/main/java/iot/sixiang/license/service/impl/PmsUseServiceImpl.java
View file @
abbb1747
...
@@ -41,10 +41,11 @@ public class PmsUseServiceImpl implements PmsUseService {
...
@@ -41,10 +41,11 @@ public class PmsUseServiceImpl implements PmsUseService {
}
}
@Override
@Override
public
void
success
(
int
useLogId
)
{
public
void
success
(
ReportErrorMsgDTO
reportErrorMsgDTO
)
{
PmsUseLog
pmsUseLog
=
new
PmsUseLog
();
PmsUseLog
pmsUseLog
=
new
PmsUseLog
();
pmsUseLog
.
setId
(
useLogId
);
pmsUseLog
.
setId
(
reportErrorMsgDTO
.
getId
()
);
pmsUseLog
.
setStatus
(
1
);
pmsUseLog
.
setStatus
(
1
);
pmsUseLog
.
setMessage
(
reportErrorMsgDTO
.
getErrorMsg
());
pmsUseLogMapper
.
updateById
(
pmsUseLog
);
pmsUseLogMapper
.
updateById
(
pmsUseLog
);
}
}
...
...
license/src/main/java/iot/sixiang/license/service/impl/TerminalDeviceServiceImpl.java
View file @
abbb1747
...
@@ -7,7 +7,11 @@ import iot.sixiang.license.jwt.JwtUtil;
...
@@ -7,7 +7,11 @@ import iot.sixiang.license.jwt.JwtUtil;
import
iot.sixiang.license.jwt.LoginUser
;
import
iot.sixiang.license.jwt.LoginUser
;
import
iot.sixiang.license.model.BaseResult
;
import
iot.sixiang.license.model.BaseResult
;
import
iot.sixiang.license.model.ResResult
;
import
iot.sixiang.license.model.ResResult
;
import
iot.sixiang.license.model.dto.*
;
import
iot.sixiang.license.model.dto.GetTerminalDeviceTokenDTO
;
import
iot.sixiang.license.model.dto.PlatFormBindDTO
;
import
iot.sixiang.license.model.dto.ReportErrorMsgDTO
;
import
iot.sixiang.license.model.dto.TerminalDevieBindDTO
;
import
iot.sixiang.license.model.dto.TerminalDevieUnBindDTO
;
import
iot.sixiang.license.service.DeviceService
;
import
iot.sixiang.license.service.DeviceService
;
import
iot.sixiang.license.service.PmsUseService
;
import
iot.sixiang.license.service.PmsUseService
;
import
iot.sixiang.license.service.TerminalDeviceService
;
import
iot.sixiang.license.service.TerminalDeviceService
;
...
@@ -17,7 +21,6 @@ import org.springframework.beans.factory.annotation.Autowired;
...
@@ -17,7 +21,6 @@ import org.springframework.beans.factory.annotation.Autowired;
import
org.springframework.stereotype.Service
;
import
org.springframework.stereotype.Service
;
import
javax.annotation.Resource
;
import
javax.annotation.Resource
;
import
java.util.Comparator
;
import
java.util.List
;
import
java.util.List
;
@Slf4j
@Slf4j
...
@@ -69,7 +72,7 @@ public class TerminalDeviceServiceImpl implements TerminalDeviceService {
...
@@ -69,7 +72,7 @@ public class TerminalDeviceServiceImpl implements TerminalDeviceService {
return
BaseResult
.
validate_failed
();
return
BaseResult
.
validate_failed
();
}
}
if
(
"0"
.
equals
(
reportErrorMsgDTO
.
getErrorCode
()))
{
if
(
"0"
.
equals
(
reportErrorMsgDTO
.
getErrorCode
()))
{
pmsUseService
.
success
(
reportErrorMsgDTO
.
getId
()
);
pmsUseService
.
success
(
reportErrorMsgDTO
);
}
else
if
(
"-1"
.
equals
(
reportErrorMsgDTO
.
getErrorCode
()))
{
}
else
if
(
"-1"
.
equals
(
reportErrorMsgDTO
.
getErrorCode
()))
{
pmsUseService
.
deletePmsUseLogById
(
id
);
pmsUseService
.
deletePmsUseLogById
(
id
);
}
else
{
}
else
{
...
...
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