20250617-增加已读未读接口

This commit is contained in:
luoyu 2025-06-17 22:21:40 +08:00
parent cdd4cef580
commit 90277f4f30
5 changed files with 21 additions and 0 deletions

View File

@ -42,6 +42,15 @@ public class RepairRemindController extends BaseController {
} }
/** /**
* 查询指定会议的所有通知
*/
@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条未读工单提醒
*/ */
@RequiresPermissions(value = {"repair:manage:operator", "member:center:view"}, logical = Logical.OR) @RequiresPermissions(value = {"repair:manage:operator", "member:center:view"}, logical = Logical.OR)

View File

@ -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);
} }

View File

@ -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);
} }

View File

@ -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);
}
/** /**
* 查询用户工单提醒列表 * 查询用户工单提醒列表
* *

View File

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