|
|
|
|
@ -178,17 +178,16 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
|
limit 1 |
|
|
|
|
</select> |
|
|
|
|
<select id="getToDayDuty" resultType="com.biutag.entity.system.Duty"> |
|
|
|
|
select a.* from duty a |
|
|
|
|
select distinct on (a.depart_id, a.emp_no) a.* from duty a |
|
|
|
|
inner join dept b on a.depart_id=b.id where |
|
|
|
|
now() BETWEEN a.start_time and a.end_time |
|
|
|
|
now() BETWEEN a.start_time and (to_date(a.end_time) + interval '1 D') |
|
|
|
|
<if test="depatType!=null and depatType!=''"> |
|
|
|
|
and a.dept_type=#{depatType} |
|
|
|
|
</if> |
|
|
|
|
<if test="deptId!=null and deptId!=''"> |
|
|
|
|
and b.pid=#{deptId} |
|
|
|
|
</if> |
|
|
|
|
order by a.create_time desc |
|
|
|
|
|
|
|
|
|
order by a.depart_id desc |
|
|
|
|
</select> |
|
|
|
|
<select id="mapCountyData" resultType="java.util.Map" parameterType="java.lang.String"> |
|
|
|
|
select d.name, a.id, |
|
|
|
|
|