| | |
| | | <mapper namespace="com.oying.modules.system.mapper.MerchantMapper"> |
| | | <resultMap id="BaseResultMap" type="com.oying.modules.system.domain.Merchant"> |
| | | <id column="merchant_id" property="merchantId"/> |
| | | <result column="merchant_type" property="merchantType"/> |
| | | <result column="merchant_name" property="merchantName"/> |
| | | <result column="merchant_code" property="merchantCode"/> |
| | | <result column="business_license" property="businessLicense"/> |
| | |
| | | </resultMap> |
| | | |
| | | <sql id="Base_Column_List"> |
| | | merchant_id, merchant_name, merchant_code, business_license, business_license_path, contact_mobile, merchant_sort, enabled, create_by, update_by, create_time, update_time, audit_user, audit_time, audit_message |
| | | merchant_id, merchant_type, merchant_name, merchant_code, business_license, business_license_path, contact_mobile, merchant_sort, enabled, create_by, update_by, create_time, update_time, audit_user, audit_time, audit_message |
| | | </sql> |
| | | |
| | | <select id="findAll" resultMap="BaseResultMap"> |
| | |
| | | or contact_mobile like concat('%', #{criteria.blurry}, '%') |
| | | ) |
| | | </if> |
| | | <if test="criteria.merchantType != null and criteria.merchantType != ''"> |
| | | and merchant_type = #{criteria.merchantType} |
| | | </if> |
| | | <if test="criteria.enabled != null"> |
| | | and enabled = #{criteria.enabled} |
| | | </if> |