| | |
| | | name like concat('%', #{name}, '%') and |
| | | </if> |
| | | <if test="phone != null"> |
| | | phone = '#{phone,jdbcType=VARCHAR}' |
| | | phone = #{phone,jdbcType=VARCHAR} |
| | | </if> |
| | | </trim> |
| | | </select> |
| | |
| | | name like concat('%', #{name}, '%') and |
| | | </if> |
| | | <if test="phone != null"> |
| | | phone = '#{phone,jdbcType=VARCHAR}' |
| | | phone = #{phone,jdbcType=VARCHAR} |
| | | </if> |
| | | </trim> |
| | | order by id DESC |
| | | <trim prefix="limit " > |
| | | <if test="start != null and count != null"> |
| | | #{start}, #{count} |
| | | #{start,javaType=Integer,jdbcType=INTEGER}, #{count,javaType=Integer,jdbcType=INTEGER} |
| | | </if> |
| | | </trim> |
| | | </select> |
| | | <insert id="insert" parameterType="com.dy.pipIrrGlobal.pojoBa.BaUser"> |
| | | <insert id="putin" parameterType="com.dy.pipIrrGlobal.pojoBa.BaUser"> |
| | | insert into ba_user (<include refid="Base_Column_List" />) |
| | | values (#{id,jdbcType=BIGINT}, |
| | | #{name,jdbcType=VARCHAR}, |
| | |
| | | #{password,jdbcType=VARCHAR}, |
| | | #{orgTag,jdbcType=VARCHAR}, |
| | | #{supperAdmin,jdbcType=TINYINT}, |
| | | #{disabled,jdbcType=TINYINT}, |
| | | #{deleted,jdbcType=TINYINT} |
| | | #{disabled,typeHandler=com.dy.common.mybatis.envm.EnumCodeTypeHandler, jdbcType=TINYINT}, |
| | | #{deleted,typeHandler=com.dy.common.mybatis.envm.EnumCodeTypeHandler, jdbcType=TINYINT} |
| | | ) |
| | | </insert> |
| | | <insert id="insertSelective" parameterType="com.dy.pipIrrGlobal.pojoBa.BaUser"> |
| | |
| | | #{supperAdmin,jdbcType=TINYINT}, |
| | | </if> |
| | | <if test="disabled != null"> |
| | | #{disabled,jdbcType=TINYINT}, |
| | | #{disabled,typeHandler=com.dy.common.mybatis.envm.EnumCodeTypeHandler, jdbcType=TINYINT}, |
| | | </if> |
| | | <if test="deleted != null"> |
| | | #{deleted,jdbcType=TINYINT}, |
| | | #{deleted,typeHandler=com.dy.common.mybatis.envm.EnumCodeTypeHandler, jdbcType=TINYINT}, |
| | | </if> |
| | | </trim> |
| | | </insert> |
| | |
| | | password = #{password,jdbcType=VARCHAR}, |
| | | </if> |
| | | <if test="disabled != null"> |
| | | disabled = #{disabled,jdbcType=TINYINT}, |
| | | disabled = #{disabled,typeHandler=com.dy.common.mybatis.envm.EnumCodeTypeHandler, jdbcType=TINYINT}, |
| | | </if> |
| | | <if test="deleted != null"> |
| | | deleted = #{deleted,jdbcType=TINYINT}, |
| | | deleted = #{deleted,typeHandler=com.dy.common.mybatis.envm.EnumCodeTypeHandler, jdbcType=TINYINT}, |
| | | </if> |
| | | </set> |
| | | where id = #{id,jdbcType=BIGINT} |
| | |
| | | set `name` = #{name,jdbcType=VARCHAR}, |
| | | phone = #{phone,jdbcType=VARCHAR}, |
| | | password = #{password,jdbcType=VARCHAR}, |
| | | disabled = #{disabled,jdbcType=TINYINT}, |
| | | deleted = #{deleted,jdbcType=TINYINT} |
| | | disabled = #{disabled,typeHandler=com.dy.common.mybatis.envm.EnumCodeTypeHandler, jdbcType=TINYINT}, |
| | | deleted = #{deleted,typeHandler=com.dy.common.mybatis.envm.EnumCodeTypeHandler, jdbcType=TINYINT} |
| | | where id = #{id,jdbcType=BIGINT} |
| | | </update> |
| | | <update id="changePassword" > |