From 781c2e20a4bb844dae3f4eafbf5f0e494b942ea8 Mon Sep 17 00:00:00 2001
From: java110 <928255095@qq.com>
Date: 星期四, 25 五月 2023 18:07:08 +0800
Subject: [PATCH] optimize
---
java110-db/src/main/resources/mapper/community/RepairTypeUserServiceDaoImplMapper.xml | 8 ++++++--
1 files changed, 6 insertions(+), 2 deletions(-)
diff --git a/java110-db/src/main/resources/mapper/community/RepairTypeUserServiceDaoImplMapper.xml b/java110-db/src/main/resources/mapper/community/RepairTypeUserServiceDaoImplMapper.xml
old mode 100644
new mode 100755
index 4d27767..21fd886
--- a/java110-db/src/main/resources/mapper/community/RepairTypeUserServiceDaoImplMapper.xml
+++ b/java110-db/src/main/resources/mapper/community/RepairTypeUserServiceDaoImplMapper.xml
@@ -9,7 +9,8 @@
insert into business_repair_type_user(
operate,type_user_id,repair_type,remark,state,staff_name,b_id,community_id,staff_id
) values (
- #{operate},#{typeUserId},#{repairType},#{remark},#{state},#{staffName},#{bId},#{communityId},#{staffId}
+ #{operate},#{typeUserId},#{repairType},#{remark},#{state},#{staffName},#{bId},#{communityId},
+ #{staffId}
)
</insert>
@@ -91,9 +92,11 @@
<select id="getRepairTypeUserInfo" parameterType="Map" resultType="Map">
select t.type_user_id,t.type_user_id typeUserId,t.repair_type,t.repair_type
repairType,t.remark,t.status_cd,t.status_cd statusCd,t.state,t.staff_name,t.staff_name staffName,t.b_id,t.b_id
- bId,t.community_id,t.community_id communityId,t.staff_id,t.staff_id staffId,d.name stateName
+ bId,t.community_id,t.community_id communityId,t.staff_id,t.staff_id staffId,d.name stateName,rrs.repair_type_name repairTypeName,
+ t.create_time createTime
from r_repair_type_user t
left join t_dict d on t.state = d.status_cd and d.table_name = 'r_repair_type_user' and d.table_columns = 'state'
+ left join r_repair_setting rrs on t.repair_type = rrs.repair_type and rrs.status_cd = '0'
where 1 =1
<if test="typeUserId !=null and typeUserId != ''">
and t.type_user_id= #{typeUserId}
@@ -169,6 +172,7 @@
select count(1) count
from r_repair_type_user t
left join t_dict d on t.state = d.status_cd and d.table_name = 'r_repair_type_user' and d.table_columns = 'state'
+ left join r_repair_setting rrs on t.repair_type = rrs.repair_type and rrs.status_cd = '0'
where 1 =1
<if test="typeUserId !=null and typeUserId != ''">
and t.type_user_id= #{typeUserId}
--
Gitblit v1.8.0