Преглед на файлове

根据站点id删除客户关系

hym преди 4 години
родител
ревизия
4f992602c1
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1 1
      src/main/resources/mapper/SiteMapper.xml

+ 1 - 1
src/main/resources/mapper/SiteMapper.xml

@@ -182,7 +182,7 @@
         update sc_site set status = 0,update_date=NOW(),update_by=#{updateBy} where id = #{id}
     </update>
     <update id="deleteCustomerRelations">
-        update sc_customer set site_id=null where id=#{id}
+        update sc_customer set site_id=null where site_id=#{id}
     </update>
     <update id="updateCustomerSiteId">
         update sc_customer set site_id=#{id}