清单高级查询
This commit is contained in:
+1
-1
@@ -27,7 +27,7 @@ public interface SarStandardsInfoDao extends BaseMapper<SarStandardsInfo> {
|
|||||||
|
|
||||||
int getSarStandardsInfoCount(@Param("page") SarStandardsInfoEOPage page);
|
int getSarStandardsInfoCount(@Param("page") SarStandardsInfoEOPage page);
|
||||||
|
|
||||||
int selectHighLawsCount(@Param("page") SarStandardsInfoEOPage page);
|
int selectHighLawsCount(@Param("page") SarStandardsInfoEOPage page,@Param("list") List<String> lawsIds);
|
||||||
|
|
||||||
int getSarStandardsInfoCountWk1(SarStandardsInfoEOPage page);
|
int getSarStandardsInfoCountWk1(SarStandardsInfoEOPage page);
|
||||||
|
|
||||||
|
|||||||
+1
-1
@@ -479,7 +479,7 @@ public class SarStandardsInfoServiceImpl extends ServiceImpl<SarStandardsInfoDao
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
Integer rowCount = dao.selectHighLawsCount(page);
|
Integer rowCount = dao.selectHighLawsCount(page,lawsIds);
|
||||||
page.getPager().setRowCount(rowCount);
|
page.getPager().setRowCount(rowCount);
|
||||||
List<SarStandardsInfo> sarlist = dao.selectHighLawsPage(page,"0",lawsIds);
|
List<SarStandardsInfo> sarlist = dao.selectHighLawsPage(page,"0",lawsIds);
|
||||||
attrInfo(sarlist);
|
attrInfo(sarlist);
|
||||||
|
|||||||
+6
-1
@@ -1448,7 +1448,12 @@
|
|||||||
select count(1) from (select count(*) from SAR_STANDARDS_INFO
|
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)-->
|
<!-- 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"/>
|
<include refid="SarStandardsInfo_in_left"/>
|
||||||
|
<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>
|
||||||
GROUP BY SAR_STANDARDS_INFO.id) a
|
GROUP BY SAR_STANDARDS_INFO.id) a
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user