From 0abeea2e7d2f2faec76e667b0b73ddecea85f561 Mon Sep 17 00:00:00 2001
From: java110 <928255095@qq.com>
Date: 星期五, 25 十二月 2020 09:19:26 +0800
Subject: [PATCH] 优化门禁设备显示问题
---
java110-db/src/main/resources/mapper/user/JunkRequirementServiceDaoImplMapper.xml | 12 +++++++++---
1 files changed, 9 insertions(+), 3 deletions(-)
diff --git a/java110-db/src/main/resources/mapper/user/JunkRequirementServiceDaoImplMapper.xml b/java110-db/src/main/resources/mapper/user/JunkRequirementServiceDaoImplMapper.xml
index d173633..e0ea462 100644
--- a/java110-db/src/main/resources/mapper/user/JunkRequirementServiceDaoImplMapper.xml
+++ b/java110-db/src/main/resources/mapper/user/JunkRequirementServiceDaoImplMapper.xml
@@ -114,9 +114,12 @@
publishUserId,t.status_cd,t.status_cd statusCd,t.junk_requirement_id,t.junk_requirement_id
junkRequirementId,t.classification,t.reference_price,t.reference_price referencePrice,t.type_cd,t.type_cd
typeCd,t.publish_user_link,t.publish_user_link publishUserLink,t.context,t.state,t.community_id,t.community_id
- communityId,t.b_id,t.b_id bId,t.create_time createTime
- from junk_requirement t
+ communityId,t.b_id,t.b_id bId,t.create_time createTime,td1.name stateName
+ from junk_requirement t,t_dict td1
where 1 =1
+ and td1.table_name = 'junk_requirement'
+ and td1.table_columns = 'state'
+ and td1.status_cd = t.state
<if test="publishUserName !=null and publishUserName != ''">
and t.publish_user_name= #{publishUserName}
</if>
@@ -207,8 +210,11 @@
<!-- 鏌ヨ鏃ц揣甯傚満鏁伴噺 add by wuxw 2018-07-03 -->
<select id="queryJunkRequirementsCount" parameterType="Map" resultType="Map">
select count(1) count
- from junk_requirement t
+ from junk_requirement t,t_dict td1
where 1 =1
+ and td1.table_name = 'junk_requirement'
+ and td1.table_columns = 'state'
+ and td1.status_cd = t.state
<if test="publishUserName !=null and publishUserName != ''">
and t.publish_user_name= #{publishUserName}
</if>
--
Gitblit v1.8.0