Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
amos-boot-biz
Project
Project
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
项目统一框架
amos-boot-biz
Commits
d76efef1
Commit
d76efef1
authored
Apr 02, 2024
by
litengwei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
平台登陆密码工具调用修改
parent
06e933ef
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
49 additions
and
43 deletions
+49
-43
pom.xml
amos-boot-module/amos-boot-module-api/pom.xml
+11
-10
RemoteSecurityService.java
...com/yeejoin/equipmanage/remote/RemoteSecurityService.java
+3
-3
ExcelServiceImpl.java
...os/boot/module/jcs/biz/service/impl/ExcelServiceImpl.java
+3
-3
RemoteSecurityService.java
.../com/yeejoin/amos/patrol/feign/RemoteSecurityService.java
+7
-3
pom.xml
amos-boot-module/amos-boot-module-biz/pom.xml
+11
-10
pom.xml
pom.xml
+14
-14
No files found.
amos-boot-module/amos-boot-module-api/pom.xml
View file @
d76efef1
...
@@ -17,17 +17,17 @@
...
@@ -17,17 +17,17 @@
<modules>
<modules>
<module>
amos-boot-module-jcs-api
</module>
<module>
amos-boot-module-jcs-api
</module>
<module>
amos-boot-module-common-api
</module>
<module>
amos-boot-module-common-api
</module>
<module>
amos-boot-module-command-api
</module
>
<!-- <module>amos-boot-module-command-api</module>--
>
<module>
amos-boot-module-patrol-api
</module>
<module>
amos-boot-module-patrol-api
</module>
<module>
amos-boot-module-fas-api
</module
>
<!-- <module>amos-boot-module-fas-api</module>--
>
<module>
amos-boot-module-maintenance-api
</module
>
<!-- <module>amos-boot-module-maintenance-api</module>--
>
<module>
amos-boot-module-supervision-api
</module
>
<!-- <module>amos-boot-module-supervision-api</module>--
>
<module>
amos-boot-module-knowledgebase-api
</module
>
<!-- <module>amos-boot-module-knowledgebase-api</module>--
>
<module>
amos-boot-module-equip-api
</module>
<module>
amos-boot-module-equip-api
</module>
<module>
amos-boot-module-latentdanger-api
</module
>
<!-- <module>amos-boot-module-latentdanger-api</module>--
>
<module>
amos-boot-module-ccs-api
</module
>
<!-- <module>amos-boot-module-ccs-api</module>--
>
<module>
amos-boot-module-avic-api
</module
>
<!-- <module>amos-boot-module-avic-api</module>--
>
<module>
amos-boot-module-precontrol-api
</module
>
<!-- <module>amos-boot-module-precontrol-api</module>--
>
<module>
amos-boot-module-kgd-api
</module
>
<!-- <module>amos-boot-module-kgd-api</module>--
>
</modules>
</modules>
</project>
</project>
\ No newline at end of file
amos-boot-module/amos-boot-module-biz/amos-boot-module-equip-biz/src/main/java/com/yeejoin/equipmanage/remote/RemoteSecurityService.java
View file @
d76efef1
...
@@ -11,7 +11,7 @@ import com.yeejoin.amos.component.robot.AmosRequestContext;
...
@@ -11,7 +11,7 @@ import com.yeejoin.amos.component.robot.AmosRequestContext;
import
com.yeejoin.amos.feign.privilege.Privilege
;
import
com.yeejoin.amos.feign.privilege.Privilege
;
import
com.yeejoin.amos.feign.privilege.client.AgencyUserClient
;
import
com.yeejoin.amos.feign.privilege.client.AgencyUserClient
;
import
com.yeejoin.amos.feign.privilege.model.*
;
import
com.yeejoin.amos.feign.privilege.model.*
;
import
com.yeejoin.amos.feign.privilege.util.
Aes
Util
;
import
com.yeejoin.amos.feign.privilege.util.
Pwd
Util
;
import
com.yeejoin.amos.feign.systemctl.Systemctl
;
import
com.yeejoin.amos.feign.systemctl.Systemctl
;
import
com.yeejoin.amos.feign.systemctl.model.DictionarieValueModel
;
import
com.yeejoin.amos.feign.systemctl.model.DictionarieValueModel
;
import
com.yeejoin.equipmanage.common.entity.publics.CommonResponse
;
import
com.yeejoin.equipmanage.common.entity.publics.CommonResponse
;
...
@@ -264,7 +264,7 @@ public class RemoteSecurityService {
...
@@ -264,7 +264,7 @@ public class RemoteSecurityService {
IdPasswordAuthModel
dPasswordAuthModel
=
new
IdPasswordAuthModel
();
IdPasswordAuthModel
dPasswordAuthModel
=
new
IdPasswordAuthModel
();
dPasswordAuthModel
.
setLoginId
(
userName
);
dPasswordAuthModel
.
setLoginId
(
userName
);
try
{
try
{
dPasswordAuthModel
.
setPassword
(
Aes
Util
.
encode
(
password
));
dPasswordAuthModel
.
setPassword
(
Pwd
Util
.
encode
(
password
));
}
catch
(
GeneralSecurityException
e
)
{
}
catch
(
GeneralSecurityException
e
)
{
e
.
printStackTrace
();
e
.
printStackTrace
();
}
}
...
@@ -406,7 +406,7 @@ public class RemoteSecurityService {
...
@@ -406,7 +406,7 @@ public class RemoteSecurityService {
IdPasswordAuthModel
dPasswordAuthModel
=
new
IdPasswordAuthModel
();
IdPasswordAuthModel
dPasswordAuthModel
=
new
IdPasswordAuthModel
();
dPasswordAuthModel
.
setLoginId
(
amosRequestContext
.
getUserName
());
dPasswordAuthModel
.
setLoginId
(
amosRequestContext
.
getUserName
());
try
{
try
{
dPasswordAuthModel
.
setPassword
(
Aes
Util
.
encode
(
password
));
dPasswordAuthModel
.
setPassword
(
Pwd
Util
.
encode
(
password
));
}
catch
(
GeneralSecurityException
e
)
{
}
catch
(
GeneralSecurityException
e
)
{
e
.
printStackTrace
();
e
.
printStackTrace
();
}
catch
(
IOException
e
)
{
}
catch
(
IOException
e
)
{
...
...
amos-boot-module/amos-boot-module-biz/amos-boot-module-jcs-biz/src/main/java/com/yeejoin/amos/boot/module/jcs/biz/service/impl/ExcelServiceImpl.java
View file @
d76efef1
...
@@ -13,7 +13,7 @@ import java.util.stream.Collectors;
...
@@ -13,7 +13,7 @@ import java.util.stream.Collectors;
import
javax.servlet.http.HttpServletRequest
;
import
javax.servlet.http.HttpServletRequest
;
import
javax.servlet.http.HttpServletResponse
;
import
javax.servlet.http.HttpServletResponse
;
import
com.yeejoin.amos.feign.privilege.util.
Aes
Util
;
import
com.yeejoin.amos.feign.privilege.util.
Pwd
Util
;
import
com.alibaba.fastjson.JSON
;
import
com.alibaba.fastjson.JSON
;
import
com.baomidou.mybatisplus.core.metadata.IPage
;
import
com.baomidou.mybatisplus.core.metadata.IPage
;
...
@@ -1043,8 +1043,8 @@ public class ExcelServiceImpl {
...
@@ -1043,8 +1043,8 @@ public class ExcelServiceImpl {
//密码效验加密,不能为空,并且必须相等
//密码效验加密,不能为空,并且必须相等
if
(!
StringUtils
.
isEmpty
(
orgUsrExcelDto
.
getPassword
())){
if
(!
StringUtils
.
isEmpty
(
orgUsrExcelDto
.
getPassword
())){
try
{
try
{
user
.
setPassword
(
Aes
Util
.
encode
(
orgUsrExcelDto
.
getPassword
()));
user
.
setPassword
(
Pwd
Util
.
encode
(
orgUsrExcelDto
.
getPassword
()));
user
.
setRePassword
(
Aes
Util
.
encode
(
orgUsrExcelDto
.
getPassword
()));
user
.
setRePassword
(
Pwd
Util
.
encode
(
orgUsrExcelDto
.
getPassword
()));
}
catch
(
GeneralSecurityException
e
)
{
}
catch
(
GeneralSecurityException
e
)
{
e
.
printStackTrace
();
e
.
printStackTrace
();
}
}
...
...
amos-boot-module/amos-boot-module-biz/amos-boot-module-patrol-biz/src/main/java/com/yeejoin/amos/patrol/feign/RemoteSecurityService.java
View file @
d76efef1
...
@@ -12,7 +12,7 @@ import com.yeejoin.amos.component.feign.config.TokenOperation;
...
@@ -12,7 +12,7 @@ import com.yeejoin.amos.component.feign.config.TokenOperation;
import
com.yeejoin.amos.component.feign.model.FeignClientResult
;
import
com.yeejoin.amos.component.feign.model.FeignClientResult
;
import
com.yeejoin.amos.feign.privilege.Privilege
;
import
com.yeejoin.amos.feign.privilege.Privilege
;
import
com.yeejoin.amos.feign.privilege.model.*
;
import
com.yeejoin.amos.feign.privilege.model.*
;
import
com.yeejoin.amos.feign.privilege.util.
Aes
Util
;
import
com.yeejoin.amos.feign.privilege.util.
Pwd
Util
;
import
com.yeejoin.amos.feign.systemctl.Systemctl
;
import
com.yeejoin.amos.feign.systemctl.Systemctl
;
import
com.yeejoin.amos.feign.systemctl.model.DictionarieValueModel
;
import
com.yeejoin.amos.feign.systemctl.model.DictionarieValueModel
;
import
com.yeejoin.amos.patrol.business.util.CommonResponse
;
import
com.yeejoin.amos.patrol.business.util.CommonResponse
;
...
@@ -96,7 +96,7 @@ public class RemoteSecurityService {
...
@@ -96,7 +96,7 @@ public class RemoteSecurityService {
IdPasswordAuthModel
dPasswordAuthModel
=
new
IdPasswordAuthModel
();
IdPasswordAuthModel
dPasswordAuthModel
=
new
IdPasswordAuthModel
();
dPasswordAuthModel
.
setLoginId
(
loginId
);
dPasswordAuthModel
.
setLoginId
(
loginId
);
try
{
try
{
dPasswordAuthModel
.
setPassword
(
Aes
Util
.
encode
(
password
));
dPasswordAuthModel
.
setPassword
(
Pwd
Util
.
encode
(
password
));
}
catch
(
GeneralSecurityException
e
)
{
}
catch
(
GeneralSecurityException
e
)
{
e
.
printStackTrace
();
e
.
printStackTrace
();
}
catch
(
IOException
e
)
{
}
catch
(
IOException
e
)
{
...
@@ -537,7 +537,11 @@ public class RemoteSecurityService {
...
@@ -537,7 +537,11 @@ public class RemoteSecurityService {
public
JSONObject
loginFromApp
(
String
userName
,
String
password
)
{
public
JSONObject
loginFromApp
(
String
userName
,
String
password
)
{
IdPasswordAuthModel
dPasswordAuthModel
=
new
IdPasswordAuthModel
();
IdPasswordAuthModel
dPasswordAuthModel
=
new
IdPasswordAuthModel
();
dPasswordAuthModel
.
setLoginId
(
userName
);
dPasswordAuthModel
.
setLoginId
(
userName
);
dPasswordAuthModel
.
setPassword
(
AesUtil
.
decode
(
password
));
try
{
dPasswordAuthModel
.
setPassword
(
PwdUtil
.
decode
(
password
));
}
catch
(
GeneralSecurityException
e
)
{
e
.
printStackTrace
();
}
Map
map
=
null
;
Map
map
=
null
;
FeignClientResult
feignClientResult
=
new
FeignClientResult
();
FeignClientResult
feignClientResult
=
new
FeignClientResult
();
RequestContext
.
setProduct
(
productApp
);
RequestContext
.
setProduct
(
productApp
);
...
...
amos-boot-module/amos-boot-module-biz/pom.xml
View file @
d76efef1
...
@@ -50,17 +50,17 @@
...
@@ -50,17 +50,17 @@
<modules>
<modules>
<module>
amos-boot-module-jcs-biz
</module>
<module>
amos-boot-module-jcs-biz
</module>
<module>
amos-boot-module-common-biz
</module>
<module>
amos-boot-module-common-biz
</module>
<module>
amos-boot-module-command-biz
</module
>
<!-- <module>amos-boot-module-command-biz</module>--
>
<module>
amos-boot-module-knowledgebase-biz
</module
>
<!-- <module>amos-boot-module-knowledgebase-biz</module>--
>
<module>
amos-boot-module-patrol-biz
</module>
<module>
amos-boot-module-patrol-biz
</module>
<module>
amos-boot-module-fas-biz
</module
>
<!-- <module>amos-boot-module-fas-biz</module>--
>
<module>
amos-boot-module-maintenance-biz
</module
>
<!-- <module>amos-boot-module-maintenance-biz</module>--
>
<module>
amos-boot-module-supervision-biz
</module
>
<!-- <module>amos-boot-module-supervision-biz</module>--
>
<module>
amos-boot-module-latentdanger-biz
</module
>
<!-- <module>amos-boot-module-latentdanger-biz</module>--
>
<module>
amos-boot-module-equip-biz
</module>
<module>
amos-boot-module-equip-biz
</module>
<module>
amos-boot-module-ccs-biz
</module
>
<!-- <module>amos-boot-module-ccs-biz</module>--
>
<module>
amos-boot-module-avic-biz
</module
>
<!-- <module>amos-boot-module-avic-biz</module>--
>
<module>
amos-boot-module-precontrol-biz
</module
>
<!-- <module>amos-boot-module-precontrol-biz</module>--
>
<module>
amos-boot-module-kgd-biz
</module
>
<!-- <module>amos-boot-module-kgd-biz</module>--
>
</modules>
</modules>
</project>
</project>
\ No newline at end of file
pom.xml
View file @
d76efef1
...
@@ -333,23 +333,23 @@
...
@@ -333,23 +333,23 @@
<modules>
<modules>
<module>
amos-boot-module
</module>
<module>
amos-boot-module
</module>
<module>
amos-boot-biz-common
</module>
<module>
amos-boot-biz-common
</module>
<module>
amos-boot-system-tzs
</module
>
<!-- <module>amos-boot-system-tzs</module>--
>
<module>
amos-boot-system-jcs
</module>
<module>
amos-boot-system-jcs
</module>
<module>
amos-boot-system-knowledgebase
</module
>
<!-- <module>amos-boot-system-knowledgebase</module>--
>
<module>
amos-boot-system-fas
</module
>
<!-- <module>amos-boot-system-fas</module>--
>
<module>
amos-boot-system-patrol
</module>
<module>
amos-boot-system-patrol
</module>
<module>
amos-boot-system-maintenance
</module
>
<!-- <module>amos-boot-system-maintenance</module>--
>
<module>
amos-boot-system-supervision
</module
>
<!-- <module>amos-boot-system-supervision</module>--
>
<module>
amos-boot-system-equip
</module>
<module>
amos-boot-system-equip
</module>
<module>
amos-boot-core
</module
>
<!-- <module>amos-boot-core</module>--
>
<module>
amos-boot-utils
</module
>
<!-- <module>amos-boot-utils</module>--
>
<module>
amos-boot-system-latentdanger
</module
>
<!-- <module>amos-boot-system-latentdanger</module>--
>
<module>
amos-boot-system-ccs
</module
>
<!-- <module>amos-boot-system-ccs</module>--
>
<module>
amos-boot-data
</module
>
<!-- <module>amos-boot-data</module>--
>
<module>
amos-boot-system-precontrol
</module
>
<!-- <module>amos-boot-system-precontrol</module>--
>
<module>
amos-boot-system-cas
</module
>
<!-- <module>amos-boot-system-cas</module>--
>
<module>
amos-boot-system-tdc
</module
>
<!-- <module>amos-boot-system-tdc</module>--
>
<module>
amos-boot-system-kgd
</module
>
<!-- <module>amos-boot-system-kgd</module>--
>
</modules>
</modules>
<build>
<build>
...
...
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