From 4430ceb824ac85a3b50108dadb2eac1e31d2c7d8 Mon Sep 17 00:00:00 2001
From: java110 <928255095@qq.com>
Date: 星期六, 23 一月 2021 15:48:33 +0800
Subject: [PATCH] 优化 考勤编辑功能

---
 java110-db/src/main/resources/mapper/user/OwnerAttrServiceDaoImplMapper.xml |   11 ++++-------
 1 files changed, 4 insertions(+), 7 deletions(-)

diff --git a/java110-db/src/main/resources/mapper/user/OwnerAttrServiceDaoImplMapper.xml b/java110-db/src/main/resources/mapper/user/OwnerAttrServiceDaoImplMapper.xml
index 3f0b221..1f2e278 100644
--- a/java110-db/src/main/resources/mapper/user/OwnerAttrServiceDaoImplMapper.xml
+++ b/java110-db/src/main/resources/mapper/user/OwnerAttrServiceDaoImplMapper.xml
@@ -7,9 +7,9 @@
     <!-- 淇濆瓨涓氫富灞炴�т俊鎭� add by wuxw 2018-07-03 -->
     <insert id="saveBusinessOwnerAttrInfo" parameterType="Map">
         insert into business_building_owner_attr(
-        attr_id,operate,create_time,spec_cd,b_id,community_id,value,member_id
+        attr_id,operate,spec_cd,b_id,community_id,value,member_id
         ) values (
-        #{attrId},#{operate},#{createTime},#{specCd},#{bId},#{communityId},#{value},#{memberId}
+        #{attrId},#{operate},#{specCd},#{bId},#{communityId},#{value},#{memberId}
         )
     </insert>
 
@@ -26,7 +26,7 @@
         <if test="operate !=null and operate != ''">
             and t.operate= #{operate}
         </if>
-        <if test="createTime !=null and createTime != ''">
+        <if test="createTime !=null ">
             and t.create_time= #{createTime}
         </if>
         <if test="specCd !=null and specCd != ''">
@@ -89,7 +89,7 @@
         v.value_name valueName,
         s.list_show listShow
         from building_owner_attr t
-        left join attr_spec s on t.spec_cd = s.spec_cd and s.status_cd = '0' and s.table_name = 'building_room_attr'
+        left join attr_spec s on t.spec_cd = s.spec_cd and s.status_cd = '0' and s.table_name = 'building_owner_attr'
         left join attr_value v on t.`value` = v.`value` and t.spec_cd = v.spec_cd and v.status_cd = '0'
         where 1 =1
         <if test="attrId !=null and attrId != ''">
@@ -136,9 +136,6 @@
         update building_owner_attr t set t.status_cd = #{statusCd}
         <if test="newBId != null and newBId != ''">
             ,t.b_id = #{newBId}
-        </if>
-        <if test="createTime !=null and createTime != ''">
-            , t.create_time= #{createTime}
         </if>
         <if test="specCd !=null and specCd != ''">
             , t.spec_cd= #{specCd}

--
Gitblit v1.8.0