| | |
| | | } |
| | | |
| | | //是否处理检索 |
| | | if (StringUtils.isNotBlank(param.getName())) { |
| | | queryWrapper.eq("is_handle", param.getName()); |
| | | if (StringUtils.isNotBlank(param.getKey())) { |
| | | queryWrapper.eq("is_handle", param.getKey()); |
| | | } |
| | | |
| | | queryWrapper.orderByDesc("create_time"); |
| | | queryWrapper.orderByDesc("id"); |
| | | snapReplyMapper.selectPage(page, queryWrapper); |
| | | } |
| | | |
| | |
| | | * @author sgj |
| | | * @date 2026/04/07 |
| | | */ |
| | | public void addData(SnapReply snapReply) { |
| | | public BaseResp addData(SnapReply snapReply) { |
| | | if (StringUtils.isBlank(snapReply.getId())) { |
| | | snapReply.setId(ContextUtil.generateId()); |
| | | } |
| | |
| | | snapReply.setUpdateTime(new Date()); |
| | | snapReply.setCreateBy(ContextUtil.getLoginUserName()); |
| | | snapReply.setCreateTime(new Date()); |
| | | snapReplyMapper.insert(snapReply); |
| | | return snapReplyMapper.insert(snapReply) > 0 ? BaseResp.success() : BaseResp.error("添加失败"); |
| | | } |
| | | |
| | | /** |