add: 政策高级查询
This commit is contained in:
+68
-6
@@ -91,8 +91,17 @@
|
||||
<if test='syncParam != null and syncParam == "sync"'>
|
||||
and SAR_LAWS_STAND_INFO.MODIFY_TIME between DATE_SUB(NOW(),INTERVAL 7 day) and DATE_SUB(NOW(),INTERVAL -1 day)
|
||||
</if>
|
||||
<if test="lawsType != null and lawsType != ''">
|
||||
and SAR_LAWS_STAND_INFO.LAWS_TYPE like concat(concat('%',#{lawsType}),'%')
|
||||
<if test="lawsTypeFirstLevel != null and lawsTypeFirstLevel != ''">
|
||||
and SAR_LAWS_STAND_INFO.LAWS_TYPE_FIRST_LEVEL = #{lawsTypeFirstLevel}
|
||||
</if>
|
||||
<if test="lawsTypeSecondLevel != null and lawsTypeSecondLevel != ''">
|
||||
and SAR_LAWS_STAND_INFO.LAWS_TYPE_SECOND_LEVEL = #{lawsTypeSecondLevel}
|
||||
</if>
|
||||
<if test="lawsTypeThirdLevel != null and lawsTypeThirdLevel != ''">
|
||||
and SAR_LAWS_STAND_INFO.LAWS_TYPE_THIRD_LEVEL = #{lawsTypeThirdLevel}
|
||||
</if>
|
||||
<if test="lawsTypeFourthLevel != null and lawsTypeFourthLevel != ''">
|
||||
and SAR_LAWS_STAND_INFO.LAWS_TYPE_FOURTH_LEVEL = #{lawsTypeFourthLevel}
|
||||
</if>
|
||||
<if test="lawsNumber != null and lawsNumber != ''">
|
||||
and SAR_LAWS_STAND_INFO.LAWS_NUMBER like concat(concat('%',#{lawsNumber}),'%')
|
||||
@@ -129,8 +138,12 @@
|
||||
<if test="lawsSyqy != null and lawsSyqy != ''">
|
||||
and FIND_IN_SET(#{lawsSyqy},SAR_LAWS_STAND_INFO.LAWS_SYQY)
|
||||
</if>
|
||||
<if test="lawsSycx != null and lawsSycx != ''">
|
||||
and FIND_IN_SET(#{lawsSycx},SAR_LAWS_STAND_INFO.LAWS_SYCX)
|
||||
<if test="lawsSycxArray != null and lawsSycxArray.length > 0">
|
||||
and (
|
||||
<foreach collection="lawsSycxArray" item="eachSycx" separator="or">
|
||||
FIND_IN_SET(#{eachSycx},SAR_LAWS_STAND_INFO.LAWS_SYCX)
|
||||
</foreach>
|
||||
)
|
||||
</if>
|
||||
<if test="isRelateAccess != null and isRelateAccess != ''">
|
||||
and SAR_LAWS_STAND_INFO.IS_RELATE_ACCESS = #{isRelateAccess}
|
||||
@@ -189,6 +202,57 @@
|
||||
<if test="advanceSearchStr != null and advanceSearchStr != ''">
|
||||
and (${advanceSearchStr})
|
||||
</if>
|
||||
<if test="SSRQLAWS != null and SSRQLAWS != ''">
|
||||
and DATE_FORMAT(SAR_LAWS_ATTR_INFO.SSRQLAWS ,'%Y-%m-%d') = DATE_FORMAT(#{SSRQLAWS},'%Y-%m-%d')
|
||||
</if>
|
||||
<if test="XCXSSRQLAWS != null and XCXSSRQLAWS != ''">
|
||||
and DATE_FORMAT(SAR_LAWS_ATTR_INFO.XCXSSRQLAWS ,'%Y-%m-%d') = DATE_FORMAT(#{XCXSSRQLAWS},'%Y-%m-%d')
|
||||
</if>
|
||||
<if test="ZCXSSRQLAWS != null and ZCXSSRQLAWS != ''">
|
||||
and DATE_FORMAT(SAR_LAWS_ATTR_INFO.ZCXSSRQLAWS ,'%Y-%m-%d') = DATE_FORMAT(#{ZCXSSRQLAWS},'%Y-%m-%d')
|
||||
</if>
|
||||
<if test="XRZSSRQLAWS != null and XRZSSRQLAWS != ''">
|
||||
and DATE_FORMAT(SAR_LAWS_ATTR_INFO.XRZSSRQLAWS ,'%Y-%m-%d') = DATE_FORMAT(#{XRZSSRQLAWS},'%Y-%m-%d')
|
||||
</if>
|
||||
<if test="SXRQLAWS != null and SXRQLAWS != ''">
|
||||
and DATE_FORMAT(SAR_LAWS_ATTR_INFO.SXRQLAWS ,'%Y-%m-%d') = DATE_FORMAT(#{SXRQLAWS},'%Y-%m-%d')
|
||||
</if>
|
||||
<if test="CYSDLAWS != null and CYSDLAWS != ''">
|
||||
and SAR_LAWS_ATTR_INFO.CYSDLAWS = #{CYSDLAWS}
|
||||
</if>
|
||||
<if test="CYSDLAWS != null and CYSDLAWS != ''">
|
||||
and SAR_LAWS_ATTR_INFO.CYSDLAWS = #{CYSDLAWS}
|
||||
</if>
|
||||
<if test="TGRLAWS != null and TGRLAWS != ''">
|
||||
and SAR_LAWS_ATTR_INFO.TGRLAWS = #{TGRLAWS}
|
||||
</if>
|
||||
<if test="TGDWLAWS != null and TGDWLAWS != ''">
|
||||
and SAR_LAWS_ATTR_INFO.TGDWLAWS = #{TGDWLAWS}
|
||||
</if>
|
||||
<if test="SYRZLAWS != null and SYRZLAWS != ''">
|
||||
and SAR_LAWS_ATTR_INFO.SYRZLAWS = #{SYRZLAWS}
|
||||
</if>
|
||||
<if test="ZRBMLAWS != null and ZRBMLAWS != ''">
|
||||
and SAR_LAWS_ATTR_INFO.ZRBMLAWS = #{ZRBMLAWS}
|
||||
</if>
|
||||
<if test="ZRGCSLAWS != null and ZRGCSLAWS != ''">
|
||||
and SAR_LAWS_ATTR_INFO.ZRGCSLAWS = #{ZRGCSLAWS}
|
||||
</if>
|
||||
<if test="DTWJHLAWS != null and DTWJHLAWS != ''">
|
||||
and SAR_LAWS_ATTR_INFO.DTWJHLAWS = #{DTWJHLAWS}
|
||||
</if>
|
||||
<if test="BDTWJHLAWS != null and BDTWJHLAWS != ''">
|
||||
and SAR_LAWS_ATTR_INFO.BDTWJHLAWS = #{BDTWJHLAWS}
|
||||
</if>
|
||||
<if test="YYBZZCLAWS != null and YYBZZCLAWS != ''">
|
||||
and SAR_LAWS_ATTR_INFO.YYBZZCLAWS = #{YYBZZCLAWS}
|
||||
</if>
|
||||
<if test="XGLC != null and XGLC != ''">
|
||||
and SAR_LAWS_ATTR_INFO.XGLC = #{XGLC}
|
||||
</if>
|
||||
<if test="CHJLLAWS != null and CHJLLAWS != ''">
|
||||
and SAR_LAWS_ATTR_INFO.CHJLLAWS like concat(concat('%',#{CHJLLAWS}),'%')
|
||||
</if>
|
||||
</trim>
|
||||
</sql>
|
||||
<sql id="SarStandardsInfo_in_left1">
|
||||
@@ -516,8 +580,6 @@
|
||||
tmp_tb.CYSDLAWS,
|
||||
tmp_tb.TGRLAWS,
|
||||
tmp_tb.TGDWLAWS,
|
||||
tmp_tb.NYLXLAWS,
|
||||
tmp_tb.YYRZLAWS,
|
||||
tmp_tb.ZRBMLAWS,
|
||||
tmp_tb.ZRGCSLAWS,
|
||||
tmp_tb.DTWJHLAWS,
|
||||
|
||||
Reference in New Issue
Block a user