From 3f497f19ddc39bd5d3a989ce9a981dc840096c71 Mon Sep 17 00:00:00 2001 From: xiaoyong931011 <15274802129@163.com> Date: Fri, 04 Mar 2022 11:11:51 +0800 Subject: [PATCH] Merge branch 'bea-back' of http://120.27.238.55:7000/r/exchange-back into bea-back --- src/main/resources/mapper/modules/ZhiyaMapper.xml | 25 +++++++++++++++++++++++++ 1 files changed, 25 insertions(+), 0 deletions(-) diff --git a/src/main/resources/mapper/modules/ZhiyaMapper.xml b/src/main/resources/mapper/modules/ZhiyaMapper.xml new file mode 100644 index 0000000..cfe5909 --- /dev/null +++ b/src/main/resources/mapper/modules/ZhiyaMapper.xml @@ -0,0 +1,25 @@ +<?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.xcong.excoin.modules.zhiya.mapper.ZhiyaMapper"> + + <select id="selectZhiyaListInPage" resultType="com.xcong.excoin.modules.zhiya.entity.ZhiYaEntity"> + SELECT + a.*, + b.phone phone, + b.invite_id inviteId + FROM + zhi_ya a + inner join member b on a.member_id = b.id + <where> + <if test="record != null" > + <if test="record.account!=null and record.account!=''"> + and (b.phone like CONCAT('%',#{record.account},'%') + or b.email like CONCAT('%',#{record.account},'%') + or b.invite_id like CONCAT('%',#{record.account},'%')) + </if> + </if> + </where> + order by a.create_time desc + </select> + +</mapper> \ No newline at end of file -- Gitblit v1.9.1