@Service @CacheConfig(cacheNames="EshopOrderMainCache") public class EshopOrderMainServiceImpl extends com.baomidou.mybatisplus.extension.service.impl.ServiceImpl<EshopOrderMainDAO,EshopOrderMain> implements EshopOrderMainService
| Constructor and Description |
|---|
EshopOrderMainServiceImpl() |
| Modifier and Type | Method and Description |
|---|---|
EshopOrderMain |
getOrderMainById(Long id)
查询
|
boolean |
removeById(Long id)
刪除
|
EshopOrderMain |
saveOrderMain(EshopOrderMain eshopOrderMain)
因为必须要有返回值,才能保存到数据库中,如果保存的对象的某些字段是需要数据库生成的,
那保存对象进数据库的时候,就没必要放到缓存了
|
EshopOrderMain |
updateOrderMain(EshopOrderMain eshopOrderMain)
修改
|
count, currentModelClass, getById, getMap, getObj, getOne, list, listByIds, listByMap, listMaps, listObjs, page, pageMaps, remove, removeById, removeByIds, removeByMap, retBool, save, saveBatch, saveBatch, saveOrUpdate, saveOrUpdateBatch, saveOrUpdateBatch, sqlSessionBatch, sqlStatement, update, updateBatchById, updateBatchById, updateByIdclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcount, getById, getMap, getObj, getOne, list, listByIds, listByMap, listMaps, listObjs, page, pageMaps, remove, removeById, removeByIds, removeByMap, save, saveBatch, saveBatch, saveOrUpdate, saveOrUpdateBatch, saveOrUpdateBatch, update, updateBatchById, updateBatchById, updateById@Cacheable(key="#p0") public EshopOrderMain getOrderMainById(Long id)
EshopOrderMainServicegetOrderMainById in interface EshopOrderMainService@Transactional(rollbackFor=java.lang.Exception.class) @CachePut(key="#p0.id") public EshopOrderMain updateOrderMain(EshopOrderMain eshopOrderMain)
EshopOrderMainServiceupdateOrderMain in interface EshopOrderMainService@Transactional(rollbackFor=java.lang.Exception.class) @CachePut(key="#p0.id") public EshopOrderMain saveOrderMain(EshopOrderMain eshopOrderMain)
saveOrderMain in interface EshopOrderMainService@Transactional(rollbackFor=java.lang.Exception.class) @CacheEvict(key="#p0") public boolean removeById(Long id)
EshopOrderMainServiceremoveById in interface EshopOrderMainServiceCopyright © 2018. All rights reserved.