Authored by LUOXC

添加参数校验

... ... @@ -17,6 +17,7 @@ import com.yohoufo.order.utils.InviteSettlementUtils;
import lombok.extern.slf4j.Slf4j;
import lombok.val;
import org.apache.commons.collections.CollectionUtils;
import org.apache.commons.lang3.ObjectUtils;
import org.apache.commons.lang3.tuple.Pair;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
... ... @@ -88,6 +89,9 @@ public class InviteSettlementServiceImpl implements IInviteSettlementService {
@Override
public InviteSettlementItemListVO getInviteSettlementItemList(Integer uid, String month, Integer page, Integer limit) {
if (!ObjectUtils.allNotNull(uid, month, page, limit) || uid <= 0 || page <= 0 || limit <= 0) {
throwServiceException("参数不正确");
}
Pair<Integer, Integer> time = getTimeRangeOfMonth(month);
// 只查询结算规则1的记录
int settlementType = 1;
... ...