| | |
| | | import com.ruoyi.common.basic.PageInfo; |
| | | import com.ruoyi.common.core.domain.AjaxResult; |
| | | import com.ruoyi.common.core.redis.RedisCache; |
| | | import com.ruoyi.common.exception.ServiceException; |
| | | import com.ruoyi.common.utils.StringUtils; |
| | | import com.ruoyi.system.dto.TBillDto; |
| | | import com.ruoyi.system.mapper.TBillMapper; |
| | | import com.ruoyi.system.model.TBill; |
| | |
| | | @Autowired |
| | | TBillMapper tBillMapper; |
| | | |
| | | |
| | | public PageInfo<TBillDto> queryPage(TBillQuery query){ |
| | | PageInfo<TBill> pageInfo = new PageInfo<>(query.getPageNum(), query.getPageSize()); |
| | | PageInfo<TBillDto> info = tBillMapper.page(pageInfo, query); |
| | |
| | | } |
| | | |
| | | |
| | | |
| | | /** |
| | | * 传的金额 |
| | | * @param tBill |
| | | * @return |
| | | */ |
| | | public Boolean checkAndUpdateBill(TBill tBill){ |
| | | public Boolean checkAndUpdate(TBill tBill){ |
| | | if (StringUtils.isEmpty(tBill.getId())){ |
| | | throw new ServiceException("账单主键ID不能为空"); |
| | | } |
| | | |
| | | return true; |
| | | } |
| | | |