Springboot+myBatis模糊查询--直接上代码

查询

 

时间的模糊查

 

排序的查询

 

插入批量


        INSERT INTO
        audit
        (level,content,confirm,orgCode,createDate)
        values
        
            (#{p.level},#{p.content},#{p.confirm},#{p.orgCode},#{p.createDate})
        
    

单个插入


       INSERT INTO
         audit
        (level,content,confirm,orgCode,createDate)
        VALUES
        (#{level},#{content},#{confirm},#{orgCode},#{createDate})
    

删除


        DELETE  FROM  login_user WHERE  sessionId=#{param1}
    

批量删除


        DELETE  FROM  upload_message WHERE
        id IN
        
            #{item}
        
    

更新

 
        UPDATE  org
        
            parentCode=#{parentCode},
            orgCode=#{orgCode},
            orgName=#{orgName},
            areaCode=#{areaCode},
            createDate=#{createDate},
        
        WHERE id=#{id}
    

       update park_session SET messagekey=#{messagekey},parkKey=#{parkKey},parkCode=#{parkCode},status=#{status} where messagekey=#{messagekey}
    

你可能感兴趣的:(Springboot+myBatis模糊查询--直接上代码)