Commit 196afb83 by liulianglang

透视修改,添加条件查询

parent dc5d64ca
...@@ -18,6 +18,7 @@ public class DwTjParam { ...@@ -18,6 +18,7 @@ public class DwTjParam {
private int limit; private int limit;
private int end; private int end;
private int begin; private int begin;
private String larqQssj;
private String larqJssj;
private List<String> lbs; private List<String> lbs;
} }
...@@ -162,7 +162,12 @@ ...@@ -162,7 +162,12 @@
<if test="jssj != null and jssj != ''"> <if test="jssj != null and jssj != ''">
AND ASJ.ASJFSSJ_ASJFSKSSJ <![CDATA[<]]> to_date(#{jssj, jdbcType=VARCHAR},'yyyy-mm-dd ') +1 AND ASJ.ASJFSSJ_ASJFSKSSJ <![CDATA[<]]> to_date(#{jssj, jdbcType=VARCHAR},'yyyy-mm-dd ') +1
</if> </if>
<if test="larqQssj != null and larqQssj != ''">
AND ASJ.LARQ <![CDATA[>=]]> to_date(#{larqQssj, jdbcType=VARCHAR},'yyyy-mm-dd')
</if>
<if test="larqJssj != null and larqJssj != ''">
AND ASJ.LARQ <![CDATA[<]]> to_date(#{larqJssj, jdbcType=VARCHAR},'yyyy-mm-dd ') +1
</if>
<if test="ajzt != null and ajzt != '' and ajzt == '1'.toString() "> <if test="ajzt != null and ajzt != '' and ajzt == '1'.toString() ">
and ASJ.ZCJDDM = '0400' and ASJ.ZCJDDM = '0400'
</if> </if>
...@@ -202,7 +207,12 @@ ...@@ -202,7 +207,12 @@
<if test="jssj != null and jssj != ''"> <if test="jssj != null and jssj != ''">
AND ASJ.ASJFSSJ_ASJFSKSSJ <![CDATA[<]]> to_date(#{jssj, jdbcType=VARCHAR},'yyyy-mm-dd ') +1 AND ASJ.ASJFSSJ_ASJFSKSSJ <![CDATA[<]]> to_date(#{jssj, jdbcType=VARCHAR},'yyyy-mm-dd ') +1
</if> </if>
<if test="larqQssj != null and larqQssj != ''">
AND ASJ.LARQ <![CDATA[>=]]> to_date(#{larqQssj, jdbcType=VARCHAR},'yyyy-mm-dd')
</if>
<if test="larqJssj != null and larqJssj != ''">
AND ASJ.LARQ <![CDATA[<]]> to_date(#{larqJssj, jdbcType=VARCHAR},'yyyy-mm-dd ') +1
</if>
<if test="ajzt != null and ajzt != '' and ajzt == '1'.toString() "> <if test="ajzt != null and ajzt != '' and ajzt == '1'.toString() ">
and ASJ.ZCJDDM = '0400' and ASJ.ZCJDDM = '0400'
</if> </if>
...@@ -243,7 +253,12 @@ ...@@ -243,7 +253,12 @@
<if test="jssj != null and jssj != ''"> <if test="jssj != null and jssj != ''">
AND ASJ.ASJFSSJ_ASJFSKSSJ <![CDATA[<]]> to_date(#{jssj, jdbcType=VARCHAR},'yyyy-mm-dd ') +1 AND ASJ.ASJFSSJ_ASJFSKSSJ <![CDATA[<]]> to_date(#{jssj, jdbcType=VARCHAR},'yyyy-mm-dd ') +1
</if> </if>
<if test="larqQssj != null and larqQssj != ''">
AND ASJ.LARQ <![CDATA[>=]]> to_date(#{larqQssj, jdbcType=VARCHAR},'yyyy-mm-dd')
</if>
<if test="larqJssj != null and larqJssj != ''">
AND ASJ.LARQ <![CDATA[<]]> to_date(#{larqJssj, jdbcType=VARCHAR},'yyyy-mm-dd ') +1
</if>
<if test="ajzt != null and ajzt != '' and ajzt == '1'.toString() "> <if test="ajzt != null and ajzt != '' and ajzt == '1'.toString() ">
and ASJ.ZCJDDM = '0400' and ASJ.ZCJDDM = '0400'
</if> </if>
...@@ -290,7 +305,12 @@ ...@@ -290,7 +305,12 @@
<if test="jssj != null and jssj != ''"> <if test="jssj != null and jssj != ''">
AND ASJ.ASJFSSJ_ASJFSKSSJ <![CDATA[<]]> to_date(#{jssj, jdbcType=VARCHAR},'yyyy-mm-dd ') +1 AND ASJ.ASJFSSJ_ASJFSKSSJ <![CDATA[<]]> to_date(#{jssj, jdbcType=VARCHAR},'yyyy-mm-dd ') +1
</if> </if>
<if test="larqQssj != null and larqQssj != ''">
AND ASJ.LARQ <![CDATA[>=]]> to_date(#{larqQssj, jdbcType=VARCHAR},'yyyy-mm-dd')
</if>
<if test="larqJssj != null and larqJssj != ''">
AND ASJ.LARQ <![CDATA[<]]> to_date(#{larqJssj, jdbcType=VARCHAR},'yyyy-mm-dd ') +1
</if>
<if test="ajzt != null and ajzt != '' and ajzt == '1'.toString() "> <if test="ajzt != null and ajzt != '' and ajzt == '1'.toString() ">
and ASJ.ZCJDDM = '0400' and ASJ.ZCJDDM = '0400'
</if> </if>
...@@ -363,7 +383,12 @@ ...@@ -363,7 +383,12 @@
<if test="jssj != null and jssj != ''"> <if test="jssj != null and jssj != ''">
AND ASJ.ASJFSSJ_ASJFSKSSJ <![CDATA[<]]> to_date(#{jssj, jdbcType=VARCHAR},'yyyy-mm-dd ') +1 AND ASJ.ASJFSSJ_ASJFSKSSJ <![CDATA[<]]> to_date(#{jssj, jdbcType=VARCHAR},'yyyy-mm-dd ') +1
</if> </if>
<if test="larqQssj != null and larqQssj != ''">
AND ASJ.LARQ <![CDATA[>=]]> to_date(#{larqQssj, jdbcType=VARCHAR},'yyyy-mm-dd')
</if>
<if test="larqJssj != null and larqJssj != ''">
AND ASJ.LARQ <![CDATA[<]]> to_date(#{larqJssj, jdbcType=VARCHAR},'yyyy-mm-dd ') +1
</if>
<if test="ajzt != null and ajzt != '' and ajzt == '1'.toString() "> <if test="ajzt != null and ajzt != '' and ajzt == '1'.toString() ">
and ASJ.ZCJDDM = '0400' and ASJ.ZCJDDM = '0400'
</if> </if>
...@@ -419,7 +444,12 @@ ...@@ -419,7 +444,12 @@
<if test="jssj != null and jssj != ''"> <if test="jssj != null and jssj != ''">
AND ASJ.ASJFSSJ_ASJFSKSSJ <![CDATA[<]]> to_date(#{jssj, jdbcType=VARCHAR},'yyyy-mm-dd ') +1 AND ASJ.ASJFSSJ_ASJFSKSSJ <![CDATA[<]]> to_date(#{jssj, jdbcType=VARCHAR},'yyyy-mm-dd ') +1
</if> </if>
<if test="larqQssj != null and larqQssj != ''">
AND ASJ.LARQ <![CDATA[>=]]> to_date(#{larqQssj, jdbcType=VARCHAR},'yyyy-mm-dd')
</if>
<if test="larqJssj != null and larqJssj != ''">
AND ASJ.LARQ <![CDATA[<]]> to_date(#{larqJssj, jdbcType=VARCHAR},'yyyy-mm-dd ') +1
</if>
<if test="ajzt != null and ajzt != '' and ajzt == '1'.toString() "> <if test="ajzt != null and ajzt != '' and ajzt == '1'.toString() ">
and ASJ.ZCJDDM = '0400' and ASJ.ZCJDDM = '0400'
</if> </if>
...@@ -469,7 +499,12 @@ ...@@ -469,7 +499,12 @@
<if test="jssj != null and jssj != ''"> <if test="jssj != null and jssj != ''">
AND ASJ.ASJFSSJ_ASJFSKSSJ <![CDATA[<]]> to_date(#{jssj, jdbcType=VARCHAR},'yyyy-mm-dd ') +1 AND ASJ.ASJFSSJ_ASJFSKSSJ <![CDATA[<]]> to_date(#{jssj, jdbcType=VARCHAR},'yyyy-mm-dd ') +1
</if> </if>
<if test="larqQssj != null and larqQssj != ''">
AND ASJ.LARQ <![CDATA[>=]]> to_date(#{larqQssj, jdbcType=VARCHAR},'yyyy-mm-dd')
</if>
<if test="larqJssj != null and larqJssj != ''">
AND ASJ.LARQ <![CDATA[<]]> to_date(#{larqJssj, jdbcType=VARCHAR},'yyyy-mm-dd ') +1
</if>
<if test="ajzt != null and ajzt != '' and ajzt == '1'.toString() "> <if test="ajzt != null and ajzt != '' and ajzt == '1'.toString() ">
and ASJ.ZCJDDM = '0400' and ASJ.ZCJDDM = '0400'
</if> </if>
...@@ -511,7 +546,12 @@ ...@@ -511,7 +546,12 @@
<if test="jssj != null and jssj != ''"> <if test="jssj != null and jssj != ''">
AND asj.ASJFSSJ_ASJFSKSSJ <![CDATA[<]]> to_date(#{jssj, jdbcType=VARCHAR},'yyyy-mm-dd ') +1 AND asj.ASJFSSJ_ASJFSKSSJ <![CDATA[<]]> to_date(#{jssj, jdbcType=VARCHAR},'yyyy-mm-dd ') +1
</if> </if>
<if test="larqQssj != null and larqQssj != ''">
AND ASJ.LARQ <![CDATA[>=]]> to_date(#{larqQssj, jdbcType=VARCHAR},'yyyy-mm-dd')
</if>
<if test="larqJssj != null and larqJssj != ''">
AND ASJ.LARQ <![CDATA[<]]> to_date(#{larqJssj, jdbcType=VARCHAR},'yyyy-mm-dd ') +1
</if>
<if test="ajzt != null and ajzt != '' and ajzt == '1'.toString() "> <if test="ajzt != null and ajzt != '' and ajzt == '1'.toString() ">
and ASJ.ZCJDDM = '0400' and ASJ.ZCJDDM = '0400'
</if> </if>
......
...@@ -41,8 +41,8 @@ public class WcnrfzShrTjServiceImpl implements WcnrfzShrTjService { ...@@ -41,8 +41,8 @@ public class WcnrfzShrTjServiceImpl implements WcnrfzShrTjService {
String ajzt=dwTjParam.getAjzt(); String ajzt=dwTjParam.getAjzt();
String ajlbdm=dwTjParam.getAjlbdm(); String ajlbdm=dwTjParam.getAjlbdm();
String xlajlbdm=dwTjParam.getXlajlbdm(); String xlajlbdm=dwTjParam.getXlajlbdm();
String larqQssj=dwTjParam.getLarqQssj();
String larqJssj=dwTjParam.getLarqJssj();
if (StringUtils.isEmpty(unitcode)) { if (StringUtils.isEmpty(unitcode)) {
...@@ -70,6 +70,9 @@ public class WcnrfzShrTjServiceImpl implements WcnrfzShrTjService { ...@@ -70,6 +70,9 @@ public class WcnrfzShrTjServiceImpl implements WcnrfzShrTjService {
paramMap.put("ajzt", ajzt); paramMap.put("ajzt", ajzt);
paramMap.put("ajlbdm", ajlbdm); paramMap.put("ajlbdm", ajlbdm);
paramMap.put("xlajlbdm", xlajlbdm); paramMap.put("xlajlbdm", xlajlbdm);
paramMap.put("larqQssj", larqQssj);
paramMap.put("larqJssj", larqJssj);
dwLevMap.put("includeBdw","true"); dwLevMap.put("includeBdw","true");
List<DictitemXz> unitList = dwTjfxMapper.getXqdwList(dwLevMap); List<DictitemXz> unitList = dwTjfxMapper.getXqdwList(dwLevMap);
......
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