xuhy
2024-10-25 6aa659f6cb7d3c86c87c4ab58be4220820c7326b
ruoyi-system/src/main/resources/mapper/system/TFoundationPersonMapper.xml
@@ -12,13 +12,19 @@
    <!-- 通用查询结果列 -->
    <sql id="Base_Column_List">
        id, mealCount,createTime
        id, mealCount,createTime,shopId
    </sql>
    <select id="getList" resultType="com.ruoyi.system.vo.TFoundationPersonVO">
        select
        <include refid="Base_Column_List"/>
        from t_foundation_person
        ORDER BY createTime DESC
            tfp.id, tfp.mealCount,tfp.createTime,tfp.shopId,ts.shopName
        from t_foundation_person tfp
        left join t_shop ts on ts.id = tfp.shopId
        <where>
            <if test="query.shopName != null and query.shopName != ''">
                and ts.shopName like concat('%', #{query.shopName}, '%')
            </if>
        </where>
        ORDER BY tfp.createTime DESC
    </select>
</mapper>