yanglaoyaunguanlixitong/src/main/resources/mapper/JiluDao.xml

(开头部分) 10KB

这里只显示每个文件的开头 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.JiluDao">

    <!-- 通用查询结果列 -->
    <sql id="Base_Column_List">
        a.id as id
        ,a.yonghu_id as yonghuId
        ,a.laoren_id as laorenId
        ,a.jilu_name as jiluName
        ,a.jilu_uuid_number as jiluUuidNumber
        ,a.jilu_photo as jiluPhoto
        ,a.jilu_tiwen as jiluTiwen
        ,a.jilu_xueya as jiluXueya
        ,a.jilu_content as jiluContent
        ,a.jilu_delete as jiluDelete
        ,a.insert_time as insertTime
        ,a.create_time as createTime
    </sql>
    <select id="selectListView" parameterType="map" resultType="com.entity.view.JiluView" >
        SELECT
        <include refid="Base_Column_List" />
        <!-- 级联表的字段 -->
        ,laoren.yonghu_id as laorenYonghuId
        ,laoren.jiashu_id as laorenJiashuId
        ,laoren.kanhuren_name as kanhurenName
        ,laoren.kanhuren_phone as kanhurenPhone
        ,laoren.laoren_name as laorenName
        ,laoren.laoren_phone as laorenPhone
        ,laoren.laoren_id_number as laorenIdNumber
        ,laoren.sex_types as sexTypes
        ,laoren.age as age
        ,laoren.laoren_photo as laorenPhoto
        ,laoren.laoren_content as laorenContent
        ,yonghu.yonghu_uuid_number as yonghuUuidNumber
        ,yonghu.yonghu_name as yonghuName
        ,yonghu.yonghu_phone as yonghuPhone
        ,yonghu.yonghu_id_number as yonghuIdNumber
        ,yonghu.yonghu_photo as yonghuPhoto
        ,yonghu.yonghu_types as yonghuTypes
        ,yonghu.yonghu_jaiwei as yonghuJaiwei
        ,yonghu.yonghu_email as yonghuEmail
        ,yonghu.jinyong_types as jinyongTypes

        FROM jilu  a
        left JOIN laoren laoren ON a.laoren_id = laoren.id
        left JOIN yonghu yonghu ON a.yonghu_id = yonghu.id

        <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.yonghuId != null and params.yonghuId != ''">
                and (
                    a.yonghu_id = #{params.yonghuId}
                    or laoren.yonghu_id = #{params.yonghuId}
                )
后面还有 137 行代码,购买后查看完整代码

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

AI 解读

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

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