|  |  |  | 
|---|
|  |  |  | ){ | 
|---|
|  |  |  | throw new BusinessException(ResponseStatus.BAD_REQUEST); | 
|---|
|  |  |  | } | 
|---|
|  |  |  | information.setType(Constants.formatIntegerNum(information.getType())); | 
|---|
|  |  |  | information.setIsdeleted(Constants.ZERO); | 
|---|
|  |  |  | information.setCreateDate(new Date()); | 
|---|
|  |  |  | information.setCreator(user.getId()); | 
|---|
|  |  |  | 
|---|
|  |  |  | if (CollectionUtils.isEmpty(ids)) { | 
|---|
|  |  |  | return; | 
|---|
|  |  |  | } | 
|---|
|  |  |  | informationMapper.deleteBatchIds(ids); | 
|---|
|  |  |  | for (Integer id : ids) { | 
|---|
|  |  |  | this.deleteById(id); | 
|---|
|  |  |  | } | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | @Override | 
|---|
|  |  |  | 
|---|
|  |  |  | queryWrapper.lambda() | 
|---|
|  |  |  | .eq(Information::getIsdeleted,Constants.ZERO) | 
|---|
|  |  |  | .eq(pageWrap.getModel().getId() != null, Information::getId, pageWrap.getModel().getId()) | 
|---|
|  |  |  | .eq(pageWrap.getModel().getModule() != null, Information::getModule, pageWrap.getModel().getModule()) | 
|---|
|  |  |  | .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()) | 
|---|
|  |  |  | 
|---|
|  |  |  | || 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())); | 
|---|