1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43
| <select id="selectAuditList" resultType="com.dy.pojo.vo.AuditMallVO" parameterType="map"> SELECT i.id id, i.user_id userId, i.phone phone, i.user_name userName, i.create_time createTime, i.mall_type mallType, i.store_type storeType, d.`name` name, i.company_name companyName, i.business_license_city businessLicenseCity, i.business_license_number businessLicenseNumber, i.audit_status auditStatus FROM dy_mall_info i LEFT JOIN mall_category c ON i.id = c.mall_id LEFT JOIN dy_category d ON c.category_id=d.id <where> <if test="startTime != null and startTime != ''"> and i.create_time>=#{startTime} </if> <if test="endTime != null and endTime != ''"> and #{endTime}>=i.create_time </if> <if test="businessLicenseCity != null and businessLicenseCity != ''"> and i.business_license_city LIKE '%${businessLicenseCity}%' </if> <if test="search != null and search != ''"> and ( i.phone LIKE '%${search}%' or i.user_name LIKE '%${search}%' or d.name LIKE '%${search}%' or i.company_name LIKE '%${search}%' or i.business_license_number LIKE '%${search}%' ) </if> <if test="auditStatus != null "> and i.audit_status= #{auditStatus} </if> </where> limit #{pageNum},#{pageSize} </select>
|