后台服务
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

WxMerchantCorpMapper.xml 3.6 KiB

2 years ago
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  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.iformall.mapper.WxMerchantCorpMapper">
  4. <resultMap id="BaseResultMap" type="com.iformall.domain.po.WxMerchantCorp">
  5. <id column="id" jdbcType="BIGINT" property="id" />
  6. <result column="tenant_id" jdbcType="VARCHAR" property="tenantId" />
  7. <result column="parent_tenant_id" jdbcType="VARCHAR" property="parentTenantId" />
  8. <result column="merchant_id" jdbcType="BIGINT" property="merchantId" />
  9. <result column="corp_papers_type" jdbcType="INTEGER" property="corpPapersType" />
  10. <result column="corp_papers_number" jdbcType="VARCHAR" property="corpPapersNumber" />
  11. <result column="corp_papers_person" jdbcType="VARCHAR" property="corpPapersPerson" />
  12. <result column="corp_papers_pic_face" jdbcType="VARCHAR" property="corpPapersPicFace" />
  13. <result column="corp_papers_pic_back" jdbcType="VARCHAR" property="corpPapersPicBack" />
  14. <result column="corp_papers_address" jdbcType="VARCHAR" property="corpPapersAddress" />
  15. <result column="corp_papers_register_number" jdbcType="VARCHAR" property="corpPapersRegisterNumber" />
  16. <result column="corp_papers_file" jdbcType="VARCHAR" property="corpPapersFile" />
  17. <result column="corp_contract_path" jdbcType="VARCHAR" property="corpContractPath" />
  18. <result column="create_date" jdbcType="TIMESTAMP" property="createDate" />
  19. <result column="update_date" jdbcType="TIMESTAMP" property="updateDate" />
  20. </resultMap>
  21. <sql id="allColumns">
  22. `id`,`tenant_id`,`parent_tenant_id`,`merchant_id`,`corp_papers_type`,`corp_papers_number`,`corp_papers_person`,`corp_papers_pic_face`,`corp_papers_pic_back`,`corp_papers_address`,`corp_papers_register_number`,`corp_papers_file`,`corp_contract_path`,`create_date`,`update_date`
  23. </sql>
  24. <sql id="dynamicWhereConditions">
  25. where 1 = 1
  26. <if test=" null != id "> and `id` = #{id} </if>
  27. <if test=" null != tenantId and '' != tenantId">
  28. and `tenant_id` = #{tenantId}
  29. </if>
  30. <if test=" null != parentTenantId and '' != parentTenantId">
  31. and `parent_tenant_id` = #{parentTenantId}
  32. </if>
  33. <if test=" null != merchantId "> and `merchant_id` = #{merchantId} </if>
  34. <if test=" null != corpPapersType "> and `corp_papers_type` = #{corpPapersType} </if>
  35. <if test=" null != corpPapersNumber "> and `corp_papers_number` = #{corpPapersNumber} </if>
  36. <if test=" null != corpPapersPerson "> and `corp_papers_person` = #{corpPapersPerson} </if>
  37. <if test=" null != corpPapersPicFace "> and `corp_papers_pic_face` = #{corpPapersPicFace} </if>
  38. <if test=" null != corpPapersPicBack "> and `corp_papers_pic_back` = #{corpPapersPicBack} </if>
  39. <if test=" null != corpPapersAddress "> and `corp_papers_address` = #{corpPapersAddress} </if>
  40. <if test=" null != corpPapersRegisterNumber "> and `corp_papers_register_number` = #{corpPapersRegisterNumber} </if>
  41. <if test=" null != corpPapersFile "> and `corp_papers_file` = #{corpPapersFile} </if>
  42. <if test=" null != createDate "> and `create_date` = #{createDate} </if>
  43. <if test=" null != updateDate "> and `update_date` = #{updateDate} </if>
  44. <if test=" null != ids ">
  45. and id in
  46. <foreach collection="ids" index="index" item="idItem" open="(" separator="," close=")">
  47. #{idItem}
  48. </foreach>
  49. </if>
  50. <if test=" null != sortColumns"> order by ${sortColumns} </if>
  51. </sql>
  52. <select id="findList" parameterType="com.iformall.domain.po.WxMerchantCorp" resultMap="BaseResultMap">
  53. select <include refid="allColumns" /> from wx_merchant_corp
  54. <include refid="dynamicWhereConditions" />
  55. </select>
  56. </mapper>