标准维度选数据出现全空数据的问题
This commit is contained in:
+1
-17
@@ -154,25 +154,9 @@ public class SarStandItemsServiceImpl extends ServiceImpl<SarStandItemsDao, SarS
|
|||||||
page.setPage(findStandDto.getPage());
|
page.setPage(findStandDto.getPage());
|
||||||
page.setPageSize(findStandDto.getSize());
|
page.setPageSize(findStandDto.getSize());
|
||||||
page.setUserId(null);
|
page.setUserId(null);
|
||||||
List<SarStandardsInfo> pageInfo = null;
|
|
||||||
// try {
|
|
||||||
// pageInfo = sarStandardsInfoService.getSarStandardsInfoPageBak(page);
|
|
||||||
// } catch (Exception e) {
|
|
||||||
// e.printStackTrace();
|
|
||||||
// }
|
|
||||||
List<String> standId = new ArrayList<>();
|
List<String> standId = new ArrayList<>();
|
||||||
// for (SarStandardsInfo standardsInfo : pageInfo){
|
List<LawsDto> list = sarLawsAttrDetailedListDao.selectLawsByIdC((findStandDto.getPage()-1)*findStandDto.getSize(),findStandDto.getPage()*findStandDto.getSize(),standId,findStandDto.getStandName(), findStandDto.getStandType(),findStandDto.getFileType());
|
||||||
//// if (standardsInfo.getAttrInfoCaseMap().get("FBGBJBD")!=null || standardsInfo.getAttrInfoCaseMap().get("fbgbjbd")!=null){
|
|
||||||
// standId.add(standardsInfo.getId());
|
|
||||||
//// }
|
|
||||||
// }
|
|
||||||
|
|
||||||
List<LawsDto> list=new ArrayList<>();
|
|
||||||
// if (standId==null || standId.size()==0){
|
|
||||||
// list = null;
|
|
||||||
// }else {
|
|
||||||
list = sarLawsAttrDetailedListDao.selectLawsByIdC((findStandDto.getPage()-1)*findStandDto.getSize(),findStandDto.getPage()*findStandDto.getSize(),standId,findStandDto.getStandName(), findStandDto.getStandType(),findStandDto.getFileType());
|
|
||||||
// }
|
|
||||||
IPage<LawsDto> page1=new Page<>();
|
IPage<LawsDto> page1=new Page<>();
|
||||||
page1.setRecords(list);
|
page1.setRecords(list);
|
||||||
page1.setTotal(sarLawsAttrDetailedListDao.selectLawsByIdCount(standId,findStandDto.getStandName(),findStandDto.getStandType(),findStandDto.getFileType()).size());
|
page1.setTotal(sarLawsAttrDetailedListDao.selectLawsByIdCount(standId,findStandDto.getStandName(),findStandDto.getStandType(),findStandDto.getFileType()).size());
|
||||||
|
|||||||
+4
-4
@@ -189,7 +189,7 @@
|
|||||||
left join sar_standards_info a on ssi.stand_id = a.id
|
left join sar_standards_info a on ssi.stand_id = a.id
|
||||||
LEFT JOIN sar_stand_attr_info b on a.ID = b.STAND_ID
|
LEFT JOIN sar_stand_attr_info b on a.ID = b.STAND_ID
|
||||||
<where>
|
<where>
|
||||||
1=1
|
1=1 and a.ID is not null
|
||||||
<if test="standName != null">
|
<if test="standName != null">
|
||||||
and
|
and
|
||||||
(a.STAND_NUMBER LIKE concat ('%',#{standName,jdbcType=VARCHAR},'%')
|
(a.STAND_NUMBER LIKE concat ('%',#{standName,jdbcType=VARCHAR},'%')
|
||||||
@@ -217,7 +217,7 @@
|
|||||||
left join sar_standards_info a on ssi.stand_id = a.id
|
left join sar_standards_info a on ssi.stand_id = a.id
|
||||||
LEFT JOIN sar_stand_attr_info b on a.ID = b.STAND_ID
|
LEFT JOIN sar_stand_attr_info b on a.ID = b.STAND_ID
|
||||||
<where>
|
<where>
|
||||||
1=1
|
1=1 and a.ID is not null
|
||||||
<if test="standName != null">
|
<if test="standName != null">
|
||||||
and
|
and
|
||||||
(a.STAND_NUMBER LIKE concat ('%',#{standName,jdbcType=VARCHAR},'%')
|
(a.STAND_NUMBER LIKE concat ('%',#{standName,jdbcType=VARCHAR},'%')
|
||||||
@@ -251,7 +251,7 @@
|
|||||||
left join sar_standards_info a on ssi.stand_id = a.id
|
left join sar_standards_info a on ssi.stand_id = a.id
|
||||||
LEFT JOIN sar_stand_attr_info b on a.ID = b.STAND_ID
|
LEFT JOIN sar_stand_attr_info b on a.ID = b.STAND_ID
|
||||||
<where>
|
<where>
|
||||||
1=1
|
1=1 and a.ID is not null
|
||||||
<if test="standName != null">
|
<if test="standName != null">
|
||||||
and
|
and
|
||||||
(a.STAND_NUMBER LIKE concat ('%',#{standName,jdbcType=VARCHAR},'%')
|
(a.STAND_NUMBER LIKE concat ('%',#{standName,jdbcType=VARCHAR},'%')
|
||||||
@@ -280,7 +280,7 @@
|
|||||||
left join sar_standards_info a on ssi.stand_id = a.id
|
left join sar_standards_info a on ssi.stand_id = a.id
|
||||||
LEFT JOIN sar_stand_attr_info b on a.ID = b.STAND_ID
|
LEFT JOIN sar_stand_attr_info b on a.ID = b.STAND_ID
|
||||||
<where>
|
<where>
|
||||||
1=1
|
1=1 and a.ID is not null
|
||||||
<if test="standName != null">
|
<if test="standName != null">
|
||||||
and
|
and
|
||||||
(a.STAND_NUMBER LIKE concat ('%',#{standName,jdbcType=VARCHAR},'%')
|
(a.STAND_NUMBER LIKE concat ('%',#{standName,jdbcType=VARCHAR},'%')
|
||||||
|
|||||||
Reference in New Issue
Block a user