恢复代码
This commit is contained in:
+1
-1
@@ -22,7 +22,7 @@ import java.util.List;
|
||||
public interface SarLawsAttrDetailedListDao extends BaseMapper<SarLawsAttrDetailedList> {
|
||||
|
||||
//根据清单id,查出标准的id并排序
|
||||
List<String> selectLawsId(@Param("standId") String standId,@Param("param3") Integer page,@Param("param2") Integer size);
|
||||
List<String> selectLawsId(@Param("standId") String standId,@Param("param3") Integer page,@Param("param2") Integer size,@Param("sar") SarFindDto sarFindDto);
|
||||
//根据标准id查出数据
|
||||
List<LawsDto> selectLawsById(@Param("param1") List<String> LawsIds, @Param("sarFindDto") SarFindDto sarFindDto);
|
||||
//根据标准id查出数据用于清单查询
|
||||
|
||||
+1
-1
@@ -45,7 +45,7 @@ public class SarLawsAttrDetailedListServiceImpl extends ServiceImpl<SarLawsAttrD
|
||||
wrapper.eq("detailed_list_id", sarFindDto.getId());
|
||||
IPage<SarLawsAttrDetailedList> selectPage = sarLawsAttrDetailedListDao.selectPage(pageRes,wrapper);
|
||||
//查询标准id
|
||||
List<String> lawsIds = sarLawsAttrDetailedListDao.selectLawsId(sarFindDto.getId(),(sarFindDto.getPage())-1,sarFindDto.getSize());
|
||||
List<String> lawsIds = sarLawsAttrDetailedListDao.selectLawsId(sarFindDto.getId(),(sarFindDto.getPage())-1,sarFindDto.getSize(),sarFindDto);
|
||||
if (CollectionUtils.isEmpty(lawsIds)){
|
||||
return null;
|
||||
}
|
||||
|
||||
+12
-12
@@ -70,18 +70,18 @@
|
||||
<if test="standId != null">
|
||||
and detailed_list_id = #{standId}
|
||||
</if>
|
||||
<!-- <if test="sar.standSort != null">-->
|
||||
<!-- and si.STAND_SORT = #{sar.standSort}-->
|
||||
<!-- </if>-->
|
||||
<!-- <if test="sar.standType != null">-->
|
||||
<!-- and si.STAND_TYPE = #{sar.standType}-->
|
||||
<!-- </if>-->
|
||||
<!-- <if test="sar.standNumber != null">-->
|
||||
<!-- and concat(concat(concat(concat(si.STAND_SORT,' '),si.STAND_NUMBER),'-'),si.STAND_YEAR) like concat(concat('%', #{sar.standNumber}),'%')-->
|
||||
<!-- </if>-->
|
||||
<!-- <if test="sar.standName != null">-->
|
||||
<!-- and si.STAND_NAME like concat(concat('%', #{sar.standName}),'%')-->
|
||||
<!-- </if>-->
|
||||
<if test="sar.standSort != null">
|
||||
and si.STAND_SORT = #{sar.standSort}
|
||||
</if>
|
||||
<if test="sar.standType != null">
|
||||
and si.STAND_TYPE = #{sar.standType}
|
||||
</if>
|
||||
<if test="sar.standNumber != null">
|
||||
and concat(concat(concat(concat(si.STAND_SORT,' '),si.STAND_NUMBER),'-'),si.STAND_YEAR) like concat(concat('%', #{sar.standNumber}),'%')
|
||||
</if>
|
||||
<if test="sar.standName != null">
|
||||
and si.STAND_NAME like concat(concat('%', #{sar.standName}),'%')
|
||||
</if>
|
||||
|
||||
</where>
|
||||
order by number
|
||||
|
||||
Reference in New Issue
Block a user