| | |
| | | import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; |
| | | import com.baomidou.mybatisplus.core.toolkit.Wrappers; |
| | | import lombok.RequiredArgsConstructor; |
| | | import org.dromara.demo.domain.RsDangerInfo; |
| | | import org.springframework.stereotype.Service; |
| | | import org.dromara.demo.domain.bo.RsDangerTotalBo; |
| | | import org.dromara.demo.domain.vo.RsDangerTotalVo; |
| | |
| | | lqw.eq(bo.getIssueNotice() != null, RsDangerTotal::getIssueNotice, bo.getIssueNotice()); |
| | | lqw.eq(bo.getDealWithSecurityRisks() != null, RsDangerTotal::getDealWithSecurityRisks, bo.getDealWithSecurityRisks()); |
| | | lqw.eq(bo.getStatus() != null, RsDangerTotal::getStatus, bo.getStatus()); |
| | | lqw.orderByDesc(RsDangerTotal::getCreateTime); |
| | | return lqw; |
| | | } |
| | | |
| | |
| | | @Override |
| | | public Boolean updateByBo(RsDangerTotalBo bo) { |
| | | RsDangerTotal update = MapstructUtils.convert(bo, RsDangerTotal.class); |
| | | validEntityBeforeSave(update); |
| | | return baseMapper.updateById(update) > 0; |
| | | } |
| | | |