Commit e0adcf91 by 段惠斌

mysql改造

parent fe4f2131
...@@ -19,6 +19,7 @@ package org.springblade.common.config; ...@@ -19,6 +19,7 @@ package org.springblade.common.config;
import org.springblade.core.secure.registry.SecureRegistry; import org.springblade.core.secure.registry.SecureRegistry;
import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration; import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.CorsRegistry;
import org.springframework.web.servlet.config.annotation.ResourceHandlerRegistry; import org.springframework.web.servlet.config.annotation.ResourceHandlerRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer; import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;
...@@ -30,6 +31,14 @@ import org.springframework.web.servlet.config.annotation.WebMvcConfigurer; ...@@ -30,6 +31,14 @@ import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;
@Configuration @Configuration
public class BladeConfiguration implements WebMvcConfigurer { public class BladeConfiguration implements WebMvcConfigurer {
public void addCorsMappings(CorsRegistry corsRegistry){
corsRegistry.addMapping("/**")
.allowedOriginPatterns("*")
.allowCredentials(true)
.allowedMethods("GET","POST")
.allowedHeaders("*");
}
@Bean @Bean
public SecureRegistry secureRegistry() { public SecureRegistry secureRegistry() {
SecureRegistry secureRegistry = new SecureRegistry(); SecureRegistry secureRegistry = new SecureRegistry();
...@@ -46,8 +55,8 @@ public class BladeConfiguration implements WebMvcConfigurer { ...@@ -46,8 +55,8 @@ public class BladeConfiguration implements WebMvcConfigurer {
secureRegistry.excludePathPatterns("/flwsFj/tbstasjflwsCj/flwsComp"); secureRegistry.excludePathPatterns("/flwsFj/tbstasjflwsCj/flwsComp");
secureRegistry.excludePathPatterns("/js/**"); secureRegistry.excludePathPatterns("/js/**");
secureRegistry.excludePathPatterns("/webjars/**"); secureRegistry.excludePathPatterns("/webjars/**");
// secureRegistry.excludePathPatterns("/swagger-resources/**"); secureRegistry.excludePathPatterns("/swagger-resources/**");
// secureRegistry.excludePathPatterns("/matj/**"); secureRegistry.excludePathPatterns("/matj/**");
secureRegistry.excludePathPatterns("/ajzljc/**"); secureRegistry.excludePathPatterns("/ajzljc/**");
secureRegistry.excludePathPatterns("/refreshCodeCache"); secureRegistry.excludePathPatterns("/refreshCodeCache");
secureRegistry.excludePathPatterns("/reloadSysDict"); secureRegistry.excludePathPatterns("/reloadSysDict");
...@@ -59,7 +68,7 @@ public class BladeConfiguration implements WebMvcConfigurer { ...@@ -59,7 +68,7 @@ public class BladeConfiguration implements WebMvcConfigurer {
secureRegistry.excludePathPatterns("/bbgx/**"); secureRegistry.excludePathPatterns("/bbgx/**");
secureRegistry.excludePathPatterns("/bjhc/ktsj/**"); secureRegistry.excludePathPatterns("/bjhc/ktsj/**");
secureRegistry.excludePathPatterns("/**"); secureRegistry.excludePathPatterns("/**");
/*secureRegistry.excludePathPatterns("/**"); secureRegistry.excludePathPatterns("/**");
secureRegistry.excludePathPatterns("/ajDetail/**"); secureRegistry.excludePathPatterns("/ajDetail/**");
secureRegistry.excludePathPatterns("/tbstAsj/stasj*"); secureRegistry.excludePathPatterns("/tbstAsj/stasj*");
secureRegistry.excludePathPatterns("/matj*"); secureRegistry.excludePathPatterns("/matj*");
...@@ -70,7 +79,7 @@ public class BladeConfiguration implements WebMvcConfigurer { ...@@ -70,7 +79,7 @@ public class BladeConfiguration implements WebMvcConfigurer {
secureRegistry.excludePathPatterns("/getFlwsCountForAutoCheck"); secureRegistry.excludePathPatterns("/getFlwsCountForAutoCheck");
secureRegistry.excludePathPatterns("/getFlwsForAutoSwCheck"); secureRegistry.excludePathPatterns("/getFlwsForAutoSwCheck");
secureRegistry.excludePathPatterns("/ajxq*"); secureRegistry.excludePathPatterns("/ajxq*");
secureRegistry.excludePathPatterns("/ajsp*");*/ secureRegistry.excludePathPatterns("/ajsp*");
return secureRegistry; return secureRegistry;
} }
...@@ -83,4 +92,6 @@ public class BladeConfiguration implements WebMvcConfigurer { ...@@ -83,4 +92,6 @@ public class BladeConfiguration implements WebMvcConfigurer {
.addResourceLocations("classpath:/META-INF/resources/webjars/"); .addResourceLocations("classpath:/META-INF/resources/webjars/");
} }
} }
...@@ -426,10 +426,10 @@ ...@@ -426,10 +426,10 @@
and asjbh = #{asjbh} and asjbh = #{asjbh}
</if> </if>
<if test="bldwGajgjgdm != null and bldwGajgjgdm != ''"> <if test="bldwGajgjgdm != null and bldwGajgjgdm != ''">
and BLDW_GAJGJGDM like #{bldwGajgjgdm}||'%' and BLDW_GAJGJGDM like concat(#{bldwGajgjgdm},'%')
</if> </if>
<if test="zbrXm != null and zbrXm != ''"> <if test="zbrXm != null and zbrXm != ''">
and ZBR_XM like #{zbrXm}||'%' and ZBR_XM like concat(#{zbrXm},'%')
</if> </if>
<if test="rzsjStart != null and rzsjStart != ''"> <if test="rzsjStart != null and rzsjStart != ''">
and djsj <![CDATA[>=]]>#{rzsjStart} and djsj <![CDATA[>=]]>#{rzsjStart}
...@@ -442,8 +442,9 @@ ...@@ -442,8 +442,9 @@
<!--根据参数查询分页侦查日志--> <!--根据参数查询分页侦查日志-->
<select id="getZcrzxxPageByParam" parameterType="org.springblade.founder.ajda.model.TbXwZcrz" <select id="getZcrzxxPageByParam" parameterType="org.springblade.founder.ajda.model.TbXwZcrz"
resultType="org.springblade.founder.ajda.model.TbXwZcrz"> resultType="org.springblade.founder.ajda.model.TbXwZcrz">
select a.* from (
select * from( select * from(
select t.*,rownum rn from ( select t.* , @rownum := @rownum + 1 AS rownum from (
select XXZJBH as xxzjbh, select XXZJBH as xxzjbh,
ASJBH as asjbh, ASJBH as asjbh,
BLDW_GAJGJGDM as bldwGajgjgdm, BLDW_GAJGJGDM as bldwGajgjgdm,
...@@ -459,10 +460,10 @@ ...@@ -459,10 +460,10 @@
and asjbh = #{asjbh} and asjbh = #{asjbh}
</if> </if>
<if test="bldwGajgjgdm != null and bldwGajgjgdm != ''"> <if test="bldwGajgjgdm != null and bldwGajgjgdm != ''">
and BLDW_GAJGJGDM like #{bldwGajgjgdm}||'%' and BLDW_GAJGJGDM like concat(#{bldwGajgjgdm},'%')
</if> </if>
<if test="zbrXm != null and zbrXm != ''"> <if test="zbrXm != null and zbrXm != ''">
and ZBR_XM like #{zbrXm}||'%' and ZBR_XM like concat(#{zbrXm},'%')
</if> </if>
<if test="rzsjStart != null and rzsjStart != ''"> <if test="rzsjStart != null and rzsjStart != ''">
and djsj <![CDATA[>=]]>#{rzsjStart} and djsj <![CDATA[>=]]>#{rzsjStart}
...@@ -470,8 +471,9 @@ ...@@ -470,8 +471,9 @@
<if test="rzsjEnd != null and rzsjEnd != ''"> <if test="rzsjEnd != null and rzsjEnd != ''">
and djsj <![CDATA[<=]]>#{rzsjEnd} and djsj <![CDATA[<=]]>#{rzsjEnd}
</if> </if>
) t where ROWNUM <![CDATA[<=]]> #{end} ) t,(SELECT @rownum:=0) r
) where rn > #{begin} )b where rownum <![CDATA[<=]]> #{end}
) a where rownum > #{begin}
</select> </select>
<!--现场勘验信息查询--> <!--现场勘验信息查询-->
...@@ -493,7 +495,7 @@ ...@@ -493,7 +495,7 @@
, a.xczhr_gmsfhm xczhrGmssfhm , a.xczhr_gmsfhm xczhrGmssfhm
, xxdjdw_gajgjgdm , xxdjdw_gajgjgdm
, a.xxdjry_xm , a.xxdjry_xm
, to_char(a.xcky_jssj, 'yyyy-MM-dd hh24:mi:ss') xckysjJssjStr , DATE_FORMAT(a.xcky_jssj, 'yyyy-MM-dd hh24:mi:ss') xckysjJssjStr
, a.xcky_jssj xckysjJssj , a.xcky_jssj xckysjJssj
, a.xckyr_gmsfhm xckyrGmsfhm , a.xckyr_gmsfhm xckyrGmsfhm
, a.djsj , a.djsj
...@@ -648,6 +650,7 @@ ...@@ -648,6 +650,7 @@
<!--损失卡类信息查询 --> <!--损失卡类信息查询 -->
<select id="gettbXwSsklSqlList" resultType="org.springblade.founder.ajda.model.TbXwSskl"> <select id="gettbXwSsklSqlList" resultType="org.springblade.founder.ajda.model.TbXwSskl">
select a.* from (
select * select *
from ( from (
select SSKL_SAWPBH as ssklSawpbh, select SSKL_SAWPBH as ssklSawpbh,
...@@ -663,17 +666,18 @@ ...@@ -663,17 +666,18 @@
and CODE = SSKL_FKDW_GJHDQDM) as ssklFkdwGjhdqdm, and CODE = SSKL_FKDW_GJHDQDM) as ssklFkdwGjhdqdm,
SSKL_FKDW_DWMC as ssklFkdwDwmc, SSKL_FKDW_DWMC as ssklFkdwDwmc,
SSKL_HFRQ as ssklHfrq, SSKL_HFRQ as ssklHfrq,
rownum rn djsj,@rownum := @rownum + 1 AS rownum
from ( from (
select * select *
from tb_xw_sskl from tb_xw_sskl
where XXSC_PDBZ = 0 where XXSC_PDBZ = 0
and asjbh = #{asjbh} and asjbh = #{asjbh}
) t
where ROWNUM <![CDATA[<=]]> #{end}
order by djsj desc order by djsj desc
) ) t ,(SELECT @rownum:=0) r
where rn > #{begin} )b
where rownum <![CDATA[<=]]> #{end}
) a
where rownum > #{begin}
</select> </select>
<!--作案卡类信息查询 --> <!--作案卡类信息查询 -->
<select id="querytbXwFxzasyklPageCount" parameterType="java.lang.String" resultType="java.lang.Integer"> <select id="querytbXwFxzasyklPageCount" parameterType="java.lang.String" resultType="java.lang.Integer">
...@@ -686,6 +690,7 @@ ...@@ -686,6 +690,7 @@
<!--发现作案使用卡类信息查询 --> <!--发现作案使用卡类信息查询 -->
<select id="gettbXwFxzasyklSqlList" parameterType="java.util.HashMap" <select id="gettbXwFxzasyklSqlList" parameterType="java.util.HashMap"
resultType="org.springblade.founder.ajda.model.TbXwFxzasykl"> resultType="org.springblade.founder.ajda.model.TbXwFxzasykl">
select a.* from (
select * select *
from ( from (
select ZASYKL_SAWPBH as zasyklSawpbh, select ZASYKL_SAWPBH as zasyklSawpbh,
...@@ -700,17 +705,18 @@ ...@@ -700,17 +705,18 @@
and code = ZASYKL_FKDW_GJHDQDM) as zasyklFkdwGjhdqdm, and code = ZASYKL_FKDW_GJHDQDM) as zasyklFkdwGjhdqdm,
ZASYKL_FKDW_DWMC as zasyklFkdwDwmc, ZASYKL_FKDW_DWMC as zasyklFkdwDwmc,
ZASYKL_HFRQ as zasyklHfrq, ZASYKL_HFRQ as zasyklHfrq,
rownum rn djsj,@rownum := @rownum + 1 AS rownum
from ( from (
select * select *
from tb_xw_fxzasykl from tb_xw_fxzasykl
where XXSC_PDBZ = 0 where XXSC_PDBZ = 0
and asjbh = #{asjbh} and asjbh = #{asjbh}
) t
where ROWNUM <![CDATA[<=]]> #{end}
order by djsj desc order by djsj desc
) ) t,(SELECT @rownum:=0) r
where rn > #{begin} )b
where rownum <![CDATA[<=]]> #{end}
)a
where rownum > #{begin}
</select> </select>
<!--作案机动车信息查询 --> <!--作案机动车信息查询 -->
...@@ -724,6 +730,7 @@ ...@@ -724,6 +730,7 @@
<!--发现作案使用机动车信息查询 --> <!--发现作案使用机动车信息查询 -->
<select id="gettbXwFxzasyjdcSqlList" resultType="org.springblade.founder.ajda.model.TbXwFxzasyjdc"> <select id="gettbXwFxzasyjdcSqlList" resultType="org.springblade.founder.ajda.model.TbXwFxzasyjdc">
select a.* from (
select * select *
from ( from (
select ZASYJDC_SAWPBH as zasyjdcSawpbh, select ZASYJDC_SAWPBH as zasyjdcSawpbh,
...@@ -742,17 +749,18 @@ ...@@ -742,17 +749,18 @@
from sys_dictitem from sys_dictitem
where GROUPID = 'CODE_YS' where GROUPID = 'CODE_YS'
and code = ZASYJDC_JDCCSYS_JDCCSYSDM) as zasyjdcJdccsysJdccsysdm, and code = ZASYJDC_JDCCSYS_JDCCSYSDM) as zasyjdcJdccsysJdccsysdm,
rownum rn djsj,@rownum := @rownum + 1 AS rownum
from ( from (
select * select *
from tb_xw_fxzasyjdc from tb_xw_fxzasyjdc
where XXSC_PDBZ = 0 where XXSC_PDBZ = 0
and asjbh = #{asjbh} and asjbh = #{asjbh}
) t
where ROWNUM <![CDATA[<=]]> #{end}
order by djsj desc order by djsj desc
) ) t,(SELECT @rownum:=0) r
where rn > #{begin} )b
where rownum <![CDATA[<=]]> #{end}
)a
where rownum > #{begin}
</select> </select>
<!--作案使用电动非机动车信查询 --> <!--作案使用电动非机动车信查询 -->
...@@ -766,6 +774,7 @@ ...@@ -766,6 +774,7 @@
<!--作案使用电动非机动车信息查询 --> <!--作案使用电动非机动车信息查询 -->
<select id="gettbXwFxzasyddfjdcxxSqlList" resultType="org.springblade.founder.ajda.model.TbXwFxzasyddfjdcxx"> <select id="gettbXwFxzasyddfjdcxxSqlList" resultType="org.springblade.founder.ajda.model.TbXwFxzasyddfjdcxx">
select a.* from (
select * select *
from ( from (
select ZASYDDFJDC_SAWPBH as zasyddfjdcSawpbh, select ZASYDDFJDC_SAWPBH as zasyddfjdcSawpbh,
...@@ -778,17 +787,18 @@ ...@@ -778,17 +787,18 @@
ZASYDDFJDC_DDFJDCCJH_WPBZH as zasyddfjdcDdfjdccjhWpbzh, ZASYDDFJDC_DDFJDCCJH_WPBZH as zasyddfjdcDdfjdccjhWpbzh,
ZASYDDFJDC_DDFJDCPZH_WPBZH as zasyddfjdcDdfjdcpzhWpbzh, ZASYDDFJDC_DDFJDCPZH_WPBZH as zasyddfjdcDdfjdcpzhWpbzh,
ZASYDDFJDC_DDFJDCGYH_WPBZH as zasyddfjdcDdfjdcgyhWpbzh, ZASYDDFJDC_DDFJDCGYH_WPBZH as zasyddfjdcDdfjdcgyhWpbzh,
rownum rn djsj,@rownum := @rownum + 1 AS rownum
from ( from (
select * select *
from tb_xw_fxzasyddfjdc from tb_xw_fxzasyddfjdc
where XXSC_PDBZ = 0 where XXSC_PDBZ = 0
and asjbh = #{asjbh} and asjbh = #{asjbh}
) t
where ROWNUM <![CDATA[<=]]> #{end}
order by djsj desc order by djsj desc
) ) t,(SELECT @rownum:=0) r
where rn > #{begin} )b
where rownum <![CDATA[<=]]> #{end}
)a
where rownum > #{begin}
</select> </select>
<!--作案使用枪支信息查询 --> <!--作案使用枪支信息查询 -->
...@@ -802,6 +812,7 @@ ...@@ -802,6 +812,7 @@
<!--发现作案使用枪支信息查询--> <!--发现作案使用枪支信息查询-->
<select id="gettbXwFxzasyqzSqlList" resultType="org.springblade.founder.ajda.model.TbXwFxzasyqz"> <select id="gettbXwFxzasyqzSqlList" resultType="org.springblade.founder.ajda.model.TbXwFxzasyqz">
select a.* from (
select * select *
from ( from (
select ZASYQZ_SAWPBH as zasyqzSawpbh, select ZASYQZ_SAWPBH as zasyqzSawpbh,
...@@ -814,20 +825,24 @@ ...@@ -814,20 +825,24 @@
where GROUPID = 'CODE_QZLXDM' where GROUPID = 'CODE_QZLXDM'
and code = ZASYQZ_QZXHDM) as zasyqzQzxhdm, and code = ZASYQZ_QZXHDM) as zasyqzQzxhdm,
ZASYQZ_QZKJ as zasyqzQzkj, ZASYQZ_QZKJ as zasyqzQzkj,
decode(ZASYQZ_SFZSQZ_PDBZ, '0', '否', '1', '是', '') as zasyqzSfzsqzPdbz, (case
when ZASYQZ_SFZSQZ_PDBZ='0' then '否'
when ZASYQZ_SFZSQZ_PDBZ='1' then '是'
else '' end ) as zasyqzSfzsqzPdbz,
ZASYQZ_QH_WPBZH as zasyqzQhWpbzh, ZASYQZ_QH_WPBZH as zasyqzQhWpbzh,
ZASYQZ_WPSL as zasyqzWpsl, ZASYQZ_WPSL as zasyqzWpsl,
rownum rn djsj,@rownum := @rownum + 1 AS rownum
from ( from (
select * select *
from tb_xw_fxzasyqz from tb_xw_fxzasyqz
where XXSC_PDBZ = 0 where XXSC_PDBZ = 0
and asjbh = #{asjbh} and asjbh = #{asjbh}
) t
where ROWNUM <![CDATA[<=]]> #{end}
order by djsj desc order by djsj desc
) ) t,(SELECT @rownum:=0) r
where rn > #{begin} )b
where rownum <![CDATA[<=]]> #{end}
)a
where rownum > #{begin}
</select> </select>
<!--作案使用服务标识号信息查询 --> <!--作案使用服务标识号信息查询 -->
...@@ -841,6 +856,7 @@ ...@@ -841,6 +856,7 @@
<!--发现作案使用服务标识号信息查询--> <!--发现作案使用服务标识号信息查询-->
<select id="gettbXwFxzasyfwbzhSqlList" resultType="org.springblade.founder.ajda.model.TbXwFxzasyfwbzh"> <select id="gettbXwFxzasyfwbzhSqlList" resultType="org.springblade.founder.ajda.model.TbXwFxzasyfwbzh">
select a.* from (
select * select *
from ( from (
select FXZASYFWBZH_FXDD_DZMC as fxzasyfwbzhFxddDzmc, select FXZASYFWBZH_FXDD_DZMC as fxzasyfwbzhFxddDzmc,
...@@ -859,17 +875,18 @@ ...@@ -859,17 +875,18 @@
where GROUPID = 'CODE_XZQH' where GROUPID = 'CODE_XZQH'
and code = ZASYFWBZH_FWZCD_XZQHDM) as zasyfwbzhFwzcdXzqhdm, and code = ZASYFWBZH_FWZCD_XZQHDM) as zasyfwbzhFwzcdXzqhdm,
ZASYFWBZH_FWZCD_DZMC as zasyfwbzhFwzcdDzmc, ZASYFWBZH_FWZCD_DZMC as zasyfwbzhFwzcdDzmc,
rownum rn djsj,@rownum := @rownum + 1 AS rownum
from ( from (
select * select *
from tb_xw_fxzasyfwbzh from tb_xw_fxzasyfwbzh
where XXSC_PDBZ = 0 where XXSC_PDBZ = 0
and asjbh = #{asjbh} and asjbh = #{asjbh}
) t
where ROWNUM <![CDATA[<=]]> #{end}
order by djsj desc order by djsj desc
) ) t,(SELECT @rownum:=0) r
where rn > #{begin} )b
where rownum <![CDATA[<=]]> #{end}
)a
where rownum > #{begin}
</select> </select>
<!--作案使用其他作案工具信息查询 --> <!--作案使用其他作案工具信息查询 -->
...@@ -883,6 +900,7 @@ ...@@ -883,6 +900,7 @@
<!--发现作案工具信息查询--> <!--发现作案工具信息查询-->
<select id="gettbXwFxzagjSqlList" resultType="org.springblade.founder.ajda.model.TbXwFxzagj"> <select id="gettbXwFxzagjSqlList" resultType="org.springblade.founder.ajda.model.TbXwFxzagj">
select a.* from (
select * select *
from ( from (
select ZAGJ_SAWPBH as zagjSawpbh, select ZAGJ_SAWPBH as zagjSawpbh,
...@@ -901,17 +919,18 @@ ...@@ -901,17 +919,18 @@
from sys_dictitem from sys_dictitem
where GROUPID = 'CODE_YS' where GROUPID = 'CODE_YS'
and code = ZAGJ_WPYS_WPYSDM) as zagjWpysWpysdm, and code = ZAGJ_WPYS_WPYSDM) as zagjWpysWpysdm,
rownum rn djsj,@rownum := @rownum + 1 AS rownum
from ( from (
select * select *
from tb_xw_fxzagj from tb_xw_fxzagj
where XXSC_PDBZ = 0 where XXSC_PDBZ = 0
and asjbh = #{asjbh} and asjbh = #{asjbh}
) t
where ROWNUM <![CDATA[<=]]> #{end}
order by djsj desc order by djsj desc
) ) t,(SELECT @rownum:=0) r
where rn > #{begin} )b
where rownum <![CDATA[<=]]> #{end}
)a
where rownum > #{begin}
</select> </select>
<!--损失移动通讯设备信息查询 --> <!--损失移动通讯设备信息查询 -->
...@@ -925,6 +944,7 @@ ...@@ -925,6 +944,7 @@
<!--损失移动通讯设备信息查询--> <!--损失移动通讯设备信息查询-->
<select id="gettbXwSsydtxsbSqlList" resultType="org.springblade.founder.ajda.model.TbXwSsydtxsb"> <select id="gettbXwSsydtxsbSqlList" resultType="org.springblade.founder.ajda.model.TbXwSsydtxsb">
select a.* from (
select * select *
from ( from (
select SSYDTXSB_SAWPBH as ssydtxsbSawpbh, select SSYDTXSB_SAWPBH as ssydtxsbSawpbh,
...@@ -940,17 +960,18 @@ ...@@ -940,17 +960,18 @@
from sys_dictitem from sys_dictitem
where GROUPID = 'CODE_YS' where GROUPID = 'CODE_YS'
and CODE = SSYDTXSB_WPYSDM) as ssydtxsbWpysdm, and CODE = SSYDTXSB_WPYSDM) as ssydtxsbWpysdm,
rownum rn djsj,@rownum := @rownum + 1 AS rownum
from ( from (
select * select *
from tb_xw_ssydtxsb from tb_xw_ssydtxsb
where XXSC_PDBZ = 0 where XXSC_PDBZ = 0
and asjbh = #{asjbh} and asjbh = #{asjbh}
) t
where ROWNUM <![CDATA[<=]]> #{end}
order by djsj desc order by djsj desc
) ) t,(SELECT @rownum:=0) r
where rn > #{begin} )b
where rownum <![CDATA[<=]]> #{end}
)a
where rownum > #{begin}
</select> </select>
<!--损失证件信息查询 --> <!--损失证件信息查询 -->
...@@ -964,6 +985,7 @@ ...@@ -964,6 +985,7 @@
<!--损失证件信息查询 --> <!--损失证件信息查询 -->
<select id="gettbXwSszjSqlList" resultType="org.springblade.founder.ajda.model.TbXwSszj"> <select id="gettbXwSszjSqlList" resultType="org.springblade.founder.ajda.model.TbXwSszj">
select a.* from (
select * select *
from ( from (
select SSZJ_SAWPBH as sszjSawpbh, select SSZJ_SAWPBH as sszjSawpbh,
...@@ -979,17 +1001,18 @@ ...@@ -979,17 +1001,18 @@
and CODE = SSZJ_FZDW_GJHDQDM) as sszjFzdwGjhdqdm, and CODE = SSZJ_FZDW_GJHDQDM) as sszjFzdwGjhdqdm,
SSZJ_FZDW_DWMC as sszjFzdwDwmc, SSZJ_FZDW_DWMC as sszjFzdwDwmc,
SSZJ_HFRQ as sszjHfrq, SSZJ_HFRQ as sszjHfrq,
rownum rn djsj,@rownum := @rownum + 1 AS rownum
from ( from (
select * select *
from tb_xw_sszj from tb_xw_sszj
where XXSC_PDBZ = 0 where XXSC_PDBZ = 0
and asjbh = #{asjbh} and asjbh = #{asjbh}
) t
where ROWNUM <![CDATA[<=]]> #{end}
order by djsj desc order by djsj desc
) ) t,(SELECT @rownum:=0) r
where rn > #{begin} )b
where rownum <![CDATA[<=]]> #{end}
)a
where rownum > #{begin}
</select> </select>
<!--发现作案使用移动通讯设备信息查询--> <!--发现作案使用移动通讯设备信息查询-->
...@@ -1003,6 +1026,7 @@ ...@@ -1003,6 +1026,7 @@
<!--发现作案使用移动通讯设备信息查询--> <!--发现作案使用移动通讯设备信息查询-->
<select id="queryPagetbXwFxzasyydtxsbList" resultType="org.springblade.founder.ajda.model.TbXwFxzasyydtxsb"> <select id="queryPagetbXwFxzasyydtxsbList" resultType="org.springblade.founder.ajda.model.TbXwFxzasyydtxsb">
select a.* from (
select * select *
from ( from (
select ASJBH as asjbh, select ASJBH as asjbh,
...@@ -1016,17 +1040,18 @@ ...@@ -1016,17 +1040,18 @@
ZASYYDTXSB_IMSI_FWBZH as zasyydtxsbImsiFwbzh, ZASYYDTXSB_IMSI_FWBZH as zasyydtxsbImsiFwbzh,
ZASYYDTXSB_YDDH as zasyydtxsbYddh, ZASYYDTXSB_YDDH as zasyydtxsbYddh,
BLSJ as blsj, BLSJ as blsj,
rownum rn djsj,@rownum := @rownum + 1 AS rownum
from ( from (
select * select *
from tb_xw_fxzasyydtxsb from tb_xw_fxzasyydtxsb
where XXSC_PDBZ = 0 where XXSC_PDBZ = 0
and asjbh = #{asjbh} and asjbh = #{asjbh}
) t
where ROWNUM <![CDATA[<=]]> #{end}
order by djsj desc order by djsj desc
) ) t,(SELECT @rownum:=0) r
where rn > #{begin} )b
where rownum <![CDATA[<=]]> #{end}
)a
where rownum > #{begin}
</select> </select>
<!--损失机动车信息查询 --> <!--损失机动车信息查询 -->
...@@ -1041,6 +1066,7 @@ ...@@ -1041,6 +1066,7 @@
<!--损失机动车信息查询 --> <!--损失机动车信息查询 -->
<select id="gettbXwSsjdcSqlList" resultType="org.springblade.founder.ajda.model.TbXwSsjdc"> <select id="gettbXwSsjdcSqlList" resultType="org.springblade.founder.ajda.model.TbXwSsjdc">
select a.* from (
select * select *
from ( from (
select SSJDC_SAWPBH as ssjdcSawpbh, select SSJDC_SAWPBH as ssjdcSawpbh,
...@@ -1059,18 +1085,19 @@ ...@@ -1059,18 +1085,19 @@
where GROUPID = 'CODE_HPZL' where GROUPID = 'CODE_HPZL'
and code = SSJDC_SSJDC_JDCHPZLDM) as ssjdcSsjdcJdchpzldm, and code = SSJDC_SSJDC_JDCHPZLDM) as ssjdcSsjdcJdchpzldm,
SSJDC_JDCHPHM as ssjdcJdchphm, SSJDC_JDCHPHM as ssjdcJdchphm,
rownum rn djsj,@rownum := @rownum + 1 AS rownum
from ( from (
select * select *
from tb_xw_ssjdc from tb_xw_ssjdc
where XXSC_PDBZ = 0 where XXSC_PDBZ = 0
and asjbh = #{asjbh} and asjbh = #{asjbh}
AND (chcxspsftg_pdbz IS NULL OR chcxspsftg_pdbz != '1') AND (chcxspsftg_pdbz IS NULL OR chcxspsftg_pdbz != '1')
) t
where ROWNUM <![CDATA[<=]]> #{end}
order by djsj desc order by djsj desc
) ) t,(SELECT @rownum:=0) r
where rn > #{begin} )b
where rownum <![CDATA[<=]]> #{end}
)a
where rownum > #{begin}
</select> </select>
<!--损失非机动车信息查询 --> <!--损失非机动车信息查询 -->
...@@ -1085,6 +1112,7 @@ ...@@ -1085,6 +1112,7 @@
<!--损失非机动车信息查询 --> <!--损失非机动车信息查询 -->
<select id="gettbXwSsddfjdcSqlList" resultType="org.springblade.founder.ajda.model.TbXwSsddfjdc"> <select id="gettbXwSsddfjdcSqlList" resultType="org.springblade.founder.ajda.model.TbXwSsddfjdc">
select a.* from (
select * select *
from ( from (
select SSDDFJDC_SAWPBH as ssddfjdcSawpbh, select SSDDFJDC_SAWPBH as ssddfjdcSawpbh,
...@@ -1097,18 +1125,19 @@ ...@@ -1097,18 +1125,19 @@
SSDDFJDC_DDFJDCCJH_WPBZH as ssddfjdcDdfjdccjhWpbzh, SSDDFJDC_DDFJDCCJH_WPBZH as ssddfjdcDdfjdccjhWpbzh,
SSDDFJDC_DDFJDCPZH_WPBZH as ssddfjdcDdfjdcpzhWpbzh, SSDDFJDC_DDFJDCPZH_WPBZH as ssddfjdcDdfjdcpzhWpbzh,
SSDDFJDC_DDFJDCGYH_WPBZH as ssddfjdcDdfjdcgyhWpbzh, SSDDFJDC_DDFJDCGYH_WPBZH as ssddfjdcDdfjdcgyhWpbzh,
rownum rn djsj,@rownum := @rownum + 1 AS rownum
from ( from (
select * select *
from tb_xw_ssddfjdc from tb_xw_ssddfjdc
where XXSC_PDBZ = 0 where XXSC_PDBZ = 0
and asjbh = #{asjbh} and asjbh = #{asjbh}
AND (chcxspsftg_pdbz IS NULL OR chcxspsftg_pdbz != '1') AND (chcxspsftg_pdbz IS NULL OR chcxspsftg_pdbz != '1')
) t
where ROWNUM <![CDATA[<=]]> #{end}
order by djsj desc order by djsj desc
) ) t,(SELECT @rownum:=0) r
where rn > #{begin} )b
where rownum <![CDATA[<=]]> #{end}
)a
where rownum > #{begin}
</select> </select>
<!--损失枪支信息查询 --> <!--损失枪支信息查询 -->
...@@ -1122,6 +1151,7 @@ ...@@ -1122,6 +1151,7 @@
<!--损失枪支信息查询 --> <!--损失枪支信息查询 -->
<select id="gettbXwSsqzSqlList" resultType="org.springblade.founder.ajda.model.TbXwSsqz"> <select id="gettbXwSsqzSqlList" resultType="org.springblade.founder.ajda.model.TbXwSsqz">
select a.* from (
select * select *
from ( from (
select SSQZ_SAWPBH as ssqzSawpbh, select SSQZ_SAWPBH as ssqzSawpbh,
...@@ -1135,19 +1165,23 @@ ...@@ -1135,19 +1165,23 @@
and code = SSQZ_QZXHDM) as ssqzQzxhdm, and code = SSQZ_QZXHDM) as ssqzQzxhdm,
SSQZ_QZKJ as ssqzQzkj, SSQZ_QZKJ as ssqzQzkj,
SSQZ_QH_WPBZH as ssqzQhWpbzh, SSQZ_QH_WPBZH as ssqzQhWpbzh,
decode(SSQZ_QZSFWZ_PDBZ, '0', '不完整', '1', '完整', '') as ssqzQzsfwzPdbz, (case
when SSQZ_QZSFWZ_PDBZ='0' then '不完整'
when SSQZ_QZSFWZ_PDBZ='1' then '完整'
else '' end ) as ssqzQzsfwzPdbz,
SSQZ_WPSL as ssqzWpsl, SSQZ_WPSL as ssqzWpsl,
rownum rn djsj,@rownum := @rownum + 1 AS rownum
from ( from (
select * select *
from tb_xw_ssqz from tb_xw_ssqz
where XXSC_PDBZ = 0 where XXSC_PDBZ = 0
and asjbh = #{asjbh} and asjbh = #{asjbh}
) t
where ROWNUM <![CDATA[<=]]> #{end}
order by djsj desc order by djsj desc
) ) t,(SELECT @rownum:=0) r
where rn > #{begin} )b
where rownum <![CDATA[<=]]> #{end}
)a
where rownum > #{begin}
</select> </select>
<!--损失弹药信息查询 --> <!--损失弹药信息查询 -->
...@@ -1161,6 +1195,7 @@ ...@@ -1161,6 +1195,7 @@
<!--损失弹药信息查询 --> <!--损失弹药信息查询 -->
<select id="gettbXwSsdySqlList" resultType="org.springblade.founder.ajda.model.TbXwSsdy"> <select id="gettbXwSsdySqlList" resultType="org.springblade.founder.ajda.model.TbXwSsdy">
select a.* from (
select * select *
from ( from (
select SSDY_SAWPBH as ssdySawpbh, select SSDY_SAWPBH as ssdySawpbh,
...@@ -1173,17 +1208,18 @@ ...@@ -1173,17 +1208,18 @@
where GROUPID = 'CODE_DYXH' where GROUPID = 'CODE_DYXH'
and code = SSDY_DYXHDM) as ssdyDyxhdm, and code = SSDY_DYXHDM) as ssdyDyxhdm,
SSDY_WPSL as ssdyWpsl, SSDY_WPSL as ssdyWpsl,
rownum rn djsj,@rownum := @rownum + 1 AS rownum
from ( from (
select * select *
from tb_xw_ssdy from tb_xw_ssdy
where XXSC_PDBZ = 0 where XXSC_PDBZ = 0
and asjbh = #{asjbh} and asjbh = #{asjbh}
) t
where ROWNUM <![CDATA[<=]]> #{end}
order by djsj desc order by djsj desc
) ) t,(SELECT @rownum:=0) r
where rn > #{begin} )b
where rownum <![CDATA[<=]]> #{end}
)a
where rownum > #{begin}
</select> </select>
<!--损失文物信息查询 --> <!--损失文物信息查询 -->
...@@ -1197,25 +1233,33 @@ ...@@ -1197,25 +1233,33 @@
<!--损失文物信息查询 --> <!--损失文物信息查询 -->
<select id="gettbXwSswwSqlList" resultType="org.springblade.founder.ajda.model.TbXwSsww"> <select id="gettbXwSswwSqlList" resultType="org.springblade.founder.ajda.model.TbXwSsww">
select a.* from (
select * select *
from ( from (
select SSWW_SAWPBH as sswwSawpbh, select SSWW_SAWPBH as sswwSawpbh,
SSWW_WPMC as sswwWpmc, SSWW_WPMC as sswwWpmc,
SSWW_WWDJMS as sswwWwdjms, SSWW_WWDJMS as sswwWwdjms,
decode(SSWW_WWZXSCLT_PDBZ, '0', '不允许', '1', '允许', '') as sswwWwzxscltPdbz, (case
decode(SSWW_WWZXCJ_PDBZ, '0', '不允许', '1', '允许', '') as sswwWwzxcjPdbz, when SSWW_WWZXSCLT_PDBZ='0' then '不允许'
when SSWW_WWZXSCLT_PDBZ='1' then '允许'
else '' end ) as sswwWwzxscltPdbz,
(case
when SSWW_WWZXCJ_PDBZ='0' then '不允许'
when SSWW_WWZXCJ_PDBZ='1' then '允许'
else '' end ) as sswwWwzxcjPdbz,
SSWW_WPJZRMBY as sswwWpjzrmby, SSWW_WPJZRMBY as sswwWpjzrmby,
rownum rn djsj,@rownum := @rownum + 1 AS rownum
from ( from (
select * select *
from tb_xw_ssww from tb_xw_ssww
where XXSC_PDBZ = 0 where XXSC_PDBZ = 0
and asjbh = #{asjbh} and asjbh = #{asjbh}
) t
where ROWNUM <![CDATA[<=]]> #{end}
order by djsj desc order by djsj desc
) ) t,(SELECT @rownum:=0) r
where rn > #{begin} )b
where rownum <![CDATA[<=]]> #{end}
)a
where rownum > #{begin}
</select> </select>
<!--损失其他物品信息查询 --> <!--损失其他物品信息查询 -->
...@@ -1229,6 +1273,7 @@ ...@@ -1229,6 +1273,7 @@
<!--损失其他物品信息查询 --> <!--损失其他物品信息查询 -->
<select id="gettbXwSsqtwpSqlList" resultType="org.springblade.founder.ajda.model.TbXwSsqtwp"> <select id="gettbXwSsqtwpSqlList" resultType="org.springblade.founder.ajda.model.TbXwSsqtwp">
select a.* from (
select * select *
from ( from (
select SSWP_SAWPBH as sswpSawpbh, select SSWP_SAWPBH as sswpSawpbh,
...@@ -1247,17 +1292,18 @@ ...@@ -1247,17 +1292,18 @@
from sys_dictitem from sys_dictitem
where GROUPID = 'CODE_YS' where GROUPID = 'CODE_YS'
and code = SSWP_WPYS_WPYSDM) as sswpWpysWpysdm, and code = SSWP_WPYS_WPYSDM) as sswpWpysWpysdm,
rownum rn djsj,@rownum := @rownum + 1 AS rownum
from ( from (
select * select *
from tb_xw_ssqtwp from tb_xw_ssqtwp
where XXSC_PDBZ = 0 where XXSC_PDBZ = 0
and asjbh = #{asjbh} and asjbh = #{asjbh}
) t
where ROWNUM <![CDATA[<=]]> #{end}
order by djsj desc order by djsj desc
) ) t,(SELECT @rownum:=0) r
where rn > #{begin} )b
where rownum <![CDATA[<=]]> #{end}
)a
where rownum > #{begin}
</select> </select>
<!-- 查询总数可疑线索-移动通讯设备 --> <!-- 查询总数可疑线索-移动通讯设备 -->
...@@ -1268,8 +1314,9 @@ ...@@ -1268,8 +1314,9 @@
<!-- 分页查询可疑线索-移动通讯设备 --> <!-- 分页查询可疑线索-移动通讯设备 -->
<select id="getFxkyydtxsbxsxxPage" resultType="org.springblade.founder.ajda.model.TbXwFxkyydtxsbxs"> <select id="getFxkyydtxsbxsxxPage" resultType="org.springblade.founder.ajda.model.TbXwFxkyydtxsbxs">
select a.* from (
select * select *
from ( select t.*, rownum rn from ( from ( select t.*, @rownum := @rownum + 1 AS rownum from (
select xxzjbh as xxzjbh, select xxzjbh as xxzjbh,
asjbh as asjbh, asjbh as asjbh,
keyyj_jyqk as keyyjJyqk, keyyj_jyqk as keyyjJyqk,
...@@ -1297,8 +1344,9 @@ ...@@ -1297,8 +1344,9 @@
XXDJDW_GAJGMC as lrdwmc XXDJDW_GAJGMC as lrdwmc
from tb_xw_fxkyydtxsbxs where xxsc_pdbz = 0 from tb_xw_fxkyydtxsbxs where xxsc_pdbz = 0
<if test="asjbh != null and asjbh != ''">and asjbh = #{asjbh}</if> <if test="asjbh != null and asjbh != ''">and asjbh = #{asjbh}</if>
) t where ROWNUM <![CDATA[<=]]> #{end} ) t,(SELECT @rownum:=0) r
) where rn > #{begin} )b where rownum <![CDATA[<=]]> #{end}
)a where rownum > #{begin}
</select> </select>
<!-- 查询可疑线索-机动车总数 --> <!-- 查询可疑线索-机动车总数 -->
...@@ -1309,8 +1357,9 @@ ...@@ -1309,8 +1357,9 @@
<!-- 分页查询可疑线索-机动车 --> <!-- 分页查询可疑线索-机动车 -->
<select id="getFxkyjdcxsxxPage" resultType="org.springblade.founder.ajda.model.TbXwFxkyjdcxs"> <select id="getFxkyjdcxsxxPage" resultType="org.springblade.founder.ajda.model.TbXwFxkyjdcxs">
select a.* from (
select * select *
from ( select t.*, rownum rn from ( from ( select t.*, @rownum := @rownum + 1 AS rownum from (
select xxzjbh as xxzjbh, select xxzjbh as xxzjbh,
asjbh as asjbh, asjbh as asjbh,
keyyj_jyqk as keyyjJyqk, keyyj_jyqk as keyyjJyqk,
...@@ -1321,7 +1370,10 @@ ...@@ -1321,7 +1370,10 @@
keyjdc_ppxh as keyjdcPpxh, keyjdc_ppxh as keyjdcPpxh,
keyjdc_jdchpzldm as keyjdcJdchpzldm, keyjdc_jdchpzldm as keyjdcJdchpzldm,
keyjdc_jdchphm as keyjdcJdchphm, keyjdc_jdchphm as keyjdcJdchphm,
decode(keyjdc_jdchphmzw_pdbz, '0', '否', '1', '是', '') as keyjdcJdchphmzwPdbz, (case
when keyjdc_jdchphmzw_pdbz='0' then '否'
when keyjdc_jdchphmzw_pdbz='1' then '是'
else '' end ) as keyjdcJdchphmzwPdbz,
keyjdc_clsbdh as keyjdcClsbdh, keyjdc_clsbdh as keyjdcClsbdh,
keyjdc_sfxgclsbdh_pdbz as keyjdcSfxgclsbdhPdbz, keyjdc_sfxgclsbdh_pdbz as keyjdcSfxgclsbdhPdbz,
keyjdc_jdcfdjddjxh as keyjdcJdcfdjddjxh, keyjdc_jdcfdjddjxh as keyjdcJdcfdjddjxh,
...@@ -1346,8 +1398,9 @@ ...@@ -1346,8 +1398,9 @@
XXDJDW_GAJGMC as lrdwmc XXDJDW_GAJGMC as lrdwmc
from tb_xw_fxkyjdcxs where xxsc_pdbz = 0 from tb_xw_fxkyjdcxs where xxsc_pdbz = 0
<if test="asjbh != null and asjbh != ''">and asjbh = #{asjbh}</if> <if test="asjbh != null and asjbh != ''">and asjbh = #{asjbh}</if>
) t where ROWNUM <![CDATA[<=]]> #{end} ) t,(SELECT @rownum:=0) r
) where rn > #{begin} )b where rownum <![CDATA[<=]]> #{end}
)a where rownum > #{begin}
</select> </select>
<!-- 查询可疑线索-电动非机动车总数 --> <!-- 查询可疑线索-电动非机动车总数 -->
...@@ -1357,8 +1410,9 @@ ...@@ -1357,8 +1410,9 @@
</select> </select>
<!-- 分页查询可疑线索-电动非机动车 --> <!-- 分页查询可疑线索-电动非机动车 -->
<select id="getFxkyddfjdcxsxxPage" resultType="org.springblade.founder.ajda.model.TbXwFxkyddfjdcxs"> <select id="getFxkyddfjdcxsxxPage" resultType="org.springblade.founder.ajda.model.TbXwFxkyddfjdcxs">
select a.* from (
select * select *
from ( select t.*, rownum rn from ( from ( select t.*, @rownum := @rownum + 1 AS rownum from (
select xxzjbh as xxzjbh, select xxzjbh as xxzjbh,
asjbh as asjbh, asjbh as asjbh,
keyyj_jyqk as keyyjJyqk, keyyj_jyqk as keyyjJyqk,
...@@ -1389,8 +1443,9 @@ ...@@ -1389,8 +1443,9 @@
XXDJDW_GAJGMC as lrdwmc XXDJDW_GAJGMC as lrdwmc
from tb_xw_fxkyddfjdcxs where xxsc_pdbz = 0 from tb_xw_fxkyddfjdcxs where xxsc_pdbz = 0
<if test="asjbh != null and asjbh != ''">and asjbh = #{asjbh}</if> <if test="asjbh != null and asjbh != ''">and asjbh = #{asjbh}</if>
) t where ROWNUM <![CDATA[<=]]> #{end} ) t,(SELECT @rownum:=0) r
) where rn > #{begin} )b where rownum <![CDATA[<=]]> #{end}
)a where rownum > #{begin}
</select> </select>
<!-- 查询可疑线索-文物总数 --> <!-- 查询可疑线索-文物总数 -->
...@@ -1401,18 +1456,28 @@ ...@@ -1401,18 +1456,28 @@
<!-- 分页查询可疑线索-文物 --> <!-- 分页查询可疑线索-文物 -->
<select id="getFxkywwxsxxPage" resultType="org.springblade.founder.ajda.model.TbXwFxkywwxs"> <select id="getFxkywwxsxxPage" resultType="org.springblade.founder.ajda.model.TbXwFxkywwxs">
select a.* from (
select * select *
from ( select t.*, rownum rn from ( from ( select t.*, @rownum := @rownum + 1 AS rownum from (
select xxzjbh as xxzjbh, select xxzjbh as xxzjbh,
asjbh as asjbh, asjbh as asjbh,
keyyj_jyqk as keyyjJyqk, keyyj_jyqk as keyyjJyqk,
keyww_sawpbh as keywwSawpbh, keyww_sawpbh as keywwSawpbh,
keyww_wwdjms as keywwWwdjms, keyww_wwdjms as keywwWwdjms,
decode(keyww_wwzxsclt_pdbz, '0', '不允许', '1', '允许', '') as keywwWwzxscltPdbz, (case
decode(keyww_wwzxcj_pdbz, '0', '不允许', '1', '允许', '') as keywwWwzxcjPdbz, when keyww_wwzxsclt_pdbz='0' then '不允许'
when keyww_wwzxsclt_pdbz='1' then '允许'
else '' end ) as keywwWwzxscltPdbz,
(case
when keyww_wwzxcj_pdbz='0' then '不允许'
when keyww_wwzxcj_pdbz='1' then '允许'
else '' end ) as keywwWwzxcjPdbz,
keyww_wptzms as keywwWptzms, keyww_wptzms as keywwWptzms,
keyww_wpjzrmby as keywwWpjzrmby, keyww_wpjzrmby as keywwWpjzrmby,
decode(keyww_wpzw_pdbz, '0', '伪', '1', '真', '') as keywwWpzwPdbz, (case
when keyww_wpzw_pdbz='0' then '伪'
when keyww_wpzw_pdbz='1' then '真'
else '' end ) as keywwWpzwPdbz,
bldw_gajgjgdm as bldwGajgjgdm, bldw_gajgjgdm as bldwGajgjgdm,
bldw_gajgmc as bldwGajgmc, bldw_gajgmc as bldwGajgmc,
zbr_xm as zbrXm, zbr_xm as zbrXm,
...@@ -1428,8 +1493,9 @@ ...@@ -1428,8 +1493,9 @@
XXDJDW_GAJGMC as lrdwmc XXDJDW_GAJGMC as lrdwmc
from tb_xw_fxkywwxs where xxsc_pdbz = 0 from tb_xw_fxkywwxs where xxsc_pdbz = 0
<if test="asjbh != null and asjbh != ''">and asjbh = #{asjbh}</if> <if test="asjbh != null and asjbh != ''">and asjbh = #{asjbh}</if>
) t where ROWNUM <![CDATA[<=]]> #{end} ) t,(SELECT @rownum:=0) r
) where rn > #{begin} )b where rownum <![CDATA[<=]]> #{end}
)a where rownum > #{begin}
</select> </select>
...@@ -1441,8 +1507,9 @@ ...@@ -1441,8 +1507,9 @@
<!-- 分页查询可疑线索-其他线索 --> <!-- 分页查询可疑线索-其他线索 -->
<select id="getFxqtkywpxsxxPage" resultType="org.springblade.founder.ajda.model.TbXwFxqtkywpxs"> <select id="getFxqtkywpxsxxPage" resultType="org.springblade.founder.ajda.model.TbXwFxqtkywpxs">
select a.* from (
select * select *
from ( select t.*, rownum rn from ( from ( select t.*, @rownum := @rownum + 1 AS rownum from (
select xxzjbh as xxzjbh, select xxzjbh as xxzjbh,
asjbh as asjbh, asjbh as asjbh,
keyyj_jyqk as keyyjJyqk, keyyj_jyqk as keyyjJyqk,
...@@ -1478,8 +1545,9 @@ ...@@ -1478,8 +1545,9 @@
XXDJDW_GAJGMC as lrdwmc XXDJDW_GAJGMC as lrdwmc
from tb_xw_fxqtkywpxs where xxsc_pdbz = 0 from tb_xw_fxqtkywpxs where xxsc_pdbz = 0
<if test="asjbh != null and asjbh != ''">and asjbh = #{asjbh}</if> <if test="asjbh != null and asjbh != ''">and asjbh = #{asjbh}</if>
) t where ROWNUM <![CDATA[<=]]> #{end} ) t,(SELECT @rownum:=0) r
) where rn > #{begin} )b where rownum <![CDATA[<=]]> #{end}
)a where rownum > #{begin}
</select> </select>
<!-- 获取侦查协作信息ListBY业务实体编号 --> <!-- 获取侦查协作信息ListBY业务实体编号 -->
...@@ -1662,7 +1730,7 @@ ...@@ -1662,7 +1730,7 @@
FWBZH_TSBK_PDBZ AS fwbzhTsbkPdbz, FWBZH_TSBK_PDBZ AS fwbzhTsbkPdbz,
CL_TSBK_PDBZ AS clTsbkPdbz, CL_TSBK_PDBZ AS clTsbkPdbz,
QTXGWP_TSBK_PDBZ AS qtxgwpTsbkPdbz, QTXGWP_TSBK_PDBZ AS qtxgwpTsbkPdbz,
NVL(BUK_QX,0) AS bukQx, IFNULL(BUK_QX,0) AS bukQx,
BUK_KSSJ AS bukKssj, BUK_KSSJ AS bukKssj,
BUK_JSSJ AS bukJssj, BUK_JSSJ AS bukJssj,
PDBZ AS pdbz, PDBZ AS pdbz,
......
...@@ -49,7 +49,6 @@ public interface IAjdaService { ...@@ -49,7 +49,6 @@ public interface IAjdaService {
List<TbXwCh> queryChListByAsjbh(String asjbh); List<TbXwCh> queryChListByAsjbh(String asjbh);
// 获取采比反消息 // 获取采比反消息
@DS("db1")
List<TbXxfwXxdl> queryXxdlListByasjbhAndXxlx(String asjbh, String s); List<TbXxfwXxdl> queryXxdlListByasjbhAndXxlx(String asjbh, String s);
//根据参数查询分页侦查日志 //根据参数查询分页侦查日志
......
...@@ -8,7 +8,9 @@ ...@@ -8,7 +8,9 @@
and xxsc_pdbz = '0' and xxsc_pdbz = '0'
</select> </select>
<select id="getAsjListByParam" resultType="org.springblade.founder.asj.entity.JbAsjXs"> <select id="getAsjListByParam" resultType="org.springblade.founder.asj.entity.JbAsjXs">
select * from (select rownum r,t.* from ( select a.* from (
select * from (
select @rownum := @rownum + 1 AS rownum,t.* from (
select asj.asjbh as asjbh, select asj.asjbh as asjbh,
asj.ajmc as ajmc, asj.ajmc as ajmc,
asj.ASJFSSJ_ASJFSKSSJ as afsj, asj.ASJFSSJ_ASJFSKSSJ as afsj,
...@@ -27,20 +29,24 @@ ...@@ -27,20 +29,24 @@
#{item} #{item}
</foreach> </foreach>
order by asj.djsj desc order by asj.djsj desc
) t where rownum <![CDATA[ <= ]]> #{end} ) where r <![CDATA[ > ]]> #{begin} ) t,(SELECT @rownum:=0) r
)b where rownum <![CDATA[ <= ]]> #{end})a where rownum <![CDATA[ > ]]> #{begin}
</select> </select>
<select id="getRyxbByZjhm" resultType="org.springblade.founder.asj.entity.JbAsjXs"> <select id="getRyxbByZjhm" resultType="org.springblade.founder.asj.entity.JbAsjXs">
select * from (
select zhrq as zhrq, select zhrq as zhrq,
ZHFZXYR_JZRYBH as jzxyrbh, ZHFZXYR_JZRYBH as jzxyrbh,
(select name from sys_dictitem where GROUPID = 'CODE_DAZT' and code = ZHFZXYR_FZXYRDAZTDM) as rydazt (select name from sys_dictitem where GROUPID = 'CODE_DAZT' and code = ZHFZXYR_FZXYRDAZTDM) as rydazt,
@rownum := @rownum + 1 AS rownum
from tb_xw_zbfzxyr from tb_xw_zbfzxyr
where asjbh = #{asjbh,jdbcType=VARCHAR} where asjbh = #{asjbh,jdbcType=VARCHAR}
and zhfzxyr_cyzj_zjhm = #{zjhm,jdbcType=VARCHAR} and xxsc_pdbz = '0' and rownum = 1 order by gxsj desc and zhfzxyr_cyzj_zjhm = #{zjhm,jdbcType=VARCHAR} and xxsc_pdbz = '0' order by gxsj desc ) t,(SELECT @rownum:=0) r
where rownum = 1
</select> </select>
<select id="getAsjbhListBsh" resultType="java.lang.String"> <select id="getAsjbhListBsh" resultType="java.lang.String">
select ASJBH select ASJBH
from tb_st_asj from tb_st_asj
where XXSC_PDBZ = '0' where XXSC_PDBZ = '0'
and JYAQ like '%' || #{bsh,jdbcType=VARCHAR} || '%' and JYAQ like concat('%',#{bsh, jdbcType=VARCHAR},'%')
</select> </select>
</mapper> </mapper>
...@@ -14,7 +14,8 @@ ...@@ -14,7 +14,8 @@
</if> </if>
</select> </select>
<select id="getAsjListByParam" resultType="org.springblade.founder.asj.entity.JbAsjXs"> <select id="getAsjListByParam" resultType="org.springblade.founder.asj.entity.JbAsjXs">
select * from (select rownum r,t.* from ( select a.* from (
select * from (select @rownum := @rownum + 1 AS rownum,t.* from (
select asj.asjbh as asjbh, select asj.asjbh as asjbh,
asj.ajmc as ajmc, asj.ajmc as ajmc,
asj.ASJFSSJ_ASJFSKSSJ as afsj, asj.ASJFSSJ_ASJFSKSSJ as afsj,
...@@ -29,13 +30,14 @@ ...@@ -29,13 +30,14 @@
#{item} #{item}
</foreach> </foreach>
order by asj.djsj desc order by asj.djsj desc
) t where rownum <![CDATA[ <= ]]> #{end} ) where r <![CDATA[ > ]]> #{begin} ) t,(SELECT @rownum:=0) r
)b where rownum <![CDATA[ <= ]]> #{end} )a where rownum <![CDATA[ > ]]> #{begin}
</select> </select>
<select id="getAsjbhListBsh" resultType="java.lang.String"> <select id="getAsjbhListBsh" resultType="java.lang.String">
select ASJBH select ASJBH
from tb_st_asj from tb_st_asj
where XXSC_PDBZ = '0' where XXSC_PDBZ = '0'
and JYAQ like '%' || #{bsh,jdbcType=VARCHAR} || '%' and JYAQ like concat('%',#{bsh, jdbcType=VARCHAR },'%')
<if test="qsAsjbhList != null and qsAsjbhList.size() > 0"> <if test="qsAsjbhList != null and qsAsjbhList.size() > 0">
and not exists (select asjbh from tb_xw_zbfzxyr where asjbh in and not exists (select asjbh from tb_xw_zbfzxyr where asjbh in
<foreach collection="qsAsjbhList" item="item" open="(" separator=", " close=")"> <foreach collection="qsAsjbhList" item="item" open="(" separator=", " close=")">
......
...@@ -407,7 +407,10 @@ ...@@ -407,7 +407,10 @@
<!--查询指定行数据--> <!--查询指定行数据-->
<select id="queryAll" resultMap="TbStAsjMap"> <select id="queryAll" resultMap="TbStAsjMap">
select * from(select select a.* from (
select * from(
select @rownum := @rownum + 1 AS rownum,t.* from (
select
ASJBH, JJBH, XCKYBH, ASJLYDM, XSJQLBDM, ZCJDDM, XSAJLASCJGDM, AJLBDM, ZATZ_JYQK, TSSDDM, ZATZZDFL_JYQK, ASJBH, JJBH, XCKYBH, ASJLYDM, XSJQLBDM, ZCJDDM, XSAJLASCJGDM, AJLBDM, ZATZ_JYQK, TSSDDM, ZATZZDFL_JYQK,
ZATZBCMS_JYQK, ZATZ_AJZATZJHBD, AJMC, FXASJSJ, FXASJDD_XZQHDM, FXASJDD_DZMC, ASJFSSJ_ASJFSKSSJ, ZATZBCMS_JYQK, ZATZ_AJZATZJHBD, AJMC, FXASJSJ, FXASJDD_XZQHDM, FXASJDD_DZMC, ASJFSSJ_ASJFSKSSJ,
ASJFSSJ_ASJFSJSSJ, ASJFSSJ_RSDDM, ASJFSSJ_ZASJ_ZASJLBDM, ASJFSSJ_ZASJ_DMBCMS, ASJFSDD_XZQHDM, ASJFSDD_DZMC, ASJFSSJ_ASJFSJSSJ, ASJFSSJ_RSDDM, ASJFSSJ_ZASJ_ZASJLBDM, ASJFSSJ_ZASJ_DMBCMS, ASJFSDD_XZQHDM, ASJFSDD_DZMC,
...@@ -434,21 +437,22 @@ ...@@ -434,21 +437,22 @@
ZZDWFZR_LXDH, ZUZDW_ZBR_XM, ZUZDW_ZBR_LXDH, ZUZDW_ZBR_GMSFHM, ZUZDW_XBR_XM1, ZUZDW_XBR_GMSFHM1, ZUZDW_XBR_LXDH1, ZZDWFZR_LXDH, ZUZDW_ZBR_XM, ZUZDW_ZBR_LXDH, ZUZDW_ZBR_GMSFHM, ZUZDW_XBR_XM1, ZUZDW_XBR_GMSFHM1, ZUZDW_XBR_LXDH1,
ZUZDW_XBR_XM2, ZUZDW_XBR_GMSFHM2, ZUZDW_XBR_LXDH2, ZBR_XM, ZBR_LXDH, ZBR_GMSFHM, JZAJBH, JYAQ, ZUZDW_XBR_XM2, ZUZDW_XBR_GMSFHM2, ZUZDW_XBR_LXDH2, ZBR_XM, ZBR_LXDH, ZBR_GMSFHM, JZAJBH, JYAQ,
XXRBK_PDBZ, XXRSK_PDBZ, XXRBKSJ, XXRSKSJ, ZADJDM, AJSFXCKY_PDBZ, ASJ_XC_QRR_GMSFHM, ASJ_XC_QRR_XM, ASJ_XC_QRSJ, XXRBK_PDBZ, XXRSK_PDBZ, XXRBKSJ, XXRSKSJ, ZADJDM, AJSFXCKY_PDBZ, ASJ_XC_QRR_GMSFHM, ASJ_XC_QRR_XM, ASJ_XC_QRSJ,
SFWWFZ_PDBZ, SFLSJA_PDBZ, PART, AJYWZTDM,ROWNUM rn SFWWFZ_PDBZ, SFLSJA_PDBZ, PART, AJYWZTDM
from tb_st_asj from tb_st_asj
<where> <where>
XXSC_PDBZ = '0' XXSC_PDBZ = '0'
<if test="asjbh != null and asjbh != ''"> <if test="asjbh != null and asjbh != ''">
and ASJBH like '%' || #{asjbh} || '%' and ASJBH like concat('%',#{asjbh},'%')
</if> </if>
<if test="ajmc != null and ajmc != ''"> <if test="ajmc != null and ajmc != ''">
and ajmc like '%' || #{ajmc} || '%' and ajmc like concat('%',#{ajmc},'%')
</if> </if>
and ROWNUM <![CDATA[ <= ]]> #{limit}
</where> </where>
)where rn <![CDATA[ > ]]> #{page} ) t,(SELECT @rownum:=0) r
)b where rownum <![CDATA[ <= ]]> #{limit}
)a where rownum <![CDATA[ > ]]> #{page}
</select> </select>
<!--统计总行数--> <!--统计总行数-->
...@@ -458,7 +462,7 @@ ...@@ -458,7 +462,7 @@
<where> <where>
xxsc_pdbz = '0' xxsc_pdbz = '0'
<if test="asjbh != null and asjbh != ''"> <if test="asjbh != null and asjbh != ''">
and ASJBH like '%' || #{asjbh} || '%' and ASJBH like concat('%',#{asjbh},'%')
</if> </if>
<if test="jjbh != null and jjbh != ''"> <if test="jjbh != null and jjbh != ''">
and JJBH = #{jjbh} and JJBH = #{jjbh}
...@@ -497,7 +501,7 @@ ...@@ -497,7 +501,7 @@
and ZATZ_AJZATZJHBD = #{zatzAjzatzjhbd} and ZATZ_AJZATZJHBD = #{zatzAjzatzjhbd}
</if> </if>
<if test="ajmc != null and ajmc != ''"> <if test="ajmc != null and ajmc != ''">
and AJMC like '%' || #{ajmc} || '%' and AJMC like concat('%',#{ajmc},'%')
</if> </if>
<if test="fxasjsj != null"> <if test="fxasjsj != null">
......
...@@ -11,7 +11,6 @@ import org.springframework.stereotype.Service; ...@@ -11,7 +11,6 @@ import org.springframework.stereotype.Service;
import java.util.List; import java.util.List;
@Service @Service
@DS("xzxt_hn")
public class HnJbAsjXsServiceImpl implements HnJbAsjXsService { public class HnJbAsjXsServiceImpl implements HnJbAsjXsService {
@Autowired @Autowired
private HnJbAsjXsMapper hnJbAsjXsMapper; private HnJbAsjXsMapper hnJbAsjXsMapper;
......
...@@ -37,7 +37,6 @@ import java.util.concurrent.ExecutorService; ...@@ -37,7 +37,6 @@ import java.util.concurrent.ExecutorService;
import java.util.concurrent.FutureTask; import java.util.concurrent.FutureTask;
@Service @Service
@DS("xzxt_hn")
public class KyxsServiceImpl implements KyxsService { public class KyxsServiceImpl implements KyxsService {
@Autowired @Autowired
......
...@@ -8,8 +8,8 @@ import lombok.Data; ...@@ -8,8 +8,8 @@ import lombok.Data;
import java.util.Date; import java.util.Date;
@Data @Data
@TableName("TB_ST_APP_BBGX") @TableName("tb_st_app_bbgx")
public class AppBbgx { public class AppBbgx{
@TableId(type = IdType.INPUT) @TableId(type = IdType.INPUT)
private String appVersion;//版本号 private String appVersion;//版本号
private String appGxbz;//更新备注 private String appGxbz;//更新备注
......
...@@ -2,6 +2,7 @@ package org.springblade.founder.bbgx.mapper; ...@@ -2,6 +2,7 @@ package org.springblade.founder.bbgx.mapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper; import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper; import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springblade.founder.bbgx.entity.AppBbgx; import org.springblade.founder.bbgx.entity.AppBbgx;
import org.springframework.stereotype.Repository; import org.springframework.stereotype.Repository;
...@@ -11,4 +12,8 @@ import java.util.List; ...@@ -11,4 +12,8 @@ import java.util.List;
@Repository @Repository
public interface AppBbgxMapper extends BaseMapper<AppBbgx> { public interface AppBbgxMapper extends BaseMapper<AppBbgx> {
List<AppBbgx> selectBbgxList(@Param("version") String version, @Param("page")Integer page, @Param("limit")Integer limit);
int selectBbgxListCount(@Param("version") String version, @Param("page")Integer page, @Param("limit")Integer limit);
} }
<?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="org.springblade.founder.bbgx.mapper.AppBbgxMapper"> <mapper namespace="org.springblade.founder.bbgx.mapper.AppBbgxMapper">
<select id="selectBbgxList" resultType="org.springblade.founder.bbgx.entity.AppBbgx">
select APP_VERSION appVersion,APP_GXBZ appGxbz,APP_GXWJWZ appGxwjwz,rksj,XXSC_PDBZ xxscPdbz,filename
from tb_st_app_bbgx
where xxsc_pdbz = 0
<if test="version != null and version != ''">and app_version = #{version}</if>
order by rksj desc
limit #{page}, #{limit}
</select>
<select id="selectBbgxListCount" resultType="int">
select count(*)
from tb_st_app_bbgx
where xxsc_pdbz = 0
<if test="version != null and version != ''">and app_version = #{version}</if>
order by rksj desc
</select>
</mapper> </mapper>
...@@ -37,25 +37,14 @@ public class AppBbgxServiceImpl extends ServiceImpl<AppBbgxMapper, AppBbgx> impl ...@@ -37,25 +37,14 @@ public class AppBbgxServiceImpl extends ServiceImpl<AppBbgxMapper, AppBbgx> impl
@Override @Override
public Map<String, Object> getBbgxList(String version, Integer page, Integer limit) { public Map<String, Object> getBbgxList(String version, Integer page, Integer limit) {
HashMap<String, Object> resultMap = new HashMap<>(); HashMap<String, Object> resultMap = new HashMap<>();
LambdaQueryWrapper<AppBbgx> queryWrapper = Wrappers.lambdaQuery(AppBbgx.class); List<AppBbgx> appBbgxes = appBbgxMapper.selectBbgxList(version, page, limit);
queryWrapper.eq(AppBbgx::getXxscPdbz, "0"); int i = appBbgxMapper.selectBbgxListCount(version, page, limit);
queryWrapper.orderByDesc(AppBbgx::getRksj);
queryWrapper.select(AppBbgx::getAppVersion
, AppBbgx::getAppGxbz
, AppBbgx::getRksj
, AppBbgx::getXxscPdbz);
Page<AppBbgx> bbgxPage = super.page(new Page<>(page, limit), queryWrapper);
long total = bbgxPage.getTotal();
List<AppBbgx> rows = bbgxPage.getRecords();
resultMap.put("sfksj", "1"); resultMap.put("sfksj", "1");
if (rows != null && !rows.isEmpty()) { if (i>0) {
AppBbgx bbgx = rows.get(0);
if (version != null && version.equals(bbgx.getAppVersion())) {
resultMap.put("sfksj", "0"); resultMap.put("sfksj", "0");
} }
} resultMap.put("total", appBbgxes);
resultMap.put("total", total); resultMap.put("rows", i);
resultMap.put("rows", rows);
return resultMap; return resultMap;
} }
......
...@@ -3,16 +3,17 @@ ...@@ -3,16 +3,17 @@
<mapper namespace="org.springblade.founder.dzbl.mapper.TbStAppDzblMapper"> <mapper namespace="org.springblade.founder.dzbl.mapper.TbStAppDzblMapper">
<select id="selectListByParam" resultType="org.springblade.founder.dzbl.entity.TbStAppDzbl"> <select id="selectListByParam" resultType="org.springblade.founder.dzbl.entity.TbStAppDzbl">
select * from (select rownum r, t.* from ( select a.* from (
select * from (select @rownum := @rownum + 1 AS rownum, t.* from (
SELECT SELECT
<include refid="dzblField"/> <include refid="dzblField"/>
FROM tb_st_app_dzbl dzbl FROM tb_st_app_dzbl dzbl
where dzbl.XXSC_PDBZ = '0' where dzbl.XXSC_PDBZ = '0'
<include refid="dzblParam"/> <include refid="dzblParam"/>
order by dzbl.DJSJ desc order by dzbl.DJSJ desc
) t ) t,(SELECT @rownum:=0) r
where rownum <![CDATA[ <= ]]> #{end}) )b where rownum <![CDATA[ <= ]]> #{end})a
where r <![CDATA[ > ]]> #{begin} where rownum <![CDATA[ > ]]> #{begin}
</select> </select>
<select id="selectCountByParam" resultType="java.lang.Integer"> <select id="selectCountByParam" resultType="java.lang.Integer">
select count(1) select count(1)
...@@ -39,10 +40,13 @@ ...@@ -39,10 +40,13 @@
unitcode like CONCAT(#{dwdm,jdbcType=VARCHAR}, '%') unitcode like CONCAT(#{dwdm,jdbcType=VARCHAR}, '%')
</if> </if>
<if test="dwList != null and dwList.size() > 0"> <if test="dwList != null and dwList.size() > 0">
and unitcode in and
<foreach collection="dwList" item="dw" open="(" close=")" separator=","> <foreach collection="dwList" item="dws" open="(" close=")" separator=" or ">
unitcode in
<foreach collection="dws" item="dw" separator="," open="(" close=")">
#{dw,jdbcType=VARCHAR} #{dw,jdbcType=VARCHAR}
</foreach> </foreach>
</foreach>
</if> </if>
<if test="xm != null and xm != ''"> <if test="xm != null and xm != ''">
and true_name like CONCAT('%', #{xm,jdbcType=VARCHAR}, '%') and true_name like CONCAT('%', #{xm,jdbcType=VARCHAR}, '%')
...@@ -65,10 +69,13 @@ ...@@ -65,10 +69,13 @@
unitcode like CONCAT(#{dwdm,jdbcType=VARCHAR}, '%') unitcode like CONCAT(#{dwdm,jdbcType=VARCHAR}, '%')
</if> </if>
<if test="dwList != null and dwList.size() > 0"> <if test="dwList != null and dwList.size() > 0">
and unitcode in and
<foreach collection="dwList" item="dw" open="(" close=")" separator=","> <foreach collection="dwList" item="dws" open="(" close=")" separator=" or ">
unitcode in
<foreach collection="dws" item="dw" separator="," open="(" close=")">
#{dw,jdbcType=VARCHAR} #{dw,jdbcType=VARCHAR}
</foreach> </foreach>
</foreach>
</if> </if>
<if test="xm != null and xm != ''"> <if test="xm != null and xm != ''">
and true_name like CONCAT('%', #{xm,jdbcType=VARCHAR}, '%') and true_name like CONCAT('%', #{xm,jdbcType=VARCHAR}, '%')
...@@ -137,10 +144,10 @@ ...@@ -137,10 +144,10 @@
<sql id="dzblParam"> <sql id="dzblParam">
<if test="xxzjbh != null and xxzjbh != ''"> <if test="xxzjbh != null and xxzjbh != ''">
AND dzbl.XXZJBH like '%' || #{xxzjbh , jdbcType=VARCHAR } || '%' AND dzbl.XXZJBH like concat('%',#{xxzjbh, jdbcType=VARCHAR},'%')
</if> </if>
<if test="asjbh != null and asjbh != ''"> <if test="asjbh != null and asjbh != ''">
AND dzbl.ASJBH like #{asjbh , jdbcType=VARCHAR } || '%' AND dzbl.ASJBH like concat(#{asjbh, jdbcType=VARCHAR},'%')
</if> </if>
<if test="sfdxzpPdbz != null and sfdxzpPdbz != ''"> <if test="sfdxzpPdbz != null and sfdxzpPdbz != ''">
AND dzbl.SFDXZP_PDBZ = #{sfdxzpPdbz , jdbcType=VARCHAR } AND dzbl.SFDXZP_PDBZ = #{sfdxzpPdbz , jdbcType=VARCHAR }
...@@ -182,7 +189,7 @@ ...@@ -182,7 +189,7 @@
AND dzbl.DJSJ = #{djsj , jdbcType=TIMESTAMP } AND dzbl.DJSJ = #{djsj , jdbcType=TIMESTAMP }
</if> </if>
<if test="xxdjdwGajgjgdm != null and xxdjdwGajgjgdm != ''"> <if test="xxdjdwGajgjgdm != null and xxdjdwGajgjgdm != ''">
AND dzbl.XXDJDW_GAJGJGDM like #{xxdjdwGajgjgdm , jdbcType=VARCHAR } || '%' AND dzbl.XXDJDW_GAJGJGDM like concat(#{xxdjdwGajgjgdm, jdbcType=VARCHAR},'%')
</if> </if>
<if test="xxdjdwGajgmc != null and xxdjdwGajgmc != ''"> <if test="xxdjdwGajgmc != null and xxdjdwGajgmc != ''">
AND dzbl.XXDJDW_GAJGMC = #{xxdjdwGajgmc , jdbcType=VARCHAR } AND dzbl.XXDJDW_GAJGMC = #{xxdjdwGajgmc , jdbcType=VARCHAR }
...@@ -227,7 +234,7 @@ ...@@ -227,7 +234,7 @@
AND dzbl.XXRBK_PDBZ = #{xxrbkPdbz , jdbcType=VARCHAR } AND dzbl.XXRBK_PDBZ = #{xxrbkPdbz , jdbcType=VARCHAR }
</if> </if>
<if test="xm != null and xm != ''"> <if test="xm != null and xm != ''">
AND xm like '%' || #{xm , jdbcType=VARCHAR } || '%' AND xm like concat('%',#{xm, jdbcType=VARCHAR},'%')
</if> </if>
<if test="sfzh != null and sfzh != ''"> <if test="sfzh != null and sfzh != ''">
AND sfzh = #{sfzh , jdbcType=VARCHAR } AND sfzh = #{sfzh , jdbcType=VARCHAR }
......
...@@ -18,12 +18,12 @@ import org.springblade.modules.system.entity.XzxtUser; ...@@ -18,12 +18,12 @@ import org.springblade.modules.system.entity.XzxtUser;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service; import org.springframework.stereotype.Service;
import java.util.ArrayList;
import java.util.HashMap; import java.util.HashMap;
import java.util.List; import java.util.List;
import java.util.Map; import java.util.Map;
@Service @Service
@DS("xzxt_hn")
public class TbStAppDzblServiceImpl implements TbStAppDzblService { public class TbStAppDzblServiceImpl implements TbStAppDzblService {
@Autowired @Autowired
...@@ -88,8 +88,14 @@ public class TbStAppDzblServiceImpl implements TbStAppDzblService { ...@@ -88,8 +88,14 @@ public class TbStAppDzblServiceImpl implements TbStAppDzblService {
@Override @Override
public TbStAppDzbl getDzblByXxzjbh(String xxzjbh) { public TbStAppDzbl getDzblByXxzjbh(String xxzjbh) {
TbStAppDzbl dzbl = tbStAppDzblMapper.selectByxxzjbh(xxzjbh); TbStAppDzbl dzbl = tbStAppDzblMapper.selectByxxzjbh(xxzjbh);
List<String> hnAsjbhList = hnJbAsjXsService.getAsjbhListZjhm(dzbl.getSfzh()); List<String> hnAsjbhList = new ArrayList<>();
List<String> qgAsjbhList = qgJbAsjXsService.getAsjbhListZjhm(dzbl.getSfzh(), hnAsjbhList); if (StringUtils.isNotEmpty(dzbl.getSfzh())) {
hnAsjbhList = hnJbAsjXsService.getAsjbhListZjhm(dzbl.getSfzh());
}
List<String> qgAsjbhList = new ArrayList<>();
if (StringUtils.isNotEmpty(dzbl.getSfzh()) && hnAsjbhList.size() > 0) {
qgAsjbhList = qgJbAsjXsService.getAsjbhListZjhm(dzbl.getSfzh(), hnAsjbhList);
}
dzbl.setQsAjList(hnAsjbhList); dzbl.setQsAjList(hnAsjbhList);
dzbl.setQsAjCount(hnAsjbhList.size()); dzbl.setQsAjCount(hnAsjbhList.size());
dzbl.setQgAjList(qgAsjbhList); dzbl.setQgAjList(qgAsjbhList);
...@@ -120,10 +126,8 @@ public class TbStAppDzblServiceImpl implements TbStAppDzblService { ...@@ -120,10 +126,8 @@ public class TbStAppDzblServiceImpl implements TbStAppDzblService {
} }
@Override @Override
@DS("db1")
public Map<String, Object> queryAllZcy(ZcyEntity zcy) { public Map<String, Object> queryAllZcy(ZcyEntity zcy) {
HashMap<String, Object> resultMap = new HashMap<>(); HashMap<String, Object> resultMap = new HashMap<>();
// Utils.setPageParams(zcy);
zcy.setEnd(zcy.getRows()); zcy.setEnd(zcy.getRows());
zcy.setBegin((zcy.getPage() - 1 ) * zcy.getRows()); zcy.setBegin((zcy.getPage() - 1 ) * zcy.getRows());
unitcodeUnitService.setDwParam(zcy); unitcodeUnitService.setDwParam(zcy);
......
...@@ -10,7 +10,6 @@ import org.springframework.stereotype.Service; ...@@ -10,7 +10,6 @@ import org.springframework.stereotype.Service;
@Slf4j @Slf4j
@Service @Service
@DS("db1")
public class LogMysqlServiceImpl implements LogMysqlService { public class LogMysqlServiceImpl implements LogMysqlService {
@Autowired @Autowired
private LogDao logDao; private LogDao logDao;
......
...@@ -74,12 +74,6 @@ public interface TbGlAsjRyMapper { ...@@ -74,12 +74,6 @@ public interface TbGlAsjRyMapper {
*/ */
int update(TbGlAsjRyQgccj tbGlAsjRy); int update(TbGlAsjRyQgccj tbGlAsjRy);
/**
* 通过主键删除数据
*
* @param xxzjbh 主键
* @return 影响行数
*/
int delete(TbGlAsjRyQgccj tbGlAsjRyQgccj); int delete(TbGlAsjRyQgccj tbGlAsjRyQgccj);
TbGlAsjRyQgccj query(String asjxgrybh, String asjbh); TbGlAsjRyQgccj query(String asjxgrybh, String asjbh);
......
...@@ -53,17 +53,29 @@ ...@@ -53,17 +53,29 @@
</resultMap> </resultMap>
<select id="queryAll" resultMap="TbStQtsawpWpMap"> <select id="queryAll" resultMap="TbStQtsawpWpMap">
select * from(select select a.* from (
SAWPBH, SAWP_SAWPDM, SAWP_DMBCMS, QTSAWP_WPMC, QTSAWP_PPXH, QTSAWP_WPGG, QTSAWP_WPBZH_WPBZHLBDM, QTSAWP_WPBZH_DMBCMS, QTSAWP_WPBZH_WPBZH, QTSAWP_WPYS_WPYSDM, QTSAWP_WPYS_DMBCMS, QTSAWP_WPJZRMBY, QTSAWP_WPSL, QTSAWP_WPZL, QTSAWP_JLDLDW, QTSAWP_WPTZMS, QTSAWP_WPZW_PDBZ, QTSAWP_WPLYMS, QTSAWP_WPGZRQ, XXSC_PDBZ, XXDJDW_GAJGJGDM, XXDJDW_GAJGMC, XXDJRY_XM, XXDJRY_GMSFHM, XXDJRY_LXDH, DJSJ, XXCZDW_GAJGJGDM, XXCZDW_GAJGMC, XXCZRY_XM, XXCZRY_GMSFHM, GXSJ, XXLYMS, XXRSKSJ, XXRBKSJ, XXRSK_PDBZ, XXRBK_PDBZ, GABXF, JZWPBH, JZAJBH, JZGXBH, ASJBH, select * from(
select @rownum := @rownum + 1 AS rownum, t1.* from (
select
SAWPBH, SAWP_SAWPDM, SAWP_DMBCMS, QTSAWP_WPMC, QTSAWP_PPXH, QTSAWP_WPGG, QTSAWP_WPBZH_WPBZHLBDM,
QTSAWP_WPBZH_DMBCMS, QTSAWP_WPBZH_WPBZH, QTSAWP_WPYS_WPYSDM, QTSAWP_WPYS_DMBCMS, QTSAWP_WPJZRMBY, QTSAWP_WPSL,
QTSAWP_WPZL, QTSAWP_JLDLDW, QTSAWP_WPTZMS, QTSAWP_WPZW_PDBZ, QTSAWP_WPLYMS, QTSAWP_WPGZRQ, XXSC_PDBZ,
XXDJDW_GAJGJGDM, XXDJDW_GAJGMC, XXDJRY_XM, XXDJRY_GMSFHM, XXDJRY_LXDH, DJSJ, XXCZDW_GAJGJGDM, XXCZDW_GAJGMC,
XXCZRY_XM, XXCZRY_GMSFHM, GXSJ, XXLYMS, XXRSKSJ, XXRBKSJ, XXRSK_PDBZ, XXRBK_PDBZ, GABXF, JZWPBH, JZAJBH, JZGXBH,
ASJBH,
(select name from sys_dictitem where groupid = 'CODE_SAWPFL' and code = t.SAWP_SAWPDM ) as SAWP_SAWPDMStr, (select name from sys_dictitem where groupid = 'CODE_SAWPFL' and code = t.SAWP_SAWPDM ) as SAWP_SAWPDMStr,
(select name from sys_dictitem where groupid = 'CODE_WPBSH' and code = t.QTSAWP_WPBZH_WPBZHLBDM ) as QTSAWP_WPBZH_WPBZHLBDMStr, (select name from sys_dictitem where groupid = 'CODE_WPBSH' and code = t.QTSAWP_WPBZH_WPBZHLBDM ) as
(select name from sys_dictitem where groupid = 'CODE_YS' and code = t.QTSAWP_WPYS_WPYSDM ) as QTSAWP_WPYS_WPYSDMStr, QTSAWP_WPBZH_WPBZHLBDMStr,
rownum rn (select name from sys_dictitem where groupid = 'CODE_YS' and code = t.QTSAWP_WPYS_WPYSDM ) as
QTSAWP_WPYS_WPYSDMStr
from tb_st_qtsawp_wp t from tb_st_qtsawp_wp t
where xxsc_pdbz = '0' and rownum <![CDATA[ <= ]]> #{limit} where xxsc_pdbz = '0'
<if test="asjbh != null and asjbh != '' "> <if test="asjbh != null and asjbh != '' ">
and asjbh = #{asjbh} and asjbh = #{asjbh}
</if>)where rn <![CDATA[ > ]]> #{page} </if>
)t1,(SELECT @rownum:=0) r
)b where rownum <![CDATA[ <= ]]> #{limit}
)a where rownum <![CDATA[ > ]]> #{page}
</select> </select>
<!--查询单个--> <!--查询单个-->
......
...@@ -275,16 +275,20 @@ ...@@ -275,16 +275,20 @@
</select> </select>
<select id="queryAll" resultType="org.springblade.founder.qgccj.entity.TbStRySyfwbzh"> <select id="queryAll" resultType="org.springblade.founder.qgccj.entity.TbStRySyfwbzh">
select * from(select select a.* from (
select * from(
select @rownum := @rownum + 1 AS rownum, t1.* from (
select
xxzjbh, asjxgrybh, syfwbzh_wqlbdm, syfwbzh_fwbzh_xxzjbh, syfwbzh_fwbzh_fwbzhlbdm, syfwbzh_fwbzh_dmbcms, syfwbzh_fwbzh_fwbzh, syfwbzh_fwbzh_djsj, syfwbzh_fwzcd_gjhdqdm, syfwbzh_fwzcd_xzqhdm, syfwbzh_fwzcd_dzmc, syfwbzh_fwdw_dwmc, syfwbzh_yxqksrq, syfwbzh_yxqjzrq, xxsc_pdbz, xxdjdw_gajgjgdm, xxdjdw_gajgmc, xxdjry_xm, xxdjry_gmsfhm, xxdjry_lxdh, djsj, xxczdw_gajgjgdm, xxczdw_gajgmc, xxczry_xm, xxczry_gmsfhm, gxsj, ysxxbh, xxlyms, xxrsksj, xxrbksj, xxrsk_pdbz, xxrbk_pdbz, gabxf, xxzjbh, asjxgrybh, syfwbzh_wqlbdm, syfwbzh_fwbzh_xxzjbh, syfwbzh_fwbzh_fwbzhlbdm, syfwbzh_fwbzh_dmbcms, syfwbzh_fwbzh_fwbzh, syfwbzh_fwbzh_djsj, syfwbzh_fwzcd_gjhdqdm, syfwbzh_fwzcd_xzqhdm, syfwbzh_fwzcd_dzmc, syfwbzh_fwdw_dwmc, syfwbzh_yxqksrq, syfwbzh_yxqjzrq, xxsc_pdbz, xxdjdw_gajgjgdm, xxdjdw_gajgmc, xxdjry_xm, xxdjry_gmsfhm, xxdjry_lxdh, djsj, xxczdw_gajgjgdm, xxczdw_gajgmc, xxczry_xm, xxczry_gmsfhm, gxsj, ysxxbh, xxlyms, xxrsksj, xxrbksj, xxrsk_pdbz, xxrbk_pdbz, gabxf,
(select name from sys_dictitem where code = t.syfwbzh_wqlbdm and groupid = 'CODE_WQLB') as syfwbzh_wqlbdmStr, (select name from sys_dictitem where code = t.syfwbzh_wqlbdm and groupid = 'CODE_WQLB') as syfwbzh_wqlbdmStr,
(select name from sys_dictitem where code = t.syfwbzh_fwbzh_fwbzhlbdm and groupid = 'CODE_FWBSHLB') as syfwbzh_fwbzh_fwbzhlbdmStr, (select name from sys_dictitem where code = t.syfwbzh_fwbzh_fwbzhlbdm and groupid = 'CODE_FWBSHLB') as syfwbzh_fwbzh_fwbzhlbdmStr,
(select name from sys_dictitem where code = t.syfwbzh_fwzcd_gjhdqdm and groupid = 'CODE_GJ') as syfwbzh_fwzcd_gjhdqdmStr, (select name from sys_dictitem where code = t.syfwbzh_fwzcd_gjhdqdm and groupid = 'CODE_GJ') as syfwbzh_fwzcd_gjhdqdmStr,
(select name from sys_dictitem where code = t.syfwbzh_fwzcd_xzqhdm and groupid = 'CODE_XZQH') as syfwbzh_fwzcd_xzqhdmStr, (select name from sys_dictitem where code = t.syfwbzh_fwzcd_xzqhdm and groupid = 'CODE_XZQH') as syfwbzh_fwzcd_xzqhdmStr
rownum rn
from tb_st_ry_syfwbzh t from tb_st_ry_syfwbzh t
where asjxgrybh = #{asjxgrybh} and xxsc_pdbz = '0' and rownum <![CDATA[ > ]]>#{page}) where asjxgrybh = #{asjxgrybh} and xxsc_pdbz = '0'
where rn <![CDATA[ <= ]]> #{limit} )t1,(SELECT @rownum:=0) r
)b where rownum <![CDATA[ > ]]>#{page})a
where rownum <![CDATA[ <= ]]> #{limit}
</select> </select>
<select id="queryByRybhAndFwbzh" resultMap="TbStRySyfwbzhMap"> <select id="queryByRybhAndFwbzh" resultMap="TbStRySyfwbzhMap">
select select
......
...@@ -64,17 +64,22 @@ ...@@ -64,17 +64,22 @@
</select> </select>
<select id="queryAll" resultMap="TbStXcylwpWpMap"> <select id="queryAll" resultMap="TbStXcylwpWpMap">
select * from(select select a.* from (
select * from(
select @rownum := @rownum + 1 AS rownum, t1.* from (
select
SAWPBH, SAWP_SAWPDM, SAWP_DMBCMS, ASJBH, XCYLWP_WPMC, XCYLWP_PPXH, XCYLWP_WPGG, XCYLWP_WPBZH_WPBZHLBDM, XCYLWP_WPBZH_DMBCMS, XCYLWP_WPBZH_WPBZH, XCYLWP_WPYS_WPYSDM, XCYLWP_WPYS_DMBCMS, XCYLWP_WPJZRMBY, XCYLWP_WPSL, XCYLWP_WPZL, XCYLWP_JLDLDW, XCYLWP_WPTZMS, XCYLWP_WPZW_PDBZ, XCYLWP_WPLYMS, XCYLWP_WPGZRQ, XXSC_PDBZ, XXDJDW_GAJGJGDM, XXDJDW_GAJGMC, XXDJRY_XM, XXDJRY_GMSFHM, XXDJRY_LXDH, DJSJ, XXCZDW_GAJGJGDM, XXCZDW_GAJGMC, XXCZRY_XM, XXCZRY_GMSFHM, GXSJ, XXLYMS, XXRSKSJ, XXRBKSJ, XXRSK_PDBZ, XXRBK_PDBZ, GABXF, JZWPBH, JZAJBH, JZGXBH, SAWPBH, SAWP_SAWPDM, SAWP_DMBCMS, ASJBH, XCYLWP_WPMC, XCYLWP_PPXH, XCYLWP_WPGG, XCYLWP_WPBZH_WPBZHLBDM, XCYLWP_WPBZH_DMBCMS, XCYLWP_WPBZH_WPBZH, XCYLWP_WPYS_WPYSDM, XCYLWP_WPYS_DMBCMS, XCYLWP_WPJZRMBY, XCYLWP_WPSL, XCYLWP_WPZL, XCYLWP_JLDLDW, XCYLWP_WPTZMS, XCYLWP_WPZW_PDBZ, XCYLWP_WPLYMS, XCYLWP_WPGZRQ, XXSC_PDBZ, XXDJDW_GAJGJGDM, XXDJDW_GAJGMC, XXDJRY_XM, XXDJRY_GMSFHM, XXDJRY_LXDH, DJSJ, XXCZDW_GAJGJGDM, XXCZDW_GAJGMC, XXCZRY_XM, XXCZRY_GMSFHM, GXSJ, XXLYMS, XXRSKSJ, XXRBKSJ, XXRSK_PDBZ, XXRBK_PDBZ, GABXF, JZWPBH, JZAJBH, JZGXBH,
(select name from sys_dictitem where groupid = 'CODE_SAWPFL' and code = t.SAWP_SAWPDM ) as SAWP_SAWPDMStr, (select name from sys_dictitem where groupid = 'CODE_SAWPFL' and code = t.SAWP_SAWPDM ) as SAWP_SAWPDMStr,
(select name from sys_dictitem where groupid = 'CODE_WPBSH' and code = t.XCYLWP_WPBZH_WPBZHLBDM ) as XCYLWP_WPBZH_WPBZHLBDMStr, (select name from sys_dictitem where groupid = 'CODE_WPBSH' and code = t.XCYLWP_WPBZH_WPBZHLBDM ) as XCYLWP_WPBZH_WPBZHLBDMStr,
(select name from sys_dictitem where groupid = 'CODE_YS' and code = t.XCYLWP_WPYS_WPYSDM ) as XCYLWP_WPYS_WPYSDMStr, (select name from sys_dictitem where groupid = 'CODE_YS' and code = t.XCYLWP_WPYS_WPYSDM ) as XCYLWP_WPYS_WPYSDMStr
rownum rn
from tb_st_xcylwp_wp t from tb_st_xcylwp_wp t
where xxsc_pdbz = '0' and rownum <![CDATA[ <= ]]> #{limit} where xxsc_pdbz = '0'
<if test="asjbh != null and asjbh != '' "> <if test="asjbh != null and asjbh != '' ">
and asjbh = #{asjbh} and asjbh = #{asjbh}
</if>)where rn <![CDATA[ > ]]> #{page} </if>
)t1,(SELECT @rownum:=0) r
)b where rownum <![CDATA[ <= ]]> #{limit})a
where rn <![CDATA[ > ]]> #{page}
</select> </select>
<!--查询指定行数据--> <!--查询指定行数据-->
......
...@@ -80,7 +80,6 @@ public interface TbXwBaMapper { ...@@ -80,7 +80,6 @@ public interface TbXwBaMapper {
/** /**
* 通过主键删除数据 * 通过主键删除数据
* *
* @param xxzjbh 主键
* @return 影响行数 * @return 影响行数
*/ */
int delete(TbXwBaQgccj tbXwBaQgccj); int delete(TbXwBaQgccj tbXwBaQgccj);
......
...@@ -196,13 +196,23 @@ ...@@ -196,13 +196,23 @@
</select> </select>
<select id="queryAll" resultMap="TbXwBaMap"> <select id="queryAll" resultMap="TbXwBaMap">
select * from(select select a.* from (
xxzjbh, asjbh, ba_jyqk, basj, badd_xzqhdm, badd_dzmc, bar_asjxgrybh, bar_xm, bar_cyzj_cyzjdm, bar_cyzj_dmbcms, bar_cyzj_zjhm, bar_csrq, bar_xbdm, bar_gjdm, bar_jgdm, bar_mzdm, bar_xzz_xzqhdm, bar_xzz_dzmc, bar_gzdw, bar_lxdh, bar_bz, glxx_xxzjbh, xxsc_pdbz, xxdjdw_gajgjgdm, xxdjdw_gajgmc, xxdjry_xm, xxdjry_gmsfhm, xxdjry_lxdh, djsj, xxczdw_gajgjgdm, xxczdw_gajgmc, xxczry_xm, xxczry_gmsfhm, gxsj, xxlyms, xxrsksj, xxrbksj, xxrsk_pdbz, xxrbk_pdbz, bar_jzrybh, jzajbh, gabxf, if_collect,rownum rn select * from(
select t.* , @rownum := @rownum + 1 AS rownum from (
select
xxzjbh, asjbh, ba_jyqk, basj, badd_xzqhdm, badd_dzmc, bar_asjxgrybh, bar_xm, bar_cyzj_cyzjdm, bar_cyzj_dmbcms,
bar_cyzj_zjhm, bar_csrq, bar_xbdm, bar_gjdm, bar_jgdm, bar_mzdm, bar_xzz_xzqhdm, bar_xzz_dzmc, bar_gzdw,
bar_lxdh, bar_bz, glxx_xxzjbh, xxsc_pdbz, xxdjdw_gajgjgdm, xxdjdw_gajgmc, xxdjry_xm, xxdjry_gmsfhm, xxdjry_lxdh,
djsj, xxczdw_gajgjgdm, xxczdw_gajgmc, xxczry_xm, xxczry_gmsfhm, gxsj, xxlyms, xxrsksj, xxrbksj, xxrsk_pdbz,
xxrbk_pdbz, bar_jzrybh, jzajbh, gabxf, if_collect
from tb_xw_ba from tb_xw_ba
where xxsc_pdbz = '0' and rownum <![CDATA[ <= ]]> #{limit} where xxsc_pdbz = '0'
<if test="asjbh != null and asjbh != '' "> <if test="asjbh != null and asjbh != '' ">
and asjbh = #{asjbh} and asjbh = #{asjbh}
</if>)where rn <![CDATA[ > ]]> #{page} </if>
)t,(SELECT @rownum:=0) r
)b where rownum <![CDATA[ <= ]]> #{limit}
)a where rownum <![CDATA[ > ]]> #{page}
</select> </select>
<!--统计总行数--> <!--统计总行数-->
......
...@@ -336,17 +336,22 @@ ...@@ -336,17 +336,22 @@
</select> </select>
<select id="queryAll" resultType="org.springblade.founder.qgccj.entity.TbXwFxkyddfjdcxs"> <select id="queryAll" resultType="org.springblade.founder.qgccj.entity.TbXwFxkyddfjdcxs">
select * from (select select a.* from (
select * from (
select @rownum := @rownum + 1 AS rownum, t1.* from (
select
XXZJBH, ASJBH, KEYYJ_JYQK, KEYDDFJDC_SAWPBH, KEYDDFJDC_SAWPDM, KEYDDFJDC_PPXH, KEYDDFJDC_DDFJDCDJH_WPBZH, KEYDDFJDC_DDFJDCCJH_WPBZH, KEYDDFJDC_DDFJDCPZH_WPBZH, KEYDDFJDC_DDFJDCGYH_WPBZH, KEYDDFJDC_WPYS_WPYSDM, KEYDDFJDC_WPYS_DMBCMS, KEYDDFJDC_WPTZMS, KEYDDFJDC_WPJZRMBY, BLDW_GAJGJGDM, BLDW_GAJGMC, ZBR_XM, ZBR_GMSFHM, ZBR_LXDH, XBR_XM, XBR_GMSFHM, XBR_LXDH, BLSJ, XXSC_PDBZ, XXDJDW_GAJGJGDM, XXDJDW_GAJGMC, XXDJRY_XM, XXDJRY_GMSFHM, XXDJRY_LXDH, DJSJ, XXCZDW_GAJGJGDM, XXCZDW_GAJGMC, XXCZRY_XM, XXCZRY_GMSFHM, GXSJ, XXLYMS, XXRSKSJ, XXRBKSJ, XXRSK_PDBZ, XXRBK_PDBZ, GABXF, KEYDDFJDC_JZWPBH, XXZJBH, ASJBH, KEYYJ_JYQK, KEYDDFJDC_SAWPBH, KEYDDFJDC_SAWPDM, KEYDDFJDC_PPXH, KEYDDFJDC_DDFJDCDJH_WPBZH, KEYDDFJDC_DDFJDCCJH_WPBZH, KEYDDFJDC_DDFJDCPZH_WPBZH, KEYDDFJDC_DDFJDCGYH_WPBZH, KEYDDFJDC_WPYS_WPYSDM, KEYDDFJDC_WPYS_DMBCMS, KEYDDFJDC_WPTZMS, KEYDDFJDC_WPJZRMBY, BLDW_GAJGJGDM, BLDW_GAJGMC, ZBR_XM, ZBR_GMSFHM, ZBR_LXDH, XBR_XM, XBR_GMSFHM, XBR_LXDH, BLSJ, XXSC_PDBZ, XXDJDW_GAJGJGDM, XXDJDW_GAJGMC, XXDJRY_XM, XXDJRY_GMSFHM, XXDJRY_LXDH, DJSJ, XXCZDW_GAJGJGDM, XXCZDW_GAJGMC, XXCZRY_XM, XXCZRY_GMSFHM, GXSJ, XXLYMS, XXRSKSJ, XXRBKSJ, XXRSK_PDBZ, XXRBK_PDBZ, GABXF, KEYDDFJDC_JZWPBH,
(select name from sys_dictitem where groupid = 'CODE_SAWPFL' and code = t.KEYDDFJDC_SAWPDM ) as KEYDDFJDC_SAWPDMStr, (select name from sys_dictitem where groupid = 'CODE_SAWPFL' and code = t.KEYDDFJDC_SAWPDM ) as KEYDDFJDC_SAWPDMStr,
(select name from sys_dictitem where groupid = 'CODE_YS' and code = t.KEYDDFJDC_WPYS_WPYSDM ) as KEYDDFJDC_WPYS_WPYSDMStr, (select name from sys_dictitem where groupid = 'CODE_YS' and code = t.KEYDDFJDC_WPYS_WPYSDM ) as KEYDDFJDC_WPYS_WPYSDMStr,
(select name from sys_dictitem where groupid = 'ODE_UNIT' and code = t.BLDW_GAJGJGDM ) as BLDW_GAJGJGDMStr, (select name from sys_dictitem where groupid = 'ODE_UNIT' and code = t.BLDW_GAJGJGDM ) as BLDW_GAJGJGDMStr
rownum rn
from tb_xw_fxkyddfjdcxs t from tb_xw_fxkyddfjdcxs t
where xxsc_pdbz = '0' and rownum <![CDATA[ <= ]]> #{limit} where xxsc_pdbz = '0'
<if test="asjbh != null and asjbh != '' "> <if test="asjbh != null and asjbh != '' ">
and asjbh = #{asjbh} and asjbh = #{asjbh}
</if>)where rn <![CDATA[ > ]]> #{page} </if>
)t1,(SELECT @rownum:=0) r
)b where rownum <![CDATA[ <= ]]> #{limit})a
where rownum <![CDATA[ > ]]> #{page}
</select> </select>
<!--新增所有列--> <!--新增所有列-->
......
...@@ -346,18 +346,23 @@ ...@@ -346,18 +346,23 @@
</select> </select>
<select id="queryAll" resultMap="TbXwFxkydyMap"> <select id="queryAll" resultMap="TbXwFxkydyMap">
select * from ( select select a.* from (
select * from (
select @rownum := @rownum + 1 AS rownum, t1.* from (
select
XXZJBH, ASJBH, KYDY_SAWPBH, KYDY_DYLXDM, KYDY_DYXHDM, KYDY_WPSL, KYDY_WPTZMS, KYDY_WPLYMS, KYDY_WPQX_JYQK, KYDY_CNFS_JYQK, KYDY_JYFS_JYQK, KYDY_JYDD_XZQHDM, KYDY_JYDD_DZMC, KYDY_YSFS_JYQK, KYDY_YSLX_JYQK, BLDW_GAJGJGDM, BLDW_GAJGMC, ZBR_XM, ZBR_GMSFHM, ZBR_LXDH, XBR_XM, XBR_GMSFHM, XBR_LXDH, BLSJ, XXSC_PDBZ, XXDJDW_GAJGJGDM, XXDJDW_GAJGMC, XXDJRY_XM, XXDJRY_GMSFHM, XXDJRY_LXDH, DJSJ, XXCZDW_GAJGJGDM, XXCZDW_GAJGMC, XXCZRY_XM, XXCZRY_GMSFHM, GXSJ, XXLYMS, XXRSKSJ, XXRBKSJ, XXRSK_PDBZ, XXRBK_PDBZ, GABXF, KYDY_JZWPBH, XXZJBH, ASJBH, KYDY_SAWPBH, KYDY_DYLXDM, KYDY_DYXHDM, KYDY_WPSL, KYDY_WPTZMS, KYDY_WPLYMS, KYDY_WPQX_JYQK, KYDY_CNFS_JYQK, KYDY_JYFS_JYQK, KYDY_JYDD_XZQHDM, KYDY_JYDD_DZMC, KYDY_YSFS_JYQK, KYDY_YSLX_JYQK, BLDW_GAJGJGDM, BLDW_GAJGMC, ZBR_XM, ZBR_GMSFHM, ZBR_LXDH, XBR_XM, XBR_GMSFHM, XBR_LXDH, BLSJ, XXSC_PDBZ, XXDJDW_GAJGJGDM, XXDJDW_GAJGMC, XXDJRY_XM, XXDJRY_GMSFHM, XXDJRY_LXDH, DJSJ, XXCZDW_GAJGJGDM, XXCZDW_GAJGMC, XXCZRY_XM, XXCZRY_GMSFHM, GXSJ, XXLYMS, XXRSKSJ, XXRBKSJ, XXRSK_PDBZ, XXRBK_PDBZ, GABXF, KYDY_JZWPBH,
(select name from sys_dictitem where groupid = 'CODE_DYLX' and code = t.KYDY_DYLXDM ) as KYDY_DYLXDMStr, (select name from sys_dictitem where groupid = 'CODE_DYLX' and code = t.KYDY_DYLXDM ) as KYDY_DYLXDMStr,
(select name from sys_dictitem where groupid = 'CODE_DYXH' and code = t.KYDY_DYXHDM ) as KYDY_DYXHDMStr, (select name from sys_dictitem where groupid = 'CODE_DYXH' and code = t.KYDY_DYXHDM ) as KYDY_DYXHDMStr,
(select name from sys_dictitem where groupid = 'CODE_XZQH' and code = t.KYDY_JYDD_XZQHDM ) as KYDY_JYDD_XZQHDMStr, (select name from sys_dictitem where groupid = 'CODE_XZQH' and code = t.KYDY_JYDD_XZQHDM ) as KYDY_JYDD_XZQHDMStr,
(select name from sys_dictitem where groupid = 'CODE_UNIT' and code = t.BLDW_GAJGJGDM ) as BLDW_GAJGJGDMStr, (select name from sys_dictitem where groupid = 'CODE_UNIT' and code = t.BLDW_GAJGJGDM ) as BLDW_GAJGJGDMStr
rownum rn
from tb_xw_fxkydy t from tb_xw_fxkydy t
where xxsc_pdbz = '0' and rownum <![CDATA[ <= ]]> #{limit} where xxsc_pdbz = '0'
<if test="asjbh != null and asjbh != '' "> <if test="asjbh != null and asjbh != '' ">
and asjbh = #{asjbh} and asjbh = #{asjbh}
</if>)where rn <![CDATA[ > ]]> #{page} </if>
)t1,(SELECT @rownum:=0) r
)b where rownum <![CDATA[ <= ]]> #{limit})a
where rownum <![CDATA[ > ]]> #{page}
</select> </select>
<!--新增所有列--> <!--新增所有列-->
......
...@@ -377,19 +377,24 @@ ...@@ -377,19 +377,24 @@
</select> </select>
<select id="queryAll" resultMap="TbXwFxkyjdcxsMap"> <select id="queryAll" resultMap="TbXwFxkyjdcxsMap">
select * from(select select a.* from (
select * from(
select @rownum := @rownum + 1 AS rownum, t1.* from (
select
XXZJBH, ASJBH, KEYYJ_JYQK, KEYJDC_SAWPBH, KEYJDC_JDCSYXZDM, KEYJDC_FFYY_PDBZ, KEYJDC_SAWPDM, KEYJDC_PPXH, KEYJDC_JDCHPZLDM, KEYJDC_JDCHPHM, KEYJDC_JDCHPHMZW_PDBZ, KEYJDC_CLSBDH, KEYJDC_SFXGCLSBDH_PDBZ, KEYJDC_JDCFDJDDJXH, KEYJDC_SFXGJDCFDJDDJH_PDBZ, KEYJDC_JDCCSYS_JDCCSYSDM, KEYJDC_JDCCSYS_DMBCMS, KEYJDC_WPTZMS, KEYJDC_WPJZRMBY, BLDW_GAJGJGDM, BLDW_GAJGMC, ZBR_XM, ZBR_GMSFHM, ZBR_LXDH, XBR_XM, XBR_GMSFHM, XBR_LXDH, BLSJ, XXSC_PDBZ, XXDJDW_GAJGJGDM, XXDJDW_GAJGMC, XXDJRY_XM, XXDJRY_GMSFHM, XXDJRY_LXDH, DJSJ, XXCZDW_GAJGJGDM, XXCZDW_GAJGMC, XXCZRY_XM, XXCZRY_GMSFHM, GXSJ, XXLYMS, XXRSKSJ, XXRBKSJ, XXRSK_PDBZ, XXRBK_PDBZ, GABXF, KEYJDC_JZWPBH, XXZJBH, ASJBH, KEYYJ_JYQK, KEYJDC_SAWPBH, KEYJDC_JDCSYXZDM, KEYJDC_FFYY_PDBZ, KEYJDC_SAWPDM, KEYJDC_PPXH, KEYJDC_JDCHPZLDM, KEYJDC_JDCHPHM, KEYJDC_JDCHPHMZW_PDBZ, KEYJDC_CLSBDH, KEYJDC_SFXGCLSBDH_PDBZ, KEYJDC_JDCFDJDDJXH, KEYJDC_SFXGJDCFDJDDJH_PDBZ, KEYJDC_JDCCSYS_JDCCSYSDM, KEYJDC_JDCCSYS_DMBCMS, KEYJDC_WPTZMS, KEYJDC_WPJZRMBY, BLDW_GAJGJGDM, BLDW_GAJGMC, ZBR_XM, ZBR_GMSFHM, ZBR_LXDH, XBR_XM, XBR_GMSFHM, XBR_LXDH, BLSJ, XXSC_PDBZ, XXDJDW_GAJGJGDM, XXDJDW_GAJGMC, XXDJRY_XM, XXDJRY_GMSFHM, XXDJRY_LXDH, DJSJ, XXCZDW_GAJGJGDM, XXCZDW_GAJGMC, XXCZRY_XM, XXCZRY_GMSFHM, GXSJ, XXLYMS, XXRSKSJ, XXRBKSJ, XXRSK_PDBZ, XXRBK_PDBZ, GABXF, KEYJDC_JZWPBH,
(select name from sys_dictitem where groupid = 'CODE_CLSYXZ' and code = t.KEYJDC_JDCSYXZDM ) as KEYJDC_JDCSYXZDMStr, (select name from sys_dictitem where groupid = 'CODE_CLSYXZ' and code = t.KEYJDC_JDCSYXZDM ) as KEYJDC_JDCSYXZDMStr,
(select name from sys_dictitem where groupid = 'CODE_SAWPFL' and code = t.KEYJDC_SAWPDM ) as KEYJDC_SAWPDMStr, (select name from sys_dictitem where groupid = 'CODE_SAWPFL' and code = t.KEYJDC_SAWPDM ) as KEYJDC_SAWPDMStr,
(select name from sys_dictitem where groupid = 'CODE_HPZL' and code = t.KEYJDC_JDCHPZLDM ) as KEYJDC_JDCHPZLDMStr, (select name from sys_dictitem where groupid = 'CODE_HPZL' and code = t.KEYJDC_JDCHPZLDM ) as KEYJDC_JDCHPZLDMStr,
(select name from sys_dictitem where groupid = 'CODE_YS' and code = t.KEYJDC_JDCCSYS_JDCCSYSDM ) as KEYJDC_JDCCSYS_JDCCSYSDMStr, (select name from sys_dictitem where groupid = 'CODE_YS' and code = t.KEYJDC_JDCCSYS_JDCCSYSDM ) as KEYJDC_JDCCSYS_JDCCSYSDMStr,
(select name from sys_dictitem where groupid = 'CODE_UNIT' and code = t.BLDW_GAJGJGDM ) as BLDW_GAJGJGDMStr, (select name from sys_dictitem where groupid = 'CODE_UNIT' and code = t.BLDW_GAJGJGDM ) as BLDW_GAJGJGDMStr
rownum rn
from tb_xw_fxkyjdcxs t from tb_xw_fxkyjdcxs t
where xxsc_pdbz = '0' and rownum <![CDATA[ <= ]]> #{limit} where xxsc_pdbz = '0'
<if test="asjbh != null and asjbh != '' "> <if test="asjbh != null and asjbh != '' ">
and asjbh = #{asjbh} and asjbh = #{asjbh}
</if>)where rn <![CDATA[ > ]]> #{page} </if>
)t1,(SELECT @rownum:=0) r
)b where rownum <![CDATA[ <= ]]> #{limit})a
where rownum <![CDATA[ > ]]> #{page}
</select> </select>
<!--新增所有列--> <!--新增所有列-->
......
...@@ -395,18 +395,23 @@ ...@@ -395,18 +395,23 @@
</select> </select>
<select id="queryAll" resultMap="TbXwFxkyqzMap"> <select id="queryAll" resultMap="TbXwFxkyqzMap">
select * from(select select a.* from (
select * from(
select @rownum := @rownum + 1 AS rownum, t1.* from (
select
XXZJBH, ASJBH, KYQZ_SAWPBH, KYQZ_QZLXDM, KYQZ_QZXHDM, KYQZ_QZKJ, KYQZ_SFZSQZ_PDBZ, KYQZ_QH_WPBZH, KYQZ_QZSFWZ_PDBZ, KYQZ_QZSFWZ_JYQK, KYQZ_WPTZMS, KYQZ_WPLYMS, KYQZ_WPQX_JYQK, KYQZ_CNFS_JYQK, KYQZ_JYFS_JYQK, KYQZ_JYDD_XZQHDM, KYQZ_JYDD_DZMC, KYQZ_YSFS_JYQK, KYQZ_YSLX_JYQK, KYQZ_GZJG_ZCXWYJMS, KYQZ_GZJG_ZCXWJGMS, KYQZ_GZJG_ZXSJ01, BLDW_GAJGJGDM, BLDW_GAJGMC, ZBR_XM, ZBR_GMSFHM, ZBR_LXDH, XBR_XM, XBR_GMSFHM, XBR_LXDH, BLSJ, XXSC_PDBZ, XXDJDW_GAJGJGDM, XXDJDW_GAJGMC, XXDJRY_XM, XXDJRY_GMSFHM, XXDJRY_LXDH, DJSJ, XXCZDW_GAJGJGDM, XXCZDW_GAJGMC, XXCZRY_XM, XXCZRY_GMSFHM, GXSJ, XXLYMS, XXRSKSJ, XXRBKSJ, XXRSK_PDBZ, XXRBK_PDBZ, GABXF, KYQZ_JZWPBH, XXZJBH, ASJBH, KYQZ_SAWPBH, KYQZ_QZLXDM, KYQZ_QZXHDM, KYQZ_QZKJ, KYQZ_SFZSQZ_PDBZ, KYQZ_QH_WPBZH, KYQZ_QZSFWZ_PDBZ, KYQZ_QZSFWZ_JYQK, KYQZ_WPTZMS, KYQZ_WPLYMS, KYQZ_WPQX_JYQK, KYQZ_CNFS_JYQK, KYQZ_JYFS_JYQK, KYQZ_JYDD_XZQHDM, KYQZ_JYDD_DZMC, KYQZ_YSFS_JYQK, KYQZ_YSLX_JYQK, KYQZ_GZJG_ZCXWYJMS, KYQZ_GZJG_ZCXWJGMS, KYQZ_GZJG_ZXSJ01, BLDW_GAJGJGDM, BLDW_GAJGMC, ZBR_XM, ZBR_GMSFHM, ZBR_LXDH, XBR_XM, XBR_GMSFHM, XBR_LXDH, BLSJ, XXSC_PDBZ, XXDJDW_GAJGJGDM, XXDJDW_GAJGMC, XXDJRY_XM, XXDJRY_GMSFHM, XXDJRY_LXDH, DJSJ, XXCZDW_GAJGJGDM, XXCZDW_GAJGMC, XXCZRY_XM, XXCZRY_GMSFHM, GXSJ, XXLYMS, XXRSKSJ, XXRBKSJ, XXRSK_PDBZ, XXRBK_PDBZ, GABXF, KYQZ_JZWPBH,
(select name from sys_dictitem where groupid = 'CODE_QZLB' and code = t.KYQZ_QZLXDM ) as KYQZ_QZLXDMStr, (select name from sys_dictitem where groupid = 'CODE_QZLB' and code = t.KYQZ_QZLXDM ) as KYQZ_QZLXDMStr,
(select name from sys_dictitem where groupid = 'CODE_QZLXDM' and code = t.KYQZ_QZXHDM ) as KYQZ_QZXHDMStr, (select name from sys_dictitem where groupid = 'CODE_QZLXDM' and code = t.KYQZ_QZXHDM ) as KYQZ_QZXHDMStr,
(select name from sys_dictitem where groupid = 'CODE_XZQH' and code = t.KYQZ_JYDD_XZQHDM ) as KYQZ_JYDD_XZQHDMStr, (select name from sys_dictitem where groupid = 'CODE_XZQH' and code = t.KYQZ_JYDD_XZQHDM ) as KYQZ_JYDD_XZQHDMStr,
(select name from sys_dictitem where groupid = 'CODE_UNIT' and code = t.BLDW_GAJGJGDM ) as BLDW_GAJGJGDMStr, (select name from sys_dictitem where groupid = 'CODE_UNIT' and code = t.BLDW_GAJGJGDM ) as BLDW_GAJGJGDMStr
rownum rn
from tb_xw_fxkyqz t from tb_xw_fxkyqz t
where xxsc_pdbz = '0' and rownum <![CDATA[ <= ]]> #{limit} where xxsc_pdbz = '0'
<if test="asjbh != null and asjbh != '' "> <if test="asjbh != null and asjbh != '' ">
and asjbh = #{asjbh} and asjbh = #{asjbh}
</if>)where rn <![CDATA[ > ]]> #{page} </if>
)t1,(SELECT @rownum:=0) r
)b where rownum <![CDATA[ <= ]]> #{limit})a
where rownum <![CDATA[ > ]]> #{page}
</select> </select>
<!--新增所有列--> <!--新增所有列-->
......
...@@ -45,15 +45,20 @@ ...@@ -45,15 +45,20 @@
</resultMap> </resultMap>
<select id="queryAll" resultMap="TbXwFxkywwxsMap"> <select id="queryAll" resultMap="TbXwFxkywwxsMap">
select * from(select select a.* from (
select * from(
select @rownum := @rownum + 1 AS rownum, t1.* from (
select
XXZJBH, ASJBH, KEYYJ_JYQK, KEYWW_SAWPBH, KEYWW_WWDJMS, KEYWW_WWZXSCLT_PDBZ, KEYWW_WWZXCJ_PDBZ, KEYWW_WPTZMS, KEYWW_WPJZRMBY, KEYWW_WPZW_PDBZ, BLDW_GAJGJGDM, BLDW_GAJGMC, ZBR_XM, ZBR_GMSFHM, ZBR_LXDH, XBR_XM, XBR_GMSFHM, XBR_LXDH, BLSJ, XXSC_PDBZ, XXDJDW_GAJGJGDM, XXDJDW_GAJGMC, XXDJRY_XM, XXDJRY_GMSFHM, XXDJRY_LXDH, DJSJ, XXCZDW_GAJGJGDM, XXCZDW_GAJGMC, XXCZRY_XM, XXCZRY_GMSFHM, GXSJ, XXLYMS, XXRSKSJ, XXRBKSJ, XXRSK_PDBZ, XXRBK_PDBZ, GABXF, KEYWW_JZWPBH, XXZJBH, ASJBH, KEYYJ_JYQK, KEYWW_SAWPBH, KEYWW_WWDJMS, KEYWW_WWZXSCLT_PDBZ, KEYWW_WWZXCJ_PDBZ, KEYWW_WPTZMS, KEYWW_WPJZRMBY, KEYWW_WPZW_PDBZ, BLDW_GAJGJGDM, BLDW_GAJGMC, ZBR_XM, ZBR_GMSFHM, ZBR_LXDH, XBR_XM, XBR_GMSFHM, XBR_LXDH, BLSJ, XXSC_PDBZ, XXDJDW_GAJGJGDM, XXDJDW_GAJGMC, XXDJRY_XM, XXDJRY_GMSFHM, XXDJRY_LXDH, DJSJ, XXCZDW_GAJGJGDM, XXCZDW_GAJGMC, XXCZRY_XM, XXCZRY_GMSFHM, GXSJ, XXLYMS, XXRSKSJ, XXRBKSJ, XXRSK_PDBZ, XXRBK_PDBZ, GABXF, KEYWW_JZWPBH,
(select name from sys_dictitem where groupid = 'CODE_UNIT' and code = t.BLDW_GAJGJGDM ) as BLDW_GAJGJGDMStr, (select name from sys_dictitem where groupid = 'CODE_UNIT' and code = t.BLDW_GAJGJGDM ) as BLDW_GAJGJGDMStr
rownum rn
from tb_xw_fxkywwxs t from tb_xw_fxkywwxs t
where xxsc_pdbz = '0' and rownum <![CDATA[ <= ]]> #{limit} where xxsc_pdbz = '0'
<if test="asjbh != null and asjbh != '' "> <if test="asjbh != null and asjbh != '' ">
and asjbh = #{asjbh} and asjbh = #{asjbh}
</if>)where rn <![CDATA[ > ]]> #{page} </if>
)t1,(SELECT @rownum:=0) r
)b where rownum <![CDATA[ <= ]]> #{limit})a
where rownum <![CDATA[ > ]]> #{page}
</select> </select>
<!--查询单个--> <!--查询单个-->
...@@ -71,6 +76,7 @@ ...@@ -71,6 +76,7 @@
XXZJBH, ASJBH, KEYYJ_JYQK, KEYWW_SAWPBH, KEYWW_WWDJMS, KEYWW_WWZXSCLT_PDBZ, KEYWW_WWZXCJ_PDBZ, KEYWW_WPTZMS, KEYWW_WPJZRMBY, KEYWW_WPZW_PDBZ, BLDW_GAJGJGDM, BLDW_GAJGMC, ZBR_XM, ZBR_GMSFHM, ZBR_LXDH, XBR_XM, XBR_GMSFHM, XBR_LXDH, BLSJ, XXSC_PDBZ, XXDJDW_GAJGJGDM, XXDJDW_GAJGMC, XXDJRY_XM, XXDJRY_GMSFHM, XXDJRY_LXDH, DJSJ, XXCZDW_GAJGJGDM, XXCZDW_GAJGMC, XXCZRY_XM, XXCZRY_GMSFHM, GXSJ, XXLYMS, XXRSKSJ, XXRBKSJ, XXRSK_PDBZ, XXRBK_PDBZ, GABXF, KEYWW_JZWPBH XXZJBH, ASJBH, KEYYJ_JYQK, KEYWW_SAWPBH, KEYWW_WWDJMS, KEYWW_WWZXSCLT_PDBZ, KEYWW_WWZXCJ_PDBZ, KEYWW_WPTZMS, KEYWW_WPJZRMBY, KEYWW_WPZW_PDBZ, BLDW_GAJGJGDM, BLDW_GAJGMC, ZBR_XM, ZBR_GMSFHM, ZBR_LXDH, XBR_XM, XBR_GMSFHM, XBR_LXDH, BLSJ, XXSC_PDBZ, XXDJDW_GAJGJGDM, XXDJDW_GAJGMC, XXDJRY_XM, XXDJRY_GMSFHM, XXDJRY_LXDH, DJSJ, XXCZDW_GAJGJGDM, XXCZDW_GAJGMC, XXCZRY_XM, XXCZRY_GMSFHM, GXSJ, XXLYMS, XXRSKSJ, XXRBKSJ, XXRSK_PDBZ, XXRBK_PDBZ, GABXF, KEYWW_JZWPBH
from tb_xw_fxkywwxs from tb_xw_fxkywwxs
<where> <where>
1=1
<if test="xxzjbh != null and xxzjbh != ''"> <if test="xxzjbh != null and xxzjbh != ''">
and XXZJBH = #{xxzjbh} and XXZJBH = #{xxzjbh}
</if> </if>
......
...@@ -64,17 +64,22 @@ ...@@ -64,17 +64,22 @@
</select> </select>
<select id="queryAll" resultMap="TbXwFxkyydtxsbxsMap"> <select id="queryAll" resultMap="TbXwFxkyydtxsbxsMap">
select * from(select select a.* from (
select * from(
select @rownum := @rownum + 1 AS rownum, t1.* from (
select
XXZJBH, ASJBH, KEYYJ_JYQK, KEYYDTXSB_SAWPBH, KEYYDTXSB_PPXH, KEYYDTXSB_ICCID_WPBZH, KEYYDTXSB_IMEI_WPBZH, KEYYDTXSB_IMSI_FWBZH, KEYYDTXSB_YDDH, KEYYDTXSB_WPYSDM, KEYYDTXSB_WPTZMS, KEYYDTXSB_WPJZRMBY, BLDW_GAJGJGDM, BLDW_GAJGMC, ZBR_XM, ZBR_GMSFHM, ZBR_LXDH, XBR_XM, XBR_GMSFHM, XBR_LXDH, BLSJ, XXSC_PDBZ, XXDJDW_GAJGJGDM, XXDJDW_GAJGMC, XXDJRY_XM, XXDJRY_GMSFHM, XXDJRY_LXDH, DJSJ, XXCZDW_GAJGJGDM, XXCZDW_GAJGMC, XXCZRY_XM, XXCZRY_GMSFHM, GXSJ, XXLYMS, XXRSKSJ, XXRBKSJ, XXRSK_PDBZ, XXRBK_PDBZ, GABXF, KEYYDTXSB_JZWPBH, SJSYZT, KEYYDTXSB_PPXHDM, XXZJBH, ASJBH, KEYYJ_JYQK, KEYYDTXSB_SAWPBH, KEYYDTXSB_PPXH, KEYYDTXSB_ICCID_WPBZH, KEYYDTXSB_IMEI_WPBZH, KEYYDTXSB_IMSI_FWBZH, KEYYDTXSB_YDDH, KEYYDTXSB_WPYSDM, KEYYDTXSB_WPTZMS, KEYYDTXSB_WPJZRMBY, BLDW_GAJGJGDM, BLDW_GAJGMC, ZBR_XM, ZBR_GMSFHM, ZBR_LXDH, XBR_XM, XBR_GMSFHM, XBR_LXDH, BLSJ, XXSC_PDBZ, XXDJDW_GAJGJGDM, XXDJDW_GAJGMC, XXDJRY_XM, XXDJRY_GMSFHM, XXDJRY_LXDH, DJSJ, XXCZDW_GAJGJGDM, XXCZDW_GAJGMC, XXCZRY_XM, XXCZRY_GMSFHM, GXSJ, XXLYMS, XXRSKSJ, XXRBKSJ, XXRSK_PDBZ, XXRBK_PDBZ, GABXF, KEYYDTXSB_JZWPBH, SJSYZT, KEYYDTXSB_PPXHDM,
(select name from sys_dictitem where groupid = 'CODE_YS' and code = t.KEYYDTXSB_WPYSDM ) as KEYYDTXSB_WPYSDMStr, (select name from sys_dictitem where groupid = 'CODE_YS' and code = t.KEYYDTXSB_WPYSDM ) as KEYYDTXSB_WPYSDMStr,
(select name from sys_dictitem where groupid = 'CODE_SJPP' and code = t.KEYYDTXSB_PPXHDM ) as KEYYDTXSB_PPXHDMStr, (select name from sys_dictitem where groupid = 'CODE_SJPP' and code = t.KEYYDTXSB_PPXHDM ) as KEYYDTXSB_PPXHDMStr,
(select name from sys_dictitem where groupid = 'CODE_UNIT' and code = t.BLDW_GAJGJGDM ) as BLDW_GAJGJGDMStr, (select name from sys_dictitem where groupid = 'CODE_UNIT' and code = t.BLDW_GAJGJGDM ) as BLDW_GAJGJGDMStr
rownum rn
from tb_xw_fxkyydtxsbxs t from tb_xw_fxkyydtxsbxs t
where xxsc_pdbz = '0' and rownum <![CDATA[ <= ]]> #{limit} where xxsc_pdbz = '0'
<if test="asjbh != null and asjbh != '' "> <if test="asjbh != null and asjbh != '' ">
and asjbh = #{asjbh} and asjbh = #{asjbh}
</if>)where rn <![CDATA[ > ]]> #{page} </if>
)t1,(SELECT @rownum:=0) r
)b where rownum <![CDATA[ <= ]]> #{limit})a
where rownum <![CDATA[ > ]]> #{page}
</select> </select>
<!--查询指定行数据--> <!--查询指定行数据-->
...@@ -83,6 +88,7 @@ ...@@ -83,6 +88,7 @@
XXZJBH, ASJBH, KEYYJ_JYQK, KEYYDTXSB_SAWPBH, KEYYDTXSB_PPXH, KEYYDTXSB_ICCID_WPBZH, KEYYDTXSB_IMEI_WPBZH, KEYYDTXSB_IMSI_FWBZH, KEYYDTXSB_YDDH, KEYYDTXSB_WPYSDM, KEYYDTXSB_WPTZMS, KEYYDTXSB_WPJZRMBY, BLDW_GAJGJGDM, BLDW_GAJGMC, ZBR_XM, ZBR_GMSFHM, ZBR_LXDH, XBR_XM, XBR_GMSFHM, XBR_LXDH, BLSJ, XXSC_PDBZ, XXDJDW_GAJGJGDM, XXDJDW_GAJGMC, XXDJRY_XM, XXDJRY_GMSFHM, XXDJRY_LXDH, DJSJ, XXCZDW_GAJGJGDM, XXCZDW_GAJGMC, XXCZRY_XM, XXCZRY_GMSFHM, GXSJ, XXLYMS, XXRSKSJ, XXRBKSJ, XXRSK_PDBZ, XXRBK_PDBZ, GABXF, KEYYDTXSB_JZWPBH, SJSYZT, KEYYDTXSB_PPXHDM XXZJBH, ASJBH, KEYYJ_JYQK, KEYYDTXSB_SAWPBH, KEYYDTXSB_PPXH, KEYYDTXSB_ICCID_WPBZH, KEYYDTXSB_IMEI_WPBZH, KEYYDTXSB_IMSI_FWBZH, KEYYDTXSB_YDDH, KEYYDTXSB_WPYSDM, KEYYDTXSB_WPTZMS, KEYYDTXSB_WPJZRMBY, BLDW_GAJGJGDM, BLDW_GAJGMC, ZBR_XM, ZBR_GMSFHM, ZBR_LXDH, XBR_XM, XBR_GMSFHM, XBR_LXDH, BLSJ, XXSC_PDBZ, XXDJDW_GAJGJGDM, XXDJDW_GAJGMC, XXDJRY_XM, XXDJRY_GMSFHM, XXDJRY_LXDH, DJSJ, XXCZDW_GAJGJGDM, XXCZDW_GAJGMC, XXCZRY_XM, XXCZRY_GMSFHM, GXSJ, XXLYMS, XXRSKSJ, XXRBKSJ, XXRSK_PDBZ, XXRBK_PDBZ, GABXF, KEYYDTXSB_JZWPBH, SJSYZT, KEYYDTXSB_PPXHDM
from tb_xw_fxkyydtxsbxs from tb_xw_fxkyydtxsbxs
<where> <where>
1=1
<if test="xxzjbh != null and xxzjbh != ''"> <if test="xxzjbh != null and xxzjbh != ''">
and XXZJBH = #{xxzjbh} and XXZJBH = #{xxzjbh}
</if> </if>
......
...@@ -84,19 +84,24 @@ ...@@ -84,19 +84,24 @@
</select> </select>
<select id="queryAll" resultMap="TbXwFxqtgzwpMap"> <select id="queryAll" resultMap="TbXwFxqtgzwpMap">
select * from(select select a.* from (
select * from(
select @rownum := @rownum + 1 AS rownum, t1.* from (
select
XXZJBH, ASJBH, QTGZWP_SAWPBH, QTGZWP_SAWP_SAWPDM, QTGZWP_SAWP_DMBCMS, QTGZWP_WPMC, QTGZWP_PPXH, QTGZWP_WPGG, QTGZWP_WPBZH_WPBZHLBDM, QTGZWP_WPBZH_DMBCMS, QTGZWP_WPBZH_WPBZH, QTGZWP_WPYS_WPYSDM, QTGZWP_WPYS_DMBCMS, QTGZWP_WPJZRMBY, QTGZWP_WPSL, QTGZWP_WPZL, QTGZWP_JLDLDW, QTGZWP_WPZW_PDBZ, QTGZWP_WPTZMS, QTGZWP_WPLYMS, QTGZWP_WPQX_JYQK, QTGZWP_CNFS_JYQK, QTGZWP_JYFS_JYQK, QTGZWP_JYDD_XZQHDM, QTGZWP_JYDD_DZMC, QTGZWP_YSFS_JYQK, QTGZWP_YSLX_JYQK, BLDW_GAJGJGDM, BLDW_GAJGMC, ZBR_XM, ZBR_GMSFHM, ZBR_LXDH, XBR_XM, XBR_GMSFHM, XBR_LXDH, BLSJ, XXSC_PDBZ, XXDJDW_GAJGJGDM, XXDJDW_GAJGMC, XXDJRY_XM, XXDJRY_GMSFHM, XXDJRY_LXDH, DJSJ, XXCZDW_GAJGJGDM, XXCZDW_GAJGMC, XXCZRY_XM, XXCZRY_GMSFHM, GXSJ, XXLYMS, XXRSKSJ, XXRBKSJ, XXRSK_PDBZ, XXRBK_PDBZ, GABXF, QTGZWP_JZWPBH, XXZJBH, ASJBH, QTGZWP_SAWPBH, QTGZWP_SAWP_SAWPDM, QTGZWP_SAWP_DMBCMS, QTGZWP_WPMC, QTGZWP_PPXH, QTGZWP_WPGG, QTGZWP_WPBZH_WPBZHLBDM, QTGZWP_WPBZH_DMBCMS, QTGZWP_WPBZH_WPBZH, QTGZWP_WPYS_WPYSDM, QTGZWP_WPYS_DMBCMS, QTGZWP_WPJZRMBY, QTGZWP_WPSL, QTGZWP_WPZL, QTGZWP_JLDLDW, QTGZWP_WPZW_PDBZ, QTGZWP_WPTZMS, QTGZWP_WPLYMS, QTGZWP_WPQX_JYQK, QTGZWP_CNFS_JYQK, QTGZWP_JYFS_JYQK, QTGZWP_JYDD_XZQHDM, QTGZWP_JYDD_DZMC, QTGZWP_YSFS_JYQK, QTGZWP_YSLX_JYQK, BLDW_GAJGJGDM, BLDW_GAJGMC, ZBR_XM, ZBR_GMSFHM, ZBR_LXDH, XBR_XM, XBR_GMSFHM, XBR_LXDH, BLSJ, XXSC_PDBZ, XXDJDW_GAJGJGDM, XXDJDW_GAJGMC, XXDJRY_XM, XXDJRY_GMSFHM, XXDJRY_LXDH, DJSJ, XXCZDW_GAJGJGDM, XXCZDW_GAJGMC, XXCZRY_XM, XXCZRY_GMSFHM, GXSJ, XXLYMS, XXRSKSJ, XXRBKSJ, XXRSK_PDBZ, XXRBK_PDBZ, GABXF, QTGZWP_JZWPBH,
(select name from sys_dictitem where groupid = 'CODE_SAWPFL' and code = t.QTGZWP_SAWP_SAWPDM ) as QTGZWP_SAWP_SAWPDMStr, (select name from sys_dictitem where groupid = 'CODE_SAWPFL' and code = t.QTGZWP_SAWP_SAWPDM ) as QTGZWP_SAWP_SAWPDMStr,
(select name from sys_dictitem where groupid = 'CODE_WPBSH' and code = t.QTGZWP_WPBZH_WPBZHLBDM ) as QTGZWP_WPBZH_WPBZHLBDMStr, (select name from sys_dictitem where groupid = 'CODE_WPBSH' and code = t.QTGZWP_WPBZH_WPBZHLBDM ) as QTGZWP_WPBZH_WPBZHLBDMStr,
(select name from sys_dictitem where groupid = 'CODE_YS' and code = t.QTGZWP_WPYS_WPYSDM ) as QTGZWP_WPYS_WPYSDMStr, (select name from sys_dictitem where groupid = 'CODE_YS' and code = t.QTGZWP_WPYS_WPYSDM ) as QTGZWP_WPYS_WPYSDMStr,
(select name from sys_dictitem where groupid = 'CODE_XZQH' and code = t.QTGZWP_JYDD_XZQHDM ) as QTGZWP_JYDD_XZQHDMStr, (select name from sys_dictitem where groupid = 'CODE_XZQH' and code = t.QTGZWP_JYDD_XZQHDM ) as QTGZWP_JYDD_XZQHDMStr,
(select name from sys_dictitem where groupid = 'CODE_UNIT' and code = t.BLDW_GAJGJGDM ) as BLDW_GAJGJGDMStr, (select name from sys_dictitem where groupid = 'CODE_UNIT' and code = t.BLDW_GAJGJGDM ) as BLDW_GAJGJGDMStr
rownum rn
from tb_xw_fxqtgzwp t from tb_xw_fxqtgzwp t
where xxsc_pdbz = '0' and rownum <![CDATA[ <= ]]> #{limit} where xxsc_pdbz = '0'
<if test="asjbh != null and asjbh != '' "> <if test="asjbh != null and asjbh != '' ">
and asjbh = #{asjbh} and asjbh = #{asjbh}
</if>)where rn <![CDATA[ > ]]> #{page} </if>
)t1,(SELECT @rownum:=0) r
)b where rownum <![CDATA[ <= ]]> #{limit})a
where rownum <![CDATA[ > ]]> #{page}
</select> </select>
<!--查询指定行数据--> <!--查询指定行数据-->
......
...@@ -75,18 +75,23 @@ ...@@ -75,18 +75,23 @@
</select> </select>
<select id="queryAll" resultMap="TbXwFxqtkywpxsMap"> <select id="queryAll" resultMap="TbXwFxqtkywpxsMap">
select * from(select select a.* from (
select * from(
select @rownum := @rownum + 1 AS rownum, t1.* from (
select
XXZJBH, ASJBH, KEYYJ_JYQK, KYWP_SAWPBH, KYWP_SAWP_SAWPDM, KYWP_SAWP_DMBCMS, KYWP_WPMC, KYWP_PPXH, KYWP_WPGG, KYWP_WPBZH_WPBZHLBDM, KYWP_WPBZH_DMBCMS, KYWP_WPBZH_WPBZH, KYWP_WPYS_WPYSDM, KYWP_WPYS_DMBCMS, KYWP_WPJZRMBY, KYWP_WPSL, KYWP_WPZL, KYWP_JLDLDW, KYWP_WPTZMS, KYWP_WPZW_PDBZ, BLDW_GAJGJGDM, BLDW_GAJGMC, ZBR_XM, ZBR_GMSFHM, ZBR_LXDH, XBR_XM, XBR_GMSFHM, XBR_LXDH, BLSJ, XXSC_PDBZ, XXDJDW_GAJGJGDM, XXDJDW_GAJGMC, XXDJRY_XM, XXDJRY_GMSFHM, XXDJRY_LXDH, DJSJ, XXCZDW_GAJGJGDM, XXCZDW_GAJGMC, XXCZRY_XM, XXCZRY_GMSFHM, GXSJ, XXLYMS, XXRSKSJ, XXRBKSJ, XXRSK_PDBZ, XXRBK_PDBZ, GABXF, KYWP_JZWPBH, XXZJBH, ASJBH, KEYYJ_JYQK, KYWP_SAWPBH, KYWP_SAWP_SAWPDM, KYWP_SAWP_DMBCMS, KYWP_WPMC, KYWP_PPXH, KYWP_WPGG, KYWP_WPBZH_WPBZHLBDM, KYWP_WPBZH_DMBCMS, KYWP_WPBZH_WPBZH, KYWP_WPYS_WPYSDM, KYWP_WPYS_DMBCMS, KYWP_WPJZRMBY, KYWP_WPSL, KYWP_WPZL, KYWP_JLDLDW, KYWP_WPTZMS, KYWP_WPZW_PDBZ, BLDW_GAJGJGDM, BLDW_GAJGMC, ZBR_XM, ZBR_GMSFHM, ZBR_LXDH, XBR_XM, XBR_GMSFHM, XBR_LXDH, BLSJ, XXSC_PDBZ, XXDJDW_GAJGJGDM, XXDJDW_GAJGMC, XXDJRY_XM, XXDJRY_GMSFHM, XXDJRY_LXDH, DJSJ, XXCZDW_GAJGJGDM, XXCZDW_GAJGMC, XXCZRY_XM, XXCZRY_GMSFHM, GXSJ, XXLYMS, XXRSKSJ, XXRBKSJ, XXRSK_PDBZ, XXRBK_PDBZ, GABXF, KYWP_JZWPBH,
(select name from sys_dictitem where groupid = 'CODE_SAWPFL' and code = t.KYWP_SAWP_SAWPDM ) as KYWP_SAWP_SAWPDMStr, (select name from sys_dictitem where groupid = 'CODE_SAWPFL' and code = t.KYWP_SAWP_SAWPDM ) as KYWP_SAWP_SAWPDMStr,
(select name from sys_dictitem where groupid = 'CODE_WPBSH' and code = t.KYWP_WPBZH_WPBZHLBDM ) as KYWP_WPBZH_WPBZHLBDMStr, (select name from sys_dictitem where groupid = 'CODE_WPBSH' and code = t.KYWP_WPBZH_WPBZHLBDM ) as KYWP_WPBZH_WPBZHLBDMStr,
(select name from sys_dictitem where groupid = 'CODE_YS' and code = t.KYWP_WPYS_WPYSDM ) as KYWP_WPYS_WPYSDMStr, (select name from sys_dictitem where groupid = 'CODE_YS' and code = t.KYWP_WPYS_WPYSDM ) as KYWP_WPYS_WPYSDMStr,
(select name from sys_dictitem where groupid = 'CODE_UNIT' and code = t.BLDW_GAJGJGDM ) as BLDW_GAJGJGDMStr, (select name from sys_dictitem where groupid = 'CODE_UNIT' and code = t.BLDW_GAJGJGDM ) as BLDW_GAJGJGDMStr
rownum rn
from tb_xw_fxqtkywpxs t from tb_xw_fxqtkywpxs t
where xxsc_pdbz = '0' and rownum <![CDATA[ <= ]]> #{limit} where xxsc_pdbz = '0'
<if test="asjbh != null and asjbh != '' "> <if test="asjbh != null and asjbh != '' ">
and asjbh = #{asjbh} and asjbh = #{asjbh}
</if>)where rn <![CDATA[ > ]]> #{page} </if>
)t1,(SELECT @rownum:=0) r
)b where rownum <![CDATA[ <= ]]> #{limit})a
where rownum <![CDATA[ > ]]> #{page}
</select> </select>
<!--查询指定行数据--> <!--查询指定行数据-->
......
...@@ -558,7 +558,10 @@ ...@@ -558,7 +558,10 @@
</select> </select>
<select id="queryAll" resultMap="TbXwRybhMap"> <select id="queryAll" resultMap="TbXwRybhMap">
select * from (select select a.* from (
select * from (
select @rownum := @rownum + 1 AS rownum, t1.* from (
select
xxzjbh, asjbh, wzmst_pdbz, ysbqhszry_pdbz, bhsj_kssj, bhsj_jssj, bhdd_dzmc, rsqfjgdm, rsshcddm, sshbw_jyqk, xxzjbh, asjbh, wzmst_pdbz, ysbqhszry_pdbz, bhsj_kssj, bhsj_jssj, bhdd_dzmc, rsqfjgdm, rsshcddm, sshbw_jyqk,
ssjzrmby, sffxst_pdbz, bhr_asjxgrybh, bhr_xxfc_pdbz, bhr_stbh, bhr_xm, bhr_cyzj_cyzjdm, bhr_cyzj_dmbcms, ssjzrmby, sffxst_pdbz, bhr_asjxgrybh, bhr_xxfc_pdbz, bhr_stbh, bhr_xm, bhr_cyzj_cyzjdm, bhr_cyzj_dmbcms,
bhr_cyzj_zjhm, bhr_xbdm, bhr_csrq_rqgzxx, bhr_csrq_rqgzsx, bhr_gjdm, bhr_jgdm, bhr_mzdm, bhr_hjdz_xzqhdm, bhr_cyzj_zjhm, bhr_xbdm, bhr_csrq_rqgzxx, bhr_csrq_rqgzsx, bhr_gjdm, bhr_jgdm, bhr_mzdm, bhr_hjdz_xzqhdm,
...@@ -567,12 +570,15 @@ ...@@ -567,12 +570,15 @@
bhr_grahjhdtd_jyqk, bhr_yztzms, bhr_gzdw, bhr_lxdh, bhr_sfyxds_pdbz, bhr_rqx_jyqk, bhr_xdwp_jyqk, bhr_szzwbh, bhr_grahjhdtd_jyqk, bhr_yztzms, bhr_gzdw, bhr_lxdh, bhr_sfyxds_pdbz, bhr_rqx_jyqk, bhr_xdwp_jyqk, bhr_szzwbh,
bhr_rydnabh, bhr_bz, lxr_xm, lxr_cyzjdm, lxr_zjhm, xxsc_pdbz, xxdjdw_gajgjgdm, xxdjdw_gajgmc, xxdjry_xm, bhr_rydnabh, bhr_bz, lxr_xm, lxr_cyzjdm, lxr_zjhm, xxsc_pdbz, xxdjdw_gajgjgdm, xxdjdw_gajgmc, xxdjry_xm,
xxdjry_gmsfhm, xxdjry_lxdh, djsj, xxczdw_gajgjgdm, xxczdw_gajgmc, xxczry_xm, xxczry_gmsfhm, gxsj, xxlyms, xxdjry_gmsfhm, xxdjry_lxdh, djsj, xxczdw_gajgjgdm, xxczdw_gajgmc, xxczry_xm, xxczry_gmsfhm, gxsj, xxlyms,
xxrsksj, xxrbksj, xxrsk_pdbz, xxrbk_pdbz, bhr_jzrybh, gabxf, jzgxbh, if_collect,rownum rn xxrsksj, xxrbksj, xxrsk_pdbz, xxrbk_pdbz, bhr_jzrybh, gabxf, jzgxbh, if_collect
from tb_xw_rybh from tb_xw_rybh
where xxsc_pdbz = '0' and rownum <![CDATA[ <= ]]> #{limit} where xxsc_pdbz = '0'
<if test="asjbh != null and asjbh != '' "> <if test="asjbh != null and asjbh != '' ">
and asjbh = #{asjbh} and asjbh = #{asjbh}
</if>)where rn <![CDATA[ > ]]> #{page} </if>
)t1,(SELECT @rownum:=0) r
)b where rownum <![CDATA[ <= ]]> #{limit})a
where rownum <![CDATA[ > ]]> #{page}
</select> </select>
<!--新增所有列--> <!--新增所有列-->
......
...@@ -298,11 +298,16 @@ ssddfjdc_soyr_zjhm, ssddfjdc_soyr_lxdh, chcx_zcxwnrms, chcx_zxsj01, ...@@ -298,11 +298,16 @@ ssddfjdc_soyr_zjhm, ssddfjdc_soyr_lxdh, chcx_zcxwnrms, chcx_zxsj01,
</update> </update>
<select id="queryAll" resultType="org.springblade.founder.qgccj.entity.TbXwSsddfjdcQgccl"> <select id="queryAll" resultType="org.springblade.founder.qgccj.entity.TbXwSsddfjdcQgccl">
select * from (select select a.* from (
<include refid="Base_Column_List"/>,rownum rn select * from (
select @rownum := @rownum + 1 AS rownum, t1.* from (
select
<include refid="Base_Column_List"/>
from tb_xw_ssddfjdc t from tb_xw_ssddfjdc t
where asjbh = #{asjbh,jdbcType=VARCHAR} and xxsc_pdbz = '0' where asjbh = #{asjbh,jdbcType=VARCHAR} and xxsc_pdbz = '0'
and ROWNUM <![CDATA[ <= ]]> #{limit}) where RN <![CDATA[ > ]]> #{page} ) t1,(SELECT @rownum:=0) r
)b where rownum <![CDATA[ <= ]]> #{limit})a
where rownum <![CDATA[ > ]]> #{page}
</select> </select>
<select id="queryCount" resultType="java.lang.Integer"> <select id="queryCount" resultType="java.lang.Integer">
......
...@@ -59,11 +59,16 @@ ssdy_dyxhdm, ssdy_wpsl, ssdy_wptzms, xxsc_pdbz, ...@@ -59,11 +59,16 @@ ssdy_dyxhdm, ssdy_wpsl, ssdy_wptzms, xxsc_pdbz,
</select> </select>
<select id="queryAll" resultType="org.springblade.founder.qgccj.entity.TbXwSsdyQgccl"> <select id="queryAll" resultType="org.springblade.founder.qgccj.entity.TbXwSsdyQgccl">
select * from(select select a.* from (
<include refid="Base_Column_List"/>,rownum rn select * from (
select @rownum := @rownum + 1 AS rownum, t1.* from (
select
<include refid="Base_Column_List"/>
from tb_xw_ssdy t from tb_xw_ssdy t
where asjbh = #{asjbh,jdbcType=VARCHAR} and xxsc_pdbz = '0' where asjbh = #{asjbh,jdbcType=VARCHAR} and xxsc_pdbz = '0'
and ROWNUM <![CDATA[ <= ]]> #{limit}) where RN <![CDATA[ > ]]> #{page} ) t1,(SELECT @rownum:=0) r
)b where rownum <![CDATA[ <= ]]> #{limit})a
where rownum <![CDATA[ > ]]> #{page}
</select> </select>
<select id="queryCount" resultType="java.lang.Integer"> <select id="queryCount" resultType="java.lang.Integer">
......
...@@ -135,11 +135,16 @@ ...@@ -135,11 +135,16 @@
</select> </select>
<select id="queryAll" resultType="org.springblade.founder.qgccj.entity.TbXwSsjdcQgccl"> <select id="queryAll" resultType="org.springblade.founder.qgccj.entity.TbXwSsjdcQgccl">
select * from(select select a.* from (
<include refid="Base_Column_List"/>,rownum rn select * from (
select @rownum := @rownum + 1 AS rownum, t1.* from (
select
<include refid="Base_Column_List"/>
from tb_xw_ssjdc t from tb_xw_ssjdc t
where asjbh = #{asjbh,jdbcType=VARCHAR} and xxsc_pdbz = '0' where asjbh = #{asjbh,jdbcType=VARCHAR} and xxsc_pdbz = '0'
and ROWNUM <![CDATA[ <= ]]> #{limit}) where RN <![CDATA[ > ]]> #{page} ) t1,(SELECT @rownum:=0) r
)b where rownum <![CDATA[ <= ]]> #{limit})a
where rownum <![CDATA[ > ]]> #{page}
</select> </select>
<select id="queryCount" resultType="java.lang.Integer"> <select id="queryCount" resultType="java.lang.Integer">
......
...@@ -62,11 +62,16 @@ ...@@ -62,11 +62,16 @@
</select> </select>
<select id="queryAll" resultType="org.springblade.founder.qgccj.entity.TbXwSsklQgccl"> <select id="queryAll" resultType="org.springblade.founder.qgccj.entity.TbXwSsklQgccl">
select * from(select select a.* from (
<include refid="Base_Column_List"/>,rownum rn select * from (
select @rownum := @rownum + 1 AS rownum, t1.* from (
select
<include refid="Base_Column_List"/>
from tb_xw_sskl t from tb_xw_sskl t
where asjbh = #{asjbh,jdbcType=VARCHAR} and xxsc_pdbz = '0' where asjbh = #{asjbh,jdbcType=VARCHAR} and xxsc_pdbz = '0'
and ROWNUM <![CDATA[ <= ]]> #{limit}) where RN <![CDATA[ > ]]> #{page} ) t1,(SELECT @rownum:=0) r
)b where rownum <![CDATA[ <= ]]> #{limit})a
where rownum <![CDATA[ > ]]> #{page}
</select> </select>
<select id="queryCount" resultType="java.lang.Integer"> <select id="queryCount" resultType="java.lang.Integer">
......
...@@ -95,11 +95,16 @@ ...@@ -95,11 +95,16 @@
</update> </update>
<select id="queryAll" resultType="org.springblade.founder.qgccj.entity.TbXwSsqtwpQgccl"> <select id="queryAll" resultType="org.springblade.founder.qgccj.entity.TbXwSsqtwpQgccl">
select * from(select select a.* from (
<include refid="Base_Column_List"/>,rownum rn select * from (
select @rownum := @rownum + 1 AS rownum, t1.* from (
select
<include refid="Base_Column_List"/>
from tb_xw_ssqtwp t from tb_xw_ssqtwp t
where asjbh = #{asjbh,jdbcType=VARCHAR} and xxsc_pdbz = '0' where asjbh = #{asjbh,jdbcType=VARCHAR} and xxsc_pdbz = '0'
and ROWNUM <![CDATA[ <= ]]> #{limit}) where RN <![CDATA[ > ]]> #{page} ) t1,(SELECT @rownum:=0) r
)b where rownum <![CDATA[ <= ]]> #{limit})a
where rownum <![CDATA[ > ]]> #{page}
</select> </select>
<select id="queryCount" resultType="java.lang.Integer"> <select id="queryCount" resultType="java.lang.Integer">
......
...@@ -65,11 +65,16 @@ ...@@ -65,11 +65,16 @@
</select> </select>
<select id="queryAll" resultType="org.springblade.founder.qgccj.entity.TbXwSsqzQgccl"> <select id="queryAll" resultType="org.springblade.founder.qgccj.entity.TbXwSsqzQgccl">
select * from(select select a.* from (
<include refid="Base_Column_List"/>,rownum rn select * from (
select @rownum := @rownum + 1 AS rownum, t1.* from (
select
<include refid="Base_Column_List"/>
from tb_xw_ssqz t from tb_xw_ssqz t
where asjbh = #{asjbh,jdbcType=VARCHAR} and xxsc_pdbz = '0' where asjbh = #{asjbh,jdbcType=VARCHAR} and xxsc_pdbz = '0'
and ROWNUM <![CDATA[ <= ]]> #{limit}) where RN <![CDATA[ > ]]> #{page} ) t1,(SELECT @rownum:=0) r
)b where rownum <![CDATA[ <= ]]> #{limit})a
where rownum <![CDATA[ > ]]> #{page}
</select> </select>
<select id="queryCount" resultType="java.lang.Integer"> <select id="queryCount" resultType="java.lang.Integer">
......
...@@ -90,11 +90,16 @@ ...@@ -90,11 +90,16 @@
</update> </update>
<select id="queryAll" resultType="org.springblade.founder.qgccj.entity.TbXwSswwQgccl"> <select id="queryAll" resultType="org.springblade.founder.qgccj.entity.TbXwSswwQgccl">
select * from(select select a.* from (
<include refid="Base_Column_List"/>,rownum rn select * from (
select @rownum := @rownum + 1 AS rownum, t1.* from (
select
<include refid="Base_Column_List"/>
from tb_xw_ssww t from tb_xw_ssww t
where asjbh = #{asjbh,jdbcType=VARCHAR} and xxsc_pdbz = '0' where asjbh = #{asjbh,jdbcType=VARCHAR} and xxsc_pdbz = '0'
and ROWNUM <![CDATA[ <= ]]> #{limit}) where RN <![CDATA[ > ]]> #{page} ) t1,(SELECT @rownum:=0) r
)b where rownum <![CDATA[ <= ]]> #{limit})a
where rownum <![CDATA[ > ]]> #{page}
</select> </select>
<select id="queryCount" resultType="java.lang.Integer"> <select id="queryCount" resultType="java.lang.Integer">
......
...@@ -77,11 +77,16 @@ ...@@ -77,11 +77,16 @@
</update> </update>
<select id="queryAll" resultType="org.springblade.founder.qgccj.entity.TbXwSszjQgccj"> <select id="queryAll" resultType="org.springblade.founder.qgccj.entity.TbXwSszjQgccj">
select * from(select select a.* from (
<include refid="Base_Column_List"/>,rownum rn select * from (
select @rownum := @rownum + 1 AS rownum, t1.* from (
select
<include refid="Base_Column_List"/>
from tb_xw_sszj t from tb_xw_sszj t
where asjbh = #{asjbh,jdbcType=VARCHAR} and xxsc_pdbz = '0' where asjbh = #{asjbh,jdbcType=VARCHAR} and xxsc_pdbz = '0'
and ROWNUM <![CDATA[ <= ]]> #{limit}) where RN <![CDATA[ > ]]> #{page} ) t1,(SELECT @rownum:=0) r
)b where rownum <![CDATA[ <= ]]> #{limit})a
where rownum <![CDATA[ > ]]> #{page}
</select> </select>
<select id="queryCount" resultType="java.lang.Integer"> <select id="queryCount" resultType="java.lang.Integer">
......
...@@ -80,7 +80,11 @@ ...@@ -80,7 +80,11 @@
</select> </select>
<select id="queryAll" resultType="org.springblade.founder.qgccj.entity.TbXwSsydtxsbQgccl"> <select id="queryAll" resultType="org.springblade.founder.qgccj.entity.TbXwSsydtxsbQgccl">
select * from (select xxzjbh, select a.* from (
select * from (
select @rownum := @rownum + 1 AS rownum, t1.* from (
select
xxzjbh,
asjbh, asjbh,
ssydtxsb_sawpbh, ssydtxsb_sawpbh,
ssydtxsb_ppxh, ssydtxsb_ppxh,
...@@ -121,11 +125,12 @@ ...@@ -121,11 +125,12 @@
wzimei, wzimei,
(select name from sys_dictitem where code = t.ssydtxsb_wpysdm and groupid = 'CODE_YS') as ssydtxsb_wpysdmStr, (select name from sys_dictitem where code = t.ssydtxsb_wpysdm and groupid = 'CODE_YS') as ssydtxsb_wpysdmStr,
(select name from sys_dictitem where code = t.ssydtxsb_soyr_cyzjdm and groupid = 'CODE_ZJ') as ssydtxsb_soyr_cyzjdmStr, (select name from sys_dictitem where code = t.ssydtxsb_soyr_cyzjdm and groupid = 'CODE_ZJ') as ssydtxsb_soyr_cyzjdmStr,
(select name from sys_dictitem where code = t.ssydtxsb_ppxhdm and groupid = 'CODE_SJPP') as ssydtxsb_ppxhdmStr, (select name from sys_dictitem where code = t.ssydtxsb_ppxhdm and groupid = 'CODE_SJPP') as ssydtxsb_ppxhdmStr
rownum rn
from tb_xw_ssydtxsb t from tb_xw_ssydtxsb t
where asjbh = #{asjbh,jdbcType=VARCHAR} and xxsc_pdbz = '0' where asjbh = #{asjbh,jdbcType=VARCHAR} and xxsc_pdbz = '0'
and ROWNUM <![CDATA[ <= ]]> #{limit}) where RN <![CDATA[ > ]]> #{page} ) t1,(SELECT @rownum:=0) r
)b where rownum <![CDATA[ <= ]]> #{limit})a
where rownum <![CDATA[ > ]]> #{page}
</select> </select>
<select id="queryCount" resultType="java.lang.Integer"> <select id="queryCount" resultType="java.lang.Integer">
......
...@@ -397,13 +397,24 @@ ...@@ -397,13 +397,24 @@
</select> </select>
<select id="queryAll" resultMap="TbXwSzSzryMap"> <select id="queryAll" resultMap="TbXwSzSzryMap">
select * from (select select a.* from (
XXZJBH, ASJBH, SZ_JYQK, ZW_JYQK, SZDD_XZQHDM, SZDD_DZMC, SZRY_ASJXGRYBH, SZRY_XM, SZRY_CYZJ_CYZJDM, SZRY_CYZJ_DMBCMS, SZRY_CYZJ_ZJHM, SZRY_CSRQ, SZRY_XBDM, SZRY_GJDM, SZRY_JGDM, SZRY_MZDM, SZRY_HJDZ_XZQHDM, SZRY_HJDZ_DZMC, SZRY_XZZ_XZQHDM, SZRY_XZZ_DZMC, SZRY_GZDW, SZRY_LXDH, SZRY_XDWP_JYQK, SZRY_BZ, BLDW_GAJGJGDM, BLDW_GAJGMC, ZBR_XM, ZBR_GMSFHM, ZBR_LXDH, XBR_XM, XBR_GMSFHM, XBR_LXDH, BLSJ, XXSC_PDBZ, XXDJDW_GAJGJGDM, XXDJDW_GAJGMC, XXDJRY_XM, XXDJRY_GMSFHM, XXDJRY_LXDH, DJSJ, XXCZDW_GAJGJGDM, XXCZDW_GAJGMC, XXCZRY_XM, XXCZRY_GMSFHM, GXSJ, XXLYMS, XXRSKSJ, XXRBKSJ, XXRSK_PDBZ, XXRBK_PDBZ, SZRY_JZRYBH, GABXF,rownum rn select * from (
select @rownum := @rownum + 1 AS rownum, t1.* from (
select
XXZJBH, ASJBH, SZ_JYQK, ZW_JYQK, SZDD_XZQHDM, SZDD_DZMC, SZRY_ASJXGRYBH, SZRY_XM, SZRY_CYZJ_CYZJDM,
SZRY_CYZJ_DMBCMS, SZRY_CYZJ_ZJHM, SZRY_CSRQ, SZRY_XBDM, SZRY_GJDM, SZRY_JGDM, SZRY_MZDM, SZRY_HJDZ_XZQHDM,
SZRY_HJDZ_DZMC, SZRY_XZZ_XZQHDM, SZRY_XZZ_DZMC, SZRY_GZDW, SZRY_LXDH, SZRY_XDWP_JYQK, SZRY_BZ, BLDW_GAJGJGDM,
BLDW_GAJGMC, ZBR_XM, ZBR_GMSFHM, ZBR_LXDH, XBR_XM, XBR_GMSFHM, XBR_LXDH, BLSJ, XXSC_PDBZ, XXDJDW_GAJGJGDM,
XXDJDW_GAJGMC, XXDJRY_XM, XXDJRY_GMSFHM, XXDJRY_LXDH, DJSJ, XXCZDW_GAJGJGDM, XXCZDW_GAJGMC, XXCZRY_XM,
XXCZRY_GMSFHM, GXSJ, XXLYMS, XXRSKSJ, XXRBKSJ, XXRSK_PDBZ, XXRBK_PDBZ, SZRY_JZRYBH, GABXF
from tb_xw_sz_szry from tb_xw_sz_szry
where xxsc_pdbz = '0' and rownum <![CDATA[ <= ]]> #{limit} where xxsc_pdbz = '0'
<if test="asjbh != null and asjbh != '' "> <if test="asjbh != null and asjbh != '' ">
and asjbh = #{asjbh} and asjbh = #{asjbh}
</if>)where rn <![CDATA[ > ]]> #{page} </if>
) t1,(SELECT @rownum:=0) r
)b where rownum <![CDATA[ <= ]]> #{limit})a
where rownum <![CDATA[ > ]]> #{page}
</select> </select>
<!--新增所有列--> <!--新增所有列-->
......
...@@ -552,13 +552,30 @@ ...@@ -552,13 +552,30 @@
</select> </select>
<select id="queryAll" resultMap="TbXwWffzkyryMap"> <select id="queryAll" resultMap="TbXwWffzkyryMap">
select * from(select select a.* from (
XXZJBH, ASJBH, KEYYJ_JYQK, WFFZKYRY_ASJXGRYBH, WFFZKYRY_GTFZFZXYRSADWZYDM, WFFZKYRY_SFSZRY_PDBZ, WFFZKYRY_SFTAZS_PDBZ, WFFZKYRY_XM, WFFZKYRY_CYM, WFFZKYRY_BMCH, WFFZKYRY_CYZJ_CYZJDM, WFFZKYRY_CYZJ_DMBCMS, WFFZKYRY_CYZJ_ZJHM, WFFZKYRY_XBDM, WFFZKYRY_CSRQ, WFFZKYRY_GJDM, WFFZKYRY_JGDM, WFFZKYRY_MZDM, WFFZKYRY_SGXX, WFFZKYRY_SGSX, WFFZKYRY_TZXX, WFFZKYRY_TZSX, WFFZKYRY_ZCSX, WFFZKYRY_ZCXX, WFFZKYRY_TMTZMS, WFFZKYRY_TBBJMS, WFFZKYRY_RQTTZ_JYQK, WFFZKYRY_CSD_GJHDQDM, WFFZKYRY_CSD_XZQHDM, WFFZKYRY_CSD_DZMC, WFFZKYRY_HJDZ_XZQHDM, WFFZKYRY_HJDZ_DZMC, WFFZKYRY_XZZ_XZQHDM, WFFZKYRY_XZZ_DZMC, WFFZKYRY_JWZZ_GJHDQDM, WFFZKYRY_JWZZ_DZMC, WFFZKYRY_GZDW, WFFZKYRY_LXDH, WFFZKYRY_ZY_ZYLBDM, WFFZKYRY_ZY_DMBCMS, WFFZKYRY_ASJXGRYSF_ASJXGRYSFDM, WFFZKYRY_ASJXGRYSF_DMBCMS, WFFZKYRY_FZXYRTSZC_FZXYRTSZCDM, WFFZKYRY_FZXYRTSZC_DMBCMS, WFFZKYRY_SFYXDS_PDBZ, WFFZKYRY_LYDP_SAWPDM, WFFZKYRY_SFHY_PDBZ, WFFZKYRY_SFZDJBHZ_PDBZ, WFFZKYRY_XDWP_JYQK, WFFZKYRY_RDFZSS_PDBZ, WFFZKYRY_RDFZSS_ZCXWYJMS, WFFZKYRY_PCFZXY_PDBZ, WFFZKYRY_PCFZXY_ZCXWYJMS, WFFZKYRY_BZ, XXSC_PDBZ, XXDJDW_GAJGJGDM, XXDJDW_GAJGMC, XXDJRY_XM, XXDJRY_GMSFHM, XXDJRY_LXDH, DJSJ, XXCZDW_GAJGJGDM, XXCZDW_GAJGMC, XXCZRY_XM, XXCZRY_GMSFHM, GXSJ, XXLYMS, XXRSKSJ, XXRBKSJ, XXRSK_PDBZ, XXRBK_PDBZ, WFFZKYRY_JZRYBH, GABXF, WFFZKYRY_FXSJ,rownum rn select * from (
select @rownum := @rownum + 1 AS rownum, t1.* from (
select
XXZJBH, ASJBH, KEYYJ_JYQK, WFFZKYRY_ASJXGRYBH, WFFZKYRY_GTFZFZXYRSADWZYDM, WFFZKYRY_SFSZRY_PDBZ,
WFFZKYRY_SFTAZS_PDBZ, WFFZKYRY_XM, WFFZKYRY_CYM, WFFZKYRY_BMCH, WFFZKYRY_CYZJ_CYZJDM, WFFZKYRY_CYZJ_DMBCMS,
WFFZKYRY_CYZJ_ZJHM, WFFZKYRY_XBDM, WFFZKYRY_CSRQ, WFFZKYRY_GJDM, WFFZKYRY_JGDM, WFFZKYRY_MZDM, WFFZKYRY_SGXX,
WFFZKYRY_SGSX, WFFZKYRY_TZXX, WFFZKYRY_TZSX, WFFZKYRY_ZCSX, WFFZKYRY_ZCXX, WFFZKYRY_TMTZMS, WFFZKYRY_TBBJMS,
WFFZKYRY_RQTTZ_JYQK, WFFZKYRY_CSD_GJHDQDM, WFFZKYRY_CSD_XZQHDM, WFFZKYRY_CSD_DZMC, WFFZKYRY_HJDZ_XZQHDM,
WFFZKYRY_HJDZ_DZMC, WFFZKYRY_XZZ_XZQHDM, WFFZKYRY_XZZ_DZMC, WFFZKYRY_JWZZ_GJHDQDM, WFFZKYRY_JWZZ_DZMC,
WFFZKYRY_GZDW, WFFZKYRY_LXDH, WFFZKYRY_ZY_ZYLBDM, WFFZKYRY_ZY_DMBCMS, WFFZKYRY_ASJXGRYSF_ASJXGRYSFDM,
WFFZKYRY_ASJXGRYSF_DMBCMS, WFFZKYRY_FZXYRTSZC_FZXYRTSZCDM, WFFZKYRY_FZXYRTSZC_DMBCMS, WFFZKYRY_SFYXDS_PDBZ,
WFFZKYRY_LYDP_SAWPDM, WFFZKYRY_SFHY_PDBZ, WFFZKYRY_SFZDJBHZ_PDBZ, WFFZKYRY_XDWP_JYQK, WFFZKYRY_RDFZSS_PDBZ,
WFFZKYRY_RDFZSS_ZCXWYJMS, WFFZKYRY_PCFZXY_PDBZ, WFFZKYRY_PCFZXY_ZCXWYJMS, WFFZKYRY_BZ, XXSC_PDBZ, XXDJDW_GAJGJGDM,
XXDJDW_GAJGMC, XXDJRY_XM, XXDJRY_GMSFHM, XXDJRY_LXDH, DJSJ, XXCZDW_GAJGJGDM, XXCZDW_GAJGMC, XXCZRY_XM, XXCZRY_GMSFHM,
GXSJ, XXLYMS, XXRSKSJ, XXRBKSJ, XXRSK_PDBZ, XXRBK_PDBZ, WFFZKYRY_JZRYBH, GABXF, WFFZKYRY_FXSJ
from tb_xw_wffzkyry from tb_xw_wffzkyry
where xxsc_pdbz = '0' and rownum <![CDATA[ <= ]]> #{limit} where xxsc_pdbz = '0'
<if test="asjbh != null and asjbh != '' "> <if test="asjbh != null and asjbh != '' ">
and asjbh = #{asjbh} and asjbh = #{asjbh}
</if>)where rn <![CDATA[ > ]]> #{page} </if>
) t1,(SELECT @rownum:=0) r
)b where rownum <![CDATA[ <= ]]> #{limit})a
where rownum <![CDATA[ > ]]> #{page}
</select> </select>
<!--新增所有列--> <!--新增所有列-->
......
...@@ -966,7 +966,11 @@ ...@@ -966,7 +966,11 @@
</select> </select>
<select id="queryAll" resultMap="TbXwZbfzxyrMap"> <select id="queryAll" resultMap="TbXwZbfzxyrMap">
select * from (select xxzjbh, select a.* from (
select * from (
select @rownum := @rownum + 1 AS rownum, t1.* from (
select
xxzjbh,
asjbh, asjbh,
xxfc_pdbz, xxfc_pdbz,
zcxshqfs_zcxshqfsdm, zcxshqfs_zcxshqfsdm,
...@@ -1081,17 +1085,16 @@ ...@@ -1081,17 +1085,16 @@
zhfzxyr_lxdh, zhfzxyr_lxdh,
zhfzxyr_fxsj, zhfzxyr_fxsj,
zhfzxyr_nld, zhfzxyr_nld,
zhfzxyr_zhslxdh, zhfzxyr_zhslxdh
rownum rn
from tb_xw_zbfzxyr from tb_xw_zbfzxyr
where xxsc_pdbz = '0' and rownum <![CDATA[ <= ]]> #{limit} where xxsc_pdbz = '0'
<if test="asjbh != null and asjbh != '' "> <if test="asjbh != null and asjbh != '' ">
and asjbh = #{asjbh} and asjbh = #{asjbh}
</if> </if>
order by djsj desc order by djsj desc
)where rn <![CDATA[ > ]]> #{page} ) t1,(SELECT @rownum:=0) r
)b where rownum <![CDATA[ <= ]]> #{limit})a
where rownum <![CDATA[ > ]]> #{page}
</select> </select>
<!--新增所有列--> <!--新增所有列-->
......
...@@ -92,9 +92,7 @@ public class TbStRyGxrServiceImpl implements TbStRyGxrService { ...@@ -92,9 +92,7 @@ public class TbStRyGxrServiceImpl implements TbStRyGxrService {
/** /**
* 新增数据 * 新增数据
* ** @return 实例对象
* @param tbStRyGxr 实例对象
* @return 实例对象
*/ */
@Override @Override
public String insert(TbStRyGxrQgccj thisObj) { public String insert(TbStRyGxrQgccj thisObj) {
...@@ -124,9 +122,7 @@ public class TbStRyGxrServiceImpl implements TbStRyGxrService { ...@@ -124,9 +122,7 @@ public class TbStRyGxrServiceImpl implements TbStRyGxrService {
/** /**
* 修改数据 * 修改数据
* ** @return 实例对象
* @param tbStRyGxr 实例对象
* @return 实例对象
*/ */
@Override @Override
public TbStRyGxrQgccj update(TbStRyGxrQgccj thisObj) { public TbStRyGxrQgccj update(TbStRyGxrQgccj thisObj) {
......
...@@ -39,7 +39,7 @@ ...@@ -39,7 +39,7 @@
and groupid=#{value, jdbcType=VARCHAR} and groupid=#{value, jdbcType=VARCHAR}
</if> </if>
<if test="bzxx != null"> <if test="bzxx != null">
and code like #{bzxx,jdbcType=VARCHAR} || '%' and code like concat(#{bzxx, jdbcType=VARCHAR },'%')
</if> </if>
order by code order by code
</select> </select>
......
...@@ -2,18 +2,18 @@ ...@@ -2,18 +2,18 @@
<!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="org.springblade.founder.ryythcj.mapper.TbStAppRyxxMapper"> <mapper namespace="org.springblade.founder.ryythcj.mapper.TbStAppRyxxMapper">
<select id="selectListByParay" resultType="org.springblade.founder.ryythcj.entity.TbStAppRyxx"> <select id="selectListByParay" resultType="org.springblade.founder.ryythcj.entity.TbStAppRyxx">
select * select a.* from (
from (select rownum r, t.* select * from (
from ( select @rownum := @rownum + 1 AS rownum, t1.* from (
SELECT select
<include refid="ryxxQueryField"/> <include refid="ryxxQueryField"/>
FROM tb_st_app_ryxx FROM tb_st_app_ryxx
where xxsc_pdbz = '0' where xxsc_pdbz = '0'
<include refid="ryxxQueryParam"/> <include refid="ryxxQueryParam"/>
order by djsj desc order by djsj desc
) t ) t1,(SELECT @rownum:=0) r
where rownum <![CDATA[ <= ]]> #{end}) )b where rownum <![CDATA[ <= ]]> #{end})a
where r <![CDATA[ > ]]> #{begin} where rownum <![CDATA[ > ]]> #{begin}
</select> </select>
<select id="selectCountByParay" resultType="java.lang.Integer"> <select id="selectCountByParay" resultType="java.lang.Integer">
select count(1) select count(1)
...@@ -91,25 +91,25 @@ ...@@ -91,25 +91,25 @@
</sql> </sql>
<sql id="ryxxQueryParam"> <sql id="ryxxQueryParam">
<if test="xxzjbh != null and xxzjbh != ''"> <if test="xxzjbh != null and xxzjbh != ''">
AND XXZJBH like #{xxzjbh , jdbcType=VARCHAR } || '%' AND XXZJBH like concat(#{xxzjbh, jdbcType=VARCHAR },'%')
</if> </if>
<if test="asjbh != null and asjbh != ''"> <if test="asjbh != null and asjbh != ''">
AND ASJBH like #{asjbh , jdbcType=VARCHAR } || '%' AND ASJBH like concat(#{asjbh, jdbcType=VARCHAR },'%')
</if> </if>
<if test="jzrybh != null and jzrybh != ''"> <if test="jzrybh != null and jzrybh != ''">
AND JZRYBH like #{jzrybh , jdbcType=VARCHAR } || '%' AND JZRYBH like concat(#{jzrybh, jdbcType=VARCHAR },'%')
</if> </if>
<if test="xm != null and xm != ''"> <if test="xm != null and xm != ''">
AND (XM like '%' || #{xm , jdbcType=VARCHAR } || '%' AND (XM like concat('%',#{xm, jdbcType=VARCHAR },'%')
or CYM like '%' || #{xm , jdbcType=VARCHAR } || '%' or CYM like concat('%',#{xm, jdbcType=VARCHAR },'%')
or BM like '%' || #{xm , jdbcType=VARCHAR } || '%' or BM like concat('%',#{xm, jdbcType=VARCHAR },'%')
or XMPY like '%' || #{xm , jdbcType=VARCHAR } || '%') or XMPY like concat('%',#{xm, jdbcType=VARCHAR },'%')
</if> </if>
<if test="sfzh != null and sfzh != ''"> <if test="sfzh != null and sfzh != ''">
AND SFZH = #{sfzh , jdbcType=VARCHAR } AND SFZH = #{sfzh , jdbcType=VARCHAR }
</if> </if>
<if test="xmpy != null and xmpy != ''"> <if test="xmpy != null and xmpy != ''">
AND XMPY like '%' || #{xmpy , jdbcType=VARCHAR } || '%' AND XMPY like concat('%',#{xmpy, jdbcType=VARCHAR },'%')
</if> </if>
<if test="cym != null and cym != ''"> <if test="cym != null and cym != ''">
AND CYM = #{cym , jdbcType=VARCHAR } AND CYM = #{cym , jdbcType=VARCHAR }
...@@ -196,7 +196,7 @@ ...@@ -196,7 +196,7 @@
AND DJSJ <![CDATA[ <= ]]> #{djsjEnd , jdbcType=TIMESTAMP } AND DJSJ <![CDATA[ <= ]]> #{djsjEnd , jdbcType=TIMESTAMP }
</if> </if>
<if test="xxdjdwGajgjgdm != null and xxdjdwGajgjgdm != ''"> <if test="xxdjdwGajgjgdm != null and xxdjdwGajgjgdm != ''">
AND XXDJDW_GAJGJGDM like #{xxdjdwGajgjgdm , jdbcType=VARCHAR } || '%' AND XXDJDW_GAJGJGDM like concat(#{xxdjdwGajgjgdm, jdbcType=VARCHAR },'%')
</if> </if>
<if test="xxdjdwGajgmc != null and xxdjdwGajgmc != ''"> <if test="xxdjdwGajgmc != null and xxdjdwGajgmc != ''">
AND XXDJDW_GAJGMC = #{xxdjdwGajgmc , jdbcType=VARCHAR } AND XXDJDW_GAJGMC = #{xxdjdwGajgmc , jdbcType=VARCHAR }
......
...@@ -34,7 +34,6 @@ import java.text.ParseException; ...@@ -34,7 +34,6 @@ import java.text.ParseException;
import java.util.*; import java.util.*;
@Service @Service
@DS("xzxt_hn")
public class TbStAppRyxxServiceImpl implements TbStAppRyxxService { public class TbStAppRyxxServiceImpl implements TbStAppRyxxService {
@Autowired @Autowired
private TbStAppRyxxMapper tbStAppRyxxMapper; private TbStAppRyxxMapper tbStAppRyxxMapper;
......
...@@ -26,7 +26,6 @@ import java.util.Map; ...@@ -26,7 +26,6 @@ import java.util.Map;
* @date 2019/4/20 * @date 2019/4/20
*/ */
@Service @Service
@DS("db1")
public class MessageServiceImpl implements IMessageService { public class MessageServiceImpl implements IMessageService {
@Autowired @Autowired
private MessgeMapper messgeMapper; private MessgeMapper messgeMapper;
......
...@@ -15,7 +15,6 @@ import java.util.List; ...@@ -15,7 +15,6 @@ import java.util.List;
import java.util.Map; import java.util.Map;
@Service @Service
@DS("db1")
public class UnitcodeUnitServiceImpl implements UnitcodeUnitService { public class UnitcodeUnitServiceImpl implements UnitcodeUnitService {
@Autowired @Autowired
private UnitcodeUnitMapper unitcodeUnitMapper; private UnitcodeUnitMapper unitcodeUnitMapper;
......
...@@ -2,30 +2,30 @@ ...@@ -2,30 +2,30 @@
<!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="org.springblade.founder.xcxt.mapper.TbStAppXsMapper"> <mapper namespace="org.springblade.founder.xcxt.mapper.TbStAppXsMapper">
<select id="selectListByParam" resultType="org.springblade.founder.xcxt.entity.TbStAppXs"> <select id="selectListByParam" resultType="org.springblade.founder.xcxt.entity.TbStAppXs">
select * select a.* from (
from (select rownum r, t.* select * from (
from ( select @rownum := @rownum + 1 AS rownum, t1.* from (
SELECT select
<include refid="selectXsField"/> <include refid="selectXsField"/>
FROM TB_ST_APP_XS FROM tb_st_app_xs
where XXSC_PDBZ = '0' where XXSC_PDBZ = '0'
<include refid="selectXsParam"/> <include refid="selectXsParam"/>
order by DJSJ desc order by DJSJ desc
) t ) t1,(SELECT @rownum:=0) r
where rownum <![CDATA[ <= ]]> #{end}) )b where rownum <![CDATA[ <= ]]> #{end})a
where r <![CDATA[ > ]]> #{begin} where rownum <![CDATA[ > ]]> #{begin}
</select> </select>
<select id="selectCountByParam" resultType="java.lang.Integer"> <select id="selectCountByParam" resultType="java.lang.Integer">
select count(1) select count(1)
from TB_ST_APP_XS from tb_st_app_xs
where XXSC_PDBZ = '0' where XXSC_PDBZ = '0'
<include refid="selectXsParam"/> <include refid="selectXsParam"/>
</select> </select>
<select id="selectXsByXxzjbh" resultType="org.springblade.founder.xcxt.entity.TbStAppXs"> <select id="selectXsByXxzjbh" resultType="org.springblade.founder.xcxt.entity.TbStAppXs">
select select
<include refid="selectXsField"/> <include refid="selectXsField"/>
from TB_ST_APP_XS from tb_st_app_xs
where XXSC_PDBZ = '0' where XXSC_PDBZ = '0'
and XXZJBH = #{xxzjbh,jdbcType=VARCHAR} and XXZJBH = #{xxzjbh,jdbcType=VARCHAR}
</select> </select>
...@@ -46,7 +46,10 @@ ...@@ -46,7 +46,10 @@
XSMC, XSMC,
XSMS, XSMS,
XSZT, XSZT,
decode(XSZT, '0', '草稿', '1', '已发布', '') as xsztStr, (case
when XSZT='0' then '草稿'
when XSZT='1' then '已发布'
else '' end ) as xsztStr,
XCJD, XCJD,
XCWD, XCWD,
DJSJ, DJSJ,
...@@ -99,7 +102,7 @@ ...@@ -99,7 +102,7 @@
AND XXZJBH = #{xxzjbh , jdbcType=VARCHAR } AND XXZJBH = #{xxzjbh , jdbcType=VARCHAR }
</if> </if>
<if test="xsmc != null and xsmc != ''"> <if test="xsmc != null and xsmc != ''">
AND XSMC like '%' || #{xsmc , jdbcType=VARCHAR } || '%' AND XSMC like concat('%',#{xsmc, jdbcType=VARCHAR},'%')
</if> </if>
<if test="xsms != null and xsms != ''"> <if test="xsms != null and xsms != ''">
AND XSMS = #{xsms , jdbcType=VARCHAR } AND XSMS = #{xsms , jdbcType=VARCHAR }
...@@ -120,7 +123,7 @@ ...@@ -120,7 +123,7 @@
AND DJSJ <![CDATA[ >= ]]> #{djsjEnd , jdbcType=TIMESTAMP } AND DJSJ <![CDATA[ >= ]]> #{djsjEnd , jdbcType=TIMESTAMP }
</if> </if>
<if test="xxdjdwGajgjgdm != null and xxdjdwGajgjgdm != ''"> <if test="xxdjdwGajgjgdm != null and xxdjdwGajgjgdm != ''">
AND XXDJDW_GAJGJGDM like #{xxdjdwGajgjgdm , jdbcType=VARCHAR } || '%' AND XXDJDW_GAJGJGDM like concat(#{xxdjdwGajgjgdm, jdbcType=VARCHAR},'%')
</if> </if>
<if test="xxdjdwGajgmc != null and xxdjdwGajgmc != ''"> <if test="xxdjdwGajgmc != null and xxdjdwGajgmc != ''">
AND XXDJDW_GAJGMC = #{xxdjdwGajgmc , jdbcType=VARCHAR } AND XXDJDW_GAJGMC = #{xxdjdwGajgmc , jdbcType=VARCHAR }
......
...@@ -50,7 +50,6 @@ public class TbStAppXsServiceImpl implements TbStAppXsService { ...@@ -50,7 +50,6 @@ public class TbStAppXsServiceImpl implements TbStAppXsService {
Utils.setUserDjxxAndCzxx(xs); Utils.setUserDjxxAndCzxx(xs);
//保存基本信息 //保存基本信息
tbStAppXsMapper.insert(xs); tbStAppXsMapper.insert(xs);
//关联附件信息 //关联附件信息
glfjxx(xs); glfjxx(xs);
return xxzjbh; return xxzjbh;
......
...@@ -13,7 +13,7 @@ import java.util.Date; ...@@ -13,7 +13,7 @@ import java.util.Date;
@Data @Data
@EqualsAndHashCode(callSuper = true) @EqualsAndHashCode(callSuper = true)
@TableName("TB_ST_APP_WZXX") @TableName("tb_st_app_wzxx")
public class TbStAppWzxx extends BaseModel { public class TbStAppWzxx extends BaseModel {
@TableId(type = IdType.INPUT) @TableId(type = IdType.INPUT)
private String xxzjbh; private String xxzjbh;
......
...@@ -4,14 +4,14 @@ ...@@ -4,14 +4,14 @@
<select id="selectListByParam" resultType="org.springblade.founder.xcxx.entity.TbStAppWzxx"> <select id="selectListByParam" resultType="org.springblade.founder.xcxx.entity.TbStAppWzxx">
SELECT SELECT
<include refid="selectField"/> <include refid="selectField"/>
FROM TB_ST_APP_WZXX FROM tb_st_app_wzxx
where XXSC_PDBZ = '0' where XXSC_PDBZ = '0'
<include refid="selectParam"/> <include refid="selectParam"/>
order by djsj desc order by djsj desc
</select> </select>
<select id="selectCountByParam" resultType="java.lang.Integer"> <select id="selectCountByParam" resultType="java.lang.Integer">
select count(1) select count(1)
from TB_ST_APP_WZXX from tb_st_app_wzxx
where XXSC_PDBZ = '0' where XXSC_PDBZ = '0'
<include refid="selectParam"/> <include refid="selectParam"/>
</select> </select>
...@@ -20,7 +20,7 @@ ...@@ -20,7 +20,7 @@
XXZJBH, XXZJBH,
WZMC, WZMC,
WZLX, WZLX,
(select name from SYS_DICTITEM where GROUPID = 'CODE_WZLXDM' and code = WZLX) as wzlxStr, (select name from sys_dictitem where GROUPID = 'CODE_WZLXDM' and code = WZLX) as wzlxStr,
WZJD, WZJD,
WZWD, WZWD,
WZXX, WZXX,
......
...@@ -34,8 +34,10 @@ ...@@ -34,8 +34,10 @@
</resultMap> </resultMap>
<select id="selectPageList" resultMap="baseResultMap"> <select id="selectPageList" resultMap="baseResultMap">
select * from (select rownum r,t.* from ( select a.* from (
SELECT select * from (
select @rownum := @rownum + 1 AS rownum, t1.* from (
select
XCBH , XCBH ,
GLXXLX , GLXXLX ,
GLXX_XXZJBH , GLXX_XXZJBH ,
...@@ -64,11 +66,11 @@ ...@@ -64,11 +66,11 @@
XXRBK_PDBZ , XXRBK_PDBZ ,
XXSC_PDBZ , XXSC_PDBZ ,
CKSJ CKSJ
FROM TB_ST_APP_XCXX FROM tb_st_app_xcxx
where xxsc_pdbz = '0' where xxsc_pdbz = '0'
<if test="tbStAppXcxx.xcmc != null and tbStAppXcxx.xcmc != ''"> <if test="tbStAppXcxx.xcmc != null and tbStAppXcxx.xcmc != ''">
AND (XCMC like '%' || #{tbStAppXcxx.xcmc , jdbcType=VARCHAR } || '%' or AND (XCMC like concat('%',#{tbStAppXcxx.xcmc, jdbcType=VARCHAR },'%') or
xcbh like '%' || #{tbStAppXcxx.xcmc , jdbcType=VARCHAR } || '%') xcbh like concat('%',#{tbStAppXcxx.xcmc, jdbcType=VARCHAR },'%'))
</if> </if>
<if test="tbStAppXcxx.xcdlwzJdStrat != null"> <if test="tbStAppXcxx.xcdlwzJdStrat != null">
AND XCDLWZ_JD <![CDATA[ >= ]]> #{tbStAppXcxx.xcdlwzJdStrat , jdbcType=INTEGER } AND XCDLWZ_JD <![CDATA[ >= ]]> #{tbStAppXcxx.xcdlwzJdStrat , jdbcType=INTEGER }
...@@ -89,7 +91,7 @@ ...@@ -89,7 +91,7 @@
AND DJSJ = #{tbStAppXcxx.djsj , jdbcType=TIMESTAMP } AND DJSJ = #{tbStAppXcxx.djsj , jdbcType=TIMESTAMP }
</if> </if>
<if test="tbStAppXcxx.xxdjdwGajgjgdm != null and tbStAppXcxx.xxdjdwGajgjgdm != ''"> <if test="tbStAppXcxx.xxdjdwGajgjgdm != null and tbStAppXcxx.xxdjdwGajgjgdm != ''">
AND XXDJDW_GAJGJGDM like '%' || #{tbStAppXcxx.xxdjdwGajgjgdm , jdbcType=VARCHAR } || '%' AND XXDJDW_GAJGJGDM like concat('%',#{tbStAppXcxx.xxdjdwGajgjgdm jdbcType=VARCHAR },'%')
</if> </if>
<if test="tbStAppXcxx.cksjStart != null"> <if test="tbStAppXcxx.cksjStart != null">
AND CKSJ <![CDATA[ >= ]]> #{tbStAppXcxx.cksjStart , jdbcType=TIMESTAMP } AND CKSJ <![CDATA[ >= ]]> #{tbStAppXcxx.cksjStart , jdbcType=TIMESTAMP }
...@@ -111,16 +113,18 @@ ...@@ -111,16 +113,18 @@
</foreach> </foreach>
</if> </if>
order by djsj desc order by djsj desc
) t where rownum <![CDATA[ <= ]]> #{tbStAppXcxx.end} ) where r <![CDATA[ > ]]> #{tbStAppXcxx.begin} ) t1,(SELECT @rownum:=0) r
)b where rownum <![CDATA[ <= ]]> #{tbStAppXcxx.end})a
where rownum <![CDATA[ > ]]> #{tbStAppXcxx.begin}
</select> </select>
<select id="selectPageCount" resultType="java.lang.Integer"> <select id="selectPageCount" resultType="java.lang.Integer">
SELECT SELECT
count(1) count(1)
FROM TB_ST_APP_XCXX FROM tb_st_app_xcxx
where xxsc_pdbz = '0' where xxsc_pdbz = '0'
<if test="tbStAppXcxx.xcmc != null and tbStAppXcxx.xcmc != ''"> <if test="tbStAppXcxx.xcmc != null and tbStAppXcxx.xcmc != ''">
AND (XCMC like '%' || #{tbStAppXcxx.xcmc , jdbcType=VARCHAR } || '%' or AND (XCMC like concat('%',#{tbStAppXcxx.xcmc, jdbcType=VARCHAR},'%') or
xcbh like '%' || #{tbStAppXcxx.xcmc , jdbcType=VARCHAR } || '%') xcbh like concat('%',#{tbStAppXcxx.xcmc, jdbcType=VARCHAR},'%'))
</if> </if>
<if test="tbStAppXcxx.xcdlwzJdStrat != null"> <if test="tbStAppXcxx.xcdlwzJdStrat != null">
AND XCDLWZ_JD <![CDATA[ >= ]]> #{tbStAppXcxx.xcdlwzJdStrat , jdbcType=INTEGER } AND XCDLWZ_JD <![CDATA[ >= ]]> #{tbStAppXcxx.xcdlwzJdStrat , jdbcType=INTEGER }
...@@ -141,7 +145,7 @@ ...@@ -141,7 +145,7 @@
AND DJSJ = #{tbStAppXcxx.djsj , jdbcType=TIMESTAMP } AND DJSJ = #{tbStAppXcxx.djsj , jdbcType=TIMESTAMP }
</if> </if>
<if test="tbStAppXcxx.xxdjdwGajgjgdm != null and tbStAppXcxx.xxdjdwGajgjgdm != ''"> <if test="tbStAppXcxx.xxdjdwGajgjgdm != null and tbStAppXcxx.xxdjdwGajgjgdm != ''">
AND XXDJDW_GAJGJGDM like '%' || #{tbStAppXcxx.xxdjdwGajgjgdm , jdbcType=VARCHAR } || '%' AND XXDJDW_GAJGJGDM like concat('%',#{tbStAppXcxx.xxdjdwGajgjgdm, jdbcType=VARCHAR},'%')
</if> </if>
<if test="tbStAppXcxx.cksjStart != null"> <if test="tbStAppXcxx.cksjStart != null">
AND CKSJ <![CDATA[ >= ]]> #{tbStAppXcxx.cksjStart , jdbcType=TIMESTAMP } AND CKSJ <![CDATA[ >= ]]> #{tbStAppXcxx.cksjStart , jdbcType=TIMESTAMP }
......
...@@ -19,7 +19,6 @@ import java.util.List; ...@@ -19,7 +19,6 @@ import java.util.List;
import java.util.Map; import java.util.Map;
@Service @Service
@DS("xzxt_hn")
public class TbStAppWzxxServiceImpl implements TbStAppWzxxService { public class TbStAppWzxxServiceImpl implements TbStAppWzxxService {
@Autowired @Autowired
......
...@@ -36,7 +36,6 @@ import java.util.Map; ...@@ -36,7 +36,6 @@ import java.util.Map;
import java.util.Set; import java.util.Set;
@Service @Service
@DS("xzxt_hn")
public class XcxxServiceImpl implements XcxxService { public class XcxxServiceImpl implements XcxxService {
@Autowired @Autowired
......
...@@ -3,18 +3,18 @@ ...@@ -3,18 +3,18 @@
<mapper namespace="org.springblade.founder.xxtz.mapper.XxtzMapper"> <mapper namespace="org.springblade.founder.xxtz.mapper.XxtzMapper">
<select id="selectXsajCountByDw" resultType="java.lang.Integer"> <select id="selectXsajCountByDw" resultType="java.lang.Integer">
select count(1) select count(1)
from TB_ST_ASJ from tb_st_asj
where XXSC_PDBZ = '0' where XXSC_PDBZ = '0'
and XXDJDW_GAJGJGDM like #{dwlike} || '%' and XXDJDW_GAJGJGDM like concat(#{dwlike},'%')
and ASJFSSJ_ASJFSKSSJ <![CDATA[ > ]]> to_date(#{date}, 'yyyy-mm-dd hh24:mi:ss') and ASJFSSJ_ASJFSKSSJ <![CDATA[ > ]]> STR_TO_DATE(#{date}, 'yyyy-mm-dd hh24:mi:ss')
</select> </select>
<select id="selectYphXsajCountByDw" resultType="java.lang.Integer"> <select id="selectYphXsajCountByDw" resultType="java.lang.Integer">
select count(1) select count(1)
from TB_ST_ASJ from tb_st_asj
where XXSC_PDBZ = '0' where XXSC_PDBZ = '0'
and ZCJDDM = '0600' and ZCJDDM = '0600'
and XXDJDW_GAJGJGDM like #{dwlike} || '%' and XXDJDW_GAJGJGDM like concat(#{dwlike},'%')
and ASJFSSJ_ASJFSKSSJ <![CDATA[ > ]]> to_date(#{date}, 'yyyy-mm-dd hh24:mi:ss') and ASJFSSJ_ASJFSKSSJ <![CDATA[ > ]]> STR_TO_DATE(#{date}, 'yyyy-mm-dd hh24:mi:ss')
</select> </select>
<select id="selectHcslByDjr" resultType="java.lang.Integer"> <select id="selectHcslByDjr" resultType="java.lang.Integer">
select count(1) select count(1)
...@@ -26,31 +26,31 @@ ...@@ -26,31 +26,31 @@
</select> </select>
<select id="selectXcxxCountByDjr" resultType="java.lang.Integer"> <select id="selectXcxxCountByDjr" resultType="java.lang.Integer">
select count(1) select count(1)
from TB_ST_APP_XCXX from tb_st_app_xcxx
where XXSC_PDBZ = '0' where XXSC_PDBZ = '0'
and XXDJRY_GMSFHM = #{zjhm,jdbcType=VARCHAR} and XXDJRY_GMSFHM = #{zjhm,jdbcType=VARCHAR}
</select> </select>
<select id="selectRyxxCountByDjr" resultType="java.lang.Integer"> <select id="selectRyxxCountByDjr" resultType="java.lang.Integer">
select count(1) select count(1)
from TB_ST_APP_RYXX from tb_st_app_ryxx
where XXSC_PDBZ = '0' where XXSC_PDBZ = '0'
and XXDJRY_GMSFHM = #{zjhm,jdbcType=VARCHAR} and XXDJRY_GMSFHM = #{zjhm,jdbcType=VARCHAR}
</select> </select>
<select id="selectDzblCountByDjr" resultType="java.lang.Integer"> <select id="selectDzblCountByDjr" resultType="java.lang.Integer">
select count(1) select count(1)
from TB_ST_APP_DZBL from tb_st_app_dzbl
where XXSC_PDBZ = '0' where XXSC_PDBZ = '0'
and XXDJRY_GMSFHM = #{zjhm,jdbcType=VARCHAR} and XXDJRY_GMSFHM = #{zjhm,jdbcType=VARCHAR}
</select> </select>
<select id="selectXsxxCountByDjr" resultType="java.lang.Integer"> <select id="selectXsxxCountByDjr" resultType="java.lang.Integer">
select count(1) select count(1)
from TB_ST_APP_XS from tb_st_app_xs
where XXSC_PDBZ = '0' where XXSC_PDBZ = '0'
and XXDJRY_GMSFHM = #{zjhm,jdbcType=VARCHAR} and XXDJRY_GMSFHM = #{zjhm,jdbcType=VARCHAR}
</select> </select>
<select id="selectXssbCountByDjr" resultType="java.lang.Integer"> <select id="selectXssbCountByDjr" resultType="java.lang.Integer">
select count(1) select count(1)
from TB_ST_APP_XS from tb_st_app_xs
where XXSC_PDBZ = '0' where XXSC_PDBZ = '0'
and XSZT = '1' and XSZT = '1'
and XXDJRY_GMSFHM = #{zjhm,jdbcType=VARCHAR} and XXDJRY_GMSFHM = #{zjhm,jdbcType=VARCHAR}
......
...@@ -46,7 +46,6 @@ public class XxtzServiceImpl implements XxtzService { ...@@ -46,7 +46,6 @@ public class XxtzServiceImpl implements XxtzService {
} }
@Override @Override
@DS("db1")
public Integer getHcsl() { public Integer getHcsl() {
XzxtUser userXzxt = SecureUtil.getUserXzxt(); XzxtUser userXzxt = SecureUtil.getUserXzxt();
return xxtzMapper.selectHcslByDjr(userXzxt.getIdentitycard()); return xxtzMapper.selectHcslByDjr(userXzxt.getIdentitycard());
......
...@@ -12,14 +12,14 @@ ...@@ -12,14 +12,14 @@
asj.JYAQ as jyaq, asj.JYAQ as jyaq,
asj.ASJFSDD_DQJD as jd, asj.ASJFSDD_DQJD as jd,
asj.ASJFSDD_DQWD as wd asj.ASJFSDD_DQWD as wd
from TB_ST_ASJ asj, from tb_st_asj asj,
TB_XW_ZBFZXYR xyr tb_xw_zbfzxyr xyr
where xyr.ZHFZXYR_CYZJ_ZJHM = #{sfzh,jdbcType=VARCHAR} where xyr.ZHFZXYR_CYZJ_ZJHM = #{sfzh,jdbcType=VARCHAR}
and xyr.asjbh = asj.asjbh and xyr.asjbh = asj.asjbh
and xyr.xxsc_pdbz = '0' and xyr.xxsc_pdbz = '0'
and asj.xxsc_pdbz = '0' and asj.xxsc_pdbz = '0'
<if test="qsAjList != null and qsAjList.size() > 0"> <if test="qsAjList != null and qsAjList.size() > 0">
and not exists(select asjbh from TB_ST_ASJ where asjbh in and not exists(select asjbh from tb_st_asj where asjbh in
<foreach collection="qsAjList" item="item" open="(" separator=", " close=")"> <foreach collection="qsAjList" item="item" open="(" separator=", " close=")">
#{item.asjbh,jdbcType=VARCHAR} #{item.asjbh,jdbcType=VARCHAR}
</foreach>) </foreach>)
...@@ -36,11 +36,11 @@ ...@@ -36,11 +36,11 @@
asj.JYAQ as jyaq, asj.JYAQ as jyaq,
asj.ASJFSDD_DQJD as jd, asj.ASJFSDD_DQJD as jd,
asj.ASJFSDD_DQWD as wd asj.ASJFSDD_DQWD as wd
from TB_ST_ASJ asj from tb_st_asj asj
where asj.xxsc_pdbz = '0' where asj.xxsc_pdbz = '0'
and asj.JYAQ like '%' || #{cphm,jdbcType=VARCHAR} || '%' and asj.JYAQ like concat(concat('%', #{cphm,jdbcType=VARCHAR }),'%')
<if test="qsAjList != null and qsAjList.size() > 0"> <if test="qsAjList != null and qsAjList.size() > 0">
and not exists(select asjbh from TB_ST_ASJ where asjbh in and not exists(select asjbh from tb_st_asj where asjbh in
<foreach collection="qsAjList" item="item" open="(" separator=", " close=")"> <foreach collection="qsAjList" item="item" open="(" separator=", " close=")">
#{item.asjbh,jdbcType=VARCHAR} #{item.asjbh,jdbcType=VARCHAR}
</foreach>) </foreach>)
......
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
CODE_TXT as CODE, CODE_TXT as CODE,
AJLB_CODE_TXT as AJLB, AJLB_CODE_TXT as AJLB,
SABQ_TXT as SABQ SABQ_TXT as SABQ
from TB_ST_RYBZ from tb_st_rybz
where ZJHM = #{sfzh,jdbcType=VARCHAR} where ZJHM = #{sfzh,jdbcType=VARCHAR}
and xxsc_pdbz = '0' and xxsc_pdbz = '0'
</select> </select>
...@@ -21,9 +21,9 @@ ...@@ -21,9 +21,9 @@
asj.JYAQ as jyaq, asj.JYAQ as jyaq,
asj.ASJFSDD_DQJD as jd, asj.ASJFSDD_DQJD as jd,
asj.ASJFSDD_DQWD as wd, asj.ASJFSDD_DQWD as wd,
(select name from SYS_DICTITEM where GROUPID = 'CODE_AJLB' and CODE = asj.ajlbdm) as ajlb (select name from sys_dictitem where GROUPID = 'CODE_AJLB' and CODE = asj.ajlbdm) as ajlb
from TB_ST_ASJ asj, from tb_st_asj asj,
TB_XW_ZBFZXYR xyr tb_xw_zbfzxyr xyr
where xyr.ZHFZXYR_CYZJ_ZJHM = #{sfzh,jdbcType=VARCHAR} where xyr.ZHFZXYR_CYZJ_ZJHM = #{sfzh,jdbcType=VARCHAR}
and xyr.asjbh = asj.asjbh and xyr.asjbh = asj.asjbh
and xyr.xxsc_pdbz = '0' and xyr.xxsc_pdbz = '0'
...@@ -41,15 +41,15 @@ ...@@ -41,15 +41,15 @@
asj.JYAQ as jyaq, asj.JYAQ as jyaq,
asj.ASJFSDD_DQJD as jd, asj.ASJFSDD_DQJD as jd,
asj.ASJFSDD_DQWD as wd, asj.ASJFSDD_DQWD as wd,
(select name from SYS_DICTITEM where GROUPID = 'CODE_AJLB' and CODE = asj.ajlbdm) as ajlb (select name from sys_dictitem where GROUPID = 'CODE_AJLB' and CODE = asj.ajlbdm) as ajlb
from TB_ST_ASJ asj from tb_st_asj asj
where asj.xxsc_pdbz = '0' where asj.xxsc_pdbz = '0'
and JYAQ like '%' || #{cphm,jdbcType=VARCHAR} || '%' and JYAQ like concat('%',#{cphm, jdbcType=VARCHAR },'%')
order by asj.djsj desc order by asj.djsj desc
</select> </select>
<select id="getNameByCodeAndGroupid" resultType="java.lang.String"> <select id="getNameByCodeAndGroupid" resultType="java.lang.String">
select name select name
from SYS_DICTITEM from sys_dictitem
where code = #{code} where code = #{code}
and groupid = #{groupid} and groupid = #{groupid}
</select> </select>
...@@ -64,8 +64,8 @@ ...@@ -64,8 +64,8 @@
asj.JYAQ as jyaq, asj.JYAQ as jyaq,
asj.ASJFSDD_DQJD as jd, asj.ASJFSDD_DQJD as jd,
asj.ASJFSDD_DQWD as wd, asj.ASJFSDD_DQWD as wd,
(select name from SYS_DICTITEM where GROUPID = 'CODE_AJLB' and CODE = asj.ajlbdm) as ajlb (select name from sys_dictitem where GROUPID = 'CODE_AJLB' and CODE = asj.ajlbdm) as ajlb
from TB_ST_ASJ asj from tb_st_asj asj
where asj.xxsc_pdbz = '0' where asj.xxsc_pdbz = '0'
and asj.ASJBH = #{asjbh,jdbcType=VARCHAR} and asj.ASJBH = #{asjbh,jdbcType=VARCHAR}
order by asj.djsj desc order by asj.djsj desc
......
...@@ -12,8 +12,8 @@ ...@@ -12,8 +12,8 @@
JYAQ as jyaq, JYAQ as jyaq,
ASJFSDD_DQJD as jd, ASJFSDD_DQJD as jd,
ASJFSDD_DQWD as wd, ASJFSDD_DQWD as wd,
(select name from SYS_DICTITEM where GROUPID = 'CODE_AJLB' and CODE = ajlbdm) as ajlb (select name from sys_dictitem where GROUPID = 'CODE_AJLB' and CODE = ajlbdm) as ajlb
from TB_ST_ASJ from tb_st_asj
where XXSC_PDBZ = '0' where XXSC_PDBZ = '0'
and ASJFSDD_DQJD between #{jdStart} and #{jdEnd} and ASJFSDD_DQJD between #{jdStart} and #{jdEnd}
and ASJFSDD_DQWD between #{wdStart} and #{wdEnd} and ASJFSDD_DQWD between #{wdStart} and #{wdEnd}
...@@ -28,11 +28,11 @@ ...@@ -28,11 +28,11 @@
select zjhm, select zjhm,
xm, xm,
xbdm, xbdm,
(select name from SYS_DICTITEM where GROUPID = 'CODE_XB' and code = xbdm) as xbStr, (select name from sys_dictitem where GROUPID = 'CODE_XB' and code = xbdm) as xbStr,
mzdm, mzdm,
(select name from SYS_DICTITEM where GROUPID = 'CODE_MZ' and code = mzdm) as mzStr, (select name from sys_dictitem where GROUPID = 'CODE_MZ' and code = mzdm) as mzStr,
xzqhdm, xzqhdm,
(select name from SYS_DICTITEM where GROUPID = 'CODE_XZQH' and code = xzqhdm) as xzqhStr, (select name from sys_dictitem where GROUPID = 'CODE_XZQH' and code = xzqhdm) as xzqhStr,
code, code,
zdy_code, zdy_code,
ajlb_code, ajlb_code,
...@@ -51,7 +51,7 @@ ...@@ -51,7 +51,7 @@
syrk_zxjd, syrk_zxjd,
syrk_zxwd, syrk_zxwd,
syrk_djsj syrk_djsj
from TB_ST_RYBZ from tb_st_rybz
where XXSC_PDBZ = '0' where XXSC_PDBZ = '0'
and syrk_zxjd between #{jdStart} and #{jdEnd} and syrk_zxjd between #{jdStart} and #{jdEnd}
and syrk_zxwd between #{wdStart} and #{wdEnd} and syrk_zxwd between #{wdStart} and #{wdEnd}
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
<mapper namespace="org.springblade.founder.ydjwhc.mapper.RyxxbjhcDao"> <mapper namespace="org.springblade.founder.ydjwhc.mapper.RyxxbjhcDao">
<select id="getFzxyrByZjhm" parameterType="java.lang.String" resultType="java.lang.Integer"> <select id="getFzxyrByZjhm" parameterType="java.lang.String" resultType="java.lang.Integer">
select count(1) select count(1)
from TB_XW_ZBFZXYR from tb_xw_zbfzxyr
where zhfzxyr_cyzj_zjhm = #{zjhm} where zhfzxyr_cyzj_zjhm = #{zjhm}
</select> </select>
...@@ -15,7 +15,7 @@ ...@@ -15,7 +15,7 @@
<select id="getZtryByZjhm" parameterType="java.lang.String" resultType="java.lang.Integer"> <select id="getZtryByZjhm" parameterType="java.lang.String" resultType="java.lang.Integer">
select count(1) select count(1)
from TB_YW_ZTRY from tb_yw_ztry
where zjhm = #{zjhm} and xxsc_pdbz = '0' where zjhm = #{zjhm} and xxsc_pdbz = '0'
</select> </select>
......
...@@ -32,6 +32,9 @@ public class QgBjHcServiceImpl implements QgBjHcService { ...@@ -32,6 +32,9 @@ public class QgBjHcServiceImpl implements QgBjHcService {
@Override @Override
public List<HcAjJg> selectAjByCphm(String cphm, List<HcAjJg> qsAjList) { public List<HcAjJg> selectAjByCphm(String cphm, List<HcAjJg> qsAjList) {
if (qsAjList.size() == 0) {
qsAjList.add(null);
}
return qgBjHcMapper.selectAjByCphm(cphm, qsAjList); return qgBjHcMapper.selectAjByCphm(cphm, qsAjList);
} }
} }
...@@ -58,7 +58,6 @@ import java.util.concurrent.TimeUnit; ...@@ -58,7 +58,6 @@ import java.util.concurrent.TimeUnit;
@RestController @RestController
@RequestMapping("blade-auth") @RequestMapping("blade-auth")
@Api(value = "用户授权认证", tags = "授权接口") @Api(value = "用户授权认证", tags = "授权接口")
@DS("db1")
public class AuthController { public class AuthController {
private RedisUtil redisUtil; private RedisUtil redisUtil;
...@@ -93,9 +92,9 @@ public class AuthController { ...@@ -93,9 +92,9 @@ public class AuthController {
if (userInfo == null || userInfo.getUser() == null) { if (userInfo == null || userInfo.getUser() == null) {
return R.fail(TokenUtil.USER_NOT_FOUND); return R.fail(TokenUtil.USER_NOT_FOUND);
} }
if (userInfo.getPermissions() == null || userInfo.getPermissions().size() == 0){ // if (userInfo.getPermissions() == null || userInfo.getPermissions().size() == 0){
return R.fail(TokenUtil.USER_NOT_PERMISSIONS); // return R.fail(TokenUtil.USER_NOT_PERMISSIONS);
} // }
return R.data(TokenUtil.createAuthInfo(userInfo)); return R.data(TokenUtil.createAuthInfo(userInfo));
} }
......
...@@ -38,13 +38,6 @@ ...@@ -38,13 +38,6 @@
from blade_dict where code = #{param1} and dict_key = #{param2} and is_deleted = 0 limit 1 from blade_dict where code = #{param1} and dict_key = #{param2} and is_deleted = 0 limit 1
</select> </select>
<!-- oracle 版本 -->
<!--<select id="getValue" resultType="java.lang.String">
select
dict_value
from blade_dict where code = #{param1, jdbcType=VARCHAR} and dict_key = #{param2} rownum 1
</select>-->
<select id="getList" resultMap="dictResultMap"> <select id="getList" resultMap="dictResultMap">
select code, dict_key, dict_value, sort, remark from blade_dict where code = #{param1} and dict_key >= 0 and is_deleted = 0 select code, dict_key, dict_value, sort, remark from blade_dict where code = #{param1} and dict_key >= 0 and is_deleted = 0
</select> </select>
......
...@@ -185,18 +185,18 @@ public class UserServiceImpl extends BaseServiceImpl<UserMapper, User> implement ...@@ -185,18 +185,18 @@ public class UserServiceImpl extends BaseServiceImpl<UserMapper, User> implement
String str = StringUtils.join(nameList, ","); String str = StringUtils.join(nameList, ",");
userNew.setUserRoles(idList); userNew.setUserRoles(idList);
userNew.setUserRolesStr(str); userNew.setUserRolesStr(str);
List<Map<String, String>> userMenusName = sysUserMapper.getUserMenus(idList); // List<Map<String, String>> userMenusName = sysUserMapper.getUserMenus(idList);
if (userMenusName != null && userMenusName.size() > 0){ // if (userMenusName != null && userMenusName.size() > 0){
ArrayList<String> menuNameList = new ArrayList<>(); // ArrayList<String> menuNameList = new ArrayList<>();
ArrayList<String> menuCodeList = new ArrayList<>(); // ArrayList<String> menuCodeList = new ArrayList<>();
for (Map<String, String> map : userMenusName) { // for (Map<String, String> map : userMenusName) {
menuNameList.add(map.get("menuName")); // menuNameList.add(map.get("menuName"));
menuCodeList.add(map.get("menuCode")); // menuCodeList.add(map.get("menuCode"));
} // }
String menuStr = StringUtils.join(menuNameList, ","); // String menuStr = StringUtils.join(menuNameList, ",");
userNew.setUserMenus(menuCodeList); // userNew.setUserMenus(menuCodeList);
userNew.setUserMenusStr(menuStr); // userNew.setUserMenusStr(menuStr);
} // }
} }
} }
userInfo.setUser(userNew); userInfo.setUser(userNew);
...@@ -277,7 +277,6 @@ public class UserServiceImpl extends BaseServiceImpl<UserMapper, User> implement ...@@ -277,7 +277,6 @@ public class UserServiceImpl extends BaseServiceImpl<UserMapper, User> implement
} }
@Override @Override
@DS("db1")
public String updatePassword(String userId, String oldPassword, String newPassword, String newPassword1) { public String updatePassword(String userId, String oldPassword, String newPassword, String newPassword1) {
if (StringUtils.isEmpty(userId)){ if (StringUtils.isEmpty(userId)){
return "202#用户id不能为空"; return "202#用户id不能为空";
......
...@@ -8,7 +8,7 @@ spring: ...@@ -8,7 +8,7 @@ spring:
##redis 单机环境配置 ##redis 单机环境配置
host: 127.0.0.1 host: 127.0.0.1
port: 6379 port: 6379
password: password: 12345678
database: 0 database: 0
ssl: false ssl: false
# host: 74.6.54.152 # host: 74.6.54.152
...@@ -32,27 +32,18 @@ spring: ...@@ -32,27 +32,18 @@ spring:
primary: xzxt_hn # 配置默认数据库 primary: xzxt_hn # 配置默认数据库
datasource: datasource:
xzxt_hn: #海南 xzxt_hn: #海南
# url: jdbc:oracle:thin:@10.184.17.3:1521:HNXZXT1
# username: XZXT
# password: XzxtPwd#46
url: jdbc:mysql://47.92.223.200:3365/xzxt?useSSL=false&useUnicode=true&characterEncoding=utf-8&zeroDateTimeBehavior=convertToNull&transformedBitIsBoolean=true&serverTimezone=GMT%2B8 url: jdbc:mysql://47.92.223.200:3365/xzxt?useSSL=false&useUnicode=true&characterEncoding=utf-8&zeroDateTimeBehavior=convertToNull&transformedBitIsBoolean=true&serverTimezone=GMT%2B8
username: xzxt username: xzxt
password: xzxt password: xzxt
driver-class-name: com.mysql.cj.jdbc.Driver driver-class-name: com.mysql.cj.jdbc.Driver
type: com.alibaba.druid.pool.DruidDataSource type: com.alibaba.druid.pool.DruidDataSource
xzxt_qg: #全国 xzxt_qg: #全国
# url: jdbc:oracle:thin:@10.2.164.176:1521:xzdb176
# username: FZ_TS
# password: FZ_TS
url: jdbc:oracle:thin:@47.92.129.99:1560:orcl url: jdbc:oracle:thin:@47.92.129.99:1560:orcl
username: XZXT username: XZXT
password: XzPwd#11022 password: XzPwd#11022
driver-class-name: oracle.jdbc.driver.OracleDriver driver-class-name: oracle.jdbc.driver.OracleDriver
type: com.alibaba.druid.pool.DruidDataSource type: com.alibaba.druid.pool.DruidDataSource
db1: #mysql库 db1: #mysql库
# url: jdbc:mysql://74.10.26.176:4606/xzxt?useSSL=false&useUnicode=true&characterEncoding=utf-8&zeroDateTimeBehavior=convertToNull&transformedBitIsBoolean=true&serverTimezone=GMT%2B8
# username: xzxt
# password: XzxtPwd_46
url: jdbc:oracle:thin:@47.92.129.99:1560:orcl url: jdbc:oracle:thin:@47.92.129.99:1560:orcl
username: XZXT username: XZXT
password: XzPwd#11022 password: XzPwd#11022
......
...@@ -9,7 +9,7 @@ server: ...@@ -9,7 +9,7 @@ server:
# 阻塞任务线程池, 当执行类似servlet请求阻塞操作, undertow会从这个线程池中取得线程,它的值设置取决于系统的负载 # 阻塞任务线程池, 当执行类似servlet请求阻塞操作, undertow会从这个线程池中取得线程,它的值设置取决于系统的负载
# 以下的配置会影响buffer,这些buffer会用于服务器连接的IO操作,有点类似netty的池化内存管理 # 以下的配置会影响buffer,这些buffer会用于服务器连接的IO操作,有点类似netty的池化内存管理
buffer-size: 1024 buffer-size: 1024
# 是否分配的直接内存 # 是否分配的直接
direct-buffers: true direct-buffers: true
#spring配置 #spring配置
......
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