Commit 7550fff1 by yangyang

西藏主题研判提交(西藏)

parent a3cdab49
...@@ -953,7 +953,7 @@ public class KshSlServiceController { ...@@ -953,7 +953,7 @@ public class KshSlServiceController {
} }
} else if (type.equals("04")) { } else if (type.equals("04")) {
try { try {
//手机号能够了查到身份证号还有车牌号 //手机号能够了查到身份证号
Query queryPhone = new Query(); Query queryPhone = new Query();
queryPhone.addCriteria(Criteria.where("cote").is(value)); queryPhone.addCriteria(Criteria.where("cote").is(value));
//设置分页 //设置分页
...@@ -965,13 +965,6 @@ public class KshSlServiceController { ...@@ -965,13 +965,6 @@ public class KshSlServiceController {
mobilereg.setFitm(getISODateStr(mobilereg.getFitm())); mobilereg.setFitm(getISODateStr(mobilereg.getFitm()));
mobilereg.setLatm(getISODateStr(mobilereg.getLatm())); mobilereg.setLatm(getISODateStr(mobilereg.getLatm()));
mobilereg.setImtm(getISODateStr(mobilereg.getImtm())); mobilereg.setImtm(getISODateStr(mobilereg.getImtm()));
}
}
if (mobileregList != null && mobileregList.size() > 0) {
for (Mobilereg mobilereg : mobileregList) {
mobilereg.setFitm(getISODateStr(mobilereg.getFitm()));
mobilereg.setLatm(getISODateStr(mobilereg.getLatm()));
mobilereg.setImtm(getISODateStr(mobilereg.getImtm()));
HnTbStRygxDTO node = node(mobilereg.getCecoS(), mobilereg.getCecoS(), "idcard", null, null); HnTbStRygxDTO node = node(mobilereg.getCecoS(), mobilereg.getCecoS(), "idcard", null, null);
nodes.add(node); nodes.add(node);
sumup.add(mobilereg.getCecoS()); sumup.add(mobilereg.getCecoS());
......
...@@ -12,9 +12,6 @@ import java.util.Map; ...@@ -12,9 +12,6 @@ import java.util.Map;
@Mapper @Mapper
@Component @Component
public interface ZtypMapper{ public interface ZtypMapper{
ZpajxxEntity getZpAsjBshxx(String asjbh);
String getZpAsjbzxx(String asjbh); String getZpAsjbzxx(String asjbh);
List<ZpajxxEntity> getZpajxx(ZpajxxModel model); List<ZpajxxEntity> getZpajxx(ZpajxxModel model);
......
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<!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.publicapi.mapper.mysqlMapper.ZtypMapper"> <mapper namespace="com.founder.publicapi.mapper.mysqlMapper.ZtypMapper">
<select id="getZpAsjBshxx" parameterType="java.lang.String"
resultType="com.founder.commonutils.model.newPublicEntity.ztypEntity.ZpajxxEntity">
select
group_concat(case ASJXGFWBZH_FWBZH_FWBZHLBDM when '01' then h.ASJXGFWBZH_FWBZH end) mobile,
group_concat(case ASJXGFWBZH_FWBZH_FWBZHLBDM when '04' then h.ASJXGFWBZH_FWBZH end) yhkh,
group_concat(case ASJXGFWBZH_FWBZH_FWBZHLBDM when '13' then h.ASJXGFWBZH_FWBZH end) wx,
group_concat(case ASJXGFWBZH_FWBZH_FWBZHLBDM when '16' then h.ASJXGFWBZH_FWBZH end) personid
from tb_xw_asjxgfwbzh h
where h.asjbh = #{ asjbh,jdbcType= VARCHAR }
</select>
<select id="getZpAsjbzxx" parameterType="java.lang.String" <select id="getZpAsjbzxx" parameterType="java.lang.String"
resultType="java.lang.String"> resultType="java.lang.String">
select select
...@@ -22,9 +12,14 @@ ...@@ -22,9 +12,14 @@
resultType="com.founder.commonutils.model.newPublicEntity.ztypEntity.ZpajxxEntity"> resultType="com.founder.commonutils.model.newPublicEntity.ztypEntity.ZpajxxEntity">
select a.asjbh asjbh, select a.asjbh asjbh,
a.ajmc ajmc, a.ajmc ajmc,
(select name from sys_dictitem where groupid = 'CODE_AJXZ' and code = a.ZATZ_JYQK) zatzJyqk (select name from sys_dictitem where groupid = 'CODE_AJXZ' and code = a.ZATZ_JYQK) zatzJyqk,
from tb_st_asj a group_concat(case ASJXGFWBZH_FWBZH_FWBZHLBDM when '01' then h.ASJXGFWBZH_FWBZH end) mobile,
where a.AJLBDM = '05000300' group_concat(case ASJXGFWBZH_FWBZH_FWBZHLBDM when '04' then h.ASJXGFWBZH_FWBZH end) yhkh,
group_concat(case ASJXGFWBZH_FWBZH_FWBZHLBDM when '13' then h.ASJXGFWBZH_FWBZH end) wx,
group_concat(case ASJXGFWBZH_FWBZH_FWBZHLBDM when '16' then h.ASJXGFWBZH_FWBZH end) personid
from tb_st_asj a ,tb_xw_asjxgfwbzh h
where a.asjbh = h.asjbh
and a.AJLBDM = '05000300'
and a.ZATZ_JYQK not like '0500030002%' and a.ZATZ_JYQK not like '0500030002%'
and a.XXSC_PDBZ = 0 and a.XXSC_PDBZ = 0
<if test="asjbh != null and asjbh != '' "> <if test="asjbh != null and asjbh != '' ">
...@@ -33,14 +28,16 @@ ...@@ -33,14 +28,16 @@
<if test="ajmc != null and ajmc != '' "> <if test="ajmc != null and ajmc != '' ">
and a.ajmc like concat('%', #{ajmc} ,'%') and a.ajmc like concat('%', #{ajmc} ,'%')
</if> </if>
group by a.asjbh, a.ajmc, a.ZATZ_JYQK
limit #{page}, #{limit} limit #{page}, #{limit}
</select> </select>
<select id="getZpajxxTotal" parameterType="com.founder.commonutils.model.newPublicEntity.ztypEntity.ZpajxxModel" <select id="getZpajxxTotal" parameterType="com.founder.commonutils.model.newPublicEntity.ztypEntity.ZpajxxModel"
resultType="java.lang.Integer"> resultType="java.lang.Integer">
select count(*) select count(distinct a.asjbh)
from tb_st_asj a from tb_st_asj a ,tb_xw_asjxgfwbzh h
where a.AJLBDM = '05000300' and a.ZATZ_JYQK not like '0500030002%' and a.XXSC_PDBZ = 0 where a.asjbh = h.asjbh
and a.AJLBDM = '05000300' and a.ZATZ_JYQK not like '0500030002%' and a.XXSC_PDBZ = 0
<if test="asjbh != null and asjbh != '' "> <if test="asjbh != null and asjbh != '' ">
and a.asjbh like concat('%', #{asjbh} ,'%') and a.asjbh like concat('%', #{asjbh} ,'%')
</if> </if>
......
...@@ -38,38 +38,11 @@ public class ZtypServiceImpl implements ZtypService { ...@@ -38,38 +38,11 @@ public class ZtypServiceImpl implements ZtypService {
@Override @Override
public List<ZpajxxEntity> getZpajxx(ZpajxxModel model) { public List<ZpajxxEntity> getZpajxx(ZpajxxModel model) {
// 取出分页的案件信息 // 取出分页的案件信息
List<ZpajxxEntity> getZpajxx = ztypMapper.getZpajxx(model); List<ZpajxxEntity> getZpajxx = ztypMapper.getZpajxx(model);
getZpajxx.stream().forEach(p->{ getZpajxx.stream().forEach(p->{
String ajxlb = ztypMapper.getZpAsjbzxx(p.getAsjbh()); String ajxlb = ztypMapper.getZpAsjbzxx(p.getAsjbh());
if(null!=ajxlb){
p.setAjxlb(ajxlb); p.setAjxlb(ajxlb);
}
ZpajxxEntity zpajxxEntity = ztypMapper.getZpAsjBshxx(p.getAsjbh());
if(null!=zpajxxEntity){
String mobile = zpajxxEntity.getMobile();
String yhkh = zpajxxEntity.getYhkh();
String wx = zpajxxEntity.getWx();
String personid = zpajxxEntity.getPersonid();
if(null != mobile){
p.setMobile(mobile);
}
if(null != yhkh){
p.setYhkh(yhkh);
}
if(null != wx){
p.setWx(wx);
}
if(null != personid){
p.setPersonid(personid);
}
}
}); });
return getZpajxx; return getZpajxx;
} }
......
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