mirror of
https://gitee.com/elegant_wings/dbd-meeting.git
synced 2025-06-21 17:09:36 +08:00
20250617-增加已读未读接口
This commit is contained in:
parent
cdd4cef580
commit
90277f4f30
@ -41,6 +41,15 @@ public class RepairRemindController extends BaseController {
|
|||||||
return result(repairRemindService.getRepairRemindList(userId, isRead));
|
return result(repairRemindService.getRepairRemindList(userId, isRead));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 查询指定会议的所有通知
|
||||||
|
*/
|
||||||
|
@RequiresPermissions(value = {"repair:manage:operator", "member:center:view"}, logical = Logical.OR)
|
||||||
|
@RequestMapping("listByRepairId")
|
||||||
|
public R listByRepairId(Long repairId) {
|
||||||
|
startPage();
|
||||||
|
return result(repairRemindService.getRepairRemindListByRepairId(repairId));
|
||||||
|
}
|
||||||
/**
|
/**
|
||||||
* 读取最新5条未读工单提醒
|
* 读取最新5条未读工单提醒
|
||||||
*/
|
*/
|
||||||
|
@ -122,4 +122,6 @@ public interface RepairRemindMapper {
|
|||||||
* @return
|
* @return
|
||||||
*/
|
*/
|
||||||
int afterSMS(@Param("state") String state, @Param("ids") List<Long> ids);
|
int afterSMS(@Param("state") String state, @Param("ids") List<Long> ids);
|
||||||
|
|
||||||
|
List<RepairRemind> selectRepairRemindListByRepairId(Long repairId);
|
||||||
}
|
}
|
@ -98,4 +98,6 @@ public interface IRepairRemindService {
|
|||||||
* @return
|
* @return
|
||||||
*/
|
*/
|
||||||
int afterSMS(List<Long> success, List<Long> failed);
|
int afterSMS(List<Long> success, List<Long> failed);
|
||||||
|
|
||||||
|
List<?> getRepairRemindListByRepairId(Long repairId);
|
||||||
}
|
}
|
||||||
|
@ -34,6 +34,11 @@ public class RepairRemindServiceImpl implements IRepairRemindService {
|
|||||||
return repairRemindMapper.selectRepairRemindById(id);
|
return repairRemindMapper.selectRepairRemindById(id);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public List<RepairRemind> getRepairRemindListByRepairId(Long repairId) {
|
||||||
|
// 根据repairId查询所有相关通知
|
||||||
|
return repairRemindMapper.selectRepairRemindListByRepairId(repairId);
|
||||||
|
}
|
||||||
/**
|
/**
|
||||||
* 查询用户工单提醒列表
|
* 查询用户工单提醒列表
|
||||||
*
|
*
|
||||||
|
@ -139,6 +139,9 @@
|
|||||||
<include refid="selectRepairRemindVo"/>
|
<include refid="selectRepairRemindVo"/>
|
||||||
where delete_flag=0 and ext1='1'
|
where delete_flag=0 and ext1='1'
|
||||||
</select>
|
</select>
|
||||||
|
<select id="selectRepairRemindListByRepairId" resultType="com.ics.admin.domain.RepairRemind">
|
||||||
|
select * from ics_repair_remind where repair_id=#{repairId} and delete_flag=0
|
||||||
|
</select>
|
||||||
|
|
||||||
<update id="afterWxPush">
|
<update id="afterWxPush">
|
||||||
update ics_repair_remind set ext1 = #{state} where id in
|
update ics_repair_remind set ext1 = #{state} where id in
|
||||||
|
Loading…
x
Reference in New Issue
Block a user