yanglaoyaunguanlixitong/target/classes/mapper/JiashuDao.xml

(开头部分) 2KB

这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。

<?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.dao.JiashuDao">

    <!-- 通用查询结果列 -->
    <sql id="Base_Column_List">
        a.id as id
        ,a.username as username
        ,a.password as password
        ,a.jiashu_uuid_number as jiashuUuidNumber
        ,a.jiashu_name as jiashuName
        ,a.jiashu_phone as jiashuPhone
        ,a.jiashu_id_number as jiashuIdNumber
        ,a.jiashu_photo as jiashuPhoto
        ,a.sex_types as sexTypes
        ,a.jiashu_email as jiashuEmail
        ,a.create_time as createTime
    </sql>
    <select id="selectListView" parameterType="map" resultType="com.entity.view.JiashuView" >
        SELECT
        <include refid="Base_Column_List" />
        <!-- 级联表的字段 -->

        FROM jiashu  a

        <where>
            <if test="params.ids != null">
                and a.id in
                <foreach item="item" index="index" collection="params.ids" open="(" separator="," close=")">
                #{item}
                </foreach>
            </if>
            <if test=" params.username != '' and params.username != null and params.username != 'null' ">
                and a.username like CONCAT('%',#{params.username},'%')
            </if>
            <if test=" params.password != '' and params.password != null and params.password != 'null' ">
                and a.password like CONCAT('%',#{params.password},'%')
            </if>
            <if test=" params.jiashuUuidNumber != '' and params.jiashuUuidNumber != null and params.jiashuUuidNumber != 'null' ">
                and a.jiashu_uuid_number like CONCAT('%',#{params.jiashuUuidNumber},'%')
            </if>
            <if test=" params.jiashuName != '' and params.jiashuName != null and params.jiashuName != 'null' ">
                and a.jiashu_name like CONCAT('%',#{params.jiashuName},'%')
            </if>
            <if test=" params.jiashuPhone != '' and params.jiashuPhone != null and params.jiashuPhone != 'null' ">
                and a.jiashu_phone like CONCAT('%',#{params.jiashuPhone},'%')
            </if>
            <if test=" params.jiashuIdNumber != '' and params.jiashuIdNumber != null and params.jiashuIdNumber != 'null' ">
                and a.jiashu_id_number like CONCAT('%',#{params.jiashuIdNumber},'%')
            </if>
            <if test="params.sexTypes != null and params.sexTypes != ''">
                and a.sex_types = #{params.sexTypes}
            </if>
            <if test=" params.jiashuEmail != '' and params.jiashuEmail != null and params.jiashuEmail != 'null' ">
                and a.jiashu_email like CONCAT('%',#{params.jiashuEmail},'%')
            </if>

        </where>
        order by a.${params.sort} ${params.order}
    </select>
后面还有 2 行代码,购买后查看完整代码

24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明

AI 解读

登录后可用,每次 10 积分,解读结果公开显示在下面。

还没有人解读过这个文件。