ss
jiangping
2025-07-02 f7b760a680397fd0a3de2d8de36a2601de98530d
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()));