| | |
| | | <sql id="Base_Column_List"> |
| | | id, user_id, warehouse_name, warehouse_address, warehouse_contact, warehouse_phone, account, remarks, status, create_time, update_time, create_by, update_by, disabled |
| | | </sql> |
| | | <select id="pageList" resultType="com.ruoyi.system.vo.TCrmWarehouseVO"> |
| | | SELECT |
| | | <include refid="Base_Column_List"/> |
| | | FROM t_crm_warehouse |
| | | <where> |
| | | <if test="query.warehouseName != null and query.warehouseName != ''"> |
| | | AND warehouse_name LIKE concat('%',#{query.warehouseName},'%') |
| | | </if> |
| | | <if test="query.warehouseContact != null and query.warehouseContact != ''"> |
| | | AND warehouse_contact LIKE concat('%',#{query.warehouseContact},'%') |
| | | </if> |
| | | <if test="query.warehousePhone != null and query.warehousePhone != ''"> |
| | | AND warehouse_phone LIKE concat('%',#{query.warehousePhone},'%') |
| | | </if> |
| | | <if test="query.status != null"> |
| | | AND status = #{query.status} |
| | | </if> |
| | | AND disabled = ${@com.ruoyi.common.enums.DisabledEnum@NO.getCode()} |
| | | </where> |
| | | ORDER BY create_time DESC |
| | | </select> |
| | | |
| | | </mapper> |