Merge remote-tracking branch 'origin/develop_1' into develop_1
This commit is contained in:
+3
-5
@@ -225,10 +225,6 @@ public class SarStandItemsServiceImpl extends ServiceImpl<SarStandItemsDao, SarS
|
|||||||
|
|
||||||
|
|
||||||
public List<SarStandItems> querySarItemAndInterpretation(FindSarItemsPageReqDTO page){
|
public List<SarStandItems> querySarItemAndInterpretation(FindSarItemsPageReqDTO page){
|
||||||
//分页查询的总数
|
|
||||||
Integer count=dao.sarItemCount(page);
|
|
||||||
page.getPager().setRowCount(count);
|
|
||||||
|
|
||||||
//排序
|
//排序
|
||||||
if (page.getOrderBy()!=null && page.getOrder()!=null){
|
if (page.getOrderBy()!=null && page.getOrder()!=null){
|
||||||
|
|
||||||
@@ -246,7 +242,9 @@ public class SarStandItemsServiceImpl extends ServiceImpl<SarStandItemsDao, SarS
|
|||||||
page.setOrder("DESC");
|
page.setOrder("DESC");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//分页查询的总数
|
||||||
|
Integer count=dao.sarItemCount(page);
|
||||||
|
page.getPager().setRowCount(count);
|
||||||
List<SarStandItems> sarStandItems = dao.querySarItemAndInterpretation(page);
|
List<SarStandItems> sarStandItems = dao.querySarItemAndInterpretation(page);
|
||||||
return sarStandItems;
|
return sarStandItems;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -408,16 +408,14 @@
|
|||||||
<select id="querySarItemAndInterpretation" resultMap="sarItemVOResultMap"
|
<select id="querySarItemAndInterpretation" resultMap="sarItemVOResultMap"
|
||||||
parameterType="com.adc.da.slrs.sarStandItems.entity.FindSarItemsPageReqDTO">
|
parameterType="com.adc.da.slrs.sarStandItems.entity.FindSarItemsPageReqDTO">
|
||||||
SELECT
|
SELECT
|
||||||
*
|
sar_stand_items.*,split_pid(sar_stand_items.ITEMS_NUM,'.') as tt
|
||||||
FROM
|
FROM
|
||||||
sar_stand_items
|
sar_stand_items
|
||||||
<include refid="sarItemWhere"/>
|
<include refid="sarItemWhere"/>
|
||||||
|
|
||||||
<if test="orderBy !=null and orderBy!=''">
|
<if test="orderBy !=null and orderBy!=''">
|
||||||
order by ${orderBy} ${order}
|
order by tt ${order}
|
||||||
</if>
|
</if>
|
||||||
LIMIT ${page-1},#{pageSize}
|
LIMIT ${pager.startIndex-1},${pageSize}
|
||||||
|
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
<!-- 查询SAR_STAND_ITEMS列表 -->
|
<!-- 查询SAR_STAND_ITEMS列表 -->
|
||||||
|
|||||||
Reference in New Issue
Block a user