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
9d95516c
Commit
9d95516c
authored
Mar 01, 2022
by
tangwei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改bug
parent
1ca3c709
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
6 deletions
+7
-6
OrgUsrServiceImpl.java
...oot/module/common/biz/service/impl/OrgUsrServiceImpl.java
+7
-6
No files found.
amos-boot-module/amos-boot-module-biz/amos-boot-module-common-biz/src/main/java/com/yeejoin/amos/boot/module/common/biz/service/impl/OrgUsrServiceImpl.java
View file @
9d95516c
package
com
.
yeejoin
.
amos
.
boot
.
module
.
common
.
biz
.
service
.
impl
;
package
com
.
yeejoin
.
amos
.
boot
.
module
.
common
.
biz
.
service
.
impl
;
import
ch.qos.logback.core.net.SyslogOutputStream
;
import
com.alibaba.fastjson.JSON
;
import
com.alibaba.fastjson.JSON
;
import
com.alibaba.fastjson.JSONObject
;
import
com.alibaba.fastjson.JSONObject
;
import
com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper
;
import
com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper
;
...
@@ -394,32 +395,32 @@ public class OrgUsrServiceImpl extends BaseService<OrgUsrDto, OrgUsr, OrgUsrMapp
...
@@ -394,32 +395,32 @@ public class OrgUsrServiceImpl extends BaseService<OrgUsrDto, OrgUsr, OrgUsrMapp
if
(!
ObjectUtils
.
isEmpty
(
req
.
get
(
"personNumber"
)))
{
if
(!
ObjectUtils
.
isEmpty
(
req
.
get
(
"personNumber"
)))
{
map
.
put
(
"personNumber"
,
req
.
get
(
"personNumber"
));
map
.
put
(
"personNumber"
,
req
.
get
(
"personNumber"
));
}
}
if
(
req
.
containsKey
(
"company"
)
&&
!
ObjectUtils
.
isEmpty
(
req
.
get
(
"company"
)))
{
if
(
req
!=
null
&&
req
.
containsKey
(
"company"
)
&&
!
ObjectUtils
.
isEmpty
(
req
.
get
(
"company"
)))
{
req
.
put
(
"company"
,
req
.
get
(
"company"
));
req
.
put
(
"company"
,
req
.
get
(
"company"
));
}
}
if
(
req
.
containsKey
(
"bizOrgCode"
)
&&
!
ObjectUtils
.
isEmpty
(
req
.
get
(
"bizOrgCode"
)))
{
if
(
req
!=
null
&&
req
.
containsKey
(
"bizOrgCode"
)
&&
!
ObjectUtils
.
isEmpty
(
req
.
get
(
"bizOrgCode"
)))
{
LambdaQueryWrapper
<
OrgUsr
>
query
=
new
LambdaQueryWrapper
<>();
LambdaQueryWrapper
<
OrgUsr
>
query
=
new
LambdaQueryWrapper
<>();
query
.
eq
(
OrgUsr:
:
getBizOrgCode
,
req
.
get
(
"bizOrgCode"
).
toString
());
query
.
eq
(
OrgUsr:
:
getBizOrgCode
,
req
.
get
(
"bizOrgCode"
).
toString
());
OrgUsr
orgUsr
=
this
.
getOne
(
query
);
OrgUsr
orgUsr
=
this
.
getOne
(
query
);
req
.
remove
(
"bizOrgCode"
);
req
.
remove
(
"bizOrgCode"
);
map
.
put
(
"company"
,
orgUsr
.
getSequenceNbr
().
toString
());
map
.
put
(
"company"
,
orgUsr
.
getSequenceNbr
().
toString
());
}
}
/* BUG2680 查询部门人员错误 传递参数类型不正确 修改为string 2021-09-14 陈召 开始 */
/* BUG2680 查询部门人员错误 传递参数类型不正确 修改为string 2021-09-14 陈召 开始 */
if
(
req
.
get
(
"parentId"
)
!=
null
&&
req
.
get
(
"parentId"
)
!=
""
)
{
if
(
!
req
.
isEmpty
()&&
req
.
containsKey
(
"parentId"
)
&&
req
.
get
(
"parentId"
)
!=
null
&&
req
.
get
(
"parentId"
)
!=
""
)
{
OrgUsr
parent
=
this
.
getById
(
req
.
get
(
"parentId"
).
toString
());
OrgUsr
parent
=
this
.
getById
(
req
.
get
(
"parentId"
).
toString
());
map
.
put
(
"bizOrgCode"
,
ObjectUtils
.
isEmpty
(
parent
)
?
null
:
parent
.
getBizOrgCode
());
map
.
put
(
"bizOrgCode"
,
ObjectUtils
.
isEmpty
(
parent
)
?
null
:
parent
.
getBizOrgCode
());
}
}
// 新加
// 新加
if
(
req
.
get
(
"OrgCode"
)
!=
null
&&
req
.
get
(
"OrgCode"
)
!=
""
)
{
if
(
!
req
.
isEmpty
()
&&
req
.
containsKey
(
"OrgCode"
)
&&
req
.
get
(
"OrgCode"
)
!=
null
&&
req
.
get
(
"OrgCode"
)
!=
""
)
{
map
.
put
(
"bizOrgCode"
,
req
.
get
(
"OrgCode"
));
map
.
put
(
"bizOrgCode"
,
req
.
get
(
"OrgCode"
));
req
.
remove
(
"OrgCode"
);
req
.
remove
(
"OrgCode"
);
}
}
/* BUG2680 查询部门人员错误 传递参数类型不正确 修改为string 2021-09-14 陈召 开始 */
/* BUG2680 查询部门人员错误 传递参数类型不正确 修改为string 2021-09-14 陈召 开始 */
if
(
req
.
containsKey
(
"amosOrgId"
)
&&
!
ObjectUtils
.
isEmpty
(
req
.
get
(
"amosOrgId"
)))
{
if
(
!
req
.
isEmpty
()&&
req
.
containsKey
(
"amosOrgId"
)
&&
!
ObjectUtils
.
isEmpty
(
req
.
get
(
"amosOrgId"
)))
{
map
.
put
(
"amosOrgCode"
,
req
.
get
(
"amosOrgId"
));
// 当时给前端给的key名字错了,以为是传Id过来,现在传名字,那就将错就错吧
map
.
put
(
"amosOrgCode"
,
req
.
get
(
"amosOrgId"
));
// 当时给前端给的key名字错了,以为是传Id过来,现在传名字,那就将错就错吧
}
}
...
...
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