package com.junmp.jyzb.utils;

import cn.hutool.core.util.ObjectUtil;
import com.alibaba.fastjson.JSONObject;

/**
 * 入参工具类
 * */

public class RequestParamUitl {

    //处理排序字段
    public static <T> void setRequestParam() {
//        if (ObjectUtil.isNotNull(req.getColumn()) && !req.getColumn().trim().isEmpty() &&
//                (req.getOrder().equalsIgnoreCase("asc") || req.getOrder().equalsIgnoreCase("desc")) &&
//                ObjectUtil.isNotNull(req.getOrder()) && !req.getOrder().trim().isEmpty()) {
//            // 修改字段，和数据库字段进行统一
//            req.setColumn(req.getColumn().replaceAll("[A-Z]", "_$0").toLowerCase());
//            req.setOrder(req.getOrder().toLowerCase());
//        }else {
//            req.setColumn("create_time");
//            req.setOrder("desc");
//        }
//        return req;
    }

}