Commit 754a032f by 徐高华

限制导出周期

parent fb0b1656
...@@ -166,6 +166,12 @@ public class GroupChatController { ...@@ -166,6 +166,12 @@ public class GroupChatController {
qdto.setEnterpriseId(loginUser.getEnterpriseId()); qdto.setEnterpriseId(loginUser.getEnterpriseId());
qdto.setSearchParams(searchParams); qdto.setSearchParams(searchParams);
qdto.setUserType(userType); qdto.setUserType(userType);
if(null == startDate || null == endDate) {
return RestResponse.failure("9999","时间不能为空");
}
if(DateUtil.daysBetween(startDate,endDate) >= 32) {
return RestResponse.failure("9999","导出区间不能超过一个月");
}
qdto.setStartDate(startDate); qdto.setStartDate(startDate);
qdto.setEndDate(endDate); qdto.setEndDate(endDate);
qdto.setStatus(status); qdto.setStatus(status);
......
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