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
508a3dfd
Commit
508a3dfd
authored
Jul 20, 2022
by
chenzhao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改代码
parent
ed344b0e
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
5 additions
and
23 deletions
+5
-23
Point.java
...c/main/java/com/yeejoin/amos/patrol/dao/entity/Point.java
+0
-11
PointController.java
...join/amos/patrol/business/controller/PointController.java
+1
-3
PersonIdentifyAspect.java
.../com/yeejoin/amos/patrol/config/PersonIdentifyAspect.java
+1
-1
pointMapper.xml
...ystem-patrol/src/main/resources/db/mapper/pointMapper.xml
+3
-8
No files found.
amos-boot-module/amos-boot-module-api/amos-boot-module-patrol-api/src/main/java/com/yeejoin/amos/patrol/dao/entity/Point.java
View file @
508a3dfd
...
@@ -43,14 +43,6 @@ public class Point extends BasicEntity {
...
@@ -43,14 +43,6 @@ public class Point extends BasicEntity {
*/
*/
private
String
coordinates
;
private
String
coordinates
;
public
String
getIsSccreen
()
{
return
isSccreen
;
}
public
void
setIsSccreen
(
String
isSccreen
)
{
this
.
isSccreen
=
isSccreen
;
}
/**
/**
* 创建用户id
* 创建用户id
*/
*/
...
@@ -236,9 +228,6 @@ public class Point extends BasicEntity {
...
@@ -236,9 +228,6 @@ public class Point extends BasicEntity {
private
String
ue4Location
;
private
String
ue4Location
;
//bizOrgCode是否筛选字段,默认是1 为0时代表是前端传递进来的 数据库字段取值为eq 同级查找
private
String
isSccreen
=
"1"
;
/**
/**
* ue4旋转
* ue4旋转
*/
*/
...
...
amos-boot-module/amos-boot-module-biz/amos-boot-module-patrol-biz/src/main/java/com/yeejoin/amos/patrol/business/controller/PointController.java
View file @
508a3dfd
...
@@ -1107,9 +1107,7 @@ public class PointController extends AbstractBaseController {
...
@@ -1107,9 +1107,7 @@ public class PointController extends AbstractBaseController {
return
CommonResponseUtil
.
failure
(
"用户session过期"
);
return
CommonResponseUtil
.
failure
(
"用户session过期"
);
}
}
try
{
try
{
if
(!
StringUtils
.
isEmpty
(
point
.
getBizOrgCode
())){
if
(
StringUtils
.
isEmpty
(
point
.
getBizOrgCode
())){
point
.
setIsSccreen
(
"0"
);
}
else
{
point
.
setBizOrgCode
(
reginParams
.
getPersonIdentity
().
getCompanyBizOrgCode
());
point
.
setBizOrgCode
(
reginParams
.
getPersonIdentity
().
getCompanyBizOrgCode
());
}
}
...
...
amos-boot-module/amos-boot-module-biz/amos-boot-module-patrol-biz/src/main/java/com/yeejoin/amos/patrol/config/PersonIdentifyAspect.java
View file @
508a3dfd
...
@@ -50,7 +50,7 @@ public class PersonIdentifyAspect {
...
@@ -50,7 +50,7 @@ public class PersonIdentifyAspect {
public
void
personIdentity
(
JoinPoint
joinPoint
)
throws
PermissionException
{
public
void
personIdentity
(
JoinPoint
joinPoint
)
throws
PermissionException
{
ReginParams
reginParam
=
JSON
.
parseObject
(
redisUtils
.
get
(
RedisKey
.
buildReginKey
(
RequestContext
.
getExeUserId
(),
RequestContext
.
getToken
())).
toString
(),
ReginParams
.
class
);
ReginParams
reginParam
=
JSON
.
parseObject
(
redisUtils
.
get
(
RedisKey
.
buildReginKey
(
RequestContext
.
getExeUserId
(),
RequestContext
.
getToken
())).
toString
(),
ReginParams
.
class
);
if
(
reginParam
!=
null
)
{
if
(
reginParam
!=
null
)
{
if
(
reginParam
.
getPersonIdentity
()==
null
){
if
(
reginParam
.
getPersonIdentity
()==
null
||
reginParam
.
getPersonIdentity
().
getCompanyBizOrgCode
()==
null
){
String
userId
=
reginParam
.
getUserModel
().
getUserId
();
String
userId
=
reginParam
.
getUserModel
().
getUserId
();
if
(
userId
!=
null
){
if
(
userId
!=
null
){
...
...
amos-boot-system-patrol/src/main/resources/db/mapper/pointMapper.xml
View file @
508a3dfd
...
@@ -98,10 +98,7 @@
...
@@ -98,10 +98,7 @@
<if
test=
"pointParams.catalogId != null and pointParams.catalogId != ''"
>
<if
test=
"pointParams.catalogId != null and pointParams.catalogId != ''"
>
and p.catalog_id = #{pointParams.catalogId}
and p.catalog_id = #{pointParams.catalogId}
</if>
</if>
<if
test=
"pointParams.bizOrgCode != null and pointParams.bizOrgCode != '' and pointParams.isSccreen == '0'"
>
<if
test=
"pointParams.bizOrgCode != null and pointParams.bizOrgCode != ''"
>
and p.biz_org_code = #{pointParams.bizOrgCode}
</if>
<if
test=
"pointParams.bizOrgCode != null and pointParams.bizOrgCode != '' and pointParams.isSccreen == '1'"
>
and p.biz_org_code LIKE CONCAT (#{pointParams.bizOrgCode} ,'%')
and p.biz_org_code LIKE CONCAT (#{pointParams.bizOrgCode} ,'%')
</if>
</if>
</where>
</where>
...
@@ -126,10 +123,8 @@
...
@@ -126,10 +123,8 @@
<if
test=
"catalogId != null and catalogId != ''"
>
<if
test=
"catalogId != null and catalogId != ''"
>
and catalog_id = #{catalogId}
and catalog_id = #{catalogId}
</if>
</if>
<if
test=
"bizOrgCode != null and bizOrgCode != '' and isSccreen == '0'"
>
and biz_org_code = #{bizOrgCode}
<if
test=
"bizOrgCode != null and bizOrgCode != ''"
>
</if>
<if
test=
"bizOrgCode != null and bizOrgCode != '' and isSccreen == '1'"
>
and biz_org_code LIKE CONCAT (#{bizOrgCode} ,'%')
and biz_org_code LIKE CONCAT (#{bizOrgCode} ,'%')
</if>
</if>
</where>
</where>
...
...
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