Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
B
bigdatainterservice
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
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
曹鹏
bigdatainterservice
Commits
dd92c13e
Commit
dd92c13e
authored
Apr 12, 2019
by
chang_chao@founder.com.cn
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
新增违法犯罪可疑线索
parent
9fef9e74
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
8 deletions
+11
-8
src/main/java/com/founder/interservice/wffzkyxs/controller/WffzkyxsController.java
+1
-3
src/main/java/com/founder/interservice/wffzkyxs/service/WffzkyxsService.java
+2
-1
src/main/java/com/founder/interservice/wffzkyxs/service/impl/WffzkyxsServiceImpl.java
+8
-4
No files found.
src/main/java/com/founder/interservice/wffzkyxs/controller/WffzkyxsController.java
View file @
dd92c13e
...
...
@@ -108,10 +108,8 @@ public class WffzkyxsController {
@ResponseBody
public
ResultVO
toDelWffzkyxs
(
String
xxzjbhs
){
ResultVO
resultVO
=
null
;
User
user
=
null
;
try
{
boolean
flag
=
wffzkyxsService
.
delWffzkyxs
(
xxzjbhs
);
resultVO
=
ResultVOUtil
.
success
(
flag
);
resultVO
=
wffzkyxsService
.
delWffzkyxs
(
xxzjbhs
);
}
catch
(
InterServiceException
e
){
e
.
printStackTrace
();
resultVO
=
ResultVOUtil
.
error
(
e
.
getCode
(),
e
.
getMessage
());
...
...
src/main/java/com/founder/interservice/wffzkyxs/service/WffzkyxsService.java
View file @
dd92c13e
package
com
.
founder
.
interservice
.
wffzkyxs
.
service
;
import
com.founder.interservice.VO.ResultVO
;
import
com.founder.interservice.exception.InterServiceException
;
import
com.founder.interservice.wffzkyxs.model.TbStWffzkyxs
;
import
org.springframework.stereotype.Service
;
...
...
@@ -13,7 +14,7 @@ public interface WffzkyxsService {
boolean
updateWffzkyxs
(
TbStWffzkyxs
tbStWffzkyxs
)
throws
InterServiceException
;
boolean
delWffzkyxs
(
String
xxzjbh
)
throws
InterServiceException
;
ResultVO
delWffzkyxs
(
String
xxzjbh
)
throws
InterServiceException
;
TbStWffzkyxs
getByXxzjbh
(
String
xxzjbh
)
throws
InterServiceException
;
}
src/main/java/com/founder/interservice/wffzkyxs/service/impl/WffzkyxsServiceImpl.java
View file @
dd92c13e
package
com
.
founder
.
interservice
.
wffzkyxs
.
service
.
impl
;
import
com.founder.interservice.VO.ResultVO
;
import
com.founder.interservice.enums.ResultEnum
;
import
com.founder.interservice.exception.InterServiceException
;
import
com.founder.interservice.mapper.xzxt.WffzkyxsMapper
;
import
com.founder.interservice.util.ResultVOUtil
;
import
com.founder.interservice.wffzkyxs.model.TbStWffzkyxs
;
import
com.founder.interservice.wffzkyxs.service.WffzkyxsService
;
import
org.apache.commons.collections.CollectionUtils
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Service
;
import
org.springframework.transaction.annotation.Transactional
;
import
java.util.ArrayList
;
import
java.util.List
;
...
...
@@ -52,8 +55,9 @@ public class WffzkyxsServiceImpl implements WffzkyxsService{
}
@Override
public
boolean
delWffzkyxs
(
String
xxzjbh
)
throws
InterServiceException
{
boolean
flag
=
false
;
@Transactional
public
ResultVO
delWffzkyxs
(
String
xxzjbh
)
throws
InterServiceException
{
ResultVO
resultVO
=
ResultVOUtil
.
error
(
ResultEnum
.
RESULT_ERROR
.
getCode
(),
ResultEnum
.
RESULT_ERROR
.
getMessage
());
try
{
List
<
String
>
xxzjbhList
=
new
ArrayList
<>();
if
(
xxzjbh
!=
null
&&
!
xxzjbh
.
isEmpty
()){
...
...
@@ -62,13 +66,13 @@ public class WffzkyxsServiceImpl implements WffzkyxsService{
}
Integer
count
=
wffzkyxsMapper
.
delWffzkyxs
(
xxzjbhList
);
if
(
count
>
0
){
flag
=
true
;
resultVO
=
ResultVOUtil
.
success
(
true
)
;
}
}
catch
(
Exception
e
){
e
.
printStackTrace
();
throw
new
InterServiceException
(
ResultEnum
.
DB_UPDATEERROR
.
getCode
(),
ResultEnum
.
DB_UPDATEERROR
.
getMessage
(),
e
);
}
return
flag
;
return
resultVO
;
}
@Override
...
...
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