Commit 76b57ee1 by 徐高华

群数据导出

parent 41107d4a
......@@ -162,7 +162,6 @@
<foreach collection="storeIdList" item="item" separator="," close=")" open="(">
#{item}
</foreach>
/>
</if>
order by a.create_time , a.owner_log_id
</select>
......
......@@ -460,6 +460,11 @@ public class QwMomentController {
qdto.setEnterpriseId(loginUser.getEnterpriseId());
qdto.setPageNum(1);
qdto.setPageSize(1);
List<String> storeIdList = this.getGicStoreId(qo.getStoreGroupIds(), loginUser.getEnterpriseId()) ;
if(CollectionUtils.isNotEmpty(storeIdList) && storeIdList.size() ==1 && storeIdList.contains("-1")) {
return RestResponse.failure("9999", "导出数据条数为0");
}
qdto.setStoreIdList(storeIdList);
ServiceResponse<Page<QwMomentPlanDataDTO>> pageResp = this.qwMomentApiService.dataList(qdto);
final int totalCount = pageResp.getResult().getTotalCount();
if (totalCount == 0) {
......@@ -570,6 +575,11 @@ public class QwMomentController {
qdto.setEnterpriseId(loginUser.getEnterpriseId());
qdto.setPageNum(1);
qdto.setPageSize(1);
List<String> storeIdList = this.getGicStoreId(qo.getStoreGroupIds(), AuthWebRequestUtil.getLoginUser().getEnterpriseId()) ;
if(CollectionUtils.isNotEmpty(storeIdList) && storeIdList.size() ==1 && storeIdList.contains("-1")) {
return RestResponse.failure("9999", "导出数据条数为0");
}
qdto.setStoreIdList(storeIdList);
ServiceResponse<Page<QwMomentPlanAttendDTO>> pageResp = this.qwMomentApiService.attendList(qdto);
final int totalCount = pageResp.getResult().getTotalCount();
if (totalCount == 0) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment