ThirdPartyInfoMapper.xml 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
  3. <mapper namespace="com.zsElectric.boot.business.mapper.ThirdPartyInfoMapper">
  4. <select id="selectThirdPartyInfoPage" resultType="com.zsElectric.boot.business.model.vo.ThirdPartyInfoVO">
  5. SELECT
  6. id,
  7. ec_name,
  8. contact_name,
  9. contact_phone,
  10. ec_attach,
  11. app_id,
  12. auth_code,
  13. status,
  14. operator_id,
  15. api_base_url,
  16. operator_secret,
  17. sig_secret,
  18. data_secret,
  19. data_secret_iv AS dataSecretIV,
  20. remark,
  21. create_time
  22. FROM c_third_party_info
  23. <where>
  24. is_deleted = 0
  25. <if test="query.ecName != null and query.ecName != ''">
  26. AND ec_name LIKE CONCAT('%', #{query.ecName}, '%')
  27. </if>
  28. <if test="query.contactName != null and query.contactName != ''">
  29. AND contact_name LIKE CONCAT('%', #{query.contactName}, '%')
  30. </if>
  31. <if test="query.contactPhone != null and query.contactPhone != ''">
  32. AND contact_phone = #{query.contactPhone}
  33. </if>
  34. <if test="query.appId != null and query.appId != ''">
  35. AND app_id = #{query.appId}
  36. </if>
  37. <if test="query.status != null">
  38. AND status = #{query.status}
  39. </if>
  40. </where>
  41. ORDER BY create_time DESC
  42. </select>
  43. </mapper>