From a34ac17fa9106f23cddf0b9a9cf90f909ca8ccc6 Mon Sep 17 00:00:00 2001
From: KKSU <15274802129@163.com>
Date: Thu, 04 Jul 2024 11:54:56 +0800
Subject: [PATCH] 逻辑
---
src/main/resources/mapper/dapp/DbMemberNodeMapper.xml | 31 +++++++++++++++++++++----------
1 files changed, 21 insertions(+), 10 deletions(-)
diff --git a/src/main/resources/mapper/dapp/DbMemberNodeMapper.xml b/src/main/resources/mapper/dapp/DbMemberNodeMapper.xml
index 76bac63..debc6d0 100644
--- a/src/main/resources/mapper/dapp/DbMemberNodeMapper.xml
+++ b/src/main/resources/mapper/dapp/DbMemberNodeMapper.xml
@@ -8,23 +8,34 @@
from
db_member_node
where work_state = #{workState}
+ and type = #{type}
and (left_node is null or right_node is null)
ORDER BY create_time ASC
limit 1
</select>
+ <select id="selectListByDate" resultType="cc.mrbird.febs.dapp.entity.DbMemberNode">
+ select
+ *
+ from
+ db_member_node
+ where date_format(create_time, '%Y-%m-%d') = date_format(#{date}, '%Y-%m-%d')
+ </select>
- <update id="updateDicValueByTypeAndCode">
- update data_dictionary_custom
- set value=#{value}
+ <select id="selectListInPage" resultType="cc.mrbird.febs.dapp.entity.DbMemberNode">
+ select
+ a.*,
+ b.address address
+ from
+ db_member_node a
+ left join dapp_member b on a.member_id = b.id
<where>
- 1=1
- <if test="code != null and code != ''">
- and code = #{code}
- </if>
- <if test="type != null and type != ''">
- and type = #{type}
+ <if test="record.address != '' and record.address != null">
+ and b.address = #{record.address}
</if>
</where>
- </update>
+ order by a.create_time desc
+ </select>
+
+
</mapper>
\ No newline at end of file
--
Gitblit v1.9.1