Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
Y
yifu-mvp
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
fangxinjiang
yifu-mvp
Commits
ae31790d
Commit
ae31790d
authored
Jul 14, 2022
by
huyuchen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
户配置代码提交
parent
ed62538e
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
27 deletions
+4
-27
SysHouseHoldInfoServiceImpl.java
...yifu/social/service/impl/SysHouseHoldInfoServiceImpl.java
+4
-27
No files found.
yifu-social/yifu-social-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/social/service/impl/SysHouseHoldInfoServiceImpl.java
View file @
ae31790d
...
@@ -55,35 +55,12 @@ public class SysHouseHoldInfoServiceImpl extends ServiceImpl<SysHouseHoldInfoMap
...
@@ -55,35 +55,12 @@ public class SysHouseHoldInfoServiceImpl extends ServiceImpl<SysHouseHoldInfoMap
@Override
@Override
public
R
saveInfo
(
SysHouseHoldInfo
sysHouseHoldInfo
)
{
public
R
saveInfo
(
SysHouseHoldInfo
sysHouseHoldInfo
)
{
SysHouseHoldInfo
info
=
null
;
SysHouseHoldInfo
info
=
this
.
getOne
(
Wrappers
.<
SysHouseHoldInfo
>
query
().
lambda
()
if
(
null
!=
sysHouseHoldInfo
.
getTown
()){
.
eq
(
SysHouseHoldInfo:
:
getType
,
sysHouseHoldInfo
.
getType
())
info
=
this
.
getOne
(
Wrappers
.<
SysHouseHoldInfo
>
query
().
lambda
()
.
eq
(
SysHouseHoldInfo:
:
getName
,
sysHouseHoldInfo
.
getName
())
.
eq
(
SysHouseHoldInfo:
:
getType
,
info
.
getType
())
.
eq
(
SysHouseHoldInfo:
:
getName
,
info
.
getName
())
.
eq
(
SysHouseHoldInfo:
:
getTown
,
info
.
getTown
())
.
eq
(
SysHouseHoldInfo:
:
getOrganName
,
info
.
getOrganName
())
.
last
(
CommonConstants
.
LAST_ONE_SQL
));
.
last
(
CommonConstants
.
LAST_ONE_SQL
));
}
if
(
null
!=
sysHouseHoldInfo
.
getCity
()
&&
null
==
sysHouseHoldInfo
.
getTown
()){
info
=
this
.
getOne
(
Wrappers
.<
SysHouseHoldInfo
>
query
().
lambda
()
.
eq
(
SysHouseHoldInfo:
:
getType
,
info
.
getType
())
.
eq
(
SysHouseHoldInfo:
:
getName
,
info
.
getName
())
.
eq
(
SysHouseHoldInfo:
:
getCity
,
info
.
getCity
())
.
eq
(
SysHouseHoldInfo:
:
getOrganName
,
info
.
getOrganName
())
.
isNull
(
SysHouseHoldInfo:
:
getTown
)
.
last
(
CommonConstants
.
LAST_ONE_SQL
));
}
if
(
null
!=
sysHouseHoldInfo
.
getProvince
()
&&
null
==
sysHouseHoldInfo
.
getCity
()){
info
=
this
.
getOne
(
Wrappers
.<
SysHouseHoldInfo
>
query
().
lambda
()
.
eq
(
SysHouseHoldInfo:
:
getType
,
info
.
getType
())
.
eq
(
SysHouseHoldInfo:
:
getName
,
info
.
getName
())
.
eq
(
SysHouseHoldInfo:
:
getProvince
,
info
.
getProvince
())
.
eq
(
SysHouseHoldInfo:
:
getOrganName
,
info
.
getOrganName
())
.
isNull
(
SysHouseHoldInfo:
:
getCity
)
.
last
(
CommonConstants
.
LAST_ONE_SQL
));
}
if
(
null
!=
info
){
if
(
null
!=
info
){
return
R
.
failed
(
"对应
户、地市、所属机构
的配置已存在!"
);
return
R
.
failed
(
"对应
账户性质、户名
的配置已存在!"
);
}
}
baseMapper
.
insert
(
sysHouseHoldInfo
);
baseMapper
.
insert
(
sysHouseHoldInfo
);
return
R
.
ok
();
return
R
.
ok
();
...
...
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