From 82d483406921aa92b6ce3a1af5d17d80ccb78256 Mon Sep 17 00:00:00 2001
From: MrShi <1878285526@qq.com>
Date: 星期五, 04 七月 2025 09:39:57 +0800
Subject: [PATCH] 提交
---
server/src/main/java/com/doumee/service/business/impl/InformationServiceImpl.java | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/server/src/main/java/com/doumee/service/business/impl/InformationServiceImpl.java b/server/src/main/java/com/doumee/service/business/impl/InformationServiceImpl.java
index a2cf2e2..b4ff068 100644
--- a/server/src/main/java/com/doumee/service/business/impl/InformationServiceImpl.java
+++ b/server/src/main/java/com/doumee/service/business/impl/InformationServiceImpl.java
@@ -53,6 +53,7 @@
){
throw new BusinessException(ResponseStatus.BAD_REQUEST);
}
+ information.setType(Constants.formatIntegerNum(information.getType()));
information.setIsdeleted(Constants.ZERO);
information.setCreateDate(new Date());
information.setCreator(user.getId());
@@ -139,6 +140,7 @@
queryWrapper.lambda()
.eq(Information::getIsdeleted,Constants.ZERO)
.eq(pageWrap.getModel().getId() != null, Information::getId, pageWrap.getModel().getId())
+ .eq(pageWrap.getModel().getType() != null, Information::getType, pageWrap.getModel().getType())
.eq(pageWrap.getModel().getStatus() != null, Information::getStatus, pageWrap.getModel().getStatus())
.eq(pageWrap.getModel().getRemark() != null, Information::getRemark, pageWrap.getModel().getRemark())
.like(pageWrap.getModel().getTitle() != null, Information::getTitle, pageWrap.getModel().getTitle())
@@ -179,8 +181,7 @@
|| Objects.isNull(information.getStatus())
|| Objects.isNull(information.getId())
|| !(Constants.equalsInteger(information.getStatus(),Constants.ZERO)
- || Constants.equalsInteger(information.getStatus(),Constants.ONE))
- ){
+ || Constants.equalsInteger(information.getStatus(),Constants.ONE))){
throw new BusinessException(ResponseStatus.DATA_EMPTY);
}
informationMapper.update(new UpdateWrapper<Information>().lambda().set(Information::getStatus,information.getStatus()).eq(Information::getId,information.getId()));
--
Gitblit v1.9.3