| | |
| | | <sql id="Base_Column_List"> |
| | | id, type_id, item_name, sort_by, pictures, create_time, update_time, create_by, update_by, disabled |
| | | </sql> |
| | | <select id="pageList" resultType="com.ruoyi.system.vo.TItemVO"> |
| | | select |
| | | t.id, t.type_id, t.item_name, t.sort_by, t.pictures, t.create_time, t.update_time, t.create_by, t.update_by, t.disabled |
| | | tt.type_name |
| | | from t_item t |
| | | left join t_item_type tt on t.type_id = tt.id |
| | | <where> |
| | | <if test="query.itemName != null and query.itemName != ''"> |
| | | and t.item_name like concat('%', #{query.itemName}, '%') |
| | | </if> |
| | | <if test="query.typeId != null and query.typeId != ''"> |
| | | and t.type_id = #{query.typeId} |
| | | </if> |
| | | and t.disabled = ${@com.ruoyi.common.enums.DisabledEnum@NO.getCode()} |
| | | </where> |
| | | order by t.sort_by, t.create_time desc |
| | | </select> |
| | | |
| | | </mapper> |