Showing
3 changed files
with
4 additions
and
4 deletions
@@ -81,9 +81,7 @@ | @@ -81,9 +81,7 @@ | ||
81 | and create_time >= #{beginTime} | 81 | and create_time >= #{beginTime} |
82 | </if> | 82 | </if> |
83 | order by id desc | 83 | order by id desc |
84 | - <if test="!queryAll"> | ||
85 | limit #{start},#{size} | 84 | limit #{start},#{size} |
86 | - </if> | ||
87 | </select> | 85 | </select> |
88 | <select id="selectTotalByCondition" resultType="java.lang.Integer" | 86 | <select id="selectTotalByCondition" resultType="java.lang.Integer" |
89 | parameterType="com.yoho.service.model.union.request.UnionShareUserApplyListReqBo"> | 87 | parameterType="com.yoho.service.model.union.request.UnionShareUserApplyListReqBo"> |
@@ -32,7 +32,8 @@ public class UnionShareApplyExportImpl implements IBusinessExportService { | @@ -32,7 +32,8 @@ public class UnionShareApplyExportImpl implements IBusinessExportService { | ||
32 | @Override | 32 | @Override |
33 | public List<? extends Object> batchExport(String confStr){ | 33 | public List<? extends Object> batchExport(String confStr){ |
34 | UnionShareUserApplyListReqBo req = JSONObject.parseObject(confStr, UnionShareUserApplyListReqBo.class); | 34 | UnionShareUserApplyListReqBo req = JSONObject.parseObject(confStr, UnionShareUserApplyListReqBo.class); |
35 | - req.setQueryAll(true); | 35 | +// req.setQueryAll(true); |
36 | + req.setSize(5000); | ||
36 | List<UnionShareUserApplyListBo> applys=this.unionShareUserApplyMapper.selectByCondition(req); | 37 | List<UnionShareUserApplyListBo> applys=this.unionShareUserApplyMapper.selectByCondition(req); |
37 | for(UnionShareUserApplyListBo bo:applys){ | 38 | for(UnionShareUserApplyListBo bo:applys){ |
38 | covertSocialMedia(bo); | 39 | covertSocialMedia(bo); |
@@ -3282,7 +3282,8 @@ public class UnionShareServiceImpl implements IUnionShareService,IBusinessExport | @@ -3282,7 +3282,8 @@ public class UnionShareServiceImpl implements IUnionShareService,IBusinessExport | ||
3282 | throw new ServiceException(400, "没有要导出的数据"); | 3282 | throw new ServiceException(400, "没有要导出的数据"); |
3283 | } | 3283 | } |
3284 | request.setSize(5000); | 3284 | request.setSize(5000); |
3285 | - int totalPage = count / 5000 + (count % 5000 > 1 ? 1 : 0); | 3285 | + int totalPage =1;//限制导出数量,避免大批量导出 |
3286 | +// int totalPage = count / 5000 + (count % 5000 > 1 ? 1 : 0); | ||
3286 | ordersDOList = new ArrayList<>(); | 3287 | ordersDOList = new ArrayList<>(); |
3287 | for (int i = 1; i <= totalPage; i++) { | 3288 | for (int i = 1; i <= totalPage; i++) { |
3288 | request.setPage(i); | 3289 | request.setPage(i); |
-
Please register or login to post a comment