Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
X
xzxt-api-report
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
雷紫添
xzxt-api-report
Commits
db39f88b
Commit
db39f88b
authored
Feb 24, 2021
by
libin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
案件信息查询条件修改警情编号为接警单编号
parent
b87711ce
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
45 additions
and
32 deletions
+45
-32
src/main/java/com/founder/controller/XxcxController.java
+4
-4
src/main/java/com/founder/model/TbStAsjView.java
+11
-0
src/main/java/com/founder/service/XxcxService.java
+1
-1
src/main/java/com/founder/service/impl/XxcxServiceImpl.java
+4
-4
src/main/resources/mybatis/mapper/XxcxDaoMapper.xml
+25
-23
No files found.
src/main/java/com/founder/controller/XxcxController.java
View file @
db39f88b
...
...
@@ -41,8 +41,8 @@ public class XxcxController {
TbStAsjView
tbStAsjView1
=
new
TbStAsjView
();
try
{
String
asjbh
=
tbStAsjView
.
getAsjbh
();
String
j
qbh
=
tbStAsjView
.
getJq
bh
();
if
(
StringUtils
.
isEmpty
(
asjbh
)
&&
StringUtils
.
isEmpty
(
j
q
bh
)){
String
j
jdbh
=
tbStAsjView
.
getJjd
bh
();
if
(
StringUtils
.
isEmpty
(
asjbh
)
&&
StringUtils
.
isEmpty
(
j
jd
bh
)){
reslt
.
setData
(
null
);
reslt
.
setMsg
(
"查询参数为空,不能查询!"
);
reslt
.
setStatus
(
"fail"
);
...
...
@@ -50,8 +50,8 @@ public class XxcxController {
}
if
(!
StringUtils
.
isEmpty
(
asjbh
)){
tbStAsjView1
=
xxcxService
.
queryTbStAsjByAsjbh
(
asjbh
);
}
else
if
(!
StringUtils
.
isEmpty
(
j
q
bh
)){
tbStAsjView1
=
xxcxService
.
queryTbStAsjByJ
qbh
(
jq
bh
);
}
else
if
(!
StringUtils
.
isEmpty
(
j
jd
bh
)){
tbStAsjView1
=
xxcxService
.
queryTbStAsjByJ
jdbh
(
jjd
bh
);
}
reslt
.
setData
(
tbStAsjView1
);
reslt
.
setMsg
(
"案件信息查询成功"
);
...
...
src/main/java/com/founder/model/TbStAsjView.java
View file @
db39f88b
...
...
@@ -86,6 +86,9 @@ public class TbStAsjView implements Serializable {
//损失折扣
private
String
sszk
;
//接警单编号
private
String
jjdbh
;
public
String
getAsjbh
()
{
return
asjbh
;
}
...
...
@@ -285,4 +288,12 @@ public class TbStAsjView implements Serializable {
public
void
setAsjlydm
(
String
asjlydm
)
{
this
.
asjlydm
=
asjlydm
;
}
public
String
getJjdbh
()
{
return
jjdbh
;
}
public
void
setJjdbh
(
String
jjdbh
)
{
this
.
jjdbh
=
jjdbh
;
}
}
src/main/java/com/founder/service/XxcxService.java
View file @
db39f88b
...
...
@@ -9,7 +9,7 @@ public interface XxcxService {
public
List
<
TbStAsjView
>
queryTbStAsj
(
String
asjbh
,
String
sfzh
);
public
TbStAsjView
queryTbStAsjByAsjbh
(
String
asjbh
);
TbStAsjView
queryTbStAsjByJ
qbh
(
String
jq
bh
);
TbStAsjView
queryTbStAsjByJ
jdbh
(
String
jjd
bh
);
List
<
TbXwRybhView
>
queryTbXwRybh
(
TbXwRybhView
param
);
...
...
src/main/java/com/founder/service/impl/XxcxServiceImpl.java
View file @
db39f88b
...
...
@@ -52,16 +52,16 @@ public class XxcxServiceImpl implements XxcxService {
tbStAsjView
.
setZczjZxsj
(
tbStAsj
.
getZczjZxsj01
());
tbStAsjView
.
setAsjlydm
(
tbStAsj
.
getAsjlydm
());
tbStAsjView
.
setSsjzrmby
(
tbStAsj
.
getSsjzrmby
());
tbStAsjView
.
setJ
q
bh
(
tbStAsj
.
getJjbh
());
tbStAsjView
.
setJ
jd
bh
(
tbStAsj
.
getJjbh
());
}
return
tbStAsjView
;
}
@Override
public
TbStAsjView
queryTbStAsjByJ
qbh
(
String
jq
bh
)
{
public
TbStAsjView
queryTbStAsjByJ
jdbh
(
String
jjd
bh
)
{
TbStAsjView
tbStAsjView
=
null
;
TbStAsj
param
=
new
TbStAsj
();
param
.
setJjbh
(
j
q
bh
);
param
.
setJjbh
(
j
jd
bh
);
TbStAsj
tbStAsj
=
xxcxDao
.
queryTbStAsj
(
param
);
if
(
tbStAsj
!=
null
){
tbStAsjView
=
new
TbStAsjView
();
...
...
@@ -83,7 +83,7 @@ public class XxcxServiceImpl implements XxcxService {
tbStAsjView
.
setZczjZxsj
(
tbStAsj
.
getZczjZxsj01
());
tbStAsjView
.
setAsjlydm
(
tbStAsj
.
getAsjlydm
());
tbStAsjView
.
setSsjzrmby
(
tbStAsj
.
getSsjzrmby
());
tbStAsjView
.
setJ
q
bh
(
tbStAsj
.
getJjbh
());
tbStAsjView
.
setJ
jd
bh
(
tbStAsj
.
getJjbh
());
}
return
tbStAsjView
;
}
...
...
src/main/resources/mybatis/mapper/XxcxDaoMapper.xml
View file @
db39f88b
...
...
@@ -2,30 +2,32 @@
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper
namespace=
"com.founder.dao.XxcxDao"
>
<select
id=
"queryTbStAsj"
parameterType=
"com.founder.model.TbStAsj"
resultType=
"com.founder.model.TbStAsj"
>
select ASJBH as asjbh,
JJBH as jjbh,
ASJLYDM as asjlydm,
ZCJDDM as zcjddm,
AJLBDM as ajlbdm,
AJMC as ajmc,
XXLYMS as xxlyms,
ASJFSSJ_ASJFSKSSJ as asjfssjAsjfskssj,
ASJFSSJ_ASJFSJSSJ as asjfssjAsjfsjssj,
ASJFSDD_XZQHDM as asjfsddXzqhdm,
ASJFSDD_DZMC as asjfsddDzmc,
SSJZRMBY as ssjzrmby,
SLSJ as slsj,
LARQ as larq,
LADW_GAJGJGDM as ladwGajgjgdm,
LADW_GAJGMC as ladwGajgmc,
ZCZJ_ZXSJ01 as zczjZxsj01,
GXSJ as gxsj,
JYAQ as jyaq
from TB_ST_ASJ
select t.ASJBH as asjbh,
t.ASJLYDM as asjlydm,
t.ZCJDDM as zcjddm,
t.AJLBDM as ajlbdm,
t.AJMC as ajmc,
t.XXLYMS as xxlyms,
t.ASJFSSJ_ASJFSKSSJ as asjfssjAsjfskssj,
t.ASJFSSJ_ASJFSJSSJ as asjfssjAsjfsjssj,
t.ASJFSDD_XZQHDM as asjfsddXzqhdm,
t.ASJFSDD_DZMC as asjfsddDzmc,
t.SSJZRMBY as ssjzrmby,
t.SLSJ as slsj,
t.LARQ as larq,
t.LADW_GAJGJGDM as ladwGajgjgdm,
t.LADW_GAJGMC as ladwGajgmc,
t.ZCZJ_ZXSJ01 as zczjZxsj01,
t.GXSJ as gxsj,
t.JYAQ as jyaq,
jj.jjdbh as jjbh
from TB_ST_ASJ t
left join TB_M_ZHZX_JJXX jj
on t.asjbh = jj.asjbh
where 1=1
and xxsc_pdbz = '0'
<if
test=
"asjbh != null and asjbh != ''"
>
AND ASJBH = #{asjbh , jdbcType=VARCHAR }
</if>
<if
test=
"jjbh != null and jjbh != ''"
>
AND
JJBH
= #{jjbh , jdbcType=VARCHAR }
</if>
and
t.
xxsc_pdbz = '0'
<if
test=
"asjbh != null and asjbh != ''"
>
AND
t.
ASJBH = #{asjbh , jdbcType=VARCHAR }
</if>
<if
test=
"jjbh != null and jjbh != ''"
>
AND
jj.jjdbh
= #{jjbh , jdbcType=VARCHAR }
</if>
</select>
<select
id=
"queryTbXwRybh"
resultType=
"com.founder.model.TbXwRybh"
parameterType=
"com.founder.model.TbXwRybhView"
>
...
...
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