Browse Source

clearCustomerInfo

dev_shibei_match
wangchao 5 years ago
parent
commit
c2943a450d
  1. 2
      epmet-module/epmet-third/epmet-third-server/src/main/java/com/epmet/dao/PaCustomerDao.java
  2. 37
      epmet-module/epmet-third/epmet-third-server/src/main/resources/mapper/PaCustomerDao.xml

2
epmet-module/epmet-third/epmet-third-server/src/main/java/com/epmet/dao/PaCustomerDao.java

@ -102,4 +102,6 @@ public interface PaCustomerDao extends BaseDao<PaCustomerEntity> {
* @Description 查询客户及管理员信息 * @Description 查询客户及管理员信息
*/ */
CustomerAndUserResultDTO selectCustomerAndUser(@Param("customerId") String customerId); CustomerAndUserResultDTO selectCustomerAndUser(@Param("customerId") String customerId);
void clearCustomerInfo(@Param("customerId") String customerId);
} }

37
epmet-module/epmet-third/epmet-third-server/src/main/resources/mapper/PaCustomerDao.xml

@ -146,4 +146,41 @@
AND id = #{oldCustomerId} AND id = #{oldCustomerId}
</update> </update>
<!-- 清除用户信息 -->
<delete id="clearCustomerInfo">
DELETE FROM auth_code WHERE CUSTOMER_ID = #{customerId};
DELETE FROM auth_result_record WHERE CUSTOMER_ID = #{customerId};
DELETE FROM authorization_info WHERE CUSTOMER_ID = #{customerId};
DELETE FROM binding_account WHERE CUSTOMER_ID = #{customerId};
DELETE FROM business_info WHERE CUSTOMER_ID = #{customerId};
DELETE FROM code_audit_record WHERE CUSTOMER_ID = #{customerId};
DELETE FROM code_audit_result WHERE CUSTOMER_ID = #{customerId};
DELETE FROM code_customer WHERE CUSTOMER_ID = #{customerId};
DELETE FROM code_operation_history WHERE CUSTOMER_ID = #{customerId};
DELETE FROM customer_mp WHERE CUSTOMER_ID = #{customerId};
DELETE FROM func_info WHERE CUSTOMER_ID = #{customerId};
DELETE FROM mini_category_info WHERE CUSTOMER_ID = #{customerId};
DELETE FROM mini_info WHERE CUSTOMER_ID = #{customerId};
DELETE FROM mini_network_info WHERE CUSTOMER_ID = #{customerId};
DELETE FROM open_platform_account WHERE CUSTOMER_ID = #{customerId};
DELETE FROM pa_customer_agency WHERE CUSTOMER_ID = #{customerId};
DELETE FROM pa_customer_user_agency WHERE CUSTOMER_ID = #{customerId};
</delete>
</mapper> </mapper>
Loading…
Cancel
Save