Giter Site home page Giter Site logo

mybatisinterceptor's Introduction

mybatisInterceptor

mybatis拦截器实现的针对mysql的分页排序模糊查询等功能插件

使用方法:

将插件注册到mybatis中,

在需要分页等功能的查询接口参数上加入@Param("queryCondition")QueryCondition queryCondition, queryCondit参数示例 参数示例:QueryCondition

{

"pageNum":1, //起始页

"pageSize":10, //每页多少条

"orderBy":"aaaaaaa", //根据哪一条字段排序

"orderSort":"DESC", //正序/倒序

"queryParams":[

   {

    "colName":"bbbbbbbb",    //模糊查询字段名

    "type":1,                            //模糊查询类型 0为LIKE 1为IN 2为EQUAL 3为FIND_IN_SET(判断一个值是否在数组中)

    "value":"test"                     //模糊查询值

   }

]

}

mybatisinterceptor's People

Contributors

miboorch avatar

Stargazers

smxgjt avatar  avatar lxw avatar  avatar  avatar  avatar  avatar

Watchers

James Cloos avatar  avatar

Forkers

jqmtony

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.