| | |
| | | import com.ruoyi.oa.domain.SgConstructionBatch; |
| | | import com.ruoyi.oa.mapper.SgConstructionBatchMapper; |
| | | import com.ruoyi.oa.service.ISgConstructionBatchService; |
| | | import org.springframework.transaction.annotation.Transactional; |
| | | |
| | | import java.util.List; |
| | | import java.util.Map; |
| | |
| | | LambdaQueryWrapper<SgConstructionBatch> lqw = Wrappers.lambdaQuery(); |
| | | lqw.like(StringUtils.isNotBlank(bo.getBatch()), SgConstructionBatch::getBatch, bo.getBatch()); |
| | | lqw.eq(SgConstructionBatch::getSchoolId, bo.getSchoolId()); |
| | | lqw.orderByDesc(SgConstructionBatch::getUpdateTime); |
| | | return lqw; |
| | | } |
| | | |
| | | @Override |
| | | @Transactional(rollbackFor = Exception.class) |
| | | public Boolean insertByBo(SgConstructionBatchBo bo) { |
| | | List<SgConstructionBatch> list = baseMapper.selectList(new LambdaQueryWrapper<SgConstructionBatch>() |
| | | .eq(SgConstructionBatch::getBatch, bo.getBatch()).eq(SgConstructionBatch::getSchoolId, bo.getSchoolId())); |
| | |
| | | } |
| | | |
| | | @Override |
| | | @Transactional(rollbackFor = Exception.class) |
| | | public Boolean updateByBo(SgConstructionBatchBo bo) { |
| | | List<SgConstructionBatch> list = baseMapper.selectList(new LambdaQueryWrapper<SgConstructionBatch>() |
| | | .eq(SgConstructionBatch::getBatch, bo.getBatch()) |