清单部分高级查询
This commit is contained in:
+30
@@ -1394,6 +1394,8 @@
|
||||
</sql>
|
||||
|
||||
|
||||
<!--<!–直接在这区分了 1是国内地区 2是车型类别 3是重点跟踪清单 4是其他清单 5是项目清单–>-->
|
||||
|
||||
<!-- 分页查询-->
|
||||
<select id="getSarStandardsInfoPage" resultMap="BaseResultMap"
|
||||
parameterType="com.adc.da.slrs.sarStandardsInfo.entity.SarStandardsInfoEOPage">
|
||||
@@ -1410,6 +1412,25 @@
|
||||
</if>
|
||||
limit ${page.pager.startIndex-1},${page.pageSize}
|
||||
</select>
|
||||
|
||||
<select id="selectHighLawsPage" resultMap="BaseResultMap"
|
||||
parameterType="com.adc.da.slrs.sarStandardsInfo.entity.SarStandardsInfoEOPage">
|
||||
SELECT
|
||||
<include refid="Base_Column_List_DIS"/>
|
||||
from SAR_STANDARDS_INFO
|
||||
<include refid="SarStandardsInfo_in_left_2"/>
|
||||
<if test="null != list and list.size()>0">
|
||||
and SAR_STANDARDS_INFO.ID in
|
||||
<foreach item="id" collection="list" open="(" separator="," close=")" index="index">
|
||||
#{id}
|
||||
</foreach>
|
||||
</if>
|
||||
<if test='(page.orderByA != null and page.orderByA != "" and page.order1 != null and page.order1 != "")
|
||||
or (page.standType != null and page.standType != "") '>
|
||||
<include refid="standSort_in"/>
|
||||
</if>
|
||||
limit ${page.pager.startIndex-1},${page.pageSize}
|
||||
</select>
|
||||
<!--FIELD(SAR_STANDARDS_INFO.issue_time,'已发布'), FIELD(SAR_STANDARDS_INFO.issue_time,'TBD'), FIELD(SAR_STANDARDS_INFO.issue_time,'N/A') ,-->
|
||||
<!--if(isnull(SAR_STANDARDS_INFO.issue_time),0,1) desc ,-->
|
||||
<!-- 分页查询条件查询一共有多少条数据,配合分页 -->
|
||||
@@ -1422,6 +1443,15 @@
|
||||
GROUP BY SAR_STANDARDS_INFO.id) a
|
||||
</select>
|
||||
|
||||
<select id="selectHighLawsCount" resultType="java.lang.Integer"
|
||||
parameterType="com.adc.da.slrs.sarStandardsInfo.entity.SarStandardsInfoEOPage">
|
||||
select count(1) from (select count(*) from SAR_STANDARDS_INFO
|
||||
<!-- left join SAR_STAND_ATTR_INFO on (SAR_STAND_ATTR_INFO.stand_id = SAR_STANDARDS_INFO.id and SAR_STAND_ATTR_INFO.valid_flag=0)-->
|
||||
<include refid="SarStandardsInfo_in_left"/>
|
||||
|
||||
GROUP BY SAR_STANDARDS_INFO.id) a
|
||||
</select>
|
||||
|
||||
<select id="getSarStandardsInfoCountWk1" resultType="java.lang.Integer"
|
||||
parameterType="com.adc.da.slrs.sarStandardsInfo.entity.SarStandardsInfoEOPage">
|
||||
select count(1) from (select count(*) from SAR_STANDARDS_INFO
|
||||
|
||||
Reference in New Issue
Block a user