Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
D
data_management_system
Project
Project
Details
Activity
Releases
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
张伯涛
data_management_system
Commits
bb3a9663
Commit
bb3a9663
authored
Nov 29, 2022
by
zhuangxinwei
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/master' into master
parents
af6fdcb0
cae31395
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
9 deletions
+17
-9
FkqkServiceImpl.java
...n/java/com/ruoyi/system/service/impl/FkqkServiceImpl.java
+17
-9
No files found.
ruoyi-system/src/main/java/com/ruoyi/system/service/impl/FkqkServiceImpl.java
View file @
bb3a9663
...
@@ -9,6 +9,7 @@ import java.util.List;
...
@@ -9,6 +9,7 @@ import java.util.List;
import
com.ruoyi.common.core.domain.entity.SysDictData
;
import
com.ruoyi.common.core.domain.entity.SysDictData
;
import
com.ruoyi.common.exception.ServiceException
;
import
com.ruoyi.common.exception.ServiceException
;
import
com.ruoyi.common.utils.DataUtils
;
import
com.ruoyi.common.utils.DateUtils
;
import
com.ruoyi.common.utils.DateUtils
;
import
com.ruoyi.common.utils.StringUtils
;
import
com.ruoyi.common.utils.StringUtils
;
import
com.ruoyi.common.utils.poi.ExcelUtil
;
import
com.ruoyi.common.utils.poi.ExcelUtil
;
...
@@ -71,7 +72,10 @@ public class FkqkServiceImpl implements IFkqkService
...
@@ -71,7 +72,10 @@ public class FkqkServiceImpl implements IFkqkService
@Override
@Override
public
int
insertFkqk
(
Fkqk
fkqk
)
public
int
insertFkqk
(
Fkqk
fkqk
)
{
{
fkqk
.
setCreateBy
(
String
.
valueOf
(
SecurityUtils
.
getUserId
()));
String
createBy
=
DataUtils
.
getValue
(
fkqk
.
getArea
(),
fkqk
.
getStreet
(),
fkqk
.
getCommunity
());
if
(
createBy
.
equals
(
"null"
))
throw
new
ServiceException
(
"所选居住地、街道、社区不存在"
);
fkqk
.
setCreateBy
(
createBy
);
fkqk
.
setCreateTime
(
DateUtils
.
getNowDate
());
fkqk
.
setCreateTime
(
DateUtils
.
getNowDate
());
return
fkqkMapper
.
insertFkqk
(
fkqk
);
return
fkqkMapper
.
insertFkqk
(
fkqk
);
}
}
...
@@ -85,6 +89,10 @@ public class FkqkServiceImpl implements IFkqkService
...
@@ -85,6 +89,10 @@ public class FkqkServiceImpl implements IFkqkService
@Override
@Override
public
int
updateFkqk
(
Fkqk
fkqk
)
public
int
updateFkqk
(
Fkqk
fkqk
)
{
{
String
createBy
=
DataUtils
.
getValue
(
fkqk
.
getArea
(),
fkqk
.
getStreet
(),
fkqk
.
getCommunity
());
if
(
createBy
.
equals
(
"null"
))
throw
new
ServiceException
(
"所选居住地、街道、社区不存在"
);
fkqk
.
setCreateBy
(
createBy
);
fkqk
.
setUpdateTime
(
DateUtils
.
getNowDate
());
fkqk
.
setUpdateTime
(
DateUtils
.
getNowDate
());
return
fkqkMapper
.
updateFkqk
(
fkqk
);
return
fkqkMapper
.
updateFkqk
(
fkqk
);
}
}
...
...
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