添加直播带岗相关功能。
This commit is contained in:
@@ -0,0 +1,46 @@
|
||||
<?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.ruoyi.cms.mapper.CompanyJobLiveMapper">
|
||||
|
||||
<resultMap type="CompanyJobLive" id="CompanyJobLiveResult">
|
||||
<result property="id" column="id" />
|
||||
<result property="title" column="title" />
|
||||
<result property="liveUrl" column="live_url" />
|
||||
<result property="description" column="description" />
|
||||
<result property="startTime" column="start_time" />
|
||||
<result property="endTime" column="end_time" />
|
||||
<result property="companyId" column="company_id" />
|
||||
<result property="companyName" column="company_name" />
|
||||
<result property="createBy" column="create_by" />
|
||||
<result property="createTime" column="create_time" />
|
||||
<result property="updateBy" column="update_by" />
|
||||
<result property="updateTime" column="update_time" />
|
||||
</resultMap>
|
||||
|
||||
<sql id="selectCompanyJobLiveVo">
|
||||
select l.id, l.title, l.live_url, l.description, l.start_time, l.end_time, l.company_id, c.name company_name, l.create_by, l.create_time, l.update_by, l.update_time
|
||||
from company_job_live l
|
||||
left join company c on l.company_id = c.company_id
|
||||
</sql>
|
||||
|
||||
<select id="selectAll" parameterType="companyJobLive" resultMap="CompanyJobLiveResult">
|
||||
<include refid="selectCompanyJobLiveVo"/>
|
||||
where 1=1
|
||||
<if test="title != null and title != ''">
|
||||
and l.title like CONCAT('%',#{title},'%')
|
||||
</if>
|
||||
<if test="companyName != null and companyName != ''">
|
||||
and c.name like CONCAT('%',#{companyName},'%')
|
||||
</if>
|
||||
order by l.create_time desc
|
||||
</select>
|
||||
|
||||
<select id="selectByCompanyId" resultMap="CompanyJobLiveResult">
|
||||
<include refid="selectCompanyJobLiveVo"/>
|
||||
where l.company_id = #{companyId}
|
||||
order by l.create_time desc
|
||||
</select>
|
||||
|
||||
</mapper>
|
||||
Reference in New Issue
Block a user