<?xml version="1.0" encoding="UTF-8" ?> <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> <mapper namespace="com.newfiber.system.mapper.PlatformJumpMapper"> <!-- 通用查询映射结果 --> <resultMap type="com.newfiber.system.domain.PlatformJump" id="PlatformJumpResult"> <result property="id" column="id"/> <result property="platformCode" column="platform_code"/> <result property="platformName" column="platform_name"/> <result property="platformLinkAddress" column="platform_link_address"/> <result property="status" column="status"/> <result property="uncompletedAddress" column="uncompleted_address"/> <result property="completedAddress" column="completed_address"/> <result property="platformValidateUrl" column="platform_validate_url"/> <result property="platformValidateMethod" column="platform_validate_method"/> <result property="isShow" column="is_show"/> <result property="category" column="category"/> <result property="projectBusiness" column="project_business"/> <result property="technicalLeader" column="technical_leader"/> <result property="projectManager" column="project_manager"/> <result property="softwareManager" column="software_manager"/> <result property="maintenancePersonnel" column="maintenance_personnel"/> <result property="delFlag" column="del_flag"/> <result property="createBy" column="create_by"/> <result property="createTime" column="create_time"/> <result property="updateBy" column="update_by"/> <result property="updateTime" column="update_time"/> <result property="browseNum" column="browse_num"/> </resultMap> <!-- 通用查询结果列 --> <sql id="Base_Column_List"> t.id , t.platform_code , t.platform_name , t.platform_link_address , t.status , t.uncompleted_address , t.completed_address , t.platform_validate_url , t.platform_validate_method , t.is_show , t.category , t.project_business , t.technical_leader , t.project_manager , t.software_manager , t.maintenance_personnel , t.del_flag , t.create_by , t.create_time , t.update_by , t.update_time </sql> <sql id="Where_Condition"> <if test="request.platformCode != null and request.platformCode != ''"> and t.platform_code = #{request.platformCode} </if> <if test="request.platformName != null and request.platformName != ''"> and t.platform_name like concat('%', #{request.platformName}, '%') </if> <if test="request.platformLinkAddress != null and request.platformLinkAddress != ''"> and t.platform_link_address = #{request.platformLinkAddress} </if> <if test="request.status != null and request.status != ''"> and t.status = #{request.status} </if> <if test="request.uncompletedAddress != null and request.uncompletedAddress != ''"> and t.uncompleted_address = #{request.uncompletedAddress} </if> <if test="request.completedAddress != null and request.completedAddress != ''"> and t.completed_address = #{request.completedAddress} </if> <if test="request.platformValidateUrl != null and request.platformValidateUrl != ''"> and t.platform_validate_url = #{request.platformValidateUrl} </if> <if test="request.platformValidateMethod != null and request.platformValidateMethod != ''"> and t.platform_validate_method = #{request.platformValidateMethod} </if> <if test="request.isShow != null and request.isShow != ''"> and t.is_show = #{request.isShow} </if> <if test="request.category != null and request.category != ''"> and t.category like concat('%', #{request.category}, '%') </if> <if test="request.projectBusiness != null and request.projectBusiness != ''"> and t.project_business = #{request.projectBusiness} </if> <if test="request.technicalLeader != null and request.technicalLeader != ''"> and t.technical_leader = #{request.technicalLeader} </if> <if test="request.projectManager != null and request.projectManager != ''"> and t.project_manager = #{request.projectManager} </if> <if test="request.softwareManager != null and request.softwareManager != ''"> and t.software_manager = #{request.softwareManager} </if> <if test="request.maintenancePersonnel != null and request.maintenancePersonnel != ''"> and t.maintenance_personnel = #{request.maintenancePersonnel} </if> </sql> <sql id="Join_Table"> </sql> <select id="selectByCondition" resultMap="PlatformJumpResult"> select <include refid="Base_Column_List"/> from sys_platform_jump t where t.del_flag = 0 <include refid="Where_Condition"/> order by t.${request.orderBy} </select> <select id="selectOneById" resultMap="PlatformJumpResult"> select <include refid="Base_Column_List"/> from sys_platform_jump t <include refid="Join_Table"/> where t.id = #{id} and t.del_flag = 0 </select> <select id="querySysdataList" resultType="com.newfiber.system.domain.request.platformJump.PlatformTypeNumberRequest"> SELECT dict_label as typeName, dict_value as typeCode FROM `sys_dict_data` WHERE dict_type = 'category_type' order by dict_sort </select> </mapper>