@Override public void updateEntity(MatchShopEntity entity, Object attach) { entity.saveBefore(); IDaoOperate daoOperate = daoOperateFactory.createDaoOperate(dao, DaoOperateType.Update, entity, "", null, attach); operatePool.execute(daoOperate); }
@Override public void batchUpdateEntity(List<MatchShopEntity> entitys, Object attach) { for (MatchShopEntity entity : entitys) { entity.saveBefore(); } IDaoOperate daoOperate = daoOperateFactory.createDaoOperate( dao, DaoOperateType.BatchUpdate, entitys, "", null, attach); operatePool.execute(daoOperate); }