优化
This commit is contained in:
@ -139,11 +139,13 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
c.task_name,
|
||||
c.task_address,
|
||||
c.task_img,
|
||||
c.create_time as taskCreateTime
|
||||
c.create_time as taskCreateTime,
|
||||
d.dict_label AS typeOfWorkLabel
|
||||
FROM
|
||||
bgt_project_recruit_apply as a
|
||||
LEFT JOIN bgt_project_recruit as b on(a.recruit_id = b.id and b.del_flag = 0 )
|
||||
LEFT JOIN fbs_project_task as c ON (b.task_id = c.id AND c.del_flag = 0)
|
||||
LEFT JOIN sys_dict_data AS d ON ( d.dict_type = 'type_of_work' AND d.dict_value = b.type_of_work )
|
||||
<where>
|
||||
<if test="req.userId!=null and req.userId!=0 ">
|
||||
a.user_id = #{req.userId} AND
|
||||
|
@ -106,6 +106,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
LEFT JOIN sys_dict_data as d ON (d.dict_type = 'type_of_work' and d.dict_value = b.type_of_work)
|
||||
WHERE
|
||||
DATE_FORMAT(NOW(), '%Y-%m-%d') BETWEEN b.recruit_begin_time AND b.recruit_end_time and
|
||||
b.status = '1' and
|
||||
b.del_flag = 0
|
||||
order by b.create_time desc
|
||||
</select>
|
||||
|
Reference in New Issue
Block a user