Search in sources :

Example 1 with TbItemExample

use of cn.exrick.manager.pojo.TbItemExample in project xmall by Exrick.

the class ItemServiceImpl method getAllItemCount.

@Override
public DataTablesResult getAllItemCount() {
    TbItemExample example = new TbItemExample();
    Long count = tbItemMapper.countByExample(example);
    DataTablesResult result = new DataTablesResult();
    result.setRecordsTotal(Math.toIntExact(count));
    return result;
}
Also used : TbItemExample(cn.exrick.manager.pojo.TbItemExample) DataTablesResult(cn.exrick.common.pojo.DataTablesResult)

Aggregations

DataTablesResult (cn.exrick.common.pojo.DataTablesResult)1 TbItemExample (cn.exrick.manager.pojo.TbItemExample)1