@Override public List<EquipmentEntity> selectAllEntity(Object attach) { List<EquipmentEntity> entitys = dao.selectAllEntity(attach); for (EquipmentEntity entity : entitys) { entity.obtainAfter(); } return entitys; }
@Override public List<EquipmentEntity> selectEntityByUserId(long userId, Object attach) { List<EquipmentEntity> entitys = dao.selectEntityByUserId(userId, attach); for (EquipmentEntity entity : entitys) { entity.obtainAfter(); } return entitys; }
@Override public EquipmentEntity selectEntityByUserIdAndHeroIdAndPositionId( long userId, int heroId, int positionId, Object attach) { EquipmentEntity entity = (EquipmentEntity) dao.selectEntityByUserIdAndHeroIdAndPositionId(userId, heroId, positionId, attach); if (entity != null) { entity.obtainAfter(); } return entity; }
@Override public List<String> selectAllTableName(Object attach) { return dao.selectAllTableName(attach); }
@Override public void createTable(Object attach) { dao.createTable(attach); }