Browse Source

账户绑定的企业信息sql增加status=0

chenw 7 years ago
parent
commit
0fa3e22a74

+ 1 - 0
base-servers/account/account-server/src/main/resources/mapper/CompanyMapper.xml

@@ -145,6 +145,7 @@
     <select id="selectBaseByAccountId" parameterType="java.lang.Long" resultMap="BaseResultMap">
         select ac_company.id,ac_company.name,ac_company.logo_url,ac_company.dc_name from ac_account_company,ac_company
         where ac_account_company.company_id=ac_company.id and ac_account_company.account_id=#{accountId,jdbcType=BIGINT}
+        and ac_account_company.status = 1
     </select>
     <delete id="deleteByPrimaryKey" parameterType="java.lang.Long">
         delete from ac_company where id=#{id,jdbcType=BIGINT}