Browse Source

值班管理去重

master
laishajiang 2 years ago
parent
commit
5d795a0c15
  1. 3
      mailbox-lan/src/main/java/com/biutag/lan/service/FavoriteService.java
  2. 7
      mailbox-lan/src/main/resources/mapper/DataScreenMapper.xml

3
mailbox-lan/src/main/java/com/biutag/lan/service/FavoriteService.java

@ -42,9 +42,6 @@ public class FavoriteService extends ServiceImpl<FavoriteMapper, Favorite> {
case "name":
queryWrapper.like("f.contact_name", mailQuery.getContactFieldValue());
break;
case "idCard":
queryWrapper.like("f.contactIdCard", mailQuery.getContactFieldValue());
break;
case "phone":
queryWrapper.like("f.contact_phone", mailQuery.getContactFieldValue());
break;

7
mailbox-lan/src/main/resources/mapper/DataScreenMapper.xml

@ -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,

Loading…
Cancel
Save