对比新文件 |
| | |
| | | <?xml version="1.0" encoding="UTF-8" ?> |
| | | <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd" > |
| | | <mapper namespace="com.gk.firework.Mapper.BlackListMapper" > |
| | | <resultMap id="BaseResultMap" type="com.gk.firework.Domain.BlackList" > |
| | | <!-- --> |
| | | <id column="id" property="id" jdbcType="BIGINT" /> |
| | | <result column="enterprisenumber" property="enterprisenumber" jdbcType="VARCHAR" /> |
| | | <result column="enterprisename" property="enterprisename" jdbcType="VARCHAR" /> |
| | | <result column="createtime" property="createtime" jdbcType="TIMESTAMP" /> |
| | | <result column="createby" property="createby" jdbcType="VARCHAR" /> |
| | | <result column="modifytime" property="modifytime" jdbcType="TIMESTAMP" /> |
| | | <result column="modifyby" property="modifyby" jdbcType="VARCHAR" /> |
| | | <result column="validflag" property="validflag" jdbcType="BIT" /> |
| | | </resultMap> |
| | | <sql id="Base_Column_List" > |
| | | <!-- --> |
| | | id, enterprisenumber, enterprisename, createtime, createby, modifytime, modifyby, |
| | | validflag |
| | | </sql> |
| | | <select id="selectPages" resultType="com.gk.firework.Domain.BlackList"> |
| | | select * |
| | | from blacklist |
| | | where validflag = 1 |
| | | <if test="params.createbyid != null and params.createbyid != ''" > |
| | | and createbyid = #{params.createbyid} |
| | | </if> |
| | | <if test="params.enterprisename != null and params.enterprisename != ''" > |
| | | and enterprisename like concat("%",#{params.enterprisename},"%") |
| | | </if> |
| | | order by createtime |
| | | |
| | | </select> |
| | | |
| | | |
| | | </mapper> |