Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
guns-vip
Overview
Overview
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
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
chenjunxiong
guns-vip
Commits
6010c9e9
Commit
6010c9e9
authored
Mar 31, 2019
by
fengshuonan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修复一个查询性别的bug
parent
54c70573
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
5 deletions
+6
-5
src/main/java/cn/stylefeng/guns/core/common/constant/factory/ConstantFactory.java
+6
-5
No files found.
src/main/java/cn/stylefeng/guns/core/common/constant/factory/ConstantFactory.java
View file @
6010c9e9
...
@@ -47,6 +47,7 @@ public class ConstantFactory implements IConstantFactory {
...
@@ -47,6 +47,7 @@ public class ConstantFactory implements IConstantFactory {
private
RoleMapper
roleMapper
=
SpringContextHolder
.
getBean
(
RoleMapper
.
class
);
private
RoleMapper
roleMapper
=
SpringContextHolder
.
getBean
(
RoleMapper
.
class
);
private
DeptMapper
deptMapper
=
SpringContextHolder
.
getBean
(
DeptMapper
.
class
);
private
DeptMapper
deptMapper
=
SpringContextHolder
.
getBean
(
DeptMapper
.
class
);
private
DictMapper
dictMapper
=
SpringContextHolder
.
getBean
(
DictMapper
.
class
);
private
DictMapper
dictMapper
=
SpringContextHolder
.
getBean
(
DictMapper
.
class
);
private
DictTypeMapper
dictTypeMapper
=
SpringContextHolder
.
getBean
(
DictTypeMapper
.
class
);
private
UserMapper
userMapper
=
SpringContextHolder
.
getBean
(
UserMapper
.
class
);
private
UserMapper
userMapper
=
SpringContextHolder
.
getBean
(
UserMapper
.
class
);
private
MenuMapper
menuMapper
=
SpringContextHolder
.
getBean
(
MenuMapper
.
class
);
private
MenuMapper
menuMapper
=
SpringContextHolder
.
getBean
(
MenuMapper
.
class
);
private
NoticeMapper
noticeMapper
=
SpringContextHolder
.
getBean
(
NoticeMapper
.
class
);
private
NoticeMapper
noticeMapper
=
SpringContextHolder
.
getBean
(
NoticeMapper
.
class
);
...
@@ -244,15 +245,15 @@ public class ConstantFactory implements IConstantFactory {
...
@@ -244,15 +245,15 @@ public class ConstantFactory implements IConstantFactory {
@Override
@Override
public
String
getDictsByName
(
String
name
,
String
code
)
{
public
String
getDictsByName
(
String
name
,
String
code
)
{
Dict
temp
=
new
Dict
();
Dict
Type
temp
=
new
DictType
();
temp
.
setName
(
name
);
temp
.
setName
(
name
);
QueryWrapper
<
Dict
>
queryWrapper
=
new
QueryWrapper
<>(
temp
);
QueryWrapper
<
Dict
Type
>
queryWrapper
=
new
QueryWrapper
<>(
temp
);
Dict
dict
=
dict
Mapper
.
selectOne
(
queryWrapper
);
Dict
Type
dictType
=
dictType
Mapper
.
selectOne
(
queryWrapper
);
if
(
dict
==
null
)
{
if
(
dict
Type
==
null
)
{
return
""
;
return
""
;
}
else
{
}
else
{
QueryWrapper
<
Dict
>
wrapper
=
new
QueryWrapper
<>();
QueryWrapper
<
Dict
>
wrapper
=
new
QueryWrapper
<>();
wrapper
=
wrapper
.
eq
(
"
PID"
,
dict
.
getDict
Id
());
wrapper
=
wrapper
.
eq
(
"
dict_type_id"
,
dictType
.
getDictType
Id
());
List
<
Dict
>
dicts
=
dictMapper
.
selectList
(
wrapper
);
List
<
Dict
>
dicts
=
dictMapper
.
selectList
(
wrapper
);
for
(
Dict
item
:
dicts
)
{
for
(
Dict
item
:
dicts
)
{
if
(
item
.
getCode
()
!=
null
&&
item
.
getCode
().
equals
(
code
))
{
if
(
item
.
getCode
()
!=
null
&&
item
.
getCode
().
equals
(
code
))
{
...
...
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