Commit db39f88b by libin

案件信息查询条件修改警情编号为接警单编号

parent b87711ce
...@@ -41,8 +41,8 @@ public class XxcxController { ...@@ -41,8 +41,8 @@ public class XxcxController {
TbStAsjView tbStAsjView1=new TbStAsjView(); TbStAsjView tbStAsjView1=new TbStAsjView();
try { try {
String asjbh = tbStAsjView.getAsjbh(); String asjbh = tbStAsjView.getAsjbh();
String jqbh = tbStAsjView.getJqbh(); String jjdbh = tbStAsjView.getJjdbh();
if(StringUtils.isEmpty(asjbh) && StringUtils.isEmpty(jqbh)){ if(StringUtils.isEmpty(asjbh) && StringUtils.isEmpty(jjdbh)){
reslt.setData(null); reslt.setData(null);
reslt.setMsg("查询参数为空,不能查询!"); reslt.setMsg("查询参数为空,不能查询!");
reslt.setStatus("fail"); reslt.setStatus("fail");
...@@ -50,8 +50,8 @@ public class XxcxController { ...@@ -50,8 +50,8 @@ public class XxcxController {
} }
if(!StringUtils.isEmpty(asjbh)){ if(!StringUtils.isEmpty(asjbh)){
tbStAsjView1 = xxcxService.queryTbStAsjByAsjbh(asjbh); tbStAsjView1 = xxcxService.queryTbStAsjByAsjbh(asjbh);
}else if(!StringUtils.isEmpty(jqbh)){ }else if(!StringUtils.isEmpty(jjdbh)){
tbStAsjView1 = xxcxService.queryTbStAsjByJqbh(jqbh); tbStAsjView1 = xxcxService.queryTbStAsjByJjdbh(jjdbh);
} }
reslt.setData(tbStAsjView1 ); reslt.setData(tbStAsjView1 );
reslt.setMsg("案件信息查询成功"); reslt.setMsg("案件信息查询成功");
......
...@@ -86,6 +86,9 @@ public class TbStAsjView implements Serializable { ...@@ -86,6 +86,9 @@ public class TbStAsjView implements Serializable {
//损失折扣 //损失折扣
private String sszk; private String sszk;
//接警单编号
private String jjdbh;
public String getAsjbh() { public String getAsjbh() {
return asjbh; return asjbh;
} }
...@@ -285,4 +288,12 @@ public class TbStAsjView implements Serializable { ...@@ -285,4 +288,12 @@ public class TbStAsjView implements Serializable {
public void setAsjlydm(String asjlydm) { public void setAsjlydm(String asjlydm) {
this.asjlydm = asjlydm; this.asjlydm = asjlydm;
} }
public String getJjdbh() {
return jjdbh;
}
public void setJjdbh(String jjdbh) {
this.jjdbh = jjdbh;
}
} }
...@@ -9,7 +9,7 @@ public interface XxcxService { ...@@ -9,7 +9,7 @@ public interface XxcxService {
public List<TbStAsjView> queryTbStAsj(String asjbh,String sfzh); public List<TbStAsjView> queryTbStAsj(String asjbh,String sfzh);
public TbStAsjView queryTbStAsjByAsjbh(String asjbh); public TbStAsjView queryTbStAsjByAsjbh(String asjbh);
TbStAsjView queryTbStAsjByJqbh(String jqbh); TbStAsjView queryTbStAsjByJjdbh(String jjdbh);
List<TbXwRybhView> queryTbXwRybh(TbXwRybhView param); List<TbXwRybhView> queryTbXwRybh(TbXwRybhView param);
......
...@@ -52,16 +52,16 @@ public class XxcxServiceImpl implements XxcxService { ...@@ -52,16 +52,16 @@ public class XxcxServiceImpl implements XxcxService {
tbStAsjView.setZczjZxsj(tbStAsj.getZczjZxsj01()); tbStAsjView.setZczjZxsj(tbStAsj.getZczjZxsj01());
tbStAsjView.setAsjlydm(tbStAsj.getAsjlydm()); tbStAsjView.setAsjlydm(tbStAsj.getAsjlydm());
tbStAsjView.setSsjzrmby(tbStAsj.getSsjzrmby()); tbStAsjView.setSsjzrmby(tbStAsj.getSsjzrmby());
tbStAsjView.setJqbh(tbStAsj.getJjbh()); tbStAsjView.setJjdbh(tbStAsj.getJjbh());
} }
return tbStAsjView; return tbStAsjView;
} }
@Override @Override
public TbStAsjView queryTbStAsjByJqbh(String jqbh) { public TbStAsjView queryTbStAsjByJjdbh(String jjdbh) {
TbStAsjView tbStAsjView = null; TbStAsjView tbStAsjView = null;
TbStAsj param = new TbStAsj(); TbStAsj param = new TbStAsj();
param.setJjbh(jqbh); param.setJjbh(jjdbh);
TbStAsj tbStAsj = xxcxDao.queryTbStAsj(param); TbStAsj tbStAsj = xxcxDao.queryTbStAsj(param);
if(tbStAsj!=null){ if(tbStAsj!=null){
tbStAsjView = new TbStAsjView(); tbStAsjView = new TbStAsjView();
...@@ -83,7 +83,7 @@ public class XxcxServiceImpl implements XxcxService { ...@@ -83,7 +83,7 @@ public class XxcxServiceImpl implements XxcxService {
tbStAsjView.setZczjZxsj(tbStAsj.getZczjZxsj01()); tbStAsjView.setZczjZxsj(tbStAsj.getZczjZxsj01());
tbStAsjView.setAsjlydm(tbStAsj.getAsjlydm()); tbStAsjView.setAsjlydm(tbStAsj.getAsjlydm());
tbStAsjView.setSsjzrmby(tbStAsj.getSsjzrmby()); tbStAsjView.setSsjzrmby(tbStAsj.getSsjzrmby());
tbStAsjView.setJqbh(tbStAsj.getJjbh()); tbStAsjView.setJjdbh(tbStAsj.getJjbh());
} }
return tbStAsjView; return tbStAsjView;
} }
......
...@@ -2,30 +2,32 @@ ...@@ -2,30 +2,32 @@
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.founder.dao.XxcxDao"> <mapper namespace="com.founder.dao.XxcxDao">
<select id="queryTbStAsj" parameterType="com.founder.model.TbStAsj" resultType="com.founder.model.TbStAsj"> <select id="queryTbStAsj" parameterType="com.founder.model.TbStAsj" resultType="com.founder.model.TbStAsj">
select ASJBH as asjbh, select t.ASJBH as asjbh,
JJBH as jjbh, t.ASJLYDM as asjlydm,
ASJLYDM as asjlydm, t.ZCJDDM as zcjddm,
ZCJDDM as zcjddm, t.AJLBDM as ajlbdm,
AJLBDM as ajlbdm, t.AJMC as ajmc,
AJMC as ajmc, t.XXLYMS as xxlyms,
XXLYMS as xxlyms, t.ASJFSSJ_ASJFSKSSJ as asjfssjAsjfskssj,
ASJFSSJ_ASJFSKSSJ as asjfssjAsjfskssj, t.ASJFSSJ_ASJFSJSSJ as asjfssjAsjfsjssj,
ASJFSSJ_ASJFSJSSJ as asjfssjAsjfsjssj, t.ASJFSDD_XZQHDM as asjfsddXzqhdm,
ASJFSDD_XZQHDM as asjfsddXzqhdm, t.ASJFSDD_DZMC as asjfsddDzmc,
ASJFSDD_DZMC as asjfsddDzmc, t.SSJZRMBY as ssjzrmby,
SSJZRMBY as ssjzrmby, t.SLSJ as slsj,
SLSJ as slsj, t.LARQ as larq,
LARQ as larq, t.LADW_GAJGJGDM as ladwGajgjgdm,
LADW_GAJGJGDM as ladwGajgjgdm, t.LADW_GAJGMC as ladwGajgmc,
LADW_GAJGMC as ladwGajgmc, t.ZCZJ_ZXSJ01 as zczjZxsj01,
ZCZJ_ZXSJ01 as zczjZxsj01, t.GXSJ as gxsj,
GXSJ as gxsj, t.JYAQ as jyaq,
JYAQ as jyaq jj.jjdbh as jjbh
from TB_ST_ASJ from TB_ST_ASJ t
left join TB_M_ZHZX_JJXX jj
on t.asjbh = jj.asjbh
where 1=1 where 1=1
and xxsc_pdbz = '0' and t.xxsc_pdbz = '0'
<if test="asjbh != null and asjbh != ''"> AND ASJBH = #{asjbh , jdbcType=VARCHAR } </if> <if test="asjbh != null and asjbh != ''"> AND t.ASJBH = #{asjbh , jdbcType=VARCHAR } </if>
<if test="jjbh != null and jjbh != ''"> AND JJBH = #{jjbh , jdbcType=VARCHAR } </if> <if test="jjbh != null and jjbh != ''"> AND jj.jjdbh = #{jjbh , jdbcType=VARCHAR } </if>
</select> </select>
<select id="queryTbXwRybh" resultType="com.founder.model.TbXwRybh" parameterType="com.founder.model.TbXwRybhView"> <select id="queryTbXwRybh" resultType="com.founder.model.TbXwRybh" parameterType="com.founder.model.TbXwRybhView">
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment